:root {
    --bg: #f4f7fb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #dbeafe;
    --accent: #f97316;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff 50%, #f8fafc);
}

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.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.logo {
    font-size: 22px;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link {
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-soft);
    border: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #334155;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 680px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.35), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #111827);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5));
}

.hero-inner {
    position: relative;
    padding: 74px 0 56px;
}

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

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 54px;
    min-height: 500px;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.2) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.2);
    transform: scale(1.05);
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.eyebrow.dark {
    background: var(--brand-soft);
    color: var(--brand);
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hero p,
.page-hero p,
.detail-info p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin: 22px 0 0;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #eff6ff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-list span {
    color: #1d4ed8;
    background: #eff6ff;
}

.tag-list.small span {
    min-height: 24px;
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    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: #ffffff;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.32);
}

.btn.glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn.glass.dark {
    color: var(--brand);
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.18);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 38px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.48));
}

.hero-control-row {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 32px;
    line-height: 1;
}

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

.hero-dot {
    width: 30px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

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

.intro-strip,
.page-section {
    margin-top: 46px;
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    padding: 30px;
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.intro-strip h2,
.section-head h2,
.content-card h2 {
    margin: 8px 0 10px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.intro-strip p,
.section-head p,
.category-card p,
.movie-info p,
.compact-card p,
.rank-content p,
.content-card p {
    color: var(--muted);
}

.quick-search,
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-search input,
.search-box input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    background: #f8fafc;
    outline: none;
}

.quick-search button,
.search-box button,
.filter-pill,
.footer-bottom button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
}

.quick-search button,
.search-box button {
    min-width: 112px;
    height: 52px;
    color: #ffffff;
    background: var(--brand);
}

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

.section-head h2 {
    margin-top: 0;
}

.section-head p {
    margin: 0;
}

.section-link {
    color: var(--brand);
    font-weight: 900;
}

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

.movie-card,
.compact-card,
.category-card,
.rank-card,
.content-card {
    background: var(--paper);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.compact-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    transition: transform 0.35s ease;
}

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

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 13px;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.movie-info h2,
.compact-card h2,
.rank-content h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-info h2 a:hover,
.compact-card h2 a:hover,
.rank-content h2 a:hover {
    color: var(--brand);
}

.movie-info p,
.compact-card p,
.rank-content p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-cover,
.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #e2e8f0;
}

.compact-cover {
    aspect-ratio: 3 / 4;
}

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

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

.category-card {
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card.large {
    min-height: 240px;
}

.category-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), #7c3aed);
}

.category-main span {
    font-size: 22px;
    font-weight: 900;
}

.category-main strong {
    font-size: 14px;
    opacity: 0.92;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    display: inline-flex;
    padding: 6px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #1e40af);
}

.page-hero.slim {
    padding: 64px 0;
}

.page-hero.slim p {
    color: rgba(255, 255, 255, 0.78);
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-pill {
    min-height: 38px;
    padding: 0 14px;
    color: #334155;
    background: #f1f5f9;
}

.filter-pill.active,
.filter-pill:hover {
    color: #ffffff;
    background: var(--brand);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 74px 94px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #facc15);
    font-weight: 950;
    font-size: 22px;
}

.rank-cover {
    aspect-ratio: 3 / 4;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    font-weight: 900;
}

.detail-hero {
    padding: 58px 0;
    color: #ffffff;
    background: radial-gradient(circle at 82% 22%, rgba(96, 165, 250, 0.32), transparent 24%), linear-gradient(135deg, #0f172a, #172554 58%, #1e293b);
}

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

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 66px rgba(0, 0, 0, 0.34);
}

.detail-info .crumb {
    margin-bottom: 16px;
}

.detail-info h1 {
    font-size: clamp(36px, 5vw, 62px);
}

.detail-tags {
    margin-top: 20px;
}

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

.player-video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.26), rgba(2, 6, 23, 0.68));
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-wrap.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
    gap: 22px;
    margin-top: 46px;
}

.content-card {
    padding: 24px;
}

.content-card h2 {
    font-size: 24px;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.meta-card dt {
    color: #64748b;
    font-weight: 800;
}

.meta-card dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 64px;
    padding: 46px 0 24px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.6fr) minmax(260px, 1fr);
    gap: 34px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 460px;
    color: #94a3b8;
}

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

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

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

.footer-links a:hover,
.footer-bottom button:hover {
    color: #60a5fa;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom button {
    color: #cbd5e1;
    background: transparent;
}

.is-hidden {
    display: none !important;
}

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

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

    .mobile-nav.is-open {
        display: block;
    }

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

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

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

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

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

    .logo {
        font-size: 18px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: 42px 0 36px;
    }

    .hero-slider,
    .hero-slide {
        min-height: 0;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .intro-strip,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search button,
    .search-box button {
        width: 100%;
    }

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-info h2 {
        font-size: 16px;
    }

    .compact-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .rank-card {
        grid-template-columns: 50px 72px minmax(0, 1fr);
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .rank-action {
        grid-column: 2 / -1;
        width: max-content;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid,
    .category-grid.big {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
    }
}
