:root {
    --page: #f7f8fb;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --blue: #2563eb;
    --red: #ef4444;
    --orange: #f97316;
    --purple: #7c3aed;
    --green: #16a34a;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.top-rainbow {
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #2563eb, #7c3aed);
}

.nav-wrap {
    max-width: 1240px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, #dc2626, #f97316 45%, #7c3aed);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 26px;
    line-height: 1;
    background: linear-gradient(90deg, #dc2626, #f97316, #16a34a, #0891b2, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #334155;
    background: #f1f5f9;
    border: 0;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 22px 20px;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
}

.mobile-category-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 14px;
}

.search-shell {
    position: relative;
    width: min(420px, 100%);
}

.search-input,
.filter-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 430px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 80;
}

.search-panel.is-open {
    display: grid;
    gap: 8px;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
}

.search-result:hover {
    background: #f8fafc;
}

.search-result img {
    width: 54px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result strong {
    display: block;
    line-height: 1.3;
}

.search-result span {
    color: var(--muted);
    font-size: 13px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide img.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.50) 55%, rgba(15, 23, 42, 0.32)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), transparent 55%);
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 78px 22px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 48px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(38px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

.hero-content p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316, #7c3aed);
    box-shadow: 0 16px 35px rgba(239, 68, 68, 0.28);
}

.btn-light {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 16px 35px rgba(255, 255, 255, 0.20);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-card {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-card-meta span,
.tag-row span,
.meta-list span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #475569;
    background: #eef2ff;
    font-size: 12px;
    font-weight: 800;
}

.hero-card-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 42px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.40);
    cursor: pointer;
}

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

main {
    min-height: 70vh;
}

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 22px;
}

.section-soft {
    background: #fff;
}

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

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

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

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 50px;
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title:hover {
    color: var(--blue);
}

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

.card-meta,
.meta-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

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

.category-tile {
    min-height: 160px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316 48%, #7c3aed);
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.18);
    transition: transform 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #06b6d4 52%, #16a34a);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #7c3aed, #ec4899 48%, #ef4444);
}

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

.category-tile strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.category-tile span {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 0;
}

.pill {
    padding: 10px 15px;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
}

.pill:hover,
.pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 54px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-cover img {
    width: 72px;
    height: 100px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-number {
    color: #ef4444;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.rank-info a {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.rank-info a:hover {
    color: var(--blue);
}

.rank-info p {
    margin: 6px 0 10px;
    color: var(--muted);
}

.page-hero {
    background:
        radial-gradient(circle at 8% 0%, rgba(239, 68, 68, 0.18), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
        linear-gradient(180deg, #fff, #f7f8fb);
}

.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 22px 46px;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 820px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 30px 0;
}

.select-filter {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #334155;
    background: #fff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 28px;
    align-items: start;
}

.player-box {
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

.player-stage {
    position: relative;
    background: #020617;
}

.player-stage video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #fff;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

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

.play-circle {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316, #7c3aed);
    box-shadow: 0 22px 55px rgba(239, 68, 68, 0.34);
    font-size: 34px;
}

.player-caption {
    padding: 18px 20px 20px;
    color: #cbd5e1;
}

.player-caption strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.info-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}

.info-panel img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.info-body {
    padding: 20px;
}

.info-body h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
}

.article-block {
    margin-top: 26px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #fff;
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.article-block p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 17px;
}

.site-footer {
    margin-top: 50px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 38px;
}

.footer-inner p {
    max-width: 720px;
    margin: 14px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 20px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

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

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

    .hero-card {
        display: none;
    }
}

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

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .brand-text {
        font-size: 22px;
    }

    .hero-carousel {
        min-height: 580px;
    }

    .hero-content {
        padding-top: 56px;
    }

    .grid,
    .grid-three,
    .grid-six,
    .category-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section-head,
    .toolbar,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .section {
        padding: 46px 16px;
    }

    .page-hero-inner {
        padding: 48px 16px 34px;
    }

    .rank-item {
        grid-template-columns: 58px 42px 1fr;
        gap: 12px;
    }

    .rank-cover img {
        width: 58px;
        height: 84px;
    }

    .rank-number {
        font-size: 23px;
    }
}

@media (max-width: 520px) {
    .grid,
    .grid-three,
    .grid-six,
    .category-band {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
