:root {
    --bg: #0c0a09;
    --bg-soft: #1c1917;
    --panel: #292524;
    --panel-soft: #44403c;
    --line: rgba(245, 158, 11, 0.18);
    --text: #fafaf9;
    --muted: #a8a29e;
    --soft: #d6d3d1;
    --brand: #f59e0b;
    --brand-strong: #d97706;
    --brand-dark: #451a03;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(120, 113, 108, 0.18), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 10, 9, 0.82);
    border-bottom: 1px solid rgba(120, 113, 108, 0.26);
    backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #0c0a09;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.42);
    font-size: 13px;
}

.brand-text {
    font-size: 20px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--soft);
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
    background: var(--brand);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 14px;
    color: var(--brand);
    background: rgba(245, 158, 11, 0.08);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 24px 20px;
    border-top: 1px solid rgba(120, 113, 108, 0.2);
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.hero-carousel {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    background: #0c0a09;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.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.56);
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.98) 0%, rgba(12, 10, 9, 0.74) 42%, rgba(12, 10, 9, 0.3) 100%),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.08) 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 52px;
    padding: 80px 24px 110px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-summary {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--soft);
    font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags {
    margin-top: 26px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 13px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.quick-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-btn,
.quick-search button {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover,
.quick-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.42);
}

.ghost-btn {
    color: var(--text);
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(12, 10, 9, 0.42);
}

.ghost-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

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

.hero-poster span,
.score,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 950;
}

.hero-poster span {
    right: 18px;
    bottom: 18px;
    padding: 8px 14px;
    color: #111827;
    background: var(--brand);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(245, 158, 11, 0.86);
    color: #111827;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--brand);
}

.search-panel,
.content-section,
.page-main,
.detail-main,
.site-footer,
.rank-layout {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.search-panel {
    margin-top: -58px;
    position: relative;
    z-index: 8;
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr minmax(300px, 520px);
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius);
    background: rgba(28, 25, 23, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.search-panel h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.search-panel p {
    margin: 4px 0 0;
    color: var(--muted);
}

.quick-search {
    display: flex;
    gap: 10px;
}

.quick-search input,
.search-box input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    outline: none;
    border: 1px solid rgba(120, 113, 108, 0.38);
    border-radius: 14px;
    color: var(--text);
    background: rgba(12, 10, 9, 0.56);
}

.quick-search input:focus,
.search-box input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.content-section {
    padding: 70px 24px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-more {
    color: var(--brand);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 22px;
    background: rgba(28, 25, 23, 0.86);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.44);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background: #1c1917;
}

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

.movie-card-large .poster-frame img {
    aspect-ratio: 16 / 10;
}

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

.score {
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    color: #111827;
    background: rgba(245, 158, 11, 0.94);
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--brand);
}

.movie-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 10px 0 12px;
    color: var(--soft);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

.dark-panel {
    margin-top: 70px;
    padding: 42px 24px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(41, 37, 36, 0.94), rgba(12, 10, 9, 0.94));
}

.page-main,
.detail-main {
    padding: 34px 24px 0;
}

.page-hero {
    overflow: hidden;
    position: relative;
    min-height: 320px;
    padding: 60px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.24), transparent 32rem),
        linear-gradient(135deg, rgba(41, 37, 36, 0.98), rgba(12, 10, 9, 0.98));
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    font-size: clamp(42px, 5vw, 68px);
}

.compact-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--soft);
    font-size: 18px;
}

.filter-panel {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(120, 113, 108, 0.24);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.82);
}

.filter-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-links a {
    padding: 8px 13px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(245, 158, 11, 0.06);
    font-size: 14px;
    font-weight: 800;
}

.filter-links a:hover,
.filter-links a.active {
    color: #111827;
    background: var(--brand);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 26px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: #1c1917;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62);
    transition: 0.35s ease;
}

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

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.1));
}

.category-content {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.category-content strong {
    display: block;
    font-size: 28px;
    font-weight: 950;
}

.category-content em {
    display: block;
    margin-top: 6px;
    color: var(--soft);
    font-style: normal;
}

.rank-layout {
    padding: 34px 24px 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.rank-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    background: rgba(28, 25, 23, 0.86);
}

.rank-sidebar h2 {
    margin: 0 0 14px;
}

.rank-list {
    display: grid;
    gap: 8px;
}

.rank-row {
    display: grid;
    grid-template-columns: 40px 1fr 42px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    color: var(--soft);
    background: rgba(12, 10, 9, 0.38);
}

.rank-row:hover {
    color: var(--brand);
    background: rgba(245, 158, 11, 0.08);
}

.rank-row span,
.rank-row em {
    color: var(--brand);
    font-weight: 950;
    font-style: normal;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: end;
    padding: 34px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 34px;
    background:
        radial-gradient(circle at 16% 0%, rgba(245, 158, 11, 0.24), transparent 28rem),
        linear-gradient(135deg, rgba(41, 37, 36, 0.98), rgba(12, 10, 9, 0.96));
    box-shadow: var(--shadow);
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-score {
    top: 18px;
    right: 18px;
    font-size: 14px;
}

.detail-line {
    max-width: 820px;
    margin: 20px 0 0;
    color: var(--soft);
    font-size: 21px;
}

.detail-meta {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 30px;
    background: #050505;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
    cursor: pointer;
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    object-fit: contain;
    z-index: 1;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.38);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: 0.2s ease;
}

.player-start span {
    display: inline-block;
    margin-left: 6px;
    font-size: 32px;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

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

.player-caption {
    padding: 22px 26px 26px;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.88), rgba(28, 25, 23, 0.96));
}

.player-caption h2 {
    margin: 0;
    font-size: 26px;
}

.player-caption p {
    margin: 6px 0 0;
    color: var(--muted);
}

.detail-layout {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.detail-article,
.detail-aside {
    padding: 28px;
    border: 1px solid rgba(120, 113, 108, 0.22);
    border-radius: 26px;
    background: rgba(28, 25, 23, 0.82);
}

.detail-section + .detail-section {
    margin-top: 30px;
}

.detail-section h2,
.detail-aside h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.detail-section p {
    margin: 0 0 14px;
    color: var(--soft);
    font-size: 17px;
}

.detail-aside {
    align-self: start;
    position: sticky;
    top: 96px;
}

.detail-aside dl {
    margin: 0;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px 14px;
}

.detail-aside dt {
    color: var(--muted);
}

.detail-aside dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    padding: 0 24px 42px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 34px;
    border-top: 1px solid rgba(120, 113, 108, 0.2);
    background: rgba(12, 10, 9, 0.42);
}

.footer-brand p {
    max-width: 420px;
    margin: 12px 0 0;
    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 24px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--brand);
}

.hidden-card {
    display: none;
}

@media (max-width: 1080px) {
    .movie-grid,
    .compact-grid,
    .all-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-content,
    .search-panel,
    .detail-layout,
    .rank-layout {
        grid-template-columns: 1fr;
    }

    .rank-sidebar,
    .detail-aside {
        position: static;
    }

    .hero-poster {
        display: none;
    }
}

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

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

    .header-inner {
        min-height: 64px;
        padding: 0 16px;
    }

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

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

    .hero-content {
        padding: 82px 18px 100px;
    }

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

    .hero-summary,
    .detail-line {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .page-hero,
    .detail-hero,
    .detail-article,
    .detail-aside {
        padding: 22px;
        border-radius: 24px;
    }

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

    .content-section,
    .page-main,
    .detail-main,
    .rank-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-grid,
    .compact-grid,
    .all-grid,
    .feature-grid,
    .category-grid,
    .detail-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .movie-info {
        padding: 12px;
    }

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

    .movie-line {
        font-size: 13px;
    }

    .tag-row span {
        font-size: 12px;
        min-height: 26px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .compact-grid,
    .all-grid,
    .feature-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .player-start {
        width: 70px;
        height: 70px;
    }
}
