:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --amber: #f59e0b;
    --green: #16a34a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--gray-900);
}

.brand:hover,
.footer-brand:hover {
    color: var(--orange-dark);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    position: relative;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 11px solid #ffffff;
}

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

.nav-link,
.mobile-link {
    font-weight: 650;
    color: var(--gray-700);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--orange-dark);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--gray-800);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid var(--gray-200);
    background: #ffffff;
}

.mobile-nav.is-open {
    display: grid;
    gap: 4px;
}

.mobile-link {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-link:hover {
    background: #fff7ed;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 38%, #ef4444 100%);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.22), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(253, 186, 116, 0.36), transparent 26%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.38));
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 86px;
}

.hero-heading h1 {
    max-width: 720px;
    margin: 14px 0 18px;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-heading p {
    max-width: 640px;
    margin: 0 0 28px;
    font-size: 20px;
    color: #fff7ed;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff7ed;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero-search,
.filter-bar {
    display: flex;
    max-width: 580px;
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 22px 50px rgba(127, 29, 29, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-bar input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--gray-900);
    background: #ffffff;
    border-radius: 999px;
    padding: 13px 18px;
}

.hero-search button,
.filter-bar button,
.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 14px 26px rgba(239, 68, 68, 0.28);
}

.hero-search button:hover,
.btn:hover {
    transform: translateY(-2px);
}

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

.btn-dark {
    display: inline-flex;
    color: #ffffff;
    background: var(--gray-900);
}

.hero-badges,
.hero-tags,
.detail-tags,
.movie-tags,
.pill-cloud,
.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges {
    margin-top: 18px;
}

.hero-badges a,
.hero-tags span,
.detail-tags span,
.pill-cloud a,
.search-chips button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: end;
    overflow: hidden;
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.34);
    opacity: 0;
    transform: translateX(20px) scale(0.985);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-slide-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.hero-copy h2 {
    margin: 12px 0 12px;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.08;
}

.hero-copy p {
    margin: 0 0 18px;
    color: #f9fafb;
}

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

.hero-poster {
    align-self: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 220px;
    height: 320px;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    padding: 0;
}

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

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

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

.section-head h2,
.section-head h3 {
    margin: 4px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--gray-600);
}

.section-head a {
    color: var(--orange-dark);
    font-weight: 800;
}

.section-kicker {
    color: var(--orange-dark);
}

.section-kicker.green {
    color: var(--green);
}

.section-kicker.red {
    color: var(--red);
}

.section-kicker.blue {
    color: var(--blue);
}

.section-kicker.amber {
    color: var(--amber);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-link {
    display: grid;
    height: 100%;
}

.movie-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(10px);
}

.movie-body {
    padding: 17px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-tags span,
.detail-tags span {
    color: var(--orange-dark);
    font-size: 12px;
    background: #fff7ed;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.soft-card {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

.square-card .movie-cover {
    aspect-ratio: 1 / 1;
}

.surface-section {
    background: #ffffff;
}

.category-zone {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.category-preview + .category-preview {
    margin-top: 34px;
}

.slim-head h3 {
    font-size: 24px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.left-only {
    justify-content: flex-start;
}

.ranking-list,
.rank-table {
    display: grid;
    gap: 12px;
}

.compact-item,
.rank-row {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-item:hover,
.rank-row:hover {
    transform: translateX(4px);
    box-shadow: var(--soft-shadow);
}

.compact-item img,
.rank-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-num,
.rank-index {
    color: var(--red);
    font-weight: 900;
    font-size: 18px;
}

.compact-title,
.rank-name {
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-meta,
.rank-score {
    color: var(--orange-dark);
    font-weight: 800;
}

.ranking-panel {
    position: sticky;
    top: 88px;
    border-radius: 28px;
    padding: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gray-900), #7c2d12);
    box-shadow: var(--shadow);
}

.ranking-panel h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
}

.ranking-panel p {
    color: #fed7aa;
}

.pill-cloud {
    margin: 24px 0;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.page-hero {
    padding: 74px 0;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.category-hero {
    background: linear-gradient(135deg, #f97316, #be123c);
}

.rank-hero {
    background: linear-gradient(135deg, #111827, #991b1b);
}

.search-hero {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

.page-hero h1 {
    max-width: 760px;
    margin: 10px 0 10px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

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

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

.filter-bar {
    max-width: 760px;
    margin-top: 26px;
}

.big-filter {
    max-width: 900px;
}

.search-chips {
    margin-top: 18px;
}

.search-chips button {
    color: #ffffff;
    cursor: pointer;
}

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

.category-tile {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile a {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 220px;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: 28px;
}

.category-info h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.category-info p {
    color: var(--gray-600);
}

.category-info span {
    display: inline-flex;
    margin-top: 16px;
    color: var(--orange-dark);
    font-weight: 800;
}

.rank-leads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.rank-lead-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-lead-card a {
    display: grid;
    min-height: 100%;
}

.rank-lead-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.rank-lead-card div {
    padding: 22px;
}

.rank-lead-card h2 {
    margin: 0 0 8px;
}

.rank-lead-card p {
    color: var(--gray-600);
}

.rank-lead-card strong {
    display: inline-flex;
    color: var(--red);
    font-size: 30px;
}

.rank-crown {
    position: absolute;
    z-index: 2;
    margin: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: var(--red);
    font-weight: 900;
}

.rank-row {
    grid-template-columns: 60px 58px 180px minmax(0, 1fr) 60px;
}

.rank-desc {
    color: var(--gray-600);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-hero {
    min-height: 620px;
    background: var(--gray-900);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.9));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 58px 0 76px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 300px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.06;
}

.detail-one-line {
    max-width: 820px;
    color: #f3f4f6;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.detail-main {
    margin-top: -84px;
    position: relative;
    z-index: 3;
}

.player-shell {
    border-radius: 30px;
    padding: 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding-left: 6px;
    color: var(--orange-dark);
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    font-size: 34px;
}

.detail-article {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.detail-article section,
.related-section {
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.related-section {
    margin: 34px 0 70px;
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 46px 0 32px;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p {
    margin: 10px 0 0;
    color: #9ca3af;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 7px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #fb923c;
}

.footer-brand {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

.filter-card.is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .hero-inner,
    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 560px;
    }

    .cards-4,
    .cards-6,
    .rank-leads,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-panel {
        position: static;
    }

    .detail-main {
        margin-top: -48px;
    }
}

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

    .menu-button {
        display: block;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 60px;
        gap: 32px;
    }

    .hero-heading p {
        font-size: 17px;
    }

    .hero-search,
    .filter-bar {
        border-radius: 24px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.22);
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 24px;
    }

    .hero-poster {
        justify-self: start;
        transform: none;
    }

    .hero-poster img {
        width: 160px;
        height: 230px;
    }

    .hero-controls {
        left: 20px;
        right: 20px;
    }

    .cards-4,
    .cards-6,
    .rank-leads,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .category-thumbs {
        height: 180px;
    }

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

    .rank-desc {
        display: none;
    }

    .detail-hero-inner {
        padding-top: 34px;
    }

    .detail-poster img {
        width: 210px;
    }

    .detail-article section,
    .related-section {
        padding: 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
