:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #d97706;
    --brand-strong: #b45309;
    --brand-soft: #fff7ed;
    --night: #111827;
    --night-2: #1f2937;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img,
video {
    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: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-strong);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
    background: #f3f4f6;
}

.mobile-nav {
    display: none;
    padding: 0 0 16px;
}

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

.mobile-nav .nav-link {
    display: block;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-track {
    position: relative;
    min-height: 590px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 42%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 56px;
    align-items: center;
    padding: 88px 0 104px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    margin: 0;
    font-size: clamp(40px, 7vw, 74px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-title span {
    color: #fbbf24;
}

.hero-text {
    max-width: 680px;
    margin: 22px 0 0;
    color: #f3f4f6;
    font-size: 18px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.button-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 18px 30px rgba(245, 158, 11, 0.36);
}

.button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(17, 24, 39, 0.42);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
}

.hero-poster {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #111827, #92400e);
}

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

.hero-poster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(17, 24, 39, 0.92));
}

.hero-poster-caption h3 {
    margin: 0 0 6px;
    font-size: 26px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #fbbf24;
}

.section {
    padding: 70px 0;
}

.section-tight {
    padding: 46px 0;
}

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

.section-head h2,
.page-title,
.detail-title {
    margin: 0;
    color: #111827;
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-intro {
    margin: 8px 0 0;
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #f59e0b 46%, #ea580c);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.26), transparent 24%), radial-gradient(circle at 82% 30%, rgba(17, 24, 39, 0.28), transparent 28%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 78px 0;
}

.page-title {
    color: #ffffff;
    font-size: clamp(36px, 6vw, 58px);
}

.page-intro {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    outline: none;
    color: #111827;
    background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.search-panel button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-weight: 800;
    padding: 0 22px;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category-pill,
.category-card {
    display: block;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-pill {
    padding: 18px;
}

.category-pill strong,
.category-card strong {
    display: block;
    color: #111827;
    font-size: 18px;
}

.category-pill span,
.category-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.category-pill:hover,
.category-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.16);
    transform: translateY(-4px);
}

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

.category-card {
    padding: 24px;
}

.category-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-card li a {
    color: #4b5563;
}

.category-card li a:hover {
    color: var(--brand-strong);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    transform: translateY(-5px);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #111827, #78350f);
}

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    background: rgba(251, 191, 36, 0.92);
    font-size: 12px;
    font-weight: 800;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
}

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

.movie-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.58;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 650;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 66px 82px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #111827, #78350f);
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.3;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    padding: 38px 0 70px;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(145deg, #111827, #78350f);
    box-shadow: var(--shadow);
}

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

.detail-title {
    font-size: clamp(38px, 6vw, 64px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 6px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 750;
}

.detail-lead {
    max-width: 830px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
}

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

.detail-actions .button-secondary {
    color: #92400e;
    border-color: #fed7aa;
    background: #fff7ed;
}

.player-section {
    padding: 64px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #78350f);
}

.player-section h2 {
    margin: 0 0 20px;
    font-size: clamp(28px, 4vw, 42px);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.36), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

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

.play-icon {
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    font-size: 42px;
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.38);
}

.content-panel {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.content-panel h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 28px;
}

.content-panel p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

.content-panel p:last-child {
    margin-bottom: 0;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.prev-next a {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.prev-next strong {
    display: block;
    color: #111827;
    margin-top: 4px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 56%, #111827);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    gap: 34px;
    padding: 54px 0;
}

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-inner p {
    margin: 0;
    color: #cbd5e1;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 32px;
    border: 1px dashed #f59e0b;
    border-radius: 20px;
    color: #92400e;
    background: #fffbeb;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

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

    .hero-panel {
        display: none;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 52px 72px 1fr;
    }

    .rank-item .button {
        grid-column: 1 / -1;
    }
}

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

    .logo {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-track {
        min-height: 620px;
    }

    .hero-content {
        padding: 70px 0 96px;
    }

    .hero-title {
        font-size: 40px;
    }

    .movie-grid,
    .category-grid,
    .category-strip,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }
}
