: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;
    --amber-950: #451a03;
    --yellow-50: #fefce8;
    --cream: #fff7ed;
    --white: #ffffff;
    --ink: #2f1705;
    --muted: #8a5b1d;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
    --shadow-soft: 0 10px 26px rgba(120, 53, 15, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--amber-900);
    background: linear-gradient(180deg, var(--amber-50), var(--yellow-50) 46%, var(--amber-100));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 252, 232, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 172px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--amber-300));
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.brand-text strong,
.brand-text em {
    display: block;
    font-style: normal;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 21px;
    color: var(--amber-900);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link {
    position: relative;
    color: var(--amber-900);
    font-weight: 700;
    font-size: 15px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber-600), var(--amber-300));
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.2s ease;
    content: "";
}

.nav-link:hover,
.nav-link.active {
    color: var(--amber-600);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--amber-900);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.mobile-nav .nav-link {
    padding: 10px 12px;
    background: var(--amber-50);
    border-radius: 12px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-950), var(--amber-700) 56%, var(--amber-500));
}

.hero::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 16% 18%, rgba(252, 211, 77, 0.32), transparent 28%), radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 25%), linear-gradient(90deg, rgba(69, 26, 3, 0.88), rgba(120, 53, 15, 0.72), rgba(217, 119, 6, 0.38));
    content: "";
    z-index: 2;
}

.hero::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    z-index: 3;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-content {
    position: relative;
    z-index: 4;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 40px;
    padding: 72px 0;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber-100);
    font-weight: 800;
    backdrop-filter: blur(12px);
}

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

.hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--amber-200);
    font-size: clamp(30px, 5vw, 54px);
}

.hero p {
    max-width: 650px;
    margin: 0 0 28px;
    color: var(--amber-50);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--amber-950);
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: var(--amber-100);
}

.btn-ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    color: var(--amber-950);
    background: var(--white);
}

.hero-feature {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-feature-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-feature-card img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

.hero-feature-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.72), transparent);
}

.hero-feature-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.hero-feature-info p {
    margin: 0 0 16px;
    color: var(--amber-100);
    font-size: 15px;
}

.hero-dots {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: var(--white);
}

.section {
    padding: 64px 0;
}

.section.white {
    background: var(--white);
}

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

.section-title {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
}

.section-title small {
    display: block;
    margin-bottom: 8px;
    color: var(--amber-600);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-lead {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--amber-700);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

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

.card-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.card-type {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.75);
    font-size: 12px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-300));
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 800;
}

.card-meta a {
    color: var(--amber-600);
}

.card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--amber-950);
    font-size: 18px;
    line-height: 1.32;
}

.card-body h3 a:hover {
    color: var(--amber-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 22px;
    color: var(--white);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--amber-900), var(--amber-600));
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-card::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 26%), radial-gradient(circle at 20% 90%, rgba(252, 211, 77, 0.26), transparent 30%);
    content: "";
    z-index: -1;
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--amber-100);
    font-size: 14px;
}

.category-card span {
    display: inline-flex;
    padding: 8px 13px;
    color: var(--amber-950);
    background: var(--white);
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}

.ranking-board {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 68px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.ranking-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--amber-300));
    border-radius: 12px;
    font-weight: 900;
}

.ranking-item img {
    width: 68px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-text strong,
.ranking-text em {
    display: block;
}

.ranking-text strong {
    color: var(--amber-950);
    font-size: 17px;
}

.ranking-text em {
    margin-top: 4px;
    color: var(--amber-700);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 70px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-900), var(--amber-600));
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

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

.filter-panel {
    margin: 32px 0;
    padding: 18px;
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--amber-900);
    background: var(--amber-50);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 14px;
    outline: 0;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 800;
}

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

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

.detail-panel,
.side-panel,
.text-panel {
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-panel {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    background: #140802;
    aspect-ratio: 16 / 9;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    background: #140802;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: linear-gradient(0deg, rgba(20, 8, 2, 0.68), rgba(20, 8, 2, 0.2));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: var(--amber-950);
    background: var(--white);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
    background: var(--amber-100);
}

.play-button svg {
    width: 38px;
    height: 38px;
    margin-left: 4px;
    fill: currentColor;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 0 0 12px;
    color: var(--amber-950);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

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

.detail-meta span,
.detail-meta a {
    padding: 7px 11px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.detail-content p {
    color: var(--amber-800);
    font-size: 17px;
}

.text-panel {
    padding: 28px;
    margin-top: 24px;
}

.text-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    color: var(--amber-950);
    font-size: 25px;
}

.text-panel p {
    color: var(--amber-800);
    font-size: 17px;
}

.side-panel {
    padding: 18px;
}

.side-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

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

.side-list a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    background: var(--amber-50);
    border-radius: 14px;
}

.side-list img {
    width: 56px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.side-list strong,
.side-list em {
    display: block;
}

.side-list strong {
    color: var(--amber-950);
    font-size: 14px;
    line-height: 1.35;
}

.side-list em {
    margin-top: 4px;
    color: var(--amber-700);
    font-style: normal;
    font-size: 12px;
}

.empty-state {
    display: none;
    padding: 52px 20px;
    text-align: center;
    color: var(--amber-700);
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.empty-state.show {
    display: block;
}

.site-footer {
    color: var(--amber-50);
    background: linear-gradient(180deg, var(--amber-900), var(--amber-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 30px;
    padding: 48px 0 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: var(--amber-200);
}

.site-footer p,
.site-footer a {
    color: var(--amber-100);
    font-size: 14px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    padding: 18px 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

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

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

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

    .hero-feature {
        min-height: 360px;
    }

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

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

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

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

    .brand-text em {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-feature {
        min-height: 320px;
    }

    .section {
        padding: 44px 0;
    }

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

    .grid.cards-3,
    .grid.cards-4,
    .grid.cards-5,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        min-height: 42px;
        font-size: 16px;
    }

    .detail-content,
    .text-panel {
        padding: 20px;
    }

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

@media (max-width: 460px) {
    .mobile-nav.open,
    .grid.cards-3,
    .grid.cards-4,
    .grid.cards-5,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 36px 58px 1fr;
        gap: 10px;
    }

    .ranking-item img {
        width: 58px;
        height: 78px;
    }
}
