@charset "UTF-8";

:root {
    --page-bg: #fff7ed;
    --paper: rgba(255, 255, 255, 0.92);
    --paper-strong: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fed7aa;
    --line: rgba(251, 146, 60, 0.18);
    --orange: #f97316;
    --amber: #f59e0b;
    --gold: #fbbf24;
    --deep: #7c2d12;
    --shadow: 0 24px 70px rgba(124, 45, 18, 0.18);
    --shadow-soft: 0 18px 40px rgba(124, 45, 18, 0.12);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 4%, rgba(251, 191, 36, 0.24), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.20), transparent 22rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 52%, #fef3c7 100%);
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--deep);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.brand-text {
    font-size: clamp(18px, 2vw, 24px);
}

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

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #7c2d12;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: #1c1917;
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    background-image:
        linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.72) 44%, rgba(28, 25, 23, 0.20) 100%),
        linear-gradient(0deg, rgba(28, 25, 23, 0.90) 0%, rgba(28, 25, 23, 0) 42%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 48px;
    padding: 110px 0 90px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde68a;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 16px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.08em;
}

.hero-summary {
    max-width: 710px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.78;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 30px;
}

.pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    backdrop-filter: blur(12px);
}

.pill {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

.tag-pill {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.38);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.46);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

.btn-soft {
    color: var(--deep);
    border: 1px solid rgba(249, 115, 22, 0.16);
    background: #fff7ed;
}

.btn-soft:hover {
    background: #ffedd5;
    transform: translateY(-2px);
}

.hero-poster-card {
    width: min(100%, 360px);
    justify-self: end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(251, 191, 36, 0.20));
}

.hero-poster-info {
    padding: 20px;
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.hero-poster-info span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.hero-dot {
    width: 32px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 72px 0;
}

.section-tight {
    padding: 44px 0;
}

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

.section-title {
    margin: 8px 0 0;
    color: var(--deep);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.section-desc {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.category-card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 86% 18%, rgba(251, 191, 36, 0.26), transparent 8rem),
        var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.36);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    color: var(--deep);
    font-size: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.15);
    border-radius: 24px;
    background: var(--paper-strong);
    box-shadow: 0 16px 36px rgba(124, 45, 18, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 520px;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.40);
    box-shadow: 0 26px 54px rgba(124, 45, 18, 0.18);
}

.poster-link {
    display: block;
}

.poster-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.34), transparent 9rem),
        linear-gradient(145deg, #431407, #9a3412 48%, #f59e0b);
}

.poster-shell img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.poster-shell img.is-missing {
    opacity: 0;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

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

.movie-title {
    margin: 0;
    color: var(--deep);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-title a:hover {
    color: var(--orange);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-one-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.62;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.09);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-cover img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #fed7aa;
}

.rank-main h3 {
    margin: 0 0 8px;
    color: var(--deep);
    font-size: 18px;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.search-panel {
    margin-top: -34px;
    position: relative;
    z-index: 20;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-input,
.search-select {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 18px;
    outline: none;
    background: #fff7ed;
    color: var(--deep);
    font-weight: 750;
}

.search-input {
    padding: 0 18px;
}

.search-select {
    padding: 0 14px;
}

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

.search-empty {
    display: none;
    margin: 26px 0 0;
    padding: 20px;
    border-radius: 22px;
    color: #9a3412;
    background: #ffedd5;
    text-align: center;
    font-weight: 800;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 72px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(124, 45, 18, 0.94), rgba(249, 115, 22, 0.88)),
        radial-gradient(circle at 90% 20%, rgba(251, 191, 36, 0.44), transparent 18rem);
}

.page-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 26px;
    align-items: start;
}

.player-card,
.info-card,
.text-card {
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 30px;
    background: var(--paper-strong);
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #111827;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.26)),
        var(--poster-image);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
}

.play-button svg {
    margin-left: 5px;
}

.player-error {
    display: none;
    padding: 12px 16px;
    color: #991b1b;
    background: #fee2e2;
    font-weight: 800;
}

.player-error.is-visible {
    display: block;
}

.detail-body {
    padding: 22px;
}

.detail-body h2,
.text-card h2,
.info-card h2 {
    margin: 0 0 14px;
    color: var(--deep);
    font-size: 24px;
    letter-spacing: -0.04em;
}

.detail-body p,
.text-card p,
.info-card p {
    color: var(--muted);
    line-height: 1.82;
}

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

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.14);
}

.info-list dt {
    color: #9a3412;
    font-weight: 900;
}

.info-list dd {
    margin: 0;
    color: var(--muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-cloud span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.footer {
    margin-top: 70px;
    padding: 44px 0;
    color: rgba(255, 255, 255, 0.76);
    background: #1c1917;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
}

.footer h2,
.footer h3 {
    margin: 0 0 14px;
    color: #fbbf24;
}

.footer p,
.footer li {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.8;
}

.footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a:hover {
    color: #fbbf24;
}

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

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

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

@media (max-width: 880px) {
    .mobile-toggle {
        display: inline-block;
    }

    .nav-links {
        position: fixed;
        inset: 72px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(251, 146, 60, 0.22);
        border-radius: 24px;
        background: rgba(255, 247, 237, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        text-align: center;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 80px 0 92px;
    }

    .hero-poster-card {
        justify-self: start;
        width: min(100%, 260px);
    }

    .section-header {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

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

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

    .search-card {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

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

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

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

    .hero h1 {
        font-size: 40px;
    }

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

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

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

    .movie-title {
        font-size: 15px;
    }

    .rank-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-cover {
        display: none;
    }

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