:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e5edf6;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #475569;
    font-weight: 600;
    transition: all 0.24s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eef6ff;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #0f172a;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 1.6s ease;
    transform: scale(1.04);
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.42), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66) 45%, rgba(15, 23, 42, 0.25));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 130px 0 110px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.62fr);
    gap: 48px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 30px;
    color: rgba(226, 232, 240, 0.94);
    font-size: 20px;
    line-height: 1.8;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: all 0.24s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
}

.btn-light {
    color: var(--blue);
    background: #fff;
}

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

.hero-panel {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.hero-panel img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.hero-panel-info {
    padding: 18px 6px 4px;
}

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

.hero-panel-info span {
    color: rgba(226, 232, 240, 0.88);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.24s ease;
}

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

.quick-search {
    position: relative;
    z-index: 8;
    width: min(1180px, calc(100% - 32px));
    margin: -44px auto 44px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 18px;
    color: var(--text);
    background: #f8fafc;
    outline: none;
}

.search-input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.section {
    padding: 42px 0;
}

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

.section-kicker {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.section-header h2,
.page-title h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p {
    max-width: 700px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 26px 58px rgba(15, 23, 42, 0.15);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.movie-cover img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.cover-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
    opacity: 0.78;
}

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    height: 34px;
    padding: 0 14px;
    background: rgba(37, 99, 235, 0.9);
}

.rank-badge {
    top: 14px;
    left: 14px;
    min-width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.26);
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
}

.movie-body h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.35;
}

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

.movie-desc {
    margin: 0 0 12px;
    color: #64748b;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #334155;
    background: #f1f5f9;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 26px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.2);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -48px;
    bottom: -60px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    max-width: 420px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.72;
}

.category-card span {
    position: relative;
    display: inline-flex;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

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

.rank-list,
.side-panel,
.text-panel,
.detail-card,
.player-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rank-row {
    display: grid;
    grid-template-columns: 58px 118px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-no {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

.rank-row img {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    object-fit: cover;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 850;
}

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

.rank-score {
    color: #2563eb;
    font-size: 18px;
    font-weight: 900;
}

.side-panel {
    padding: 20px;
    position: sticky;
    top: 94px;
}

.side-panel h2,
.side-panel h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

.side-stack {
    display: grid;
    gap: 14px;
}

.side-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.22s ease;
}

.side-item:hover {
    background: #f8fafc;
}

.side-item img {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
}

.side-info strong,
.side-info em {
    display: block;
}

.side-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.side-info em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.side-rank {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.page-hero {
    padding: 76px 0 34px;
    background:
        radial-gradient(circle at 82% 12%, rgba(6, 182, 212, 0.24), transparent 30%),
        linear-gradient(135deg, #f8fbff, #e8f2ff);
}

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

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.select-filter {
    height: 52px;
    min-width: 160px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.38)),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.34), transparent 30%);
}

.detail-hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 56px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 14px;
}

.detail-head h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-head p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(226, 232, 240, 0.92);
    font-size: 19px;
    line-height: 1.8;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.player-card {
    overflow: hidden;
}

.player-box {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.42);
    font-size: 28px;
    padding-left: 5px;
}

.player-title {
    padding: 18px 22px;
    border-top: 1px solid #111827;
}

.player-title h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.player-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.text-panel,
.detail-card {
    padding: 26px;
}

.text-panel h2,
.detail-card h2,
.detail-card h3 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 900;
}

.text-panel p,
.detail-card p {
    margin: 0 0 16px;
    color: #334155;
    line-height: 1.9;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.info-list strong {
    display: block;
    margin-top: 4px;
    font-weight: 850;
}

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

.empty-state {
    display: none;
    padding: 26px;
    border-radius: 24px;
    color: var(--muted);
    background: #fff;
    text-align: center;
}

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

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 28px;
}

.footer-inner strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 24px;
}

.footer-inner p {
    margin: 0;
    color: #94a3b8;
}

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

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

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

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 720px) {
    .header-inner {
        height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 74px;
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-18px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.24s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav a {
        border-radius: 16px;
    }

    .hero-section {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 88px;
        gap: 26px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .search-row,
    .toolbar,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .category-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-inner {
        padding-top: 48px;
    }

    .detail-poster {
        max-width: 220px;
    }

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