:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #2563eb;
    --cyan: #06b6d4;
    --teal: #0d9488;
    --dark: #0f172a;
    --radius: 20px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan), var(--teal));
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
}

.logo-text {
    font-size: 20px;
}

.desktop-nav,
.footer-links,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link,
.footer-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-current,
.mobile-link:hover,
.mobile-link.is-current,
.footer-links a:hover {
    color: var(--primary);
    background: #eff6ff;
}

.mobile-menu-button {
    width: 44px;
    height: 44px;
    border: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border-radius: 14px;
    background: #eff6ff;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--primary);
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    flex-wrap: wrap;
}

.mobile-nav.is-open {
    display: flex;
}

.hero-shell {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    isolation: isolate;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.2));
    z-index: -1;
}

.hero-track {
    width: min(1280px, calc(100% - 32px));
    min-height: 570px;
    margin: 0 auto;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 52px;
    padding: 74px 0 84px;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow,
.showcase-panel .eyebrow {
    color: #bae6fd;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5.4vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    font-size: clamp(26px, 3.1vw, 44px);
    line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.movie-card .tag-row span,
.movie-article .tag-row span,
.section-wrap .tag-row span {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.detail-tags span {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.primary-button.small,
.ghost-button.small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.28);
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.34);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.6));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 50px;
    z-index: 4;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.hero-category-links {
    width: min(1280px, calc(100% - 32px));
    margin: -28px auto 42px;
    display: flex;
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-category-links a {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.intro-section {
    padding-bottom: 26px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading.centered {
    display: block;
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading h2,
.showcase-panel h2,
.side-panel h2,
.movie-article h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.showcase-panel p,
.category-card-large p,
.movie-card p {
    color: var(--muted);
}

.section-link {
    color: var(--primary);
    background: #eff6ff;
}

.section-link.full {
    width: 100%;
    margin-top: 16px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 45px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.poster-frame img,
.detail-poster img,
.compact-card img,
.category-tile img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(15, 23, 42, 0.84));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
    background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-card-body {
    padding: 15px;
}

.movie-meta-row,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-card h3 {
    margin: 12px 0 6px;
    font-size: 17px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--primary);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    font-size: 14px;
}

.split-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
    gap: 24px;
}

.showcase-panel,
.page-hero,
.detail-hero,
.category-card-large,
.side-panel,
.movie-article {
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.showcase-panel {
    min-height: 100%;
    padding: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #0891b2, #0f766e);
}

.category-grid,
.category-large-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 26px;
    color: #ffffff;
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    opacity: 0.48;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.88));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 21px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: clamp(40px, 7vw, 86px);
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.2), transparent 30%),
        linear-gradient(135deg, #1d4ed8, #0891b2, #0f766e);
}

.page-hero.slim {
    min-height: 320px;
}

.category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card-large {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card-large:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.category-covers img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #0f172a;
}

.channel-link-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-link-cloud a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 36px auto 0;
    width: min(1280px, calc(100% - 32px));
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 5vw, 58px);
}

.detail-poster {
    overflow: hidden;
    display: block;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: #1e293b;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.detail-meta {
    margin-top: 22px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.watch-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.2);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(15, 23, 42, 0.72));
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.player-cover.is-hidden {
    display: none;
}

.play-circle {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.36);
    font-size: 24px;
}

.movie-article {
    margin-top: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.movie-article h2 + p {
    margin-top: 12px;
}

.movie-article p {
    color: #334155;
    font-size: 17px;
}

.side-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.compact-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.compact-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    background: #f8fafc;
}

.compact-card img {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #0f172a;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    line-height: 1.25;
}

.compact-card em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: #0f172a;
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    color: #ffffff;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-main {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .hero-shell {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
        padding-top: 34px;
    }

    .hero-poster {
        min-height: 360px;
    }

    .hero-poster img {
        min-height: 360px;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .split-showcase,
    .detail-layout,
    .category-card-large {
        grid-template-columns: 1fr;
    }

    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 100%);
    }
}

@media (max-width: 640px) {
    .header-inner,
    .section-wrap,
    .page-hero,
    .detail-hero,
    .footer-inner,
    .hero-track,
    .hero-category-links {
        width: min(100% - 22px, 1280px);
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card p {
        min-height: 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout,
    .movie-article,
    .side-panel {
        padding: 18px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
