:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-50: #fefce8;
    --yellow-400: #facc15;
    --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;
    --black: #000000;
    --shadow-sm: 0 6px 18px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 14px 35px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 25px 60px rgba(17, 24, 39, 0.18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50), #fff1e6 48%, var(--yellow-50));
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-500));
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.22);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--orange-600);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease;
}

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

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

.desktop-nav a,
.mobile-menu a {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    transition: color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: var(--amber-100);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: 260px;
}

.nav-search input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-search input:focus,
.filter-input:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.38);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    border: 0;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 12px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-copy {
    max-width: 680px;
    padding: 86px 0 74px;
}

.hero-kicker,
.section-kicker,
.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

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

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 800;
}

.hero-desc {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 13px 24px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--amber-500);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.34);
}

.btn-primary:hover {
    background: var(--orange-600);
}

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

.btn-light {
    color: var(--orange-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.main-section {
    padding: 72px 0;
}

.main-section.compact {
    padding-top: 42px;
}

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

.section-title {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    color: var(--gray-900);
}

.section-text {
    margin: 0;
    max-width: 760px;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.8;
}

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

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

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

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.detail-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.poster.wide {
    aspect-ratio: 16 / 9;
}

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

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

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(245, 158, 11, 0.92);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.score {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #78350f;
    background: rgba(254, 243, 199, 0.94);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

.card-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--gray-500);
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #9a3412;
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 750;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: start;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    min-height: 148px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    font-weight: 900;
}

.category-card {
    padding: 24px;
    min-height: 210px;
}

.category-card h2,
.category-card h3 {
    margin: 16px 0 10px;
    font-size: 24px;
    color: var(--gray-900);
}

.category-card p {
    margin: 0 0 18px;
    color: var(--gray-600);
    line-height: 1.75;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-links a {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--orange-700);
    background: var(--amber-100);
    font-size: 12px;
    font-weight: 750;
}

.page-hero {
    padding: 74px 0 42px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 34%), linear-gradient(135deg, var(--amber-50), #fff);
}

.page-hero h1 {
    margin: 14px 0 16px;
    color: var(--gray-900);
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -0.04em;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 26px 0 4px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    font-weight: 800;
    white-space: nowrap;
}

.player-section {
    padding: 42px 0 28px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #050505;
    box-shadow: var(--shadow-lg);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-cover-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    color: var(--orange-600);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    font-size: 38px;
}

.play-cover-text {
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    font-weight: 850;
}

.detail-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    align-items: start;
    padding: 28px 0 72px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-content h1 {
    margin: 14px 0 16px;
    color: var(--gray-900);
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.12;
}

.detail-lead {
    margin: 0 0 22px;
    color: var(--gray-700);
    font-size: 19px;
    line-height: 1.85;
}

.detail-card {
    padding: 26px;
    margin-top: 22px;
}

.detail-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.9;
}

.breadcrumbs {
    margin-bottom: 8px;
}

.breadcrumbs a {
    color: var(--orange-700);
    font-weight: 750;
}

.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 48px 0 34px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 30px;
}

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

.footer p,
.footer a {
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

.empty-state {
    display: none;
    border-radius: var(--radius-md);
    padding: 28px;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

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

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

    .hero {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .category-grid,
    .rank-grid,
    .split-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero {
        height: 540px;
    }

    .hero-copy {
        padding-top: 60px;
    }

    .hero-desc {
        -webkit-line-clamp: 4;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
    }

    .section-head,
    .filter-bar {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

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

    .rank-card {
        grid-template-columns: 112px 1fr;
    }

    .main-section {
        padding: 50px 0;
    }

    .page-hero {
        padding-top: 52px;
    }
}
