:root {
    --dawn-50: #fff7ed;
    --dawn-100: #ffedd5;
    --dawn-500: #f97316;
    --dawn-600: #ea580c;
    --dawn-700: #c2410c;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.16);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #fff7ed 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dawn-500), var(--dawn-700));
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--dawn-700);
    background: var(--dawn-50);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 290px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.header-search button,
.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: var(--dawn-600);
}

.header-search button {
    padding: 8px 13px;
    border-radius: 999px;
}

.primary-button {
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.24);
}

.primary-button.small {
    padding: 10px 16px;
    font-size: 14px;
}

.primary-button:hover,
.header-search button:hover {
    background: var(--dawn-700);
    transform: translateY(-1px);
}

.ghost-button {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.section-link {
    color: var(--dawn-700);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--ink);
    background: var(--dawn-50);
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 76px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(234, 88, 12, 0.24);
    border: 1px solid rgba(253, 186, 116, 0.28);
    font-size: 14px;
    font-weight: 750;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 28px;
}

.hero-tags span,
.detail-meta span,
.card-meta span,
.tag-list span {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

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

.page-top {
    padding-top: 34px;
    padding-bottom: 60px;
}

.content-section {
    margin: 58px 0;
}

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

.section-head.simple {
    align-items: center;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

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

.movie-card.compact .poster-link {
    aspect-ratio: 2.8 / 4;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
    opacity: 1;
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 5px 8px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.year-badge {
    right: 12px;
    background: var(--dawn-600);
}

.rank-badge {
    left: 12px;
    background: rgba(17, 24, 39, 0.82);
}

.play-hint {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
    font-weight: 800;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hint {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card h3 a:hover {
    color: var(--dawn-700);
}

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

.card-meta span,
.detail-meta span,
.tag-list span {
    padding: 5px 9px;
    color: var(--dawn-700);
    background: var(--dawn-50);
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.category-tile,
.category-overview-card {
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
}

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

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

.category-tile span,
.category-overview-card h2 {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    color: var(--dawn-700);
    font-size: 28px;
}

.category-tile em,
.latest-item em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.horizontal-scroll {
    display: grid;
    grid-auto-columns: minmax(230px, 260px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    margin: 58px 0;
}

.rank-list,
.latest-list,
.detail-side-box,
.detail-main-text,
.filter-panel,
.page-hero,
.ranking-card {
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.rank-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff;
    background: var(--dawn-600);
    font-weight: 900;
}

.rank-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.latest-list {
    padding: 10px;
}

.latest-item {
    display: flex;
    gap: 14px;
    padding: 10px;
    border-radius: 14px;
    transition: background-color 0.2s ease;
}

.latest-item:hover {
    background: var(--dawn-50);
}

.latest-item img {
    width: 132px;
    height: 82px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.latest-item span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.latest-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-item small {
    color: var(--dawn-700);
    font-weight: 750;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: clamp(28px, 5vw, 54px);
}

.soft-hero {
    background:
        radial-gradient(circle at 16% 20%, rgba(249, 115, 22, 0.20), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: center;
    margin: 26px 0 34px;
    padding: 22px;
}

.filter-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.filter-panel p {
    margin: 0;
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 12px 13px;
    background: #ffffff;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--dawn-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.filter-count {
    grid-column: 1 / -1;
    color: var(--dawn-700) !important;
    font-weight: 750;
}

.category-overview-card {
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-overview-head h2 {
    margin: 0;
}

.category-overview-head strong {
    color: var(--dawn-700);
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

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

.mini-card-row .movie-card:nth-child(n+4) {
    display: none;
}

.mini-card-row .movie-card-body p,
.mini-card-row .card-meta {
    display: none;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
    padding: 28px;
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 16%, rgba(249, 115, 22, 0.52), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1f2937 55%, #431407 100%);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-one-line {
    max-width: 760px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin: 20px 0;
}

.detail-meta span,
.detail-info .tag-list span {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
}

.detail-info .primary-button {
    margin-top: 24px;
}

.player-section {
    margin: 32px 0;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.video-player video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 42%),
        rgba(0, 0, 0, 0.46);
    cursor: pointer;
}

.video-player.is-playing .player-overlay {
    display: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: var(--dawn-600);
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.36);
    font-size: 26px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em,
.player-message {
    color: #fed7aa;
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 16px;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    font-size: 13px;
}

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

.detail-main-text,
.detail-side-box {
    padding: 26px;
}

.detail-main-text h2,
.detail-side-box h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.detail-main-text p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-side-box dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.detail-side-box dt {
    color: var(--muted);
}

.detail-side-box dd {
    margin: 0;
    font-weight: 750;
}

.detail-side-box a {
    color: var(--dawn-700);
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 64px 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px;
}

.ranking-rank {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--dawn-500), var(--dawn-700));
    font-size: 22px;
    font-weight: 900;
}

.ranking-cover img {
    width: 112px;
    height: 150px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.ranking-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
}

.footer-brand .brand-text {
    color: #ffffff;
}

.footer-brand-block p {
    max-width: 620px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

.footer-links a:hover {
    color: #fed7aa;
}

[data-movie-card].is-hidden {
    display: none;
}

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 0;
    }

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

    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
        padding: 8px 0;
    }

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

    .header-search {
        order: 4;
        width: 100%;
    }

    .hero-slider {
        height: 64vh;
        min-height: 480px;
    }

    .hero-content {
        bottom: 64px;
    }

    .split-section,
    .detail-layout,
    .footer-inner,
    .filter-panel,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider {
        height: 70vh;
        min-height: 520px;
    }

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

    .hero-arrow {
        display: none;
    }

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

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

    .movie-card p {
        display: none;
    }

    .card-meta span:nth-child(n + 3) {
        display: none;
    }

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

    .rank-row {
        grid-template-columns: 38px 1fr;
    }

    .rank-row em {
        grid-column: 2;
    }

    .latest-item img {
        width: 108px;
        height: 74px;
    }

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

    .ranking-card {
        grid-template-columns: 48px 82px minmax(0, 1fr);
        gap: 12px;
    }

    .ranking-cover img {
        width: 82px;
        height: 112px;
    }

    .ranking-info p {
        display: none;
    }
}
