:root {
    --brand-red: #dc2626;
    --brand-orange: #ea580c;
    --brand-yellow: #facc15;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --panel: #ffffff;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    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(--ink);
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.nav-bar {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
    font-size: 16px;
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-links a,
.mobile-panel a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
    color: var(--brand-red);
}

.global-search {
    position: relative;
    width: min(260px, 28vw);
}

.global-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.global-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 60;
}

.search-panel.active {
    display: block;
}

.search-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.search-item:last-child {
    border-bottom: 0;
}

.search-item:hover {
    background: #fff7ed;
}

.search-item img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.search-item span {
    display: block;
    font-weight: 750;
    line-height: 1.35;
}

.search-item small,
.empty-result {
    color: var(--muted);
    font-size: 13px;
}

.empty-result {
    padding: 14px 16px;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #f9fafb;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #374151;
}

.mobile-panel {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.mobile-panel a {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
}

.mobile-panel a:hover {
    background: #fff7ed;
}

.mobile-search {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 46%, #ea580c 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 999px;
    right: -140px;
    top: -140px;
    background: rgba(250, 204, 21, 0.26);
    filter: blur(18px);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 520px;
    margin: 0 auto;
    padding: 62px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero-title {
    color: #ffffff;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.06em;
    margin: 0 0 22px;
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(90deg, #fef08a, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin: 0 0 28px;
}

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

.button-primary,
.button-soft,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.button-soft {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px);
}

.button-ghost {
    color: var(--brand-red);
    background: #fff7ed;
}

.button-primary:hover,
.button-soft:hover,
.button-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.16);
}

.hero-showcase {
    position: relative;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 22px;
    align-items: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px rgba(70, 18, 18, 0.38);
    opacity: 0;
    transform: translateX(26px) scale(0.96);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-poster {
    aspect-ratio: 3 / 4;
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.hero-info {
    color: #ffffff;
    padding: 10px 2px 10px 0;
}

.hero-info small {
    display: inline-flex;
    margin-bottom: 10px;
    color: #fef08a;
    font-weight: 800;
}

.hero-info h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.hero-info p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-controls {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    display: flex;
    gap: 9px;
}

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

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

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

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-kicker {
    color: var(--brand-red);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
    line-height: 1.14;
}

.section-head p,
.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.movie-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 28px 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: rgba(220, 38, 38, 0.18);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f3f4f6;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.rank-badge,
.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
}

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

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.movie-card h2,
.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

.movie-card h2 a:hover,
.movie-card h3 a:hover {
    color: var(--brand-red);
}

.movie-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 64px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span,
.filter-tag {
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 750;
}

.feature-band {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.feature-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border-radius: 28px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.08));
}

.feature-content {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.feature-content h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.feature-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-row img {
    width: 74px;
    height: 98px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.rank-row h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.category-tile {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.tile-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 160px;
    background: #f3f4f6;
}

.tile-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-content {
    padding: 18px;
}

.tile-content h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.tile-content p {
    margin: 0;
    color: var(--muted);
}

.page-title {
    padding: 54px 0 26px;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    align-items: center;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-tag {
    border: 0;
    cursor: pointer;
}

.filter-tag.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.detail-hero {
    background: linear-gradient(135deg, #111827, #7f1d1d 54%, #ea580c);
    color: #ffffff;
    overflow: hidden;
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
    padding: 54px 0;
}

.detail-layout::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: 10%;
    top: -90px;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.18);
    filter: blur(12px);
}

.detail-poster,
.detail-info {
    position: relative;
    z-index: 1;
}

.detail-poster img {
    width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.32);
    background: rgba(255, 255, 255, 0.18);
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-line {
    max-width: 840px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 750;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.player-section {
    padding: 46px 0 26px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.18));
    cursor: pointer;
    z-index: 3;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.36);
    font-size: 32px;
    transition: transform 0.2s ease;
}

.player-overlay:hover span {
    transform: scale(1.06);
}

.player-shell.player-active .player-overlay {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    padding: 26px 0 58px;
}

.article-panel,
.side-panel {
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 26px;
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.article-panel p {
    margin: 0 0 22px;
    color: #374151;
    font-size: 17px;
}

.article-panel p:last-child {
    margin-bottom: 0;
}

.side-panel .compact-card {
    margin-bottom: 12px;
}

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

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

.compact-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.compact-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 13px;
    background: #f3f4f6;
}

.compact-card span {
    font-weight: 800;
    line-height: 1.3;
}

.compact-card small {
    color: var(--muted);
}

.compact-card .rank-number {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
}

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

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

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

.footer-inner p {
    margin: 0;
    max-width: 420px;
    color: #9ca3af;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .nav-links,
    .nav-bar > .global-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-inner,
    .feature-band,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 420px;
    }

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

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

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

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .brand-text {
        font-size: 19px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 42px 20px 56px;
        gap: 30px;
    }

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

    .hero-slide {
        grid-template-columns: 130px 1fr;
        gap: 14px;
        padding: 14px;
        border-radius: 24px;
    }

    .hero-showcase {
        min-height: 330px;
    }

    .hero-info h2 {
        font-size: 22px;
    }

    .hero-info p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
    }

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

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

    .section-head {
        display: block;
    }

    .detail-layout {
        display: block;
    }

    .detail-poster img {
        width: 170px;
        margin-bottom: 22px;
    }

    .detail-info h1 {
        font-size: 34px;
    }

    .player-shell {
        border-radius: 20px;
    }

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .rank-row {
        grid-template-columns: 34px 64px 1fr;
    }

    .rank-row img {
        width: 64px;
        height: 86px;
    }
}
