
:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3e2c6;
    --primary: #d97706;
    --primary-dark: #92400e;
    --accent: #ea580c;
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 44%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 14px 40px rgba(146, 64, 14, 0.08);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.35);
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    color: var(--muted);
}

.desktop-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    position: relative;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 99px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

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

.nav-search-input,
.page-search,
.filter-panel select {
    min-height: 42px;
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0 16px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search-input:focus,
.page-search:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search-button,
.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search-button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

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

.primary-button,
.ghost-button {
    padding: 0 26px;
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.text-link {
    min-height: auto;
    color: var(--primary);
}

.text-link:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--primary-dark);
    background: #fffbeb;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff7ed;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: flex;
    align-items: center;
    padding-top: 86px;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

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

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: #fde68a;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-line {
    max-width: 680px;
    margin: 22px 0 0;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.stats-section {
    position: relative;
    z-index: 4;
    margin-top: -38px;
}

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

.stat-card,
.category-card,
.movie-card,
.text-panel,
.side-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 26px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 24px;
    color: #111827;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

.alt-bg {
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2,
.split-head h2,
.player-section h2,
.text-panel h2,
.side-panel h2,
.category-content h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p,
.split-head p,
.category-content p {
    max-width: 720px;
    margin: 12px auto 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    color: inherit;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 6, 0.45);
    box-shadow: 0 28px 70px rgba(120, 53, 15, 0.22);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0));
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: rgba(17, 24, 39, 0.82);
}

.card-body {
    display: block;
    padding: 18px;
}

.card-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body em {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.card-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    overflow: hidden;
}

.category-visual {
    display: grid;
    min-height: 170px;
    padding: 24px;
    align-items: end;
    background-size: cover;
    background-position: center;
}

.category-visual span {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-content {
    padding: 24px;
}

.category-content h2 {
    font-size: 24px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
}

.ranking-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.compact-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px rgba(120, 53, 15, 0.09);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 119, 6, 0.45);
}

.compact-card img {
    width: 78px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, #fde68a, #fb923c);
}

.compact-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.page-main {
    padding-top: 76px;
}

.page-hero {
    padding: 92px 0;
    color: #ffffff;
    background: linear-gradient(125deg, #111827, #92400e 56%, #ea580c);
    background-size: cover;
    background-position: center;
}

.page-hero h1 {
    max-width: 900px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.08);
}

.filter-panel .page-search {
    width: 100%;
}

.filter-card[hidden] {
    display: none;
}

.detail-main {
    padding-top: 76px;
}

.detail-hero {
    padding: 82px 0;
    color: #ffffff;
    background-size: cover;
    background-position: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #fde68a;
    font-weight: 800;
}

.detail-meta {
    margin-top: 22px;
}

.detail-tags span {
    color: #78350f;
    background: rgba(254, 243, 199, 0.92);
    border-color: rgba(254, 243, 199, 0.45);
}

.player-section {
    padding: 76px 0 28px;
    background: #111827;
    color: #ffffff;
}

.player-section h2 {
    margin-bottom: 22px;
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(217, 119, 6, 0.32), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 50px rgba(217, 119, 6, 0.45);
    font-size: 34px;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
}

.text-panel,
.side-panel {
    padding: 32px;
}

.text-panel h2,
.side-panel h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
}

.text-panel h2:not(:first-child) {
    margin-top: 32px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.95;
}

.side-panel dl {
    margin: 0;
}

.side-panel dt {
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.side-panel dd {
    margin: 6px 0 0;
    color: #111827;
    line-height: 1.6;
    font-weight: 800;
}

.site-footer {
    padding: 54px 0;
    color: #374151;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: var(--primary);
    font-size: 24px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fff7ed;
    font-size: 14px;
    font-weight: 800;
}

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

    .menu-toggle {
        display: block;
    }

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

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

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

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

    .detail-poster {
        width: min(320px, 100%);
    }
}

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

    .nav-container {
        height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

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

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

    .hero-content {
        padding-top: 76px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .stats-grid,
    .movie-grid,
    .category-grid,
    .ranking-strip,
    .footer-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .split-head {
        display: block;
    }

    .page-main,
    .detail-main {
        padding-top: 68px;
    }

    .page-hero,
    .detail-hero {
        padding: 64px 0;
    }

    .detail-copy h1,
    .page-hero h1,
    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .text-panel,
    .side-panel {
        padding: 24px;
    }
}
