:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-soft: rgba(245, 158, 11, 0.18);
    --accent-line: rgba(245, 158, 11, 0.34);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 0 34px rgba(245, 158, 11, 0.32);
    font-size: 14px;
    font-weight: 900;
}

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

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted-strong);
    font-size: 14px;
    transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(51, 65, 85, 0.7);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
}

.hero {
    position: relative;
    height: min(720px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 680ms ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.64);
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24)),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.88));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 340px;
    align-items: center;
    gap: 64px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    max-width: 720px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.hero-meta {
    margin: 22px 0 30px;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.btn,
.intro-actions a,
.text-link,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    transition: 0.22s ease;
}

.btn.primary,
.intro-actions a:first-child {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.3);
}

.btn.secondary,
.intro-actions a:last-child {
    color: #fff;
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.78);
}

.btn.ghost {
    color: #fbbf24;
    border: 1px solid var(--accent-line);
    background: rgba(245, 158, 11, 0.08);
}

.btn:hover,
.intro-actions a:hover,
.text-link:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    transition: 0.22s ease;
}

.hero-dots button.is-active {
    width: 56px;
    background: var(--accent);
}

.page-main {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 72px;
}

.inner-page {
    padding-top: 36px;
}

.intro-panel,
.page-title,
.filter-panel,
.content-section,
.article-section,
.player-section,
.detail-hero,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 28px;
    margin-bottom: 28px;
}

.intro-panel h1,
.page-title h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.intro-panel p,
.page-title p,
.section-heading p,
.category-overview-body p,
.article-section p,
.detail-one-line {
    color: var(--muted-strong);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 14px;
    padding: 18px;
    margin-bottom: 32px;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    background: rgba(2, 6, 23, 0.56);
    outline: none;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--accent-line);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.content-section {
    padding: 26px;
    margin-bottom: 32px;
}

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

.section-heading h2,
.player-section h2,
.article-section h2,
.category-overview-body h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.section-more,
.text-link {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--accent-line);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), 0 0 28px rgba(245, 158, 11, 0.12);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.16) 48%, rgba(2, 6, 23, 0.88) 100%);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 10px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
    left: 10px;
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.card-body {
    padding: 14px;
}

.card-kicker,
.card-meta {
    font-size: 12px;
}

.card-kicker {
    display: flex;
    gap: 8px;
    color: #fbbf24;
    font-weight: 800;
}

.card-kicker span {
    color: var(--muted);
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.category-link-list a:hover,
.footer-links a:hover {
    color: #fbbf24;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tag-row span {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.35);
    padding: 3px 8px;
    font-size: 12px;
}

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

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

.category-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}

.category-main {
    min-height: 146px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 12rem),
        rgba(30, 41, 59, 0.45);
}

.category-main span {
    color: #fbbf24;
    font-weight: 800;
}

.category-main strong {
    font-size: 14px;
    color: #e2e8f0;
}

.category-mini,
.category-link-list {
    display: grid;
    gap: 8px;
    padding: 14px;
    color: var(--muted-strong);
    font-size: 13px;
}

.page-title {
    padding: 34px;
    margin-bottom: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.category-overview-card {
    overflow: hidden;
}

.category-cover-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 190px;
    background: rgba(2, 6, 23, 0.4);
}

.category-cover-strip img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.category-overview-body {
    padding: 22px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    padding: 26px;
    margin-bottom: 30px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    font-size: 18px;
}

.detail-meta {
    margin: 22px 0 10px;
}

.detail-tags {
    margin: 18px 0 26px;
}

.player-section,
.article-section {
    padding: 26px;
    margin-bottom: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(2, 6, 23, 0.54) 42%, rgba(2, 6, 23, 0.76));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 0 52px rgba(245, 158, 11, 0.34);
    font-size: 28px;
}

.player-start strong {
    font-size: 20px;
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.article-section p {
    margin: 0 0 22px;
    font-size: 17px;
}

.related-grid,
.ranking-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.empty-state {
    margin-top: 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.98));
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
    padding: 42px 0;
}

.footer-about p {
    color: var(--muted-strong);
}

.footer-links h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--muted-strong);
    font-size: 14px;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 20px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .nav-links {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        z-index: 80;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        padding: 12px;
        box-shadow: var(--shadow);
    }

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

    .menu-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 28px;
    }

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

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

@media (max-width: 820px) {
    .hero {
        min-height: 720px;
        height: auto;
    }

    .hero-slide {
        position: absolute;
        min-height: 720px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 70px 0 90px;
    }

    .hero-poster {
        width: min(260px, 78vw);
    }

    .hero-arrow {
        display: none;
    }

    .intro-panel,
    .footer-inner,
    .detail-hero,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 560px) {
    .header-inner,
    .page-main,
    .footer-inner,
    .footer-bottom,
    .hero-inner {
        width: min(100% - 24px, 1280px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero h1 {
        font-size: 38px;
    }

    .filter-panel,
    .movie-grid,
    .related-grid,
    .ranking-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-section,
    .page-title,
    .intro-panel,
    .player-section,
    .article-section,
    .detail-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }
}
