:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --brand: #f97316;
    --brand-deep: #d97706;
    --brand-soft: #ffedd5;
    --amber: #f59e0b;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(154, 89, 24, 0.16);
    --shadow-strong: 0 28px 80px rgba(120, 53, 15, 0.28);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 45%, #fef3c7 100%);
    line-height: 1.7;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: #ea580c;
    background: #fff;
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.15);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.hero {
    position: relative;
    height: clamp(520px, 72vh, 680px);
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 24%, rgba(245, 158, 11, 0.34), transparent 35%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: max(24px, calc((100% - 1180px) / 2));
    width: min(660px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #fff;
}

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

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

.hero p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 24px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.ghost-light-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.34);
}

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

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.ghost-light-btn {
    color: #ea580c;
    background: #fff7ed;
}

.text-link {
    min-height: 0;
    padding: 0;
    color: #ea580c;
}

.full-btn {
    width: 100%;
    margin-top: 12px;
}

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

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

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

.section-inner,
.section-block,
.category-band,
.detail-layout,
.related-block {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-strip {
    padding: 46px 0 20px;
}

.search-strip .section-inner {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-strip h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.search-strip p {
    margin: 0 0 22px;
    color: var(--muted);
}

.home-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.home-search-row input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    padding: 14px 18px;
    color: #1f2937;
    background: #fff;
    outline: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-search-row input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.section-block {
    padding: 64px 0;
}

.category-band {
    width: 100%;
    padding: 64px max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.86), rgba(254, 243, 199, 0.86));
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.movie-detail-card h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: #ea580c;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(180, 83, 9, 0.11);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-strong);
}

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

.movie-card-wide .movie-cover {
    aspect-ratio: 16 / 10;
}

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

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

.movie-cover::after,
.category-tile::after,
.rank-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.74), transparent);
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-play-mark {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

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

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

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

.movie-card h3 a:hover,
.rank-card h3 a:hover,
.category-overview-card h2 a:hover {
    color: #ea580c;
}

.movie-card p,
.rank-card p,
.category-overview-card p,
.page-hero p,
.movie-detail-card p,
.side-card p,
.site-footer p {
    color: var(--muted);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    opacity: 0.88;
    transition: transform 0.55s ease;
}

.category-tile span,
.category-tile small {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    color: #fff;
}

.category-tile span {
    bottom: 56px;
    font-size: 22px;
    font-weight: 950;
}

.category-tile small {
    bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

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

.rank-panel,
.side-card,
.movie-detail-card,
.player-card,
.filter-panel,
.category-overview-card {
    border: 1px solid rgba(251, 146, 60, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

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

.rank-list.slim .rank-card {
    grid-template-columns: 78px 42px 1fr;
    gap: 12px;
    padding: 10px;
}

.rank-card {
    display: grid;
    grid-template-columns: 112px 56px 1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(251, 146, 60, 0.13);
    border-radius: 20px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(180, 83, 9, 0.09);
}

.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

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

.rank-number {
    color: #f97316;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.rank-list.slim .rank-card p,
.rank-list.slim .tag-row {
    display: none;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 320px;
    margin: 34px auto 0;
    overflow: hidden;
    border-radius: 32px;
    padding: 54px;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.34), transparent 34%),
        linear-gradient(135deg, #fff7ed, #fef3c7);
    box-shadow: var(--shadow);
}

.page-hero.category-hero {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
}

.page-hero.category-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
}

.small-hero {
    min-height: 260px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #7c2d12;
    font-size: 13px;
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
    background: #111827;
}

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

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #c2410c;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a3412;
    font-weight: 800;
}

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

.player-card {
    overflow: hidden;
    margin-bottom: 22px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.movie-play-button {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    transform: translate(-50%, -50%);
    transition: 0.25s ease;
}

.movie-play-button span {
    margin-left: 5px;
    font-size: 32px;
}

.movie-play-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.movie-play-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.movie-detail-card {
    padding: 28px;
}

.movie-detail-card h1 {
    margin-bottom: 14px;
}

.detail-meta {
    margin-bottom: 14px;
}

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

.one-line {
    margin: 0 0 24px;
    color: #7c2d12;
    font-size: 18px;
    font-weight: 900;
}

.movie-detail-card h2 {
    margin: 24px 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

.movie-detail-card p {
    margin: 0;
}

.sticky-card {
    position: sticky;
    top: 92px;
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.side-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.25;
}

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

.site-footer {
    margin-top: 56px;
    padding: 48px 0 24px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #431407);
}

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

.footer-logo {
    margin-bottom: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 950;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

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

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

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

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

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

@media (max-width: 760px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero {
        height: 580px;
    }

    .hero-shade {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.32));
    }

    .hero-content {
        top: auto;
        bottom: 72px;
        transform: none;
    }

    .home-search-row,
    .filter-panel,
    .page-hero.category-hero,
    .footer-grid,
    .category-overview-card,
    .rank-card,
    .rank-list.slim .rank-card {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-hero {
        padding: 28px;
    }

    .movie-detail-card,
    .filter-panel {
        padding: 18px;
    }

    .rank-number {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .poster-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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