:root {
    --bg: #fafaf9;
    --paper: #ffffff;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --red-600: #dc2626;
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.14);
    --soft-shadow: 0 10px 28px rgba(41, 37, 36, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(146, 64, 14, 0.98), rgba(120, 53, 15, 0.98));
    color: #fff7ed;
    box-shadow: 0 16px 38px rgba(69, 26, 3, 0.22);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-300), #fff7ed);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--amber-300);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.nav-link {
    color: #fff7ed;
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    color: var(--amber-300);
    opacity: 1;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: #fff;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff7ed;
}

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

.hero-wrap {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--stone-900);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.08);
    filter: blur(8px) saturate(0.95);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(68, 64, 60, 0.82), rgba(120, 53, 15, 0.68)), radial-gradient(circle at 70% 20%, rgba(251, 191, 36, 0.25), transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 70px 0;
    color: #fff7ed;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--amber-300);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-text {
    max-width: 760px;
    margin: 22px 0;
    color: #fef3c7;
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--amber-800);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #fef3c7;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.primary-button,
.ghost-button,
.section-more,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-box button {
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.ghost-button {
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 42px;
    height: 8px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 99px;
    color: transparent;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: var(--amber-400);
}

.search-band,
.content-section,
.page-hero,
.breadcrumb,
.detail-layout {
    width: min(1240px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 5;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 26px;
    align-items: center;
}

.search-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

.search-inner p {
    margin: 0;
    color: var(--stone-500);
    line-height: 1.8;
}

.search-box,
.inline-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input,
.inline-search input {
    min-width: 0;
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.03);
}

.inline-search span {
    color: var(--stone-500);
    font-size: 14px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat-row span {
    padding: 14px;
    border-radius: 18px;
    background: var(--stone-100);
    color: var(--stone-500);
    text-align: center;
}

.stat-row strong {
    display: block;
    color: var(--amber-800);
    font-size: 26px;
}

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

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

.section-head h2 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--stone-500);
    line-height: 1.7;
}

.section-more {
    min-height: 40px;
    color: var(--amber-800);
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
    flex-shrink: 0;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(214, 211, 209, 0.72);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-200), var(--stone-100));
}

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

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(28, 25, 23, 0.78);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-title {
    display: block;
    overflow: hidden;
    color: var(--stone-900);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-title:hover {
    color: var(--amber-800);
}

.movie-meta {
    margin: 7px 0 9px;
    color: var(--stone-500);
    font-size: 12px;
}

.movie-desc {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--stone-700);
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
}

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

.category-card {
    min-height: 166px;
    padding: 24px;
    border-radius: 24px;
    color: #fff7ed;
    background: linear-gradient(135deg, var(--amber-900), var(--amber-700));
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(even) {
    background: linear-gradient(135deg, var(--stone-900), var(--amber-800));
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card span {
    display: block;
    color: var(--amber-300);
    font-weight: 800;
}

.category-card strong {
    display: block;
    margin: 10px 0;
    font-size: 42px;
    line-height: 1;
}

.category-card em {
    display: block;
    color: #fef3c7;
    font-style: normal;
    line-height: 1.7;
}

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

.page-hero {
    margin-top: 28px;
    padding: 54px;
    border-radius: 32px;
    color: #fff7ed;
    background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.26), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p:last-child {
    max-width: 780px;
    margin: 18px 0 0;
    color: #fef3c7;
    font-size: 17px;
    line-height: 1.85;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--stone-200);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-overview-link {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    min-height: 190px;
    padding: 18px;
}

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

.category-thumb-stack img {
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.category-thumb-stack img:first-child {
    grid-row: span 2;
    height: 150px;
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    color: var(--stone-900);
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--stone-500);
    line-height: 1.7;
}

.category-overview-card span {
    color: var(--amber-800);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 26px;
    color: var(--stone-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-800);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 22px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff7ed;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(28, 25, 23, 0.84));
    text-align: center;
}

.play-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    font-size: 28px;
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.3);
}

.play-cover strong {
    max-width: min(70%, 640px);
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.2;
}

.play-cover em {
    color: #fef3c7;
    font-style: normal;
    font-weight: 800;
}

.detail-article,
.info-panel {
    margin-top: 22px;
    padding: 30px;
    border-radius: 28px;
    border: 1px solid var(--stone-200);
    background: var(--paper);
    box-shadow: var(--soft-shadow);
}

.detail-article h1 {
    margin: 0 0 14px;
    color: var(--stone-900);
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.lead-text {
    margin: 0 0 18px;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.85;
}

.detail-article h2,
.info-panel h2 {
    margin: 28px 0 12px;
    color: var(--stone-900);
    font-size: 24px;
}

.detail-article p {
    color: var(--stone-700);
    line-height: 2;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    height: max-content;
}

.detail-poster {
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.info-panel dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-panel dt {
    color: var(--stone-500);
    font-weight: 800;
}

.info-panel dd {
    margin: 0;
    color: var(--stone-800);
    line-height: 1.6;
}

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

.site-footer {
    margin-top: 72px;
    color: #d6d3d1;
    background: var(--stone-900);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #fff7ed;
    font-size: 22px;
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    max-width: 460px;
    line-height: 1.9;
}

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

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

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

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
        font-size: 14px;
    }

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

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

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

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

    .menu-button {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 54px 0 90px;
    }

    .hero-poster {
        width: min(300px, 80vw);
        margin: 0 auto;
    }

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

    .detail-sidebar {
        position: static;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 66px;
    }

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

    .hero-wrap,
    .hero-slider,
    .hero-content {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .search-band {
        padding: 20px;
    }

    .search-box,
    .inline-search,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .page-hero {
        padding: 32px 22px;
    }

    .detail-article,
    .info-panel {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .stat-row,
    .movie-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

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