:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --muted: #e2e8f0;
    --line: #dbe3ee;
    --text: #0f172a;
    --sub: #64748b;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --blue: #2563eb;
    --blue-2: #1d4ed8;
    --gold: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

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

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

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

.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.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark,
.footer-brand span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), #0f172a);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

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

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

.main-nav a {
    padding: 10px 14px;
    color: #334155;
    font-weight: 650;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #1e293b;
}

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

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

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(1.15);
    transform: scale(1.08);
}

.hero-overlay,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 30%, rgba(37, 99, 235, 0.36), transparent 32%),
        linear-gradient(110deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.44) 100%);
}

.hero::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.1fr 420px;
    align-items: center;
    gap: 72px;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
    max-width: 680px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 19px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #1e3a8a;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero .tag,
.detail-info .tag {
    color: #e0f2fe;
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(191, 219, 254, 0.22);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 800;
    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(--blue), var(--blue-2));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.4);
}

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

.hero-strip {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

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

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

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

.hero-mini {
    width: 132px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(12px);
}

.hero-mini img {
    width: 34px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-mini span {
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section {
    padding: 72px 0;
}

.section-light {
    background: #ffffff;
}

.section-muted {
    background: #f1f5f9;
}

.section-dark {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-head p {
    margin: 0;
    color: var(--sub);
}

.section-dark .section-head p {
    color: #cbd5e1;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

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

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

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

.play-chip,
.rank-badge {
    position: absolute;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), #ef4444);
}

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

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

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 7px;
    color: #94a3b8;
}

.movie-card h3,
.ranking-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-overview-card h2 a:hover {
    color: var(--blue);
}

.movie-card p,
.ranking-item p,
.category-overview-card p {
    margin: 0 0 14px;
    color: var(--sub);
    font-size: 14px;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #ffffff;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    color: #dbeafe;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.section-light .ranking-item {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.ranking-cover img {
    width: 94px;
    height: 132px;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--blue);
    border-radius: 999px;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.page-hero {
    padding: 96px 0 76px;
}

.small-hero {
    padding: 82px 0 62px;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.filter-panel,
.page-search {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.filter-panel input,
.filter-panel select,
.page-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.filter-panel select option {
    color: #0f172a;
}

.filter-panel input::placeholder,
.page-search input::placeholder {
    color: #cbd5e1;
}

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

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

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

.category-collage img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.detail-hero {
    min-height: 590px;
}

.detail-head {
    position: relative;
    z-index: 2;
    padding: 44px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    width: 300px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

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

.detail-meta span {
    padding: 7px 11px;
    color: #dbeafe;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-info .btn {
    margin-top: 28px;
}

.player-section {
    padding-bottom: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

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

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

.player-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-size: 34px;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.45);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
}

.detail-article,
.detail-side-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.detail-side-card dl {
    margin: 0;
}

.detail-side-card dt {
    margin-top: 13px;
    color: var(--sub);
    font-size: 13px;
    font-weight: 800;
}

.detail-side-card dd {
    margin: 2px 0 0;
    color: #0f172a;
    font-weight: 750;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

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

.site-footer p {
    margin: 0;
    max-width: 520px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero-content,
    .detail-grid,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

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

    .hero-content {
        padding-top: 60px;
        padding-bottom: 120px;
    }

    .hero-strip {
        display: block;
    }

    .hero-minis {
        display: none;
    }

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

    .section-head {
        display: block;
    }

    .card-grid,
    .featured-grid,
    .compact-grid,
    .search-grid,
    .category-list,
    .category-grid,
    .overview-grid,
    .ranking-list,
    .ranking-page-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-panel,
    .page-search {
        flex-direction: column;
    }

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

    .ranking-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-poster {
        width: min(300px, 100%);
    }
}
