:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;
    --red-600: #dc2626;
    --shadow-sm: 0 6px 18px rgba(28, 25, 23, 0.08);
    --shadow-md: 0 16px 40px rgba(28, 25, 23, 0.16);
    --shadow-lg: 0 26px 70px rgba(28, 25, 23, 0.28);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    color: var(--amber-50);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.97), rgba(120, 53, 15, 0.78));
    border-bottom: 1px solid rgba(253, 230, 138, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(28, 25, 23, 0.18);
}

.nav-shell {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand {
    font-size: 24px;
    color: var(--amber-50);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.42);
    font-size: 14px;
}

.desktop-nav,
.category-strip {
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-nav a,
.category-strip a,
.mobile-panel a {
    color: var(--amber-100);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.category-strip a:hover,
.mobile-panel a:hover {
    color: #ffffff;
}

.category-strip {
    padding-left: 6px;
    border-left: 1px solid rgba(253, 230, 138, 0.3);
}

.category-strip a {
    font-size: 13px;
    color: rgba(254, 243, 199, 0.8);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: 238px;
    border-radius: 999px;
    border: 1px solid rgba(253, 230, 138, 0.28);
    background: rgba(41, 37, 36, 0.28);
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--amber-50);
    background: transparent;
    padding: 10px 14px;
}

.nav-search input::placeholder {
    color: rgba(254, 243, 199, 0.72);
}

.nav-search button {
    border: 0;
    cursor: pointer;
    color: var(--amber-900);
    background: var(--amber-200);
    padding: 10px 16px;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(253, 230, 138, 0.14);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    width: 21px;
    margin: 5px auto;
    background: var(--amber-50);
    border-radius: 2px;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: var(--stone-950);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 680px;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.92) 0%, rgba(28, 25, 23, 0.72) 42%, rgba(28, 25, 23, 0.2) 72%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.1) 48%, rgba(120, 53, 15, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 120px 24px 140px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-200);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 251, 235, 0.88);
    line-height: 1.9;
    font-size: 18px;
}

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

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    border: 1px solid rgba(245, 158, 11, 0.16);
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 14px;
}

.detail-tags span,
.tag-row span {
    padding: 5px 10px;
    font-size: 12px;
}

.hero-actions,
.panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

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

.primary-button {
    color: var(--amber-950, #451a03);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
    padding: 13px 24px;
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.36);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.35);
    background: rgba(255, 251, 235, 0.08);
    padding: 12px 22px;
}

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

.hero-thumbs {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    width: min(1232px, calc(100% - 48px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.hero-thumb {
    border: 1px solid rgba(253, 230, 138, 0.22);
    border-radius: 18px;
    color: #ffffff;
    background: rgba(28, 25, 23, 0.56);
    backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 10px;
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: background 0.25s ease, border 0.25s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
    border-color: var(--amber-300);
    background: rgba(120, 53, 15, 0.78);
}

.hero-thumb img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb strong {
    display: block;
    line-height: 1.35;
}

.hero-thumb span {
    display: block;
    color: var(--amber-200);
    font-size: 12px;
    margin-top: 4px;
}

.content-section,
.detail-section,
.category-hero,
.search-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
}

.content-section.tight {
    padding-top: 30px;
}

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

.section-heading h1,
.section-heading h2,
.category-hero h1,
.search-hero h1,
.detail-title h1 {
    margin: 0;
    color: var(--stone-800);
    letter-spacing: -0.03em;
}

.section-heading h1,
.category-hero h1,
.search-hero h1,
.detail-title h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.section-heading p,
.category-hero p,
.search-hero p {
    margin: 10px 0 0;
    color: var(--stone-600);
    line-height: 1.8;
    max-width: 760px;
}

.section-more {
    color: var(--amber-900);
    background: var(--amber-100);
    padding: 10px 16px;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(231, 229, 228, 0.72);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-900), var(--amber-900));
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.84), rgba(12, 10, 9, 0));
}

.score,
.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.score {
    top: 12px;
    right: 12px;
    min-width: 42px;
    height: 30px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-200);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: var(--red-600);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(120, 53, 15, 0.88);
}

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

.movie-card-body h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    color: var(--stone-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body h2 a:hover {
    color: var(--amber-700);
}

.meta-line {
    margin: 8px 0;
    color: var(--stone-500);
    font-size: 13px;
    line-height: 1.5;
}

.card-summary {
    margin: 0 0 10px;
    color: var(--stone-600);
    line-height: 1.65;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 24px;
    padding: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-900), var(--stone-900));
    box-shadow: var(--shadow-md);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -52px;
    bottom: -64px;
    border-radius: 50%;
    background: rgba(252, 211, 77, 0.2);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 251, 235, 0.86);
    line-height: 1.8;
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 12px;
    color: var(--amber-200);
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 66px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.7);
    box-shadow: var(--shadow-sm);
}

.rank-num {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--amber-50);
    background: linear-gradient(135deg, var(--amber-700), var(--red-600));
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--stone-800);
}

.rank-item p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 160px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.74);
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    padding: 13px 16px;
    outline: 0;
    background: #ffffff;
    color: var(--stone-800);
}

.search-button {
    border: 0;
    cursor: pointer;
    color: var(--amber-950, #451a03);
    background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
}

.no-result {
    display: none;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--stone-600);
    background: rgba(255, 255, 255, 0.82);
}

.detail-hero {
    padding-top: 72px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--stone-950), var(--amber-900));
}

.detail-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: end;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(254, 243, 199, 0.76);
    font-size: 14px;
}

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

.detail-title h1 {
    color: #ffffff;
    margin-bottom: 14px;
}

.detail-title p {
    margin: 0;
    color: rgba(255, 251, 235, 0.86);
    line-height: 1.85;
    font-size: 17px;
}

.detail-cover {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(253, 230, 138, 0.24);
}

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

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

.player-wrap 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;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(12, 10, 9, 0.62), rgba(12, 10, 9, 0.08));
}

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

.player-button {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: linear-gradient(135deg, var(--amber-100), var(--amber-500));
    box-shadow: 0 22px 52px rgba(245, 158, 11, 0.4);
    font-size: 30px;
    transform: translateZ(0);
}

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

.info-panel,
.side-panel {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 229, 228, 0.72);
    box-shadow: var(--shadow-sm);
}

.info-panel {
    padding: 28px;
}

.info-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: var(--stone-800);
}

.info-panel p {
    color: var(--stone-700);
    line-height: 2;
    margin: 0 0 18px;
}

.meta-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.meta-table div {
    padding: 13px 15px;
    border-radius: 16px;
    background: var(--amber-50);
    color: var(--stone-700);
}

.meta-table strong {
    color: var(--amber-800);
}

.side-panel {
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 92px;
}

.side-movie {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.side-movie:hover {
    background: var(--amber-50);
}

.side-movie img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.side-movie h3 {
    margin: 0 0 6px;
    color: var(--stone-800);
    font-size: 15px;
    line-height: 1.4;
}

.side-movie p {
    margin: 0;
    color: var(--stone-500);
    font-size: 13px;
}

.site-footer {
    margin-top: 30px;
    color: var(--stone-300);
    background: linear-gradient(180deg, var(--stone-900), var(--stone-950));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px 28px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: var(--amber-100);
    font-size: 22px;
    margin-bottom: 14px;
}

.site-footer p {
    color: var(--stone-400);
    line-height: 1.8;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--amber-100);
    font-size: 19px;
}

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

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

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

.copyright {
    border-top: 1px solid rgba(214, 211, 209, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: var(--stone-500);
}

@media (max-width: 1180px) {
    .category-strip {
        display: none;
    }

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

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

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

    .hero-content {
        padding-top: 112px;
        padding-bottom: 190px;
    }

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

    .hero-thumb:nth-child(n+5) {
        display: none;
    }

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

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

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

    .detail-cover {
        max-width: 300px;
    }

    .side-panel {
        position: static;
    }

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

@media (max-width: 720px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        font-size: 20px;
    }

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

    .hero,
    .hero-slide img,
    .hero-content {
        min-height: 590px;
    }

    .hero-content {
        padding: 96px 18px 190px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-thumbs {
        width: calc(100% - 28px);
        gap: 10px;
    }

    .hero-thumb {
        grid-template-columns: 46px 1fr;
        padding: 8px;
    }

    .hero-thumb img {
        width: 46px;
        height: 62px;
    }

    .content-section,
    .detail-section,
    .category-hero,
    .search-hero {
        padding: 38px 16px;
    }

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

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

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

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

    .rank-item {
        grid-template-columns: 48px 78px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .rank-item img {
        width: 78px;
    }

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

    .detail-hero-inner {
        padding: 32px 16px 28px;
    }

    .detail-cover {
        max-width: 220px;
    }

    .meta-table {
        grid-template-columns: 1fr;
    }

    .player-button {
        width: 74px;
        height: 74px;
        font-size: 24px;
    }
}
