:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --violet: #7c3aed;
    --dark: #0f172a;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.12), transparent 30rem),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.13), transparent 32rem),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.header-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937 45%, #0e7490);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
}

.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-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.28)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.85), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 800;
    font-size: 14px;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: #e5e7eb;
    font-size: 18px;
    line-height: 1.8;
}

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

.button-primary,
.button-secondary,
.button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--cyan));
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.button-light {
    color: #111827;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
    transform: translateY(-2px);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-panel-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent);
}

.hero-panel-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}

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

.hero-dot {
    width: 32px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

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

.section {
    padding: 70px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.62);
}

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

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

.section-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: var(--soft-shadow);
}

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

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -44px;
    bottom: -46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 14px;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    outline: none;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 56%);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.rank-mark {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
}

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

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

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

.movie-card h3 a:hover {
    color: var(--blue);
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    font-size: 18px;
    font-weight: 900;
}

.rank-row img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 18px;
}

.rank-row h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 32px;
    align-items: start;
    padding: 34px;
    margin-bottom: 44px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2));
}

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

.player-button {
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--blue), var(--cyan));
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
    font-size: 34px;
}

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

.detail-info .lead {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--soft-shadow);
}

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

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.article-card,
.side-card {
    padding: 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.article-card + .article-card {
    margin-top: 22px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

.related-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.related-item img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.related-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.empty-result {
    display: none;
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--soft-shadow);
}

.empty-result.is-visible {
    display: block;
}

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

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    padding: 42px 0;
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

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

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

    .nav-toggle {
        display: block;
    }

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

    .hero-panel {
        max-width: 420px;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .page-shell,
    .hero-content,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 24px, 1200px);
    }

    .hero-section,
    .hero-content {
        min-height: 660px;
    }

    .hero-content {
        padding: 52px 0 80px;
        gap: 28px;
    }

    .hero-panel img {
        aspect-ratio: 16 / 10;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

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

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

    .movie-card p {
        min-height: 0;
    }

    .detail-hero,
    .article-card,
    .side-card {
        padding: 18px;
        border-radius: 24px;
    }

    .rank-row {
        grid-template-columns: 46px 68px minmax(0, 1fr);
        gap: 12px;
    }

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

    .rank-row img {
        width: 68px;
        height: 92px;
        border-radius: 14px;
    }
}
