:root {
    --site-blue: #2563eb;
    --site-blue-dark: #1e40af;
    --site-sky: #0ea5e9;
    --site-ink: #111827;
    --site-muted: #64748b;
    --site-line: #e5e7eb;
    --site-card: #ffffff;
    --site-bg: #f5f7fb;
    --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    --site-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 12% 6%, rgba(37, 99, 235, 0.14), transparent 32%),
        radial-gradient(circle at 92% 8%, rgba(14, 165, 233, 0.14), transparent 28%),
        linear-gradient(180deg, #eef6ff 0%, #f8fafc 42%, #f5f7fb 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-blue-dark));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 13px;
    color: #334155;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--site-blue);
    background: #eff6ff;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-sky));
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    content: "";
    background: #1f2937;
    border-radius: 999px;
}

.mobile-toggle span::before {
    transform: translateY(-6px);
}

.mobile-toggle span::after {
    transform: translateY(4px);
}

.mobile-nav {
    display: none;
    padding: 0 0 14px;
}

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

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

.mobile-nav-grid a {
    padding: 12px 14px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: #ffffff;
    font-weight: 800;
}

.hero {
    position: relative;
    padding: 34px 0 28px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-radius: 34px;
    background: #0f172a;
    box-shadow: var(--site-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    padding: 54px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.26) 100%),
        radial-gradient(circle at 15% 18%, rgba(59, 130, 246, 0.40), transparent 38%);
}

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

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
}

.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-desc {
    max-width: 680px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.8;
}

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

.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(191, 219, 254, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.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: 12px 18px;
    font-weight: 900;
    border-radius: 999px;
    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(--site-blue), var(--site-sky));
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

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

.btn-ghost {
    color: var(--site-blue);
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.hero-poster-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-poster-card {
    width: min(420px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: rgba(15, 23, 42, 0.56);
}

.hero-poster-caption {
    padding: 16px;
    color: #ffffff;
}

.hero-poster-caption strong {
    display: block;
    font-size: 18px;
}

.hero-poster-caption span {
    display: block;
    margin-top: 4px;
    color: #bfdbfe;
    font-size: 13px;
}

.hero-dots {
    position: absolute;
    right: 36px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

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

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

.quick-search {
    margin-top: -4px;
    padding-bottom: 18px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: #0f172a;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #ffffff;
    outline: none;
}

.search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.section {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.12);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(145deg, #dbeafe, #f8fafc);
}

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

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

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    backdrop-filter: blur(8px);
}

.movie-card-content {
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-title a:hover {
    color: var(--site-blue);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
}

.movie-meta span {
    padding: 4px 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-desc {
    display: -webkit-box;
    min-height: 60px;
    margin: 11px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--site-blue);
    font-size: 13px;
    font-weight: 950;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.category-card::after {
    position: absolute;
    right: -34px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    content: "";
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
}

.category-card h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.category-card p {
    margin: 12px 0 18px;
    color: var(--site-muted);
    line-height: 1.7;
}

.category-card span {
    color: var(--site-blue);
    font-weight: 950;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--site-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    font-weight: 950;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-sky));
}

.rank-item img {
    width: 88px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: #dbeafe;
}

.rank-copy h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
}

.rank-copy p {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-copy .rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.rank-copy .rank-meta span {
    padding: 3px 7px;
    color: #1e40af;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: #dbeafe;
}

.page-hero {
    padding: 42px 0 20px;
}

.page-hero-box {
    padding: 40px;
    color: #ffffff;
    border-radius: 32px;
    background:
        radial-gradient(circle at 14% 10%, rgba(125, 211, 252, 0.32), transparent 34%),
        linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0ea5e9);
    box-shadow: var(--site-shadow);
}

.page-hero-box h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.page-hero-box p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #dbeafe;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 800;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-select {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #ffffff;
    outline: none;
}

.movie-detail {
    padding: 36px 0;
}

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

.detail-poster {
    position: sticky;
    top: 98px;
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.detail-poster-info {
    padding: 18px;
}

.detail-title {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.detail-one-line {
    margin: 16px 0 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    color: #1e40af;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
}

.content-card {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--site-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
}

.content-card p {
    margin: 0;
    color: #334155;
    line-height: 1.95;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-list span {
    padding: 7px 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: #f1f5f9;
}

.player-card {
    overflow: hidden;
    margin-top: 26px;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
}

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 16px 24px;
    color: #ffffff;
    font-weight: 950;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-sky));
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.32);
    cursor: pointer;
}

.play-button::before {
    display: inline-block;
    width: 0;
    height: 0;
    content: "";
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #ffffff;
}

.player-status {
    padding: 14px 18px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 44px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
}

.footer-desc,
.footer-copy {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.empty-state {
    display: none;
    padding: 26px;
    color: var(--site-muted);
    border: 1px dashed #bfdbfe;
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
}

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

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 42px;
    }

    .hero-poster-wrap {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .header-search {
        display: none;
    }

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

    .hero-shell {
        min-height: 560px;
        border-radius: 26px;
    }

    .hero-slide {
        padding: 32px;
    }

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

    .category-grid,
    .ranking-list,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        position: static;
        max-width: 360px;
    }
}

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

    .header-inner {
        min-height: 68px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-shell {
        min-height: 560px;
    }

    .hero-slide {
        padding: 24px;
    }

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

    .btn {
        width: 100%;
    }

    .hero-dots {
        right: 22px;
        bottom: 20px;
    }

    .movie-grid,
    .related-grid {
        gap: 12px;
    }

    .movie-card-content {
        padding: 12px;
    }

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

    .rank-item img {
        width: 72px;
    }

    .page-hero-box {
        padding: 28px;
    }

    .content-card {
        padding: 20px;
    }
}
