:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --amber-950: #451a03;
    --white: #ffffff;
    --black: #111827;
    --soft-shadow: 0 18px 50px rgba(120, 53, 15, 0.14);
    --deep-shadow: 0 24px 70px rgba(69, 26, 3, 0.28);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--amber-950);
    background: linear-gradient(180deg, var(--amber-50), var(--amber-100) 42%, #fff7df);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.96), rgba(255, 251, 235, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
    box-shadow: 0 12px 32px rgba(120, 53, 15, 0.12);
    backdrop-filter: blur(16px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-name {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-nav a {
    color: var(--amber-900);
    font-weight: 700;
    border-radius: 999px;
    transition: 0.22s ease;
}

.desktop-nav a {
    padding: 9px 14px;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--white);
    background: var(--amber-600);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(217, 119, 6, 0.12);
    cursor: pointer;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--amber-900);
    transition: 0.22s ease;
}

.mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 18px;
}

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

.mobile-nav a {
    padding: 11px 14px;
}

main {
    overflow: hidden;
}

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

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.55), transparent 26%), linear-gradient(135deg, var(--amber-950), var(--amber-800) 45%, var(--amber-600));
}

.hero-slider::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.45;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: 54px;
}

.hero-copy {
    color: var(--white);
    padding: 84px 0;
}

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

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

.hero-copy h1 span {
    display: block;
    color: var(--amber-200);
    font-size: clamp(30px, 4.3vw, 54px);
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--amber-100);
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-weight: 900;
    transition: 0.22s ease;
}

.btn-primary {
    color: var(--amber-950);
    background: var(--white);
    box-shadow: 0 16px 36px rgba(69, 26, 3, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--amber-100);
}

.btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
}

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

.btn-amber {
    color: var(--white);
    background: var(--amber-600);
}

.btn-amber:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
}

.hero-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(252, 211, 77, 0.48), rgba(146, 64, 14, 0.8));
    box-shadow: var(--deep-shadow);
}

.hero-media img,
.category-tile img,
.poster-frame img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent, rgba(69, 26, 3, 0.72));
}

.hero-card-meta {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    color: var(--white);
}

.hero-card-meta strong {
    display: block;
    font-size: 26px;
    line-height: 1.2;
}

.hero-card-meta span {
    color: var(--amber-100);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-controls button.is-active {
    width: 34px;
    background: var(--white);
}

.section {
    padding: 72px 0;
}

.section.white {
    background: rgba(255, 255, 255, 0.72);
}

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

.section-title {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.section-subtitle {
    max-width: 700px;
    margin: 8px 0 0;
    color: var(--amber-700);
}

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--amber-950);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.card-glow {
    position: absolute;
    inset: auto 18px -40px;
    height: 80px;
    background: rgba(245, 158, 11, 0.28);
    filter: blur(32px);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.movie-card:hover .card-glow {
    opacity: 1;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 42px;
    padding: 7px 10px;
    color: var(--white);
    background: var(--amber-500);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 12px 24px rgba(69, 26, 3, 0.25);
}

.card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--amber-900);
    font-size: 18px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--amber-800);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 700;
}

.card-meta span {
    padding: 4px 8px;
    background: var(--amber-100);
    border-radius: 999px;
}

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

.tag-row span {
    padding: 4px 8px;
    color: var(--amber-800);
    background: rgba(252, 211, 77, 0.34);
    border-radius: 999px;
    font-size: 12px;
}

.compact-card .card-line {
    min-height: 0;
    -webkit-line-clamp: 1;
}

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

.category-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-800));
    box-shadow: var(--soft-shadow);
}

.category-tile:hover img {
    transform: scale(1.1);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 10%, rgba(69, 26, 3, 0.86));
}

.category-index {
    position: absolute;
    top: 18px;
    left: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 900;
}

.category-tile strong {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 58px;
    color: var(--white);
    font-size: 24px;
    line-height: 1.18;
}

.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--amber-100);
    font-size: 13px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 48px auto 72px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-radius: 28px;
    box-shadow: var(--soft-shadow);
}

.filter-copy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.filter-copy h2 {
    margin: 0;
    color: var(--amber-900);
    font-size: 28px;
}

.filter-copy p {
    max-width: 520px;
    margin: 0;
    color: var(--amber-700);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.7fr));
    gap: 14px;
    margin-bottom: 26px;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: var(--amber-800);
    font-size: 13px;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--amber-950);
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.24);
    border-radius: 14px;
    outline: none;
}

.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);
}

.empty-state {
    display: none;
    margin: 0 0 20px;
    padding: 16px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 16px;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

.page-hero {
    position: relative;
    padding: 92px 0 72px;
    color: var(--white);
    background: radial-gradient(circle at 22% 0%, rgba(252, 211, 77, 0.45), transparent 28%), linear-gradient(135deg, var(--amber-950), var(--amber-700));
    overflow: hidden;
}

.page-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.36;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

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

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

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 68px 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.09);
    transition: 0.22s ease;
}

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

.ranking-number {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
    border-radius: 16px;
    font-size: 18px;
    font-weight: 900;
}

.ranking-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
    border-radius: 14px;
}

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

.ranking-content h2 {
    margin: 0 0 6px;
    color: var(--amber-900);
    font-size: 20px;
}

.ranking-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--amber-700);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.ranking-meta span {
    padding: 5px 9px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 56px auto 80px;
}

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

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #120904;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28), rgba(18, 9, 4, 0.84));
    border: 0;
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-core {
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    color: var(--amber-950);
    background: var(--white);
    border-radius: 999px;
    font-size: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.play-core strong {
    font-size: 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 32px;
    margin-top: 34px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
}

.detail-copy {
    padding: 6px 0;
}

.detail-copy h2 {
    margin: 0 0 16px;
    color: var(--amber-900);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.detail-line {
    margin: 0 0 20px;
    color: var(--amber-800);
    font-size: 18px;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.info-pills li {
    padding: 7px 12px;
    color: var(--amber-800);
    background: var(--amber-100);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.article-card {
    margin-top: 30px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 119, 6, 0.13);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
}

.article-card h2 {
    margin: 0 0 12px;
    color: var(--amber-900);
    font-size: 26px;
}

.article-card p {
    margin: 0;
    color: var(--amber-800);
}

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

.related-section h2 {
    margin: 0 0 22px;
    color: var(--amber-900);
    font-size: 30px;
}

.image-hidden {
    opacity: 0;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-copy {
        padding: 70px 0 12px;
    }

    .hero-media {
        max-width: 380px;
        margin-bottom: 88px;
    }

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

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

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

    .detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

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

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

    .brand-subtitle {
        display: none;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-copy h1 {
        margin-top: 18px;
    }

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

    .btn {
        width: 100%;
    }

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

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

    .filter-panel {
        padding: 20px;
        border-radius: 22px;
    }

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

    .ranking-item {
        grid-template-columns: 44px 74px minmax(0, 1fr);
    }

    .ranking-meta {
        grid-column: 2 / 4;
        justify-content: flex-start;
    }

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

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

    .article-card {
        padding: 22px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }

    .hero-media {
        max-width: 100%;
    }
}
