:root {
    color-scheme: light;
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf3;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #f3e7d8;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --green: #22c55e;
    --purple: #8b5cf6;
    --rose: #f43f5e;
    --cyan: #06b6d4;
    --slate: #334155;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.12), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf3 100%);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(243, 231, 216, 0.9);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.brand-text {
    font-size: 22px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--orange-dark), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--orange-dark);
    background: #fff1e6;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1e6;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

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

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-nav.open {
    display: flex;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.65s ease, transform 1.2s ease;
    transform: scale(1.02);
}

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

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 620px;
    padding: 120px 24px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-summary {
    margin: 26px 0 0;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: #fff2e8;
    color: var(--orange-dark);
}

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

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

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 35px rgba(249, 115, 22, 0.35);
}

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

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.text-link {
    color: var(--orange-dark);
    background: #fff2e8;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
    z-index: 4;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.section-shell,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px 0;
}

.page-shell {
    padding-top: 38px;
}

.page-shell.narrow {
    max-width: 960px;
}

.section-shell.flat {
    padding-top: 34px;
}

.search-band {
    max-width: 1280px;
    margin: -42px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.content-panel h2,
.player-section h2 {
    margin: 0;
    color: #111827;
    letter-spacing: -0.03em;
}

.search-band h2,
.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.search-box,
.inline-search {
    position: relative;
    display: block;
}

.search-box input,
.inline-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    padding: 0 18px;
    color: #111827;
    background: #fffaf5;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.inline-search input:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.section-heading.tight {
    margin-bottom: 20px;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 18px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.movie-card:hover,
.content-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(31, 41, 55, 0.16);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 92px;
    margin: 8px 0 20px;
}

.category-preview img {
    border-radius: 14px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

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

.category-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-size: 12px;
    font-weight: 800;
}

.accent-blue .category-pill,
.accent-blue .primary-btn {
    background: linear-gradient(135deg, var(--blue), #06b6d4);
}

.accent-red .category-pill,
.accent-red .primary-btn {
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.accent-green .category-pill,
.accent-green .primary-btn {
    background: linear-gradient(135deg, var(--green), #10b981);
}

.accent-purple .category-pill,
.accent-purple .primary-btn {
    background: linear-gradient(135deg, var(--purple), #ec4899);
}

.accent-rose .category-pill,
.accent-rose .primary-btn {
    background: linear-gradient(135deg, var(--rose), #fb7185);
}

.accent-cyan .category-pill,
.accent-cyan .primary-btn {
    background: linear-gradient(135deg, var(--cyan), #3b82f6);
}

.accent-yellow .category-pill,
.accent-yellow .primary-btn {
    background: linear-gradient(135deg, #eab308, var(--amber));
}

.accent-slate .category-pill,
.accent-slate .primary-btn {
    background: linear-gradient(135deg, var(--slate), #64748b);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 35px rgba(31, 41, 55, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent);
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    border-radius: 12px;
}

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

.movie-meta-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h3 a:hover {
    color: var(--orange-dark);
}

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

.split-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 24px;
    align-items: start;
}

.feature-panel,
.content-panel,
.player-section {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.dark-panel {
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.dark-panel .section-heading h2,
.dark-panel .eyebrow,
.dark-panel .movie-card h3,
.dark-panel .movie-card p,
.dark-panel .movie-meta-line {
    color: inherit;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #fffaf5;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(4px);
    background: #fff1e6;
}

.ranking-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: 12px;
    font-weight: 900;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-info em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.ranking-score {
    color: var(--orange-dark);
    font-weight: 900;
}

.full-list {
    margin-top: 26px;
}

.page-hero {
    overflow: hidden;
    min-height: 270px;
    padding: 48px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(245, 158, 11, 0.78)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.4), transparent 32rem);
    color: #fff;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 860px;
    color: #fff;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
}

.page-hero p:not(.eyebrow) {
    max-width: 740px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.compact-hero {
    min-height: 230px;
}

.category-hero,
.ranking-hero {
    position: relative;
}

.category-hero::after,
.ranking-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.grow {
    flex: 1;
}

.year-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.year-chips button {
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-weight: 800;
}

.year-chips button.active,
.year-chips button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    padding: 34px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, #111827 0%, #1f2937 55%, #431407 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.player-section {
    margin-top: 30px;
}

.player-section h2 {
    margin-bottom: 18px;
    font-size: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.32));
    z-index: 3;
}

.player-cover.is-hidden {
    display: none;
}

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.42);
    font-size: 32px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.content-panel {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.content-panel h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.content-panel p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

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

.small-actions {
    margin-top: 22px;
}

.small-actions .ghost-btn {
    color: #fff;
}

@media (max-width: 1160px) {
    .category-grid,
    .category-grid.large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 92px;
    }

    .hero-arrow {
        display: none;
    }

    .search-band,
    .split-section,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .search-band {
        margin: 0 16px;
        border-radius: 22px;
    }

    .section-heading,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-grid,
    .movie-grid.wide,
    .ranking-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .page-hero,
    .detail-hero,
    .feature-panel,
    .content-panel,
    .player-section {
        padding: 24px;
        border-radius: 24px;
    }
}

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

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

    .section-shell,
    .page-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .category-grid,
    .category-grid.large,
    .movie-grid,
    .movie-grid.wide,
    .mini-grid,
    .ranking-cards {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .ranking-score {
        display: none;
    }

    .ranking-row img {
        width: 48px;
        height: 64px;
    }

    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }
}
