:root {
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --blue: #0ea5e9;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --page: #f9fafb;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.narrow-container {
    width: min(940px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.25);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 600;
}

.nav-link {
    opacity: 0.95;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fef3c7;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ef4444 48%, #db2777 100%);
    padding: 78px 0 72px;
}

.hero-section::after {
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    content: "";
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.18), transparent);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.35;
    background: rgba(255, 255, 255, 0.42);
}

.hero-glow-one {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -80px;
}

.hero-glow-two {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -160px;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: center;
    gap: 42px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text {
    margin: 22px 0 0;
    max-width: 760px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-search {
    display: flex;
    max-width: 560px;
    margin-top: 30px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    color: #ffffff;
    border: 0;
    outline: 0;
    padding: 12px 16px;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.hero-search button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    cursor: pointer;
}

.hero-search button,
.button-light {
    color: var(--orange);
    background: #ffffff;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

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

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

.hero-carousel {
    position: relative;
    min-height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(16px);
}

.hero-slide {
    display: none;
    grid-template-columns: 42% 1fr;
    gap: 20px;
    align-items: stretch;
    min-height: 450px;
}

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

.hero-poster {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.22);
}

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

.hero-slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 8px;
}

.hero-slide-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
}

.hero-slide-copy p {
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.88);
}

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

.hero-dots {
    position: absolute;
    left: 28px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

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

.stats-band,
.section-block {
    padding: 62px 0;
}

.stats-band {
    background: #ffffff;
}

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

.stat-card {
    padding: 26px;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--soft-shadow);
}

.stat-card strong {
    display: block;
    font-size: 24px;
    color: var(--ink);
}

.stat-card span {
    color: var(--muted);
}

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

.center-heading {
    justify-content: center;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

.soft-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-green {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

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

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

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

.cover-badge,
.cover-year {
    position: absolute;
    top: 10px;
    z-index: 2;
    border-radius: 8px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.cover-badge {
    left: 10px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.cover-year {
    right: 10px;
    background: rgba(17, 24, 39, 0.72);
}

.cover-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--orange);
    font-size: 30px;
    background: rgba(17, 24, 39, 0.38);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cover-play::before {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 999px;
    content: "";
    background: rgba(255, 255, 255, 0.92);
}

.cover-play {
    isolation: isolate;
}

.cover-play::after {
    position: relative;
    content: "";
}

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

.movie-body {
    padding: 15px;
}

.movie-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-body h3 a:hover,
.rank-card h3 a:hover {
    color: var(--orange);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f3f4f6;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 4px 9px;
    color: #c2410c;
    font-size: 12px;
    background: #fff7ed;
}

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

.category-card {
    min-height: 190px;
    border-radius: 24px;
    padding: 28px;
    color: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.category-card.rose,
.category-hero.rose {
    background: linear-gradient(135deg, #fb7185, #db2777);
}

.category-card.blue,
.category-hero.blue {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
}

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

.category-card span {
    opacity: 0.86;
    font-weight: 800;
}

.category-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 26px;
}

.category-card p {
    margin: 0;
    opacity: 0.92;
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 104px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.rank-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #e5e7eb;
}

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

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

.cta-band {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
    padding: 72px 0;
}

.cta-inner {
    text-align: center;
}

.cta-inner h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
}

.cta-inner p {
    max-width: 680px;
    margin: 16px auto 28px;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

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

.footer-grid p,
.footer-grid ul {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
}

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

.footer-grid a:hover {
    color: var(--orange);
}

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

.plain-main {
    min-height: 70vh;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
    padding: 72px 0;
}

.small-hero {
    background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
}

.ranking-hero {
    background: linear-gradient(135deg, #111827, #ef4444, #f97316);
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-field {
    position: relative;
    flex: 1;
}

.search-field span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #9ca3af;
    transform: translateY(-50%);
}

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

.search-field input {
    padding-left: 40px;
}

.filter-panel select {
    max-width: 190px;
}

.search-field input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.filter-tabs button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #374151;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-tabs button.active,
.filter-tabs button:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.empty-state {
    display: none;
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

.empty-state.active {
    display: block;
}

.detail-main {
    background: #f9fafb;
}

.detail-hero {
    color: #ffffff;
    background: radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.68), transparent 35%), linear-gradient(135deg, #111827, #1f2937 52%, #ef4444);
    padding: 56px 0 70px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

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

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.player-card,
.story-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.player-card {
    overflow: hidden;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--orange);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.26));
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    font-size: 36px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.player-start.is-hidden {
    display: none;
}

.player-card h2,
.player-card p,
.story-card,
.side-card {
    padding: 24px;
}

.player-card h2 {
    margin: 0;
    padding-bottom: 0;
    font-size: 24px;
}

.player-card p {
    margin: 0;
    color: var(--muted);
}

.story-card {
    margin-top: 24px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.story-card p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 16px;
}

.story-card p:last-child {
    margin-bottom: 0;
}

.side-column {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 86px;
}

.side-card .rank-card,
.rank-list.compact .rank-card {
    grid-template-columns: 96px 1fr;
    padding: 0;
    box-shadow: none;
}

.side-card .rank-number,
.rank-list.compact .rank-number {
    display: none;
}

.side-card .rank-thumb,
.rank-list.compact .rank-thumb {
    aspect-ratio: 4 / 3;
}

.side-card .rank-card h3 {
    font-size: 14px;
}

.side-card .rank-card p {
    display: none;
}

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

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

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

    .hero-carousel {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .site-nav {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border-radius: 18px;
        padding: 12px;
        background: rgba(17, 24, 39, 0.94);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
        animation: fadeIn 0.22s ease both;
    }

    .nav-link {
        padding: 11px 12px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-height: 360px;
    }

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

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

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

    .home-rank-list {
        grid-template-columns: 1fr;
    }
}

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

    .hero-section,
    .page-hero,
    .detail-hero {
        padding: 42px 0;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-search,
    .filter-panel,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        border-radius: 24px;
    }

    .hero-search button {
        width: 100%;
    }

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

    .movie-body {
        padding: 12px;
    }

    .movie-body h3 {
        font-size: 15px;
    }

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

    .rank-card {
        grid-template-columns: auto 82px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .filter-panel select {
        max-width: none;
    }

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
