:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-soft: #eff6ff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
    height: 68px;
    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;
    letter-spacing: 0.02em;
}

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

.logo-text {
    font-size: 19px;
}

.desktop-nav,
.mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    transition: 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--brand-dark);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 15%, rgba(96, 165, 250, 0.55), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.45), transparent 34%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 54%, #0f172a 100%);
}

.hero-inner {
    position: relative;
    padding: 72px 0 58px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 42px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: -70px -120px;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.38)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.12);
    opacity: 0.42;
    transform: scale(1.08);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero .hero-kicker {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(147, 197, 253, 0.34);
}

.hero h1,
.sub-hero h1,
.detail-info h1 {
    margin: 20px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p,
.sub-hero p,
.detail-info p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.tag-row span {
    background: #f1f5f9;
    color: #475569;
}

.hero-actions,
.sub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn.primary {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.32);
}

.btn.primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

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

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn.text {
    color: #bfdbfe;
    padding-inline: 6px;
}

.hero-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster:hover img {
    transform: scale(1.04);
}

.hero-poster span {
    position: absolute;
    left: 16px;
    bottom: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.hero-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin-top: 22px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: 0.2s ease;
}

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

.quick-search {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-box {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 0 14px;
}

.search-box span {
    color: var(--brand);
    font-weight: 900;
}

.search-box input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.filter-actions {
    display: flex;
    gap: 12px;
}

.filter-select {
    width: auto;
    min-width: 150px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 0 12px;
}

.content-section {
    padding: 58px 0;
}

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

.section-title-row h2 {
    margin: 10px 0 6px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title-row p {
    margin: 0;
    color: var(--muted);
}

.section-more,
.inline-link {
    color: var(--brand-dark);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.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);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.68));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.card-badge,
.card-type {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    left: 10px;
    top: 10px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
}

.card-type {
    right: 10px;
    bottom: 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span,
.card-meta a {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 3px 8px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.rank-info h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--brand-dark);
}

.card-body p {
    min-height: 56px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0f172a;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.78));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 2;
    color: #ffffff;
}

.category-tile strong {
    bottom: 42px;
    font-size: 22px;
}

.category-tile em {
    bottom: 18px;
    font-style: normal;
    color: #bfdbfe;
    font-weight: 700;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 20%, rgba(96, 165, 250, 0.52), transparent 28%),
        linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0f172a);
}

.sub-hero p {
    max-width: 760px;
}

.sub-hero .btn.ghost,
.category-hero .btn.ghost {
    color: #ffffff;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-covers img {
    width: 100%;
    height: 108px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 10px 0 8px;
    font-size: 26px;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--brand-dark);
    border-radius: 18px;
    background: var(--brand-soft);
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
}

.rank-cover img {
    width: 96px;
    height: 128px;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

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

.rank-score {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.rank-score strong {
    display: block;
    color: var(--brand-dark);
    font-size: 30px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: -50px;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.54)),
        var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.08);
    transform: scale(1.05);
}

.detail-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    align-items: start;
}

.player-card,
.article-panel {
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.player-card {
    padding: 14px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    cursor: pointer;
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
}

.player-start.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.42);
    font-size: 30px;
}

.player-start strong {
    max-width: 86%;
    font-size: 24px;
}

.player-start em {
    font-style: normal;
    color: #bfdbfe;
    font-weight: 800;
}

.article-panel {
    padding: 24px;
}

.article-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-panel h2:not(:first-child) {
    margin-top: 24px;
}

.article-panel p {
    margin: 0;
    color: #334155;
    text-align: justify;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.detail-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 24px;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

.copyright {
    margin-top: 32px;
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

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

    .hero-poster {
        width: min(360px, 100%);
    }
}

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.open {
        display: flex;
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner {
        padding-top: 42px;
    }

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

    .hero-slide {
        gap: 28px;
    }

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

    .filter-panel,
    .section-title-row,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

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

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

    .rank-row {
        grid-template-columns: 52px 76px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 1 / -1;
        text-align: left;
    }

    .rank-cover img {
        width: 76px;
        height: 104px;
    }

    .detail-layout {
        padding: 42px 0;
    }

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

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

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .hero-slider {
        min-height: 490px;
    }

    .hero-slide::before {
        filter: blur(8px) saturate(1.05);
    }

    .rank-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .rank-cover {
        display: none;
    }

    .player-start strong {
        font-size: 18px;
    }

    .play-icon {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }
}
