:root {
    color-scheme: light;
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: rgba(148, 163, 184, 0.28);
    --dark: #020617;
    --amber: #f59e0b;
    --amber-2: #f97316;
    --rose: #e11d48;
    --blue: #2563eb;
    --green: #059669;
    --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 14px 34px rgba(225, 29, 72, 0.28);
}

.brand-text,
.footer-logo {
    font-size: 1.18rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    color: #475569;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #0f172a;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.45), transparent 26%), linear-gradient(135deg, #020617 0%, #451a03 48%, #020617 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 36px, rgba(255, 255, 255, 0.12) 36px, rgba(255, 255, 255, 0.12) 72px);
}

.hero-wrap {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 64px 0 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
    gap: 44px;
    align-items: center;
}

.hero-slider {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 28px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.56s ease, transform 0.56s ease;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.76) 100%);
}

.hero-content {
    min-width: 0;
}

.eyebrow,
.detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    color: #fed7aa;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.38);
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 5.35rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero h2 {
    margin: 16px 0 0;
    font-size: clamp(1.6rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 18px 0 0;
    max-width: 680px;
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.82;
}

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

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.26);
}

.button-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(18px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.search-box {
    display: flex;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: none;
    color: #0f172a;
    background: transparent;
    font-weight: 700;
}

.search-box button,
.inline-search button {
    border: 0;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-weight: 900;
    cursor: pointer;
}

.search-box button {
    padding: 0 16px;
}

.hero-mini-list {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.hero-mini-card img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.5);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.hero-mini-card span {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: -28px;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-heading a {
    color: #c2410c;
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-card:hover .poster-link img,
.wide-card:hover img {
    transform: scale(1.045);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.74));
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.72);
}

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

.movie-card h3,
.wide-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.36;
}

.movie-card h3 a:hover,
.wide-card h3 a:hover {
    color: #c2410c;
}

.movie-meta,
.tag-row,
.wide-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta {
    margin: 10px 0;
}

.movie-meta span,
.tag-row span,
.wide-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    color: #9a3412;
    border-radius: 999px;
    background: #ffedd5;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card p,
.wide-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #92400e);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease;
}

.category-card:nth-child(3n+1) {
    background: linear-gradient(135deg, #9f1239, #f97316);
}

.category-card:nth-child(3n+2) {
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.category-card:nth-child(3n+3) {
    background: linear-gradient(135deg, #166534, #059669);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card .icon {
    font-size: 2.2rem;
}

.category-card h3 {
    margin: 16px 0 8px;
    font-size: 1.35rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.72;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 18px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--paper);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.wide-poster {
    position: relative;
    overflow: hidden;
    min-height: 184px;
    border-radius: 20px;
    background: #0f172a;
}

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

.wide-rank {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-weight: 900;
}

.wide-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    justify-content: center;
}

.wide-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.wide-foot a {
    margin-left: auto;
    color: #c2410c;
    font-weight: 900;
}

.page-hero {
    margin: 34px 0 0;
    padding: 42px;
    color: #fff;
    border-radius: 34px;
    background: radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.52), transparent 24%), linear-gradient(135deg, #020617, #431407 70%, #020617);
    box-shadow: var(--shadow);
}

.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.page-hero p,
.detail-title p {
    max-width: 820px;
    margin: 16px 0 0;
    color: #e2e8f0;
    line-height: 1.82;
}

.inline-search {
    display: flex;
    gap: 10px;
    margin: 24px 0 0;
    max-width: 720px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
}

.inline-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
}

.inline-search button {
    padding: 0 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 34px;
}

.player-card,
.detail-card,
.side-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

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

.player-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 24px 54px rgba(225, 29, 72, 0.36);
    font-size: 2rem;
}

.detail-title {
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, #020617, #451a03);
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 3.55rem);
}

.detail-main-content {
    padding: 28px;
}

.breadcrumb {
    margin-bottom: 18px;
    color: #fed7aa;
    font-size: 0.94rem;
    font-weight: 800;
}

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

.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}

.info-strip span {
    padding: 8px 12px;
    color: #fed7aa;
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.36);
    font-weight: 800;
}

.article-block {
    margin-top: 26px;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.article-block p {
    margin: 0;
    color: #334155;
    line-height: 1.95;
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 1.22rem;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f8fafc;
}

.side-list img {
    width: 64px;
    height: 86px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.side-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.side-list span {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer {
    margin-top: 64px;
    padding: 44px 0;
    color: #cbd5e1;
    background: #020617;
}

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

.footer-logo {
    color: #fff;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 9px 12px;
    color: #e2e8f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.hidden-by-filter {
    display: none !important;
}

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

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

    .hero-wrap,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        order: -1;
    }

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

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

@media (max-width: 820px) {
    .hero-wrap {
        min-height: auto;
        padding: 34px 0 56px;
    }

    .hero-slider {
        min-height: 690px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero {
        padding: 28px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-main,
    .hero-wrap,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-slider {
        min-height: 635px;
    }

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

    .hero-panel,
    .page-hero,
    .detail-title,
    .detail-main-content {
        padding: 20px;
        border-radius: 24px;
    }

    .movie-grid,
    .category-grid,
    .wide-list {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 112px 1fr;
        gap: 12px;
    }

    .wide-poster {
        min-height: 154px;
    }

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

    .inline-search,
    .search-box {
        flex-direction: column;
    }

    .inline-search button,
    .search-box button {
        min-height: 42px;
    }
}
