:root {
    color-scheme: light;
    --page-bg: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --brand: #ef4444;
    --brand-dark: #dc2626;
    --brand-warm: #f97316;
    --gold: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--ink);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.32);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand {
    font-size: 1.3rem;
    margin-right: auto;
}

.brand span:last-child,
.footer-brand {
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-warm));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: #f87171;
}

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

.nav-search input,
.mobile-panel input,
.quick-search-strip input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(148, 163, 184, 0.35);
    outline: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder,
.quick-search-strip input::placeholder,
.filter-panel input::placeholder {
    color: #94a3b8;
}

.nav-search input:focus,
.mobile-panel input:focus,
.quick-search-strip input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.nav-search button,
.mobile-panel button,
.quick-search-strip button,
.primary-button,
.ghost-button,
.section-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-panel button,
.quick-search-strip button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-warm));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.nav-search button:hover,
.mobile-panel button:hover,
.quick-search-strip button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.36);
}

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

.mobile-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 16px 22px 22px;
    background: #111827;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-panel input {
    width: 100%;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    color: #e2e8f0;
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    transform: scale(1.02);
}

.hero-overlay,
.detail-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 75% 35%, rgba(249, 115, 22, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(127, 29, 29, 0.78) 48%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.98) 0%, transparent 45%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 22px 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.eyebrow,
.section-kicker,
.card-badge,
.rank-badge {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.eyebrow {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-warm));
    padding: 8px 15px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.8rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-meta,
.detail-meta,
.card-meta,
.card-score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-meta {
    color: #f8fafc;
    margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.card-score span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(10px);
}

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

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

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

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

.quick-search-strip,
.content-section,
.footer-grid,
.footer-bottom,
.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.quick-search-strip {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    margin-top: -48px;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 28px;
    padding-top: 30px;
    padding-bottom: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-strip h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

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

.quick-search-strip form {
    display: flex;
    gap: 10px;
}

.quick-search-strip input {
    flex: 1;
    background: #0f172a;
}

.content-section {
    padding-top: 70px;
    padding-bottom: 20px;
}

.warm-section {
    max-width: none;
    margin-top: 40px;
    padding-top: 58px;
    padding-bottom: 58px;
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

.warm-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-kicker {
    color: var(--brand);
    background: #fee2e2;
    padding: 5px 12px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}

.section-heading h2,
.category-overview-head h2,
.article-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-link {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid #fecaca;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.12);
}

.section-link:hover {
    transform: translateY(-2px);
    background: #fff1f2;
}

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

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

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

.movie-card {
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fecaca;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.card-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.94);
    padding: 6px 11px;
    font-size: 0.76rem;
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #111827;
    background: #fbbf24;
    min-width: 36px;
    height: 36px;
    justify-content: center;
    font-size: 1rem;
}

.card-content {
    padding: 16px;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card-content h3 a:hover,
.rank-info h3 a:hover,
.article-card a:hover {
    color: var(--brand-dark);
}

.card-line {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-score {
    color: var(--muted);
    font-size: 0.82rem;
}

.card-score {
    justify-content: space-between;
    margin-top: 10px;
    color: #b45309;
    font-weight: 800;
}

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

.category-tile {
    min-height: 160px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #0f172a, #7f1d1d 55%, #ea580c);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.category-tile span {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-tile p {
    margin: 0;
    color: #fee2e2;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 122px 1fr;
    gap: 18px;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.rank-info {
    min-width: 0;
}

.rank-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rank-topline strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: #fbbf24;
    border-radius: 50%;
}

.rank-topline span {
    color: var(--brand-dark);
    font-weight: 800;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.rank-info p {
    margin: 0 0 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #7f1d1d 52%, #ea580c);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 74px 22px;
}

.page-hero > div {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e2e8f0;
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #fecaca;
    margin-bottom: 16px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(160px, 0.55fr));
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    background: #ffffff;
    color: var(--ink);
    border-color: #cbd5e1;
}

.empty-state {
    padding: 24px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
}

.category-overview-list {
    display: grid;
    gap: 34px;
}

.category-overview-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.86);
}

.category-overview-head p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.detail-shell {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.36);
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.detail-copy h1 {
    max-width: 870px;
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 5vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: 1.2rem;
}

.detail-meta {
    margin-bottom: 20px;
    color: #f8fafc;
}

.tag-list {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

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

.player-section {
    background: #020617;
    padding: 48px 22px;
}

.player-shell {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(0, 0, 0, 0.66));
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-warm));
    box-shadow: 0 18px 46px rgba(239, 68, 68, 0.42);
    font-size: 2.4rem;
    padding-left: 5px;
}

.play-overlay strong {
    font-size: 1.15rem;
}

.play-overlay[hidden] {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.article-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.article-card p {
    margin: 14px 0 0;
    color: #334155;
    font-size: 1.03rem;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: #111827;
}

.site-footer {
    margin-top: 70px;
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding-top: 52px;
    padding-bottom: 36px;
}

.footer-brand {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 12px 0 0;
    max-width: 520px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.05rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 22px;
    padding-bottom: 28px;
    color: #94a3b8;
}

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

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

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

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

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

    .quick-search-strip,
    .rank-grid,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

@media (max-width: 640px) {
    .nav-shell,
    .quick-search-strip,
    .content-section,
    .footer-grid,
    .footer-bottom,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 78vh;
    }

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .quick-search-strip {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .quick-search-strip form,
    .mobile-panel form {
        flex-direction: column;
    }

    .filter-panel,
    .movie-grid,
    .small-grid,
    .catalog-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 94px 1fr;
        gap: 12px;
        padding: 10px;
    }

    .rank-info p {
        -webkit-line-clamp: 3;
    }

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

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

    .player-section {
        padding-left: 12px;
        padding-right: 12px;
    }
}
