/* episode.css — 已用 PurgeCSS 清除未使用規則 (2026-07-29)
   來源頁面: episode.html / episode1.html / episode2.html / episode2-no.html / episodelist.html
   原始完整檔備份於: css/episode.css.backup-before-purge (135.9 KB)
   移除的多為 hero banner / shop / artists 等其他頁面專用樣式，這 5 頁未使用。
   若日後新增頁面或區塊，請改回備份檔並重新跑一次 PurgeCSS。 */
/* ==========================================================================
   Custom Font Faces
   ========================================================================== */

/* --- Chiron Hei HK (中文) --- */
/* Regular: 內文 */
@font-face {
    font-family: 'Chiron Hei HK';
    src: url('../resource/font/Chiron_Hei_HK/static/ChironHeiHK-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
/* Bold: 標題 */
@font-face {
    font-family: 'Chiron Hei HK';
    src: url('../resource/font/Chiron_Hei_HK/static/ChironHeiHK-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
/* Black: 主視覺標題、資訊 */
@font-face {
    font-family: 'Chiron Hei HK';
    src: url('../resource/font/Chiron_Hei_HK/static/ChironHeiHK-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

/* --- Orbitron (英文) --- */
/* Regular: 內文 */
@font-face {
    font-family: 'Orbitron';
    src: url('../resource/font/Orbitron/static/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
/* Bold: 副標題 */
@font-face {
    font-family: 'Orbitron';
    src: url('../resource/font/Orbitron/static/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
/* Black: 標語、標題 */
@font-face {
    font-family: 'Orbitron';
    src: url('../resource/font/Orbitron/static/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

/* --- Bungee (裝飾用) --- */
@font-face {
    font-family: 'Bungee';
    src: url('../resource/font/Bungee/Bungee-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette (Purple & Pink Theme on Light) */
    --color-bg-dark: #ffffff;
    /* Re-purposed to white background */
    --color-bg-card: #f4f4f9;
    /* Soft frosty gray for cards */
    --color-primary-purple: #9d4edd;
    --color-primary-pink: #ff007f;
    --color-accent: #f72585;

    --color-text-main: #1a1a1a;
    /* Dark text for readability */
    --color-text-muted: #666666;

    /* Typography
       英文: Orbitron (Black=標語標題, Bold=副標題, Regular=內文)
       中文: Chiron Hei HK (Black=主視覺標題, Bold=標題, Regular=內文)
       Bungee: 裝飾性用途 */
    --font-en: 'Orbitron', 'Bungee', sans-serif;         /* 英文字型 */
    --font-tc: 'Chiron Hei HK', sans-serif;              /* 中文字型 */
    --font-primary: 'Orbitron', 'Chiron Hei HK', sans-serif; /* 通用 fallback */

    /* Spacing & Layout */
    --nav-height: 80px;
    --container-max-width: 1400px;
    --container-padding: 0 5%;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-tc); /* 中文內文: Chiron Hei HK Regular */
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2 {
    font-family: var(--font-tc); /* 中文主視覺標題: Chiron Hei HK Black */
    font-weight: 900;
}

h3,
h4 {
    font-family: var(--font-tc); /* 中文標題: Chiron Hei HK Bold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p,
span,
div {
    font-family: var(--font-tc);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: 120px 0;
    position: relative;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* On pages that have the left sidebar (index.html), the top nav is removed
   because the logo lives in the sidebar instead. */
body:has(.left-bubbles) .nav-overlay {
    display: none;
}

/* Reset hero-banner top margin when nav is removed */

.nav-container {
    display: flex;
    justify-content: flex-start;   /* logo on the LEFT */
    align-items: center;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: var(--font-en); /* Orbitron Bold: 副標題級 */
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #9237F5;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: #9237F5;
}

.nav-link:hover::after {
    width: 100%;
}

.apply-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.3);
}

/* ==========================================================================
   Hero Banner Carousel
   ========================================================================== */

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Hero Section (legacy)
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end; /* 文字移到下方，改回 center 即可恢復置中 */
    justify-content: center;
    padding-bottom: 150px; /* 保留底部空間給 SCROLL 指示器，往上調30px */
    overflow: hidden;
}

@keyframes glitch-anim {
    0% {
        clip: rect(44px, 9999px, 85px, 0);
    }

    5% {
        clip: rect(10px, 9999px, 66px, 0);
    }

    10% {
        clip: rect(61px, 9999px, 83px, 0);
    }

    15% {
        clip: rect(74px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(35px, 9999px, 5px, 0);
    }

    25% {
        clip: rect(59px, 9999px, 3px, 0);
    }

    30% {
        clip: rect(51px, 9999px, 84px, 0);
    }

    35% {
        clip: rect(46px, 9999px, 32px, 0);
    }

    40% {
        clip: rect(98px, 9999px, 27px, 0);
    }

    45% {
        clip: rect(50px, 9999px, 36px, 0);
    }

    50% {
        clip: rect(25px, 9999px, 15px, 0);
    }

    55% {
        clip: rect(6px, 9999px, 69px, 0);
    }

    60% {
        clip: rect(78px, 9999px, 58px, 0);
    }

    65% {
        clip: rect(98px, 9999px, 14px, 0);
    }

    70% {
        clip: rect(11px, 9999px, 19px, 0);
    }

    75% {
        clip: rect(43px, 9999px, 47px, 0);
    }

    80% {
        clip: rect(31px, 9999px, 35px, 0);
    }

    85% {
        clip: rect(99px, 9999px, 51px, 0);
    }

    90% {
        clip: rect(63px, 9999px, 95px, 0);
    }

    95% {
        clip: rect(89px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(85px, 9999px, 7px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(34px, 9999px, 71px, 0);
    }

    5% {
        clip: rect(48px, 9999px, 34px, 0);
    }

    10% {
        clip: rect(83px, 9999px, 23px, 0);
    }

    15% {
        clip: rect(74px, 9999px, 95px, 0);
    }

    20% {
        clip: rect(100px, 9999px, 41px, 0);
    }

    25% {
        clip: rect(75px, 9999px, 63px, 0);
    }

    30% {
        clip: rect(2px, 9999px, 4px, 0);
    }

    35% {
        clip: rect(49px, 9999px, 3px, 0);
    }

    40% {
        clip: rect(14px, 9999px, 17px, 0);
    }

    45% {
        clip: rect(81px, 9999px, 2px, 0);
    }

    50% {
        clip: rect(5px, 9999px, 68px, 0);
    }

    55% {
        clip: rect(89px, 9999px, 19px, 0);
    }

    60% {
        clip: rect(15px, 9999px, 52px, 0);
    }

    65% {
        clip: rect(9px, 9999px, 59px, 0);
    }

    70% {
        clip: rect(21px, 9999px, 36px, 0);
    }

    75% {
        clip: rect(93px, 9999px, 75px, 0);
    }

    80% {
        clip: rect(47px, 9999px, 53px, 0);
    }

    85% {
        clip: rect(61px, 9999px, 86px, 0);
    }

    90% {
        clip: rect(82px, 9999px, 79px, 0);
    }

    95% {
        clip: rect(72px, 9999px, 33px, 0);
    }

    100% {
        clip: rect(32px, 9999px, 80px, 0);
    }
}

.subtitle {
    font-family: var(--font-tc); /* 中文主視覺資訊: Chiron Hei HK Black */
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.date {
    font-family: var(--font-en); /* 英文標語: Orbitron Black */
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--color-primary-pink);
    border: 1px solid var(--color-primary-pink);
    padding: 8px 16px;
    border-radius: 4px;
}

@keyframes scrollAnim {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-tc); /* 中文標題: Chiron Hei HK Bold */
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.1;
}

/* ==========================================================================
   Artists / Contestants Section
   ========================================================================== */

.artist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.artist-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background-color: #000000;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Lighter border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.artist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 127, 0.15);
    /* More subtle pink shadow */
    border-color: rgba(255, 0, 127, 0.2);
}

.artist-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.artist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(10%) contrast(1.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.artist-card:hover .artist-img {
    transform: scale(1.05);
}

/* Artist card click zoom effect */
.artist-card.zoomed .artist-img {
    transform: scale(2);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-card .artist-img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-card:hover .hover-video {
    opacity: 1;
}

/* Hover overlay for styling */
.artist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 10, 23, 0.9) 0%, rgba(15, 10, 23, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    transition: var(--transition-smooth);
}

.artist-card:hover .artist-overlay {
    height: 80%;
    background: linear-gradient(to top, rgba(15, 10, 23, 0.95) 0%, rgba(154, 78, 221, 0.4) 100%);
}

.artist-info {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.artist-card:hover .artist-info {
    transform: translateY(0);
}

.artist-number {
    font-family: var(--font-en); /* 英文內文: Orbitron Regular */
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-primary-pink);
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.artist-name {
    font-size: 1.8rem;
    font-weight: 700; /* 英文副標題: Orbitron Bold */
    color: white;
    margin-bottom: 5px;
    font-family: var(--font-en);
    /* Multi-layer shadow so the name reads on light AND dark photo backgrounds */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 24px rgba(0, 0, 0, 0.45);
}

.artist-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    opacity: 0;
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.artist-card:hover .artist-tags {
    opacity: 1;
}

.tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-tc);
    font-weight: 500;
}

.more-link:hover {
    color: var(--color-primary-pink);
}

.artist-card:hover .more-link {
    opacity: 1;
    transform: translateY(0);
}

.ig-link:hover {
    color: var(--color-primary-pink);
}

.artist-card:hover .ig-link {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Artist Detail Modal
   ========================================================================== */
.artist-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(10, 8, 16, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    padding: 40px 20px;
}

.artist-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.artist-modal {
    background: linear-gradient(145deg, #1a1a2e, #16162b);
    color: #e0e0e0;
    border-radius: 18px;
    max-width: 920px;
    width: 100%;
    position: relative;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.15);
}

.artist-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}

.artist-modal-close:hover {
    color: var(--color-primary-pink);
}

.artist-modal-layout {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.artist-modal-gallery {
    flex: 0 0 340px;
    width: 340px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artist-modal-photo {
    width: 100%;
    aspect-ratio: 3 / 4;            /* fixed 3:4 portrait, regardless of thumbnail count */
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.artist-modal-photo-img,
.artist-modal-photo-iframe,
.artist-modal-photo-video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.artist-modal-photo-img {
    object-fit: cover;
    object-position: top center;
}

/* Local mp4 displayed as a YouTube-Shorts-style vertical video */
.artist-modal-photo-video {
    object-fit: cover;
    object-position: center;
    background: #000;
}

/* Video thumbnails render the first frame as poster, sized like image thumbs */
.artist-thumb-short video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #000;
    pointer-events: none;
}

.artist-modal-photo-img.zoom-in {
    animation: modalZoomIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalZoomIn {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Thumbnail strip — spans FULL modal width, below the layout, single row only.
   Always 12 fixed columns: thumbs fill from left, empty slots stay empty on the right. */
.artist-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 20px;
}

.artist-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;            /* match main photo aspect */
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.2s ease;
    position: relative;
    background: #000;
    min-width: 0;
}

.artist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.artist-thumb.active,
.artist-thumb:hover {
    border-color: var(--color-primary-pink);
    opacity: 1;
}

/* Play-icon overlay on Shorts thumbnails */
.artist-thumb-short .artist-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.artist-thumb-short .artist-thumb-play svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.artist-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.artist-modal-number {
    font-family: var(--font-en); /* 英文內文: Orbitron Regular */
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-primary-pink);
    letter-spacing: 0.1em;
}

.artist-modal-name {
    font-size: 2rem;
    font-weight: 700; /* 英文副標題: Orbitron Bold */
    color: #fff;
    font-family: var(--font-en);
    line-height: 1.2;
    margin: 0;
}

.artist-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.artist-modal-tags .tag {
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(157, 78, 221, 0.15);
    color: var(--color-primary-purple);
    border: 1px solid rgba(157, 78, 221, 0.3);
    font-family: var(--font-tc);
    font-weight: 500;
}

.artist-modal-bio {
    font-size: 1rem;
    line-height: 1.85;
    color: #bbb;
    font-family: var(--font-tc);
}

/* Removed horizontal video section — media unified inside .artist-modal-photo */
.artist-modal-video-wrap,
.artist-modal-video {
    display: none !important;
}

.artist-modal-ig {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-family: var(--font-en);
    transition: color 0.2s;
    text-decoration: none;
    margin-top: 4px;
}

.artist-modal-ig svg {
    flex-shrink: 0;
}

.artist-modal-ig:hover {
    color: var(--color-primary-pink);
}

@media (max-width: 768px) {
    .artist-modal-layout {
        flex-direction: column;
        gap: 20px;
    }

    .artist-modal-gallery {
        flex: none;
        width: 100%;
    }

    /* Anchor modal to top so user always sees the header (with close button) */
    .artist-modal-overlay {
        align-items: flex-start;
        padding: 20px 12px 40px;
    }

    .artist-modal {
        padding: 60px 18px 24px;
        max-height: none;
        margin-top: 0;
    }

    /* Make close button fixed so it stays visible while scrolling the modal */
    .artist-modal-close {
        position: fixed;
        top: 14px;
        right: 18px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        font-size: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .artist-modal-close:hover {
        background: var(--color-primary-pink);
        color: #fff;
    }

    .artist-modal-name {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #f8f9fa;
    /* Light gray background */
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-en); /* 英文標語: Orbitron Black */
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-text-muted);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon:hover {
    background-color: #9237F5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(146, 55, 245, 0.3);
}

.footer-links a:hover {
    color: var(--color-primary-pink);
}

/* ==========================================================================
   Shop Section
   ========================================================================== */

/* Standalone shop page: add top padding so first section clears the fixed nav */

.nav-link.active {
    color: var(--color-primary-purple);
}

.shop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(157,78,221,0.15);
    border-color: rgba(157,78,221,0.2);
}

.shop-card:hover .shop-card-img-wrap img {
    transform: scale(1.06);
}

/* --- Nav Cart Button --- */
.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Shop Full Page Product View
   ========================================================================== */

.shop-fullpage-back:hover {
    color: var(--color-primary-pink);
}


.shop-fullpage .pd-thumb:hover {
    border-color: var(--color-primary-purple);
}


.shop-fullpage .pd-variant-btn:hover {
    border-color: var(--color-primary-purple);
    color: var(--color-primary-purple);
}

.shop-fullpage .pd-qty-btn:hover {
    background: #e0e0e0;
}

.shop-fullpage .pd-btn-cart:hover {
    background: #e0e0e0;
}

.shop-fullpage .pd-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
}

/* ==========================================================================
   Shop Modals
   ========================================================================== */

.shop-modal-close:hover {
    color: #fff;
}

/* Product Detail */


.pd-thumb:hover {
    border-color: var(--color-primary-pink);
    opacity: 1;
}


.pd-variant-btn:hover {
    border-color: var(--color-primary-pink);
    color: var(--color-primary-pink);
    background: rgba(255,0,127,0.08);
}

.pd-qty-btn:hover {
    background: #333;
}

.pd-btn-cart:hover {
    background: rgba(157,78,221,0.1);
}

.pd-btn-buy:hover {
    box-shadow: 0 8px 24px rgba(255,0,127,0.3);
    transform: translateY(-1px);
}

/* Cart */

.cart-item-remove:hover {
    color: var(--color-primary-pink);
}

/* Checkout */

.checkout-field input:focus,
.checkout-field select:focus {
    border-color: var(--color-primary-purple);
}

/* Toast */
.shop-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, var(--color-primary-purple), var(--color-primary-pink));
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-tc);
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.shop-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Audition Process Section
   ========================================================================== */

.process-eyebrow {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #9237F5;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: none;
}

/* Diamond icon above each step */

/* Chevron arrows between steps */

/* ==========================================================================
   Artist Modal Social Icons
   ========================================================================== */
.artist-modal-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.modal-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    text-decoration: none;
}

.modal-social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.modal-social-icon:hover {
    background: var(--color-primary-pink);
    border-color: var(--color-primary-pink);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.4);
}

/* ==========================================================================
   Episode Guide Section (節目預告)
   ========================================================================== */

.episode-card:hover .episode-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(157, 78, 221, 0.18);
    border-color: rgba(157, 78, 221, 0.25);
}

.episode-card:hover .episode-card-media img,
.episode-card:hover .episode-card-media video {
    transform: scale(1.05);
}

/* Mobile-only query button */

.episode-card-query:hover {
    background: var(--color-primary-purple);
    color: #fff;
}

/* Pointer line connecting card to judges reveal */

.episode-card:hover .episode-pointer {
    height: 50px;
    opacity: 1;
}

/* Judges reveal panel */

.episode-card:hover .episode-judges-reveal {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ep-judges-label {
    position: relative;
    z-index: 4;
    font-family: var(--font-en);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--color-primary-pink);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 4px;
}

/* Judges list — heads extend ABOVE the panel's top edge; figures overlap horizontally */
.ep-judges-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    align-items: end;
    position: relative;
    padding-top: 0;
}

.ep-judge {
    position: relative;
    text-align: center;
}

/* Image wrapper — pulled UP via negative margin so figures break the panel top */
.ep-judge-img-wrap {
    width: 100%;
    height: 240px;
    margin-top: -180px; /* lift upward so heads pop above panel boundary */
    margin-bottom: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    pointer-events: none;
}

.ep-judge-img-wrap img {
    pointer-events: auto;
    width: auto;
    max-width: 160%;
    height: auto;
    max-height: 360px;
    display: block;
    transform: none;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
}

.ep-judge:hover .ep-judge-img-wrap img {
    transform: translateY(-8px) scale(1.03);
}

.ep-judge-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {

    /* Show query button on mobile */

    /* Mobile: layout switches to in-flow stacking (panel below card-inner) */
    
    .episode-card:hover .episode-pointer,
    .episode-card.open:hover .episode-pointer {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        max-width: 100%;
        z-index: 50;
        /* width stays 2px (from base rule) — DO NOT force 100% so it stays a thin line */
    }

    
    .episode-card:hover .episode-judges-reveal,
    .episode-card.open:hover .episode-judges-reveal {
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100%;
        z-index: 50;
    }

    /* z-index: ensure panel + protruding figures draw above the card-inner above */

    /* Hidden by default on mobile (no hover-reveal — use 查詢評審 button) */
    
    .episode-card:hover .episode-pointer {
        display: none;
        height: 0;
        opacity: 0;
    }
    
    .episode-card:hover .episode-judges-reveal {
        display: none;
        opacity: 0;
        visibility: hidden;
    }

    /* Open state: thin pointer, plenty of gap to keep figures away from the button */

    /* Mobile — break-out figures + overlapping shoulders (same look as desktop, slightly smaller) */
    .ep-judges-list {
        gap: 0;
    }
    .ep-judge-img-wrap {
        height: 170px;
        margin-top: -120px;
    }
    .ep-judge-img-wrap img {
        max-width: 170%;
        max-height: 250px;
    }
    .ep-judge:hover .ep-judge-img-wrap img {
        transform: none;
    }
    .ep-judge-name {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Schedule Section - Redesigned (播出時程)
   ========================================================================== */

/* main2.jpg dictates the section's height; right side stretches to match */

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Spacer between sections */

/* ==========================================================================
   Latest News / Events Section (最新活動)
   ========================================================================== */

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(123, 47, 190, 0.12);
    border-color: rgba(123, 47, 190, 0.25);
}

.news-item:hover .news-arrow {
    transform: translateX(6px);
}

.news-more-link:hover {
    background: var(--color-primary-purple);
    color: #fff;
}

/* ==========================================================================
   Voting Banner Section
   ========================================================================== */

.voting-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(157, 78, 221, 0.25);
}

/* ==========================================================================
   Judges Section
   ========================================================================== */

/* Wrap escapes the container so the carousel spans the full viewport
   width — the leftmost / rightmost cards peek behind the side bars,
   hinting that more cards exist on either side. */

/* Darkroom-style horizontal wire running across the row, behind the
   cards but in front of the section background. Each card image already
   contains a clip at the top — visually the clip appears to hang on
   this line (between cards the line shows; behind cards it is hidden). */

/* Edge feather overlays — gradient veils over the left & right edges.
   These are separate overlay elements: they sit ON TOP of the cards and
   never touch the cards' own rendering, so they cannot make cards vanish.
   They fade the partially-visible side cards, hinting more cards exist. */

/* 7 cards across viewport (6 inner gaps + 2x 8px outer padding) */

/* Hover: shake + scale up, then hold */
.judge-card:hover {
    background: transparent;
    border-color: transparent;
    animation: judgeCardHover 0.7s ease-out forwards;
    z-index: 5;
    cursor: pointer;
}

@keyframes judgeCardHover {
    0%   { transform: translateX(0)    rotate(0deg); }
    20%  { transform: translateX(-2px) rotate(-1.5deg); }
    40%  { transform: translateX(2px)  rotate(1.5deg); }
    60%  { transform: translateX(-1px) rotate(-1deg); }
    80%  { transform: translateX(1px)  rotate(0.8deg); }
    100% { transform: translateX(0)    rotate(0deg); }
}

.judge-card:hover .judge-avatar img {
    transform: scale(1.08);
}

/* ==========================================================================
   Judges Carousel Arrows — pure neon chevron stacks (speed lines)
   ==========================================================================
   • No rectangular background — just stacked chevron lines
   • Each chevron is a polyline (line stroke only, no fill)
   • Brightness gradient across chevrons (faint → vivid in motion direction)
   • Neon drop-shadow glow + sequential "flowing" animation
   ========================================================================== */
/* Arrows row — sits below the carousel, both arrows centered together */

/* Stacked chevrons — each has different base opacity (fade trail effect) */

/* Continuous flowing animation — chevrons brighten in sequence (waves of light) */

@keyframes judgeArrowChevFlow {
    0%, 100% { stroke: url(#judgeArrowGradRight); }
    50%      { stroke: #ffffff; filter: drop-shadow(0 0 8px #E040FB); }
}

/* Subtle horizontal drift to enhance "motion" feel */
@keyframes judgeArrowDriftRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}
@keyframes judgeArrowDriftLeft {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-6px); }
}

/* Hover — boost glow, speed up flow, scale slightly */
.judges-arrow:hover {
    transform: scale(1.12);
    filter:
        drop-shadow(0 0 12px rgba(255, 121, 255, 0.85))
        drop-shadow(0 0 28px rgba(224, 64, 251, 0.7));
}
.judges-arrow:hover .chev {
    animation-duration: 0.9s !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {

    .artist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .artist-card {
        aspect-ratio: 3 / 4;
    }

    .artist-name {
        font-size: 2.2rem;
    }

    .artist-card:hover .artist-info {
        transform: translateY(0);
    }

    .artist-tags {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================================
   About Section Toggle (for returning visitors)
   ========================================================================== */

.about-toggle-link:hover {
    background: rgba(157, 78, 221, 0.08);
    border-color: var(--color-primary-purple);
}

/* ==========================================================================
   Hero Banner - Mobile (vertical layout)
   ========================================================================== */
@media (max-width: 768px) {

    /* Video shows only its center 900x1476 portion via object-fit:cover */

    /* Vertical static images use cover to fill the portrait container */

    /* Smaller arrows / dots on phones for less obstruction */
}

/* ==========================================================================
   Episodes Page (episodes.html) — 12 episodes + tracklist
   ========================================================================== */

/* Hide judges-reveal on episodes page (we use a separate tracks panel) */

/* Active card highlight */

/* Track list panel */
.ep-tracks-wrap {
    margin-top: 60px;
    background: linear-gradient(145deg, #1a1a2e, #16162b);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 18px;
    padding: 32px 36px 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ep-tracks-header {
    text-align: center;
    margin-bottom: 24px;
}

.ep-tracks-eyebrow {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #E040FB;
    margin-bottom: 6px;
}

.ep-tracks-title {
    font-family: var(--font-tc);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.ep-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Track row */
.track-row {
    display: grid;
    grid-template-columns: 36px 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(157, 78, 221, 0.15);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.track-row:hover {
    background: rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.4);
}

.track-row.playing {
    background: rgba(224, 64, 251, 0.12);
    border-color: #E040FB;
}

.track-num {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary-purple);
    text-align: center;
}

.track-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #9d4edd, #7B2FBE);
    flex-shrink: 0;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.track-info {
    min-width: 0;
}

.track-title {
    font-family: var(--font-en);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

.track-meta-sep {
    color: rgba(255, 255, 255, 0.3);
}

.track-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.track-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: var(--font-tc);
    font-weight: 600;
    transition: all 0.2s ease;
}

.track-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.track-btn:hover {
    background: rgba(157, 78, 221, 0.25);
    border-color: var(--color-primary-purple);
}

.track-btn-preview.is-playing {
    background: linear-gradient(135deg, #E040FB, #9d4edd);
    border-color: transparent;
    color: #fff;
}

.track-btn-buy.owned {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
    cursor: default;
}

.track-btn-buy.owned:hover {
    background: rgba(34, 197, 94, 0.18);
}

@media (max-width: 768px) {

    .ep-tracks-wrap {
        padding: 22px 16px 24px;
        margin-top: 40px;
    }

    .track-row {
        grid-template-columns: 28px 50px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .track-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        flex-wrap: wrap;
        margin-top: 6px;
    }

    .track-cover { width: 50px; height: 50px; }

    .track-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .track-btn-label {
        display: none;
    }

    .track-btn svg {
        width: 16px;
        height: 16px;
    }

    .track-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .track-meta {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   Episodes Page — Hero Banner (cropped landscape video)
   ========================================================================== */

/* Re-anchor the section since hero now occupies the top */

/* ==========================================================================
   Episode Detail Page (episode1.html?ep=N)
   ========================================================================== */
.episode-detail-page { background: var(--color-bg-dark); }

.ep-hero {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: 76px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-end;
}

.ep-hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#ep-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.1) brightness(0.85);
}

.ep-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.ep-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-bottom: 50px;
    padding-top: 40px;
}

.ep-back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.ep-back-link:hover { color: #fff; }

.ep-hero-eyebrow {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #E040FB;
    margin-bottom: 12px;
}

.ep-hero-title {
    font-family: var(--font-tc);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.ep-hero-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
}

/* Behind-the-scenes */
.ep-bts-section {
    padding: 100px 0 60px;
    background: var(--color-bg-dark);
}

.ep-bts-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ep-bts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 60px;
}

.ep-bts-card {
    cursor: pointer;
}

.ep-bts-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid rgba(157, 78, 221, 0.2);
    transition: var(--transition-smooth);
}

.ep-bts-card:hover .ep-bts-media {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(157, 78, 221, 0.25);
    border-color: rgba(157, 78, 221, 0.55);
}

.ep-bts-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ep-bts-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ep-bts-play svg { width: 22px; height: 22px; margin-left: 2px; }

.ep-bts-card:hover .ep-bts-play {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.ep-bts-label {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
}

.ep-intro {
    max-width: 760px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.85;
    font-size: 1rem;
    text-align: center;
}

/* Tracks Section (dark theme on detail page) */
.ep-tracks-section {
    padding: 80px 0 120px;
    background: #0f0e1c;
    color: #fff;
}

.ep-tracks-section .section-title { color: #fff; }
.ep-tracks-section .section-header { text-align: center; margin-bottom: 50px; }

.ep-tracks-list-wide {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

/* Wide horizontal thumbnails (YouTube-style) for tracks */
.track-row-wide {
    grid-template-columns: 36px 200px 1fr auto !important;
    gap: 22px !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(157, 78, 221, 0.15);
}

.track-cover-wide {
    width: 200px !important;
    height: 112px !important;     /* 16:9 ratio */
    aspect-ratio: 16 / 9;
    border-radius: 10px !important;
}

.track-cover-wide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-tracks-list-wide .track-title {
    font-size: 1.1rem;
}

/* 歌名、演唱者拆成兩行，避免斷行/被省略號切掩，並確保兩行字體大小一致 */
.ep-tracks-list-wide .track-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
}

.ep-tracks-list-wide .track-title-group .track-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 0;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .ep-bts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ep-hero {
        height: 360px;
        margin-top: 64px;
    }
    .ep-hero-content { padding-bottom: 30px; }
    .ep-back-link { margin-bottom: 14px; }
    .ep-hero-title { font-size: 2rem; }

    .ep-bts-section { padding: 60px 0 40px; }
    .ep-bts-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }

    .ep-tracks-section { padding: 50px 0 80px; }

    /* 用 clamp() 讓封面、間距、字形隨螢幕寬等比縮放，避免在窄小手機上
       固定 px 造成比例失衡、整列過高的問題 */
    .track-row-wide {
        grid-template-columns: clamp(20px, 6vw, 28px) clamp(84px, 30vw, 140px) 1fr !important;
        gap: clamp(8px, 3vw, 12px) !important;
        padding: clamp(10px, 3vw, 12px) !important;
    }
    .track-cover-wide {
        width: clamp(84px, 30vw, 140px) !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
    .track-row-wide .track-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        flex-wrap: wrap;
        margin-top: 8px;
    }
    .ep-tracks-list-wide .track-title { font-size: clamp(0.88rem, 3.6vw, 1rem); }
    .ep-tracks-list-wide .track-num { font-size: clamp(0.78rem, 3vw, 0.95rem); }
    .ep-tracks-list-wide .track-meta {
        font-size: clamp(0.68rem, 2.8vw, 0.78rem);
        gap: 5px 8px;
    }
}

@media (max-width: 480px) {
    .ep-tracks-list-wide { gap: 10px; }
    .track-row-wide {
        grid-template-columns: clamp(18px, 6vw, 22px) clamp(72px, 32vw, 96px) 1fr !important;
        gap: 8px !important;
        padding: 9px !important;
    }
    .track-cover-wide {
        width: clamp(72px, 32vw, 96px) !important;
    }
    .ep-tracks-list-wide .track-title { font-size: clamp(0.82rem, 4vw, 0.92rem); }
    .ep-tracks-list-wide .track-meta { font-size: clamp(0.64rem, 3vw, 0.72rem); }
}

/* ==========================================================================
   Episode Detail Page — Compact Header (no video banner)
   ========================================================================== */
.ep-header-compact {
    margin-top: 76px;
    padding: 70px 0 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16162b 60%, #0f0e1c 100%);
    border-bottom: 1px solid rgba(157, 78, 221, 0.18);
    color: #fff;
    text-align: center;
}

.ep-header-compact-inner {
    text-align: center;
}

.ep-header-compact .ep-back-link {
    display: inline-block;
    margin-bottom: 22px;
}

.ep-header-compact .ep-hero-eyebrow {
    color: #E040FB;
    margin-bottom: 10px;
}

.ep-header-compact .ep-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 12px;
    text-shadow: none;
}

.ep-header-compact .ep-hero-date {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
    .ep-header-compact {
        margin-top: 64px;
        padding: 50px 0 30px;
    }
    .ep-header-compact .ep-hero-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Judges Intro Section (NEW: banner placeholder + overlapping judges preview)
   ========================================================================== */

/* Single judges photo intruding upward into the banner */

/* Bottom divider line */

/* ==========================================================================
   Judges Section — enlarged (+130%) when between Process and Artists
   ========================================================================== */
/* 7-per-view across full viewport (peeks behind side bars) */

/* ==========================================================================
   News Calendar (Latest Activities month view)
   ========================================================================== */
.calendar-wrap {
    margin: 50px auto 0;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 22px 26px 24px;
}

/* Split: calendar on left (smaller), events list on right (larger) */

/* Slightly enlarge the calendar internals (~130%) — but cells stay square + flex to column width */

/* Subtle scrollbar for events list */
.calendar-right .calendar-events::-webkit-scrollbar {
    width: 6px;
}
.calendar-right .calendar-events::-webkit-scrollbar-thumb {
    background: rgba(146, 55, 245, 0.3);
    border-radius: 3px;
}
.calendar-right .calendar-events::-webkit-scrollbar-track {
    background: transparent;
}

.cal-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--color-text-main);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav:hover {
    background: var(--color-primary-purple);
    color: #fff;
    border-color: var(--color-primary-purple);
}

.cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Calendar grid (weekdays + days) */

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-weekday {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 8px 0;
}

.cal-day {
    aspect-ratio: 1 / 1;
    min-width: 0;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.cal-day-empty {
    background: transparent;
}

.cal-day-num {
    font-family: var(--font-en);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.cal-day.is-today {
    background: rgba(146, 55, 245, 0.12);
    border-color: var(--color-primary-purple);
}

.cal-day.is-today .cal-day-num {
    color: var(--color-primary-purple);
    font-weight: 800;
}

.cal-day.has-event {
    cursor: pointer;
    background: #fff;
    border-color: rgba(146, 55, 245, 0.3);
}

.cal-day.has-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(146, 55, 245, 0.15);
    border-color: var(--color-primary-purple);
}

.cal-dots {
    display: flex;
    gap: 3px;
    margin-top: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 4px;
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.cal-dot-live    { background: #e91e63; }
.cal-dot-event   { background: #9237F5; }
.cal-dot-release { background: #1976d2; }

/* Events list for current month (below calendar) */
.calendar-events {
    margin-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cal-events-empty {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 20px 0;
}

.cal-event-row {
    display: flex;
    gap: 18px;
    padding: 14px 18px;
    background: #fafafe;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cal-event-day {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary-purple), #7B2FBE);
    color: #fff;
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-event-info {
    flex: 1;
    min-width: 0;
}

.cal-event-title {
    font-family: var(--font-tc);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 4px 0 4px;
}

.cal-event-meta {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .calendar-wrap {
        padding: 18px 14px 22px;
    }
    .cal-day {
        padding: 4px 2px;
        border-radius: 8px;
    }
    .cal-day-num {
        font-size: 0.8rem;
    }
    .cal-dot {
        width: 6px;
        height: 6px;
    }
    
    .calendar-days {
        gap: 3px;
    }
    .cal-event-row {
        padding: 12px 14px;
        gap: 12px;
    }
    .cal-event-day {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* When the section-header sits BELOW the judges carousel */

/* ==========================================================================
   Episode Tracks — YouTube-style row
   ========================================================================== */
.track-row-yt {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.track-row-yt:hover {
    background: rgba(255, 0, 0, 0.06);
    border-color: rgba(255, 0, 0, 0.4);
}

/* YouTube-style thumbnail with play overlay + duration badge */
.track-cover-yt {
    position: relative;
    overflow: hidden;
    background: #000;
}

.track-cover-yt img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.track-row-yt:hover .track-cover-yt img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

.yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.92;
}

.yt-play-overlay svg {
    width: 56px;
    height: 40px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.track-row-yt:hover .yt-play-overlay {
    opacity: 1;
}

.track-row-yt:hover .yt-play-overlay svg {
    transform: scale(1.12);
}

.yt-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
}

/* Channel row inline with red YouTube icon */
.track-meta-channel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.track-meta-channel svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .yt-play-overlay svg {
        width: 44px;
        height: 30px;
    }
    .yt-duration {
        font-size: 0.72rem;
        padding: 2px 5px;
    }
}

/* ==========================================================================
   YouTube-style Modal (full-page overlay with iframe player)
   ========================================================================== */
.yt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(15, 15, 15, 0.92);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 40px;
    overflow-y: auto;
}

.yt-modal-overlay.visible {
    display: flex;
    animation: ytFadeIn 0.25s ease;
}

@keyframes ytFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yt-modal {
    width: 100%;
    max-width: 1100px;
    background: #0f0f0f;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.yt-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
    line-height: 1;
}

.yt-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.yt-modal-player {
    background: #000;
}

.yt-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.yt-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.yt-modal-info {
    padding: 22px 28px 30px;
    color: #f1f1f1;
    font-family: var(--font-tc);
}

.yt-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.35;
}

.yt-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
}

.yt-modal-meta-sep {
    color: rgba(255, 255, 255, 0.3);
}

.yt-modal-publisher {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

.yt-modal-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.yt-modal-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.yt-modal-social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.yt-modal-social-icon .social-ic { width: 16px; height: 16px; display: block; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.85; }

.yt-modal-social-icon:hover {
    background: #e984fc;
    border-color: #e984fc;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .yt-modal-overlay { padding: 30px 12px 20px; }
    .yt-modal-info { padding: 16px 18px 22px; }
    .yt-modal-title { font-size: 1.15rem; }
}

/* Subtitle now placed ABOVE the judges carousel cards */

/* ==========================================================================
   Combined Judges Block (intro + carousel share one bg7.png background)
   ========================================================================== */

/* When inside the combined wrapper, both inner sections become transparent
   so the single background image shows through (no double layering). */

/* ==========================================================================
   Right Side-bar Timeline — full-height fixed column (same width as left)
   ========================================================================== */

/* Static unfilled rail — thermometer tube, anchored to left side of list */

/* Progress fill — purple→pink mercury */

/* Inner dot for clearer ring/node look on the rail */

/* Tick mark on the right side pointing toward the icon */

/* Hover */
.timeline-item:hover .timeline-dot {
    background: #9237F5;
    border-color: #9237F5;
}
.timeline-item:hover .timeline-label {
    color: #9237F5;
}
.timeline-item:hover {
    transform: translateX(-4px);
}

/* Active (current section in view) */
.timeline-item:hover .timeline-dot::before {
    background: #9237F5;
}

/* Dot above progress line */

@media (max-width: 768px) {
    /* Hide on mobile (too cramped) */
}

/* ==========================================================================
   Left Side-bar (socials + artist bubbles) — full-height fixed column
   ========================================================================== */
:root {
    --side-bar-w: 88px;     /* 80% of original 110px */
    --side-bar-bg: transparent;
    --side-bar-fg: #1a1a1a;
    --side-bar-border: transparent;
}

/* Top white bar with logo (in normal flow, scrolls away with page) */

.top-bar-logo:hover {
    transform: scale(1.04);
}

.bubble:hover {
    background: #9237F5;
    border-color: #9237F5;
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(146, 55, 245, 0.55);
}

.bubble-artist:hover {
    transform: scale(1.18);
    border-color: #E040FB;
    box-shadow: 0 0 14px rgba(224, 64, 251, 0.7);
}

.bubbles-nav-btn:hover {
    color: #9237F5;
    transform: scale(1.2);
}

/* Hide footer socials since they now appear on the left as bubbles */
.footer .footer-socials {
    display: none;
}

/* Body padding so main content does not get covered by side bars */
body {
    padding-left: var(--side-bar-w);
    padding-right: var(--side-bar-w);
}

/* Top nav offsets to account for side bars */
.nav-overlay {
    left: var(--side-bar-w);
    right: var(--side-bar-w);
    width: auto;
}

@media (max-width: 1024px) {
    :root { --side-bar-w: 76px; }    /* 80% of original 95px */
}

@media (max-width: 768px) {
    body { padding-left: 0; padding-right: 0; }
    .nav-overlay { left: 0; right: 0; }
    .footer .footer-socials {
        display: flex;
    }
}

/* Voting widget wrapper (SweepWidget campaign iframe) */

/* ==========================================================================
   Sidebar visibility — hidden in hero area, slide in after scrolling past
   ========================================================================== */

/* Default state: hidden (hero in view) — fully transparent, off-screen */

/* Visible state: triggered when scrolling past hero */

/* Sidebars are transparent overlays — body keeps no horizontal padding
   so each section's background extends edge-to-edge across the viewport
   (visible *behind* the transparent sidebars).  Content stays clear of
   the sidebars via the .container padding override below. */
body {
    padding-left: 0;
    padding-right: 0;
}

/* Reserve sidebar clearance inside the centered content containers when
   the side bars are visible (after hero).  Uses `max()` so wide viewports
   still get the original 5 % gutter. */

/* ==========================================================================
   Timeline — icon-only version (no text labels)
   ========================================================================== */

.timeline-item:hover .timeline-icon {
    background: #9237F5;
    border-color: #9237F5;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 14px rgba(146, 55, 245, 0.55);
}

/* ==========================================================================
   News Banners — 5-banner carousel (shows 2 at a time, last "page" is 1)
   ========================================================================== */

/* Arrow buttons */
.news-banner-arrow:hover {
    background: #9237F5;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* Dot indicators */
.news-banner-dot:hover { background: #9237F5; }

.news-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(146, 55, 245, 0.18);
}

/* Decorative visual on right side */

/* ==========================================================================
   Add-to-calendar buttons in event row (Google + Outlook)
   ========================================================================== */
.cal-add-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cal-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-tc);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cal-add-btn svg {
    width: 14px;
    height: 14px;
}

/* Google — purple accent (matches site theme) */
.cal-gcal-btn {
    background: rgba(146, 55, 245, 0.08);
    color: #9237F5;
    border-color: rgba(146, 55, 245, 0.3);
}

.cal-gcal-btn:hover {
    background: #9237F5;
    color: #fff;
    border-color: #9237F5;
    transform: translateY(-1px);
}

/* Outlook — Microsoft blue */
.cal-outlook-btn {
    background: rgba(0, 120, 212, 0.08);
    color: #0078D4;
    border-color: rgba(0, 120, 212, 0.3);
}

.cal-outlook-btn:hover {
    background: #0078D4;
    color: #fff;
    border-color: #0078D4;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cal-add-btn {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}

/* Divider line between social bubbles and artist bubbles in left sidebar */

/* ==========================================================================
   Left Sidebar Socials — collapse/expand on hover
   ========================================================================== */

/* The trigger bubble (always visible — a "share" icon) */

.bubble-social-trigger:hover,
.bubbles-socials:hover .bubble-social-trigger {
    background: #9237F5;
    border-color: #9237F5;
    color: #ffffff;
    transform: rotate(180deg) scale(1.06);
}

/* The 7-icon list — collapsed by default */

/* Expand on hover/focus of the socials area */
.bubbles-socials:hover .bubbles-socials-list {
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
}

/* Each social icon — enter with stagger animation */

.bubbles-socials:hover .bubbles-socials-list .bubble {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Stagger delays — each icon appears 60ms after the previous */
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(1) { transition-delay: 0.05s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(2) { transition-delay: 0.11s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(3) { transition-delay: 0.17s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(4) { transition-delay: 0.23s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(5) { transition-delay: 0.29s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(6) { transition-delay: 0.35s; }
.bubbles-socials:hover .bubbles-socials-list .bubble:nth-child(7) { transition-delay: 0.41s; }

/* ==========================================================================
   Broadcast Schedule (merged into the EVENT panel — calendar-right column)
   ========================================================================== */

.broadcast-row:hover {
    background: rgba(146, 55, 245, 0.06);
    transform: translateX(3px);
}

.broadcast-more:hover {
    color: #E040FB;
}

/* Scrollable list — 3 rows visible, rest reachable via vertical scroll */

.broadcast-rows-scroll::-webkit-scrollbar {
    width: 6px;
}
.broadcast-rows-scroll::-webkit-scrollbar-track {
    background: rgba(146, 55, 245, 0.08);
    border-radius: 3px;
}
.broadcast-rows-scroll::-webkit-scrollbar-thumb {
    background: rgba(146, 55, 245, 0.55);
    border-radius: 3px;
}
.broadcast-rows-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(146, 55, 245, 0.8);
}

/* Hero banner-2 click area — links to the voting section */
