:root {
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-200: #fde68a;
    --amber-100: #fef3c7;
    --orange-700: #c2410c;
    --orange-600: #ea580c;
    --orange-100: #ffedd5;
    --slate-950: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --shadow-soft: 0 22px 70px rgba(120, 53, 15, 0.18);
    --shadow-card: 0 14px 36px rgba(69, 26, 3, 0.14);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: #fffaf0;
    line-height: 1.65;
}

img {
    display: block;
    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;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-950));
    box-shadow: 0 12px 40px rgba(69, 26, 3, 0.28);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400, #fbbf24), var(--orange-600));
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.36);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text strong {
    display: block;
    font-size: 1.38rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--amber-200), #fff7cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    color: var(--amber-200);
    font-size: 0.78rem;
    margin-top: 2px;
}

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

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff7ed;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 10px;
}

.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(252, 211, 77, 0.28), transparent 30%),
        radial-gradient(circle at 80% 16%, rgba(234, 88, 12, 0.28), transparent 28%),
        linear-gradient(120deg, var(--amber-950), var(--amber-800) 45%, #713f12);
}

.hero-section::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    top: -180px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
    filter: blur(10px);
}

.hero-layout {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: 38px;
    padding: 72px 0;
}

.hero-copy-block h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--amber-200), #fff7cc 55%, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy-block p,
.compact-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #fdecc8;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
}

.eyebrow.dark {
    color: var(--amber-800);
    background: rgba(245, 158, 11, 0.12);
}

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

.inline-actions {
    margin-top: 24px;
}

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

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

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

.dark-ghost {
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.14);
}

.small-btn {
    min-height: 38px;
    padding: 0 18px;
    font-size: 0.92rem;
}

.text-link {
    color: var(--amber-700);
    min-height: auto;
    padding: 0;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-category-links a {
    padding: 7px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-carousel {
    position: relative;
    min-height: 450px;
}

.hero-slides {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: stretch;
    padding: 22px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 80px rgba(69, 26, 3, 0.34);
    backdrop-filter: blur(18px);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.hero-poster img {
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.26);
}

.hero-film-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-film-copy h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    line-height: 1.12;
}

.hero-film-copy p {
    margin: 18px 0 0;
    color: #fff1d6;
}

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

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hero-dots button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.hero-dots button[aria-current="true"] {
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.compact-hero {
    padding: 76px 0;
}

.compact-hero .container {
    position: relative;
}

.compact-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.1;
}

.content-section {
    padding: 72px 0;
    background: #fffaf0;
}

.warm-section {
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.soft-section {
    background: #fff7ed;
}

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

.single-head {
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(69, 26, 3, 0.2);
}

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

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

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 10px 26px rgba(234, 88, 12, 0.38);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: var(--slate-950);
    font-size: 1.1rem;
    line-height: 1.35;
}

.movie-card p {
    flex: 1;
    margin: 0;
    color: var(--slate-600);
    font-size: 0.95rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--amber-900);
    background: #fff3cf;
    font-size: 0.78rem;
    font-weight: 700;
}

.large-tags span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.86rem;
}

.card-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.card-footer-line a {
    color: var(--amber-700);
    font-weight: 800;
}

.card-footer-line em {
    min-width: 42px;
    text-align: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-style: normal;
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.36);
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-visual,
.category-overview-image {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 5;
}

.category-visual img,
.category-overview-image img {
    height: 100%;
    object-fit: cover;
}

.category-card h3,
.category-overview-card h2 {
    margin: 4px 0 10px;
    color: var(--slate-950);
    font-size: 1.35rem;
}

.category-card p,
.category-overview-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
}

.category-overview-grid {
    display: grid;
    gap: 24px;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}

.category-sample-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--amber-800);
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    padding: 20px;
    margin-bottom: 26px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(146, 64, 14, 0.18);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--slate-800);
    background: #fffaf0;
    outline: none;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 94px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

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

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
}

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

.rank-info h3 {
    margin: 0 0 6px;
    color: var(--slate-950);
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--slate-600);
}

.rank-heat {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--amber-800);
}

.rank-heat strong {
    font-size: 1.6rem;
}

.rank-heat span {
    font-size: 0.82rem;
    color: var(--slate-600);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--amber-800);
    font-weight: 800;
}

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

.detail-top {
    padding: 52px 0 64px;
    background: linear-gradient(135deg, var(--amber-100), #fffaf0);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, var(--amber-900), var(--orange-700));
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0;
    color: var(--slate-950);
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-intro {
    margin: 20px 0 0;
    color: var(--slate-700);
    font-size: 1.13rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--amber-900);
    background: rgba(245, 158, 11, 0.14);
    font-weight: 800;
}

.player-section {
    padding: 64px 0;
    background: #130902;
}

.player-section .section-head h2 {
    color: var(--white);
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

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

.player-overlay button {
    border: 0;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.42);
    cursor: pointer;
}

.detail-content-section {
    background: #fffaf0;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.detail-article,
.detail-side-card {
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    color: var(--slate-950);
    font-size: 1.5rem;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: var(--slate-700);
    font-size: 1.02rem;
}

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

.detail-side-card a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--amber-800);
    background: rgba(245, 158, 11, 0.12);
    font-weight: 800;
}

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

.compact-card h3 {
    font-size: 1rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 180px 220px;
    gap: 34px;
    padding: 44px 0;
}

.footer-logo {
    color: var(--amber-200);
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.site-footer p {
    margin: 0;
    color: #fdecc8;
}

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

.footer-links a {
    color: #fff7ed;
}

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

.footer-bottom {
    padding: 16px;
    text-align: center;
    color: var(--amber-200);
    background: rgba(0, 0, 0, 0.14);
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 760px) {
    .nav-shell {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        padding: 14px 16px 18px;
        background: var(--amber-950);
        box-shadow: 0 18px 42px rgba(69, 26, 3, 0.32);
    }

    .site-header.nav-open .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav a {
        justify-content: center;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-text strong {
        font-size: 1.12rem;
    }

    .brand-text small {
        display: none;
    }

    .hero-layout {
        min-height: auto;
        padding: 48px 0;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-poster img {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .hero-carousel,
    .hero-slides {
        min-height: auto;
    }

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

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

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

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

    .category-card,
    .category-overview-card,
    .rank-row,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        align-items: start;
    }

    .rank-cover {
        max-width: 120px;
    }

    .rank-heat {
        justify-items: start;
    }

    .detail-poster {
        max-width: 320px;
    }

    .player-card {
        border-radius: 18px;
    }
}

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

    .movie-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-film-actions {
        display: grid;
    }

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

    .compact-hero {
        padding: 56px 0;
    }
}
