:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --shadow: 0 4px 6px -1px rgba(120, 53, 15, 0.2), 0 2px 4px -1px rgba(120, 53, 15, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(120, 53, 15, 0.35), 0 8px 10px -6px rgba(120, 53, 15, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-900);
    background: linear-gradient(180deg, var(--stone-50), var(--amber-50));
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-700), var(--amber-900));
    border-bottom: 4px solid var(--orange-600);
    box-shadow: var(--shadow-lg);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--amber-100);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}

.brand-name {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    display: block;
    margin-top: -4px;
    color: var(--amber-200);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--amber-100);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-200);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-100);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px 24px 18px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
}

.mobile-nav.open {
    display: flex;
}

.page-shell {
    padding: 32px 0 10px;
}

.hero-carousel {
    margin-bottom: 56px;
}

.hero-frame {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    background: var(--stone-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 32px;
    min-height: 560px;
    padding: 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.45)), var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.4), transparent 30%), radial-gradient(circle at 70% 80%, rgba(234, 88, 12, 0.3), transparent 32%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    color: white;
}

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

.hero-content h1,
.hero-content h2 {
    margin: 0 0 10px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-movie-title {
    color: var(--amber-100);
    font-size: clamp(24px, 3vw, 40px) !important;
    letter-spacing: 0 !important;
}

.hero-content p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 0 18px;
    color: #f8e7cf;
    font-size: 18px;
}

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: var(--shadow);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

.hero-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.45);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.active {
    width: 32px;
    background: white;
}

.search-panel,
.filter-panel,
.vintage-box {
    border-radius: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
}

.search-panel h2,
.page-hero h1,
.section-heading h2,
.content-card h2,
.side-card h2 {
    margin: 0;
    color: var(--stone-900);
}

.search-panel p,
.section-heading p,
.page-hero p,
.category-info p,
.movie-line {
    color: var(--stone-600);
}

.search-form,
.filter-panel {
    display: flex;
    gap: 12px;
}

.search-form input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--stone-900);
    background: white;
    outline: none;
}

.search-form input:focus,
.filter-panel input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.home-section {
    margin-bottom: 56px;
}

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

.section-heading h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-heading span {
    flex: 1;
    height: 4px;
    min-width: 80px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber-600), transparent);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--stone-200);
}

.poster-link img,
.category-cover img,
.rank-thumb img,
.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

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

.score-badge,
.rank-badge,
.mini-rank,
.score-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    font-weight: 900;
}

.score-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    min-width: 44px;
    height: 28px;
    font-size: 13px;
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    font-size: 12px;
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-main h2 a:hover,
.category-info h2 a:hover {
    color: var(--amber-700);
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 10px;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--stone-700);
    background: white;
    box-shadow: var(--shadow);
    font-weight: 800;
    cursor: pointer;
}

.tab-btn.active {
    color: white;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.tab-panel {
    display: none;
}

.tab-panel.active,
.tab-panel:first-of-type {
    display: block;
}

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

.mini-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
    background: var(--amber-50);
    transform: translateY(-2px);
}

.mini-cover {
    position: relative;
    flex: 0 0 112px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--stone-200);
}

.mini-rank {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 24px;
    height: 24px;
    font-size: 12px;
}

.mini-info {
    display: grid;
    align-content: center;
    min-width: 0;
}

.mini-info strong {
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mini-info em {
    color: var(--stone-500);
    font-size: 12px;
    font-style: normal;
}

.vintage-texture {
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.03) 2px, rgba(0, 0, 0, 0.03) 4px);
}

.page-hero {
    margin-bottom: 32px;
    border-radius: 28px;
    padding: 38px;
    color: white;
    background: linear-gradient(100deg, var(--stone-900), var(--amber-900), var(--orange-700));
    box-shadow: var(--shadow-lg);
}

.page-hero h1 {
    color: white;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    color: var(--amber-100);
    font-size: 18px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border-radius: 22px;
    padding: 16px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: var(--stone-200);
}

.category-info h2 {
    margin: 2px 0 8px;
    font-size: 24px;
}

.category-count {
    display: inline-flex;
    margin: 4px 0 12px;
    border-radius: 999px;
    padding: 5px 12px;
    color: white;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    font-weight: 900;
}

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

.category-samples a {
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--amber-800);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 700;
}

.filter-panel {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.filter-count {
    flex: 0 0 auto;
    color: var(--stone-600);
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 100px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 16px;
    padding: 14px;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--stone-200);
}

.rank-main h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-main p {
    margin: 0 0 8px;
    color: var(--stone-600);
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--amber-700);
    font-size: 28px;
}

.rank-score span {
    color: var(--stone-500);
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--stone-600);
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.play-overlay.hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.detail-header {
    margin: 24px 0;
}

.detail-header h1 {
    margin: 0 0 12px;
    color: var(--stone-900);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--stone-600);
}

.score-chip {
    min-height: 32px;
    padding: 0 12px;
}

.quote-box,
.content-card,
.side-card {
    border-radius: 20px;
    padding: 22px;
    background: white;
    box-shadow: var(--shadow);
}

.quote-box {
    margin-bottom: 18px;
    color: var(--stone-800);
    font-size: 18px;
    font-weight: 700;
}

.quote-box p,
.content-card p {
    margin: 0;
}

.content-card {
    margin-bottom: 18px;
}

.content-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 24px;
}

.content-card h2::before,
.side-card h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-600), var(--orange-600));
}

.content-card p {
    color: var(--stone-700);
    text-align: justify;
}

.warm-card {
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

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

.side-card {
    margin-bottom: 18px;
}

.side-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 22px;
}

.side-card dl {
    margin: 0;
}

.side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-200);
}

.side-card dl div:last-child {
    border-bottom: 0;
}

.side-card dt {
    color: var(--stone-500);
}

.side-card dd {
    margin: 0;
    color: var(--stone-900);
    font-weight: 800;
    text-align: right;
}

.side-list {
    display: grid;
    gap: 12px;
}

.related-section {
    margin-top: 56px;
}

.site-footer {
    margin-top: 72px;
    padding: 46px 0;
    color: var(--amber-100);
    background: linear-gradient(90deg, var(--stone-900), #451a03, var(--stone-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--amber-200);
    font-size: 18px;
}

.site-footer p,
.site-footer a {
    color: #f7d89d;
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: white;
}

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

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

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

    .detail-side {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero-frame,
    .hero-slide {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 34px 24px 70px;
    }

    .hero-poster {
        justify-self: start;
        width: 210px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .search-panel,
    .filter-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .rank-row {
        grid-template-columns: 42px 76px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }
}

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

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

    .brand-subtitle {
        font-size: 10px;
    }

    .page-shell {
        padding-top: 20px;
    }

    .hero-frame,
    .hero-slide {
        min-height: 650px;
        border-radius: 22px;
    }

    .hero-content p:not(.eyebrow) {
        font-size: 15px;
    }

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

    .movie-grid.six-col,
    .movie-grid.four-col,
    .mini-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .mini-cover {
        flex-basis: 96px;
    }

    .page-hero,
    .search-panel,
    .filter-panel,
    .vintage-box,
    .quote-box,
    .content-card,
    .side-card {
        border-radius: 18px;
        padding: 20px;
    }

    .rank-row {
        grid-template-columns: 38px 72px minmax(0, 1fr);
        gap: 10px;
    }

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