html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #020617;
    color: #e2e8f0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #f8fafc;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fbbf24;
    background: radial-gradient(circle at 35% 25%, rgba(251, 191, 36, 0.38), rgba(245, 158, 11, 0.08) 62%, rgba(15, 23, 42, 0.1));
    box-shadow: 0 0 34px rgba(251, 191, 36, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #fde68a, #f8fafc, #fbbf24);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a,
.category-strip a,
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a {
    position: relative;
    font-weight: 700;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #fbbf24;
    transition: width 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.category-strip a:hover,
.footer-links a:hover {
    color: #fbbf24;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.68);
    color: #f8fafc;
    font-size: 22px;
}

.category-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.strip-scroll {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.strip-scroll::-webkit-scrollbar {
    display: none;
}

.category-strip a {
    white-space: nowrap;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
    padding: 80px 0 130px;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hero-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.hero::before,
.detail-hero::before,
.sub-hero::before {
    content: "";
    position: absolute;
    inset: auto -18% -24% -18%;
    height: 360px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 68%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-summary,
.sub-hero p,
.detail-one-line,
.rank-copy span,
.footer-grid p,
.story-card p,
.movie-info p,
.category-card p,
.category-overview-card p {
    color: #cbd5e1;
    line-height: 1.8;
}

.hero-summary {
    max-width: 680px;
    margin: 24px 0 0;
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.2);
    font-size: 13px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #0f172a;
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.26);
}

.ghost-btn {
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.35);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(248, 250, 252, 0.12);
}

.hero-poster img,
.movie-poster img,
.detail-poster img,
.category-card img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 82px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 30px;
    height: 8px;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.28);
}

.hero-dot.active {
    width: 54px;
    background: #fbbf24;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 6;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(14px);
}

.hero-search input,
.filter-toolbar input,
.filter-toolbar select {
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.6);
    color: #f8fafc;
    outline: none;
    padding: 0 18px;
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    font-weight: 900;
}

.section {
    padding: 76px 0;
}

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

.section-heading p {
    margin: 0 0 8px;
    color: #fbbf24;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #fbbf24;
    font-weight: 800;
    text-decoration: none;
}

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

.movie-card {
    min-width: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.38);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.poster-year {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #0f172a;
    background: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    background: rgba(253, 230, 138, 0.94);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

.movie-info {
    padding: 16px;
}

.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-info h3 {
    margin: 10px 0 8px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a {
    color: inherit;
    text-decoration: none;
}

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

.tag-row {
    gap: 6px;
    margin-top: 14px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

.compact .movie-info p {
    min-height: auto;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #f8fafc;
    text-decoration: none;
}

.category-card span,
.category-overview-card span {
    color: #fbbf24;
    font-weight: 900;
}

.category-card h3,
.category-overview-card h2 {
    margin: 12px 0;
    font-size: 26px;
}

.category-card img {
    position: absolute;
    right: -26px;
    bottom: -40px;
    width: 150px;
    height: 220px;
    transform: rotate(8deg);
    border-radius: 20px;
    opacity: 0.62;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.42);
}

.category-overview-card {
    min-height: 330px;
}

.category-overview-card strong {
    position: relative;
    z-index: 2;
    color: #fbbf24;
}

.category-cover-stack {
    display: flex;
    min-height: 140px;
    margin-bottom: 24px;
}

.category-cover-stack img {
    width: 34%;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.category-cover-stack img + img {
    margin-left: -18px;
}

.rank-section {
    padding: 78px 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.96));
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-section.plain {
    background: transparent;
    border: 0;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 42px;
    align-items: start;
}

.rank-copy p {
    color: #fbbf24;
    font-weight: 900;
}

.rank-copy h2 {
    margin: 0 0 18px;
    color: #f8fafc;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
}

.ranking-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list.wide {
    margin-top: 24px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 52px 70px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    color: #f8fafc;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item a:hover {
    transform: translateX(6px);
    border-color: rgba(251, 191, 36, 0.4);
}

.rank-number {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-item img {
    width: 70px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-content {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-content strong {
    font-size: 18px;
}

.rank-content em,
.rank-content small {
    color: #94a3b8;
    font-style: normal;
    line-height: 1.5;
}

.rank-action {
    padding: 8px 14px;
    border-radius: 999px;
    color: #0f172a;
    background: #fbbf24;
    font-weight: 900;
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: radial-gradient(circle at 15% 10%, rgba(251, 191, 36, 0.18), transparent 32%), linear-gradient(135deg, #0f172a, #020617);
}

.sub-hero .container {
    position: relative;
    z-index: 2;
}

.sub-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 5vw, 60px);
}

.sub-hero p {
    max-width: 760px;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: #94a3b8;
}

.breadcrumb a {
    color: #fbbf24;
    text-decoration: none;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-toolbar label {
    display: grid;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
}

.empty-state {
    margin-top: 26px;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-hero {
    min-height: 620px;
    display: grid;
    align-items: center;
    background: #020617;
}

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

.detail-container {
    position: relative;
    z-index: 2;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

.detail-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    font-weight: 900;
}

.detail-meta {
    margin-top: 18px;
    font-size: 15px;
}

.detail-one-line {
    max-width: 760px;
    margin-top: 24px;
    font-size: 18px;
}

.player-section {
    padding: 76px 0 34px;
    background: #020617;
}

.compact-heading {
    margin-bottom: 20px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.82));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.36);
    font-size: 32px;
}

.player-cover strong {
    font-size: clamp(24px, 4vw, 42px);
}

.player-cover em {
    color: #fde68a;
    font-style: normal;
    font-weight: 900;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 30px;
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.story-card h2 {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: 26px;
}

.story-card p {
    margin: 0;
}

.site-footer {
    padding: 58px 0 28px;
    background: linear-gradient(180deg, #020617, #0f172a);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 900;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #f8fafc;
    font-size: 18px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    font-size: 14px;
}

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.2);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 10px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 50px;
        text-align: left;
    }

    .hero-poster {
        width: min(250px, 72vw);
        justify-self: start;
    }

    .hero-controls {
        bottom: 100px;
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

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

    .ranking-layout,
    .detail-layout,
    .detail-body,
    .footer-grid,
    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(300px, 80vw);
    }

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

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

    .category-strip {
        display: none;
    }

    .hero {
        min-height: 720px;
    }

    .hero h1,
    .sub-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-summary,
    .sub-hero p,
    .detail-one-line {
        font-size: 15px;
    }

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p {
        display: none;
    }

    .tag-row {
        display: none;
    }

    .ranking-item a {
        grid-template-columns: 42px 58px 1fr;
    }

    .rank-action {
        display: none;
    }

    .ranking-item img {
        width: 58px;
        height: 78px;
    }

    .category-card,
    .category-overview-card,
    .story-card {
        border-radius: 20px;
        padding: 18px;
    }

    .category-card img {
        width: 120px;
        height: 176px;
    }

    .video-shell {
        border-radius: 20px;
    }

    .play-ring {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
