:root {
    color-scheme: dark;
    --bg: #0c0a09;
    --panel: #1c1917;
    --panel-soft: #292524;
    --line: rgba(245, 245, 244, 0.1);
    --text: #fafaf9;
    --muted: #a8a29e;
    --subtle: #78716c;
    --accent: #d97706;
    --accent-strong: #f59e0b;
    --accent-soft: rgba(217, 119, 6, 0.2);
    --red: #dc2626;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 6%, rgba(217, 119, 6, 0.16), transparent 32rem),
        radial-gradient(circle at 78% 2%, rgba(194, 65, 12, 0.16), transparent 36rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-strong), #b45309);
    color: white;
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.35);
}

.brand-name {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-link,
.mobile-link,
.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.current,
.mobile-link:hover,
.mobile-link.current,
.footer-links a:hover {
    color: var(--accent-strong);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 320px;
}

.top-search input,
.mobile-search input,
.search-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--text);
    background: rgba(41, 37, 36, 0.9);
    outline: none;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.top-search button,
.mobile-search button,
.search-panel button,
.primary-button,
.secondary-button,
.player-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: white;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-button:hover,
.player-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(41, 37, 36, 0.9);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

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

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 64px 0 74px;
    background:
        linear-gradient(135deg, rgba(12, 10, 9, 0.45), rgba(12, 10, 9, 0.82)),
        radial-gradient(circle at 16% 24%, rgba(245, 158, 11, 0.25), transparent 30rem),
        radial-gradient(circle at 82% 24%, rgba(194, 65, 12, 0.22), transparent 34rem);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(76px);
    opacity: 0.38;
    pointer-events: none;
}

.hero::before {
    width: 280px;
    height: 280px;
    top: 110px;
    left: 8%;
    background: #f59e0b;
}

.hero::after {
    width: 420px;
    height: 420px;
    right: 3%;
    bottom: 20px;
    background: #ea580c;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

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

.eyebrow,
.section-kicker,
.breadcrumb {
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 12px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
    color: #d6d3d1;
    font-size: 18px;
    max-width: 780px;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    font-weight: 700;
}

.secondary-button {
    color: var(--text);
    background: rgba(41, 37, 36, 0.9);
    border: 1px solid var(--line);
}

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

.hero-slide {
    display: none;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 30px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 42px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88) 52%, rgba(0, 0, 0, 0.96));
}

.hero-slide-content h2 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: #e7e5e4;
}

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

.hero-meta span,
.detail-meta span,
.rank-meta span,
.rank-meta a {
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.72);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(245, 245, 244, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 32px;
    background: var(--accent-strong);
}

.section-block {
    padding: 72px 0 0;
}

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

.section-heading h2 {
    margin: 6px 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.section-heading span {
    color: var(--muted);
}

.section-more {
    color: var(--accent-strong);
    font-weight: 700;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(41, 37, 36, 0.92), rgba(28, 25, 23, 0.92));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.58);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--panel-soft);
}

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

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

.play-badge,
.year-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.play-badge {
    left: 50%;
    top: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: white;
    background: rgba(217, 119, 6, 0.92);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: white;
    background: rgba(0, 0, 0, 0.66);
}

.card-body {
    padding: 16px;
}

.card-category {
    color: var(--accent-strong);
}

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

.card-body h3 a:hover,
.rank-item h3 a:hover,
.related-line a:hover {
    color: var(--accent-strong);
}

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

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

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.16);
    font-size: 12px;
}

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

.category-tile {
    min-height: 142px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.16), rgba(41, 37, 36, 0.95)),
        var(--panel);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.5);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: var(--muted);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 96px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(28, 25, 23, 0.88);
}

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #451a03;
    background: linear-gradient(135deg, #fcd34d, #d97706);
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: var(--panel-soft);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-item p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding: 68px 0 36px;
    background:
        radial-gradient(circle at 24% 18%, rgba(245, 158, 11, 0.16), transparent 30rem),
        linear-gradient(180deg, rgba(41, 37, 36, 0.58), transparent);
}

.search-panel {
    display: flex;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.86);
}

.empty-search {
    display: none;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: var(--panel);
}

.empty-search.show {
    display: block;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent-strong);
}

.detail-hero {
    padding: 46px 0 42px;
    background:
        radial-gradient(circle at 18% 12%, rgba(217, 119, 6, 0.18), transparent 34rem),
        linear-gradient(180deg, rgba(41, 37, 36, 0.68), rgba(12, 10, 9, 0));
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    background: var(--panel-soft);
    box-shadow: var(--shadow);
}

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

.detail-title {
    font-size: clamp(34px, 5vw, 62px);
}

.detail-summary {
    color: #d6d3d1;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.detail-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(217, 119, 6, 0.16);
}

.player-wrap {
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72)),
        radial-gradient(circle at center, rgba(245, 158, 11, 0.16), transparent 28rem);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-button {
    min-width: 132px;
    min-height: 54px;
    font-weight: 800;
}

.content-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.88);
}

.content-panel h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.content-panel p {
    margin: 0 0 16px;
    color: #d6d3d1;
}

.detail-sections {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.related-line {
    display: grid;
    gap: 10px;
}

.related-line a {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(41, 37, 36, 0.72);
}

.site-footer {
    margin-top: 84px;
    border-top: 1px solid var(--line);
    background: rgba(12, 10, 9, 0.95);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-inner p {
    max-width: 560px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

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

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

    .rank-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 320px;
    }
}

@media (max-width: 640px) {
    .site-nav {
        height: 66px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0 54px;
    }

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

    .hero-slide-content {
        padding: 28px;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 78px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

    .search-panel {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }
}
