:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
    --soft-shadow: 0 12px 30px rgba(31, 41, 55, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50) 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid rgba(253, 230, 138, 0.75);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}

.nav-wrap {
    max-width: var(--max);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
}

.brand-name,
.footer-brand span:last-child {
    font-size: 25px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-50);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 4px auto;
    display: block;
    background: var(--gray-800);
}

.mobile-nav {
    display: none;
    padding: 10px 18px 16px;
    border-top: 1px solid var(--gray-200);
    background: #ffffff;
}

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

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, var(--amber-50) 42%, #ffffff 100%);
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    gap: 42px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 72px 22px 92px;
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: -120px -40vw -120px -40vw;
    opacity: 0.13;
    filter: blur(10px) saturate(1.15);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.78));
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-600);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-content h2 {
    margin: 18px 0 10px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.15;
    color: var(--amber-600);
}

.hero-content p,
.page-hero p,
.detail-copy p,
.section-heading p {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags,
.detail-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(253, 230, 138, 0.95);
    color: var(--amber-600);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-btn {
    padding: 0 26px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
}

.primary-mini {
    min-height: 40px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.ghost-btn {
    padding: 0 22px;
    color: var(--amber-600);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(253, 230, 138, 0.95);
}

.ghost-btn.dark {
    color: var(--gray-800);
}

.primary-btn:hover,
.ghost-btn:hover,
.primary-mini:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--soft-shadow);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), #ffffff);
    box-shadow: 0 32px 80px rgba(124, 45, 18, 0.22);
    transform: rotate(1.2deg);
}

.hero-poster::after,
.poster-link::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.42));
    opacity: 0.85;
    pointer-events: none;
}

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

.hero-poster:hover img,
.movie-card:hover .poster-link img,
.detail-poster:hover img {
    transform: scale(1.06);
}

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

.hero-dot {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.24);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 74px 22px;
}

.section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    text-align: left;
}

.compact-heading {
    text-align: left;
    margin-bottom: 20px;
}

.text-link {
    color: var(--amber-600);
    font-weight: 800;
}

.text-link:hover {
    color: var(--orange-600);
}

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

.category-tile,
.category-card,
.info-card,
.next-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(253, 230, 138, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
}

.category-tile {
    min-height: 154px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile span {
    color: var(--gray-900);
    font-size: 21px;
    font-weight: 900;
}

.category-tile small,
.category-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    margin-bottom: 28px;
}

.search-box,
.select-box {
    display: grid;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.select-box select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(253, 230, 138, 0.95);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: var(--gray-800);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.05);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.year-badge,
.type-badge,
.rank-badge {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    top: 10px;
    right: 10px;
    min-height: 26px;
    padding: 0 10px;
    background: var(--amber-500);
}

.type-badge {
    left: 10px;
    bottom: 10px;
    min-height: 26px;
    padding: 0 10px;
    background: rgba(17, 24, 39, 0.72);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 14px;
}

.card-body h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

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

.card-meta,
.card-line {
    margin: 8px 0 0;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.6;
}

.card-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 42px;
    overflow: hidden;
}

.tag-row {
    margin-top: 12px;
}

.movie-card.dense .card-line {
    -webkit-line-clamp: 1;
    min-height: auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 22px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber-100), #ffffff 48%, #ffedd5);
}

.page-hero::before,
.detail-glow {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    filter: blur(18px);
}

.page-hero::before {
    top: -130px;
    right: -80px;
}

.centered-actions {
    justify-content: center;
}

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

.category-card {
    padding: 26px;
}

.category-card-title {
    display: inline-flex;
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-sample {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 18px 0;
}

.category-sample a {
    color: var(--gray-600);
    font-size: 14px;
}

.category-sample a:hover {
    color: var(--amber-600);
}

.ranking-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(254, 243, 199, 0.45));
    border-radius: 32px;
}

.detail-hero {
    position: relative;
    max-width: var(--max);
    margin: 34px auto 0;
    padding: 60px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: center;
}

.detail-glow {
    left: -120px;
    top: -90px;
}

.detail-copy,
.detail-poster {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--gray-500);
    font-size: 14px;
}

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

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--amber-100), #ffffff);
    box-shadow: 0 30px 70px rgba(124, 45, 18, 0.18);
}

.player-section {
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start strong {
    font-size: 22px;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.35);
    font-size: 34px;
    padding-left: 5px;
}

.player-start:hover .play-circle {
    transform: scale(1.06);
}

.player-shell.is-playing .player-start,
.player-start.is-hidden {
    opacity: 0;
    pointer-events: none;
}

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

.detail-main,
.detail-side > * {
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(253, 230, 138, 0.85);
    box-shadow: var(--soft-shadow);
}

.detail-main {
    padding: 30px;
}

.detail-main h2,
.info-card h2 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: 25px;
}

.detail-main p {
    color: var(--gray-700);
    font-size: 17px;
    line-height: 1.95;
}

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

.info-card,
.next-card {
    padding: 22px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.info-card dt {
    color: var(--gray-500);
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--gray-800);
}

.next-card {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.next-card a {
    color: var(--amber-600);
    font-weight: 800;
    line-height: 1.6;
}

.related-section {
    padding-top: 20px;
}

.site-footer {
    margin-top: 50px;
    padding: 50px 22px 26px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border-top: 1px solid rgba(253, 230, 138, 0.9);
}

.footer-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-grid p {
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

.footer-links a {
    color: var(--gray-600);
}

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

.footer-bottom {
    max-width: var(--max);
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 230, 138, 0.9);
    color: var(--gray-500);
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .nav-toggle {
        display: inline-block;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 760px;
    }

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

    .hero-slide {
        padding-top: 48px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
        margin: 0 auto;
    }

    .split-heading,
    .toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

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

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

    .detail-hero {
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        padding: 0 16px;
    }

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

    .hero-carousel,
    .hero-stage {
        min-height: 790px;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-content p,
    .page-hero p,
    .detail-copy p,
    .section-heading p {
        font-size: 16px;
    }

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

    .section {
        padding: 52px 16px;
    }

    .card-body {
        padding: 12px;
    }

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

    .detail-main,
    .info-card,
    .next-card {
        padding: 20px;
    }

    .play-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
