* {
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --panel: #111827;
    --panel-soft: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.13), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 50%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

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

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

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.brand-text {
    display: grid;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 22px;
    background: linear-gradient(90deg, #fde68a, #fdba74);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: #cbd5e1;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #dbeafe;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.filter-panel input {
    border: 1px solid rgba(148, 163, 184, 0.24);
    outline: 0;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
    border-radius: 14px;
    padding: 12px 14px;
}

.nav-search input {
    width: 190px;
}

.nav-search input:focus,
.filter-panel input:focus {
    border-color: rgba(245, 158, 11, 0.78);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.btn,
.menu-toggle {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.nav-search button:hover,
.btn:hover,
.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.24);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 22px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

.hero-backdrop,
.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.18), transparent 30%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 44px;
    padding: 84px 0 70px;
}

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

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(46px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.62);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.active {
    background: linear-gradient(90deg, var(--gold-light), var(--orange));
}

.quick-panel,
.section-block,
.filter-panel,
.detail-content {
    margin-top: 54px;
}

.quick-panel,
.dark-card,
.filter-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.quick-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.quick-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.player-section h2,
.detail-content h2 {
    margin: 0;
}

.quick-panel p,
.page-hero p,
.category-card p,
.detail-content p,
.site-footer p {
    color: var(--muted);
}

.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-cloud a,
.category-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.chip-cloud a:hover,
.category-title:hover,
.text-link:hover {
    border-color: rgba(245, 158, 11, 0.6);
    transform: translateY(-2px);
}

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

.text-link {
    color: #fbbf24;
    font-weight: 800;
    transition: transform 0.25s ease;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(30, 41, 59, 0.88);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0b1224;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: #fbbf24;
}

.card-body p {
    margin: 0;
    min-height: 72px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 13px;
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "no title"
        "no meta";
    column-gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.66);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.55);
}

.rank-no {
    grid-area: no;
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    color: #0f172a;
    border-radius: 14px;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    font-weight: 950;
}

.rank-item strong {
    grid-area: title;
}

.rank-item em {
    grid-area: meta;
    color: var(--soft);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    position: relative;
    margin-top: 34px;
    padding: 46px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.78));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

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

.category-title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 900;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-samples a {
    color: #fbbf24;
    font-size: 14px;
}

.filter-panel input {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

.detail-main {
    padding-bottom: 72px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-bottom: 1px solid var(--line);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
    min-height: 560px;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.02;
}

.one-line {
    max-width: 820px;
    color: #e2e8f0;
    font-size: 18px;
}

.movie-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 24px 0 0;
}

.movie-facts div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
}

.movie-facts dt {
    color: var(--soft);
    font-size: 13px;
}

.movie-facts dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 800;
}

.player-section {
    margin-top: 56px;
}

.player-section h2 {
    margin-bottom: 18px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(2, 6, 23, 0.52));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #0f172a;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.38);
    font-size: 34px;
}

.play-cover strong {
    font-size: 20px;
}

.video-shell.playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.detail-content article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
}

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

.site-footer {
    margin-top: 74px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 28px;
    padding: 44px 0;
}

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

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.site-footer a {
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: #94a3b8;
    text-align: center;
}

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

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

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

@media (max-width: 860px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .main-nav {
        display: none;
        order: 5;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-search {
        width: 100%;
        order: 4;
    }

    .nav-search input {
        width: 100%;
        flex: 1;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 50px;
    }

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

    .quick-panel,
    .detail-wrap,
    .footer-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .detail-wrap {
        gap: 28px;
    }

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

    .movie-facts {
        grid-template-columns: 1fr;
    }
}

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

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

    .hero h1,
    .detail-info h1 {
        font-size: 42px;
    }

    .movie-grid,
    .featured-grid,
    .related-grid,
    .rank-list,
    .rank-list.wide {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .quick-panel,
    .dark-card,
    .filter-panel,
    .detail-content article {
        padding: 22px;
    }

    .hero-actions,
    .page-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
