:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fff3dd;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --yellow: #facc15;
    --shadow: 0 24px 60px rgba(124, 45, 18, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

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

.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;
    color: #7c2d12;
    letter-spacing: -0.02em;
}

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

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

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #9a3412;
    background: #ffedd5;
}

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

.menu-button span {
    width: 20px;
    height: 2px;
    background: #9a3412;
    border-radius: 99px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 52%, #facc15 100%);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.30), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.22), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04));
}

.hero-bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.45) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.45) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.45) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.45) 75%);
    background-size: 42px 42px;
    background-position: 0 0, 0 21px, 21px -21px, -21px 0;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: flex;
    align-items: center;
    padding: 62px 0;
}

.hero-carousel {
    width: 100%;
    position: relative;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 54px;
}

.hero-slide.active {
    display: grid;
    animation: fadeIn 0.45s ease both;
}

.hero-copy h1 {
    margin: 12px 0 18px;
    max-width: 780px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.12;
}

.hero-copy p {
    max-width: 690px;
    margin: 0 0 24px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c2410c;
    background: #ffedd5;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-section .eyebrow,
.page-hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #9a3412;
    background: #ffedd5;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 18px 34px rgba(194, 65, 12, 0.28);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(194, 65, 12, 0.36);
}

.button-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.button-soft {
    color: #9a3412;
    background: #ffedd5;
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 70px rgba(124, 45, 18, 0.38);
    transform: rotate(2deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.48));
}

.hero-play,
.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 34px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.active {
    width: 66px;
    background: #ffffff;
}

.section {
    padding: 62px 0;
}

.stats-section {
    padding: 28px 0 0;
}

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

.stat-card {
    padding: 26px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card span {
    display: block;
    font-size: 38px;
    font-weight: 950;
    line-height: 1;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: #9a3412;
}

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

.section-title h2,
.rank-panel-title h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.04em;
    color: #1f2937;
}

.text-link {
    color: #c2410c;
    font-weight: 900;
}

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

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

.category-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.category-card-head span {
    font-size: 22px;
    font-weight: 950;
    color: #7c2d12;
}

.category-card-head strong {
    color: #f97316;
    background: #ffedd5;
    padding: 6px 10px;
    border-radius: 999px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.mini-poster-grid a {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #fed7aa;
}

.mini-poster-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-poster-grid span {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 8px 8px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius);
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.10);
    transition: 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 54px rgba(124, 45, 18, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #f97316);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.05);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.42));
}

.poster-play {
    width: 48px;
    height: 48px;
    opacity: 0;
    transition: 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 14px;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
}

.movie-card h3 {
    min-height: 50px;
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #1f2937;
}

.movie-card p {
    min-height: 62px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.card-actions a {
    font-size: 13px;
    font-weight: 900;
    color: #c2410c;
}

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

.rank-panel,
.side-card {
    position: sticky;
    top: 94px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.rank-list-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
}

.rank-list-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #fed7aa;
}

.rank-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-list-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 950;
}

.rank-list-head a {
    line-height: 1.35;
}

.list-rank {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    color: #ffffff;
    background: #f97316;
    border-radius: 10px;
    font-size: 13px;
}

.rank-list-item p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.search-panel {
    padding-top: 36px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #1f2937;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.result-count {
    color: #c2410c;
    font-weight: 900;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 60%, #facc15 100%);
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.30), transparent 26%),
        radial-gradient(circle at 80% 12%, rgba(255,255,255,0.22), transparent 22%),
        rgba(0,0,0,0.10);
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding: 76px 0;
}

.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(34px, 5vw, 62px);
    letter-spacing: -0.04em;
}

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

.detail-shell {
    padding: 34px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

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

.detail-main-card,
.side-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.34), rgba(0, 0, 0, 0.54)),
        rgba(0, 0, 0, 0.26);
    border: 0;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    color: #ffffff;
    background: #f97316;
    border-radius: 50%;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.play-cover strong {
    font-size: 18px;
}

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

.detail-content {
    padding: 26px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.detail-title-row h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.detail-one-line {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.75;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta-grid span {
    padding: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    color: #7c2d12;
    font-weight: 900;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #c2410c;
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.text-block {
    padding: 20px 0 0;
    border-top: 1px solid #fed7aa;
}

.text-block + .text-block {
    margin-top: 20px;
}

.text-block h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #7c2d12;
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

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

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fb923c;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-card.is-hidden,
.rank-list-item.is-hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .rank-panel,
    .side-card {
        position: static;
    }

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

@media (max-width: 820px) {
    .menu-button {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #ffffff;
        border: 1px solid #fed7aa;
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

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

    .hero-container {
        min-height: auto;
        padding: 42px 0;
    }

    .hero-slide,
    .hero-slide.active {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
        transform: none;
    }

    .stats-grid,
    .category-grid,
    .large-category-grid,
    .footer-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .detail-title-row {
        flex-direction: column;
    }

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

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

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-actions,
    .card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .card-actions a {
        width: 100%;
    }

    .movie-grid,
    .movie-grid-wide,
    .library-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-content {
        padding: 20px;
    }

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