:root {
    --blue-950: #0f172a;
    --blue-900: #172554;
    --blue-800: #1e3a8a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --amber-300: #fcd34d;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 34%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-950), var(--blue-800) 52%, #0c4a6e);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.20);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), #f59e0b);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.brand-text em {
    color: #bfdbfe;
    font-size: 12px;
    font-style: normal;
}

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

.desktop-nav {
    display: flex;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #dbeafe;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--white);
}

main {
    min-height: 70vh;
}

.spotlight {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--blue-950);
}

.spotlight-track,
.spotlight-slide {
    position: absolute;
    inset: 0;
}

.spotlight-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

.spotlight-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.spotlight-slide img {
    filter: saturate(1.05) contrast(1.06);
}

.spotlight-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 24%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.74) 48%, rgba(15, 23, 42, 0.46) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.12));
}

.spotlight-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--white);
    padding: 80px 0 96px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--orange-600);
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.spotlight-content .eyebrow,
.subpage-hero .eyebrow,
.detail-info .eyebrow {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
}

.spotlight-content h1 {
    max-width: 780px;
    margin: 18px 0 14px;
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.spotlight-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: #e0f2fe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.card-tags,
.detail-tags,
.inline-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span,
.detail-meta span,
.inline-meta span,
.inline-meta a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.primary-btn,
.quick-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.30);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

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

.spotlight-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.spotlight-dot.is-active {
    width: 34px;
    background: var(--orange-500);
}

.content-section,
.subpage-hero,
.breadcrumb,
.detail-hero,
.watch-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding: 56px 0;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: center;
    margin-top: -54px;
    padding: 30px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.intro-panel h1,
.subpage-hero h1,
.detail-info h1 {
    margin: 14px 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-panel p,
.subpage-hero p,
.detail-info .lead-text {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 17px;
}

.quick-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.quick-search input,
.card-search {
    width: 100%;
    height: 50px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.quick-search input:focus,
.card-search:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    letter-spacing: -0.03em;
}

.section-link {
    color: var(--blue-700);
    background: #dbeafe;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #fed7aa;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.poster-link img,
.category-tile img,
.category-large-image img,
.rank-poster img,
.detail-poster img {
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-large-card:hover img,
.rank-card:hover .rank-poster img,
.detail-poster:hover img {
    transform: scale(1.05);
}

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 14px;
}

.card-tags {
    margin-bottom: 10px;
}

.card-tags span {
    color: #c2410c;
    background: #ffedd5;
}

.card-body h2 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
}

.card-body h2 a:hover,
.rank-line h2 a:hover,
.category-large-card h2 a:hover {
    color: var(--orange-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--gray-500);
    font-size: 12px;
}

.category-section {
    padding-top: 32px;
}

.category-grid,
.category-large-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-tile,
.category-large-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--blue-900);
    box-shadow: var(--shadow-card);
}

.category-tile {
    min-height: 260px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile::before,
.category-large-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.88));
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.category-tile span {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.20);
    font-size: 12px;
    font-weight: 800;
}

.category-tile h2 {
    margin: 12px 0 8px;
    font-size: 24px;
}

.category-tile p,
.category-tile em {
    margin: 0;
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.7;
}

.category-tile em {
    margin-top: 12px;
    font-style: normal;
    color: #fed7aa;
}

.rank-section {
    padding-top: 32px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-card {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    align-items: center;
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--blue-900);
}

.rank-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    font-size: 13px;
    font-weight: 900;
}

.rank-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.rank-line h2 {
    margin: 0;
    font-size: 20px;
}

.rank-line em {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.rank-card p {
    margin: 8px 0 12px;
    color: var(--gray-500);
    line-height: 1.7;
}

.subpage-hero {
    margin-top: 34px;
    padding: 58px;
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.32), transparent 32%),
        linear-gradient(135deg, var(--blue-950), var(--blue-800));
    box-shadow: var(--shadow-soft);
}

.subpage-hero p {
    max-width: 720px;
    color: #dbeafe;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.year-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.year-filters button {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: var(--blue-700);
    background: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.year-filters button.is-active,
.year-filters button:hover {
    color: var(--white);
    background: var(--orange-500);
}

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

.category-large-card {
    min-height: 260px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.category-large-image {
    position: relative;
    overflow: hidden;
    background: var(--blue-900);
}

.category-large-card > div {
    padding: 24px;
}

.category-large-card h2 {
    margin: 12px 0 10px;
    font-size: 28px;
}

.category-large-card p {
    margin: 0 0 18px;
    color: var(--gray-500);
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-600);
}

.breadcrumb em {
    color: var(--gray-700);
    font-style: normal;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-top: 24px;
    padding: 36px;
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 12%, rgba(249, 115, 22, 0.28), transparent 35%),
        linear-gradient(135deg, var(--blue-950), var(--blue-800));
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: var(--blue-900);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.30);
}

.detail-info .lead-text {
    max-width: 780px;
    color: #dbeafe;
}

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

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

.detail-tags {
    margin-top: 18px;
}

.detail-tags span {
    color: #ffedd5;
    background: rgba(249, 115, 22, 0.18);
}

.watch-section {
    padding-top: 36px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-soft);
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #020617;
}

.play-button {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    border: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.70));
    cursor: pointer;
}

.play-button.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.36);
}

.play-icon::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--white);
}

.play-button strong {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    font-size: 18px;
}

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

.detail-copy article {
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0;
    color: var(--gray-700);
    line-height: 1.9;
}

.site-footer {
    margin-top: 42px;
    padding: 46px 0 30px;
    color: #cbd5e1;
    background: var(--gray-900);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 420px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--orange-500);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .brand-text em {
        display: none;
    }

    .spotlight,
    .spotlight-content {
        min-height: 560px;
    }

    .intro-panel,
    .filter-panel,
    .detail-hero,
    .detail-copy,
    .footer-grid,
    .category-large-card {
        grid-template-columns: 1fr;
    }

    .quick-search {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 580px) {
    .topbar {
        width: min(100% - 24px, 1180px);
    }

    .content-section,
    .subpage-hero,
    .breadcrumb,
    .detail-hero,
    .watch-section {
        width: min(100% - 24px, 1180px);
    }

    .spotlight,
    .spotlight-content {
        min-height: 520px;
    }

    .spotlight-content h1,
    .intro-panel h1,
    .subpage-hero h1,
    .detail-info h1 {
        font-size: 34px;
    }

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

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

    .subpage-hero,
    .detail-hero,
    .intro-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .rank-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .rank-line {
        align-items: flex-start;
        flex-direction: column;
    }

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