:root {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --soft: #e5e7eb;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --deep: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
    font-size: 14px;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.nav-menu a,
.mobile-panel a {
    color: #374151;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-menu a:hover,
.mobile-panel a:hover {
    color: var(--brand);
    background: #eff6ff;
}

.nav-dropdown {
    position: relative;
}

.nav-drop-btn {
    border: 0;
    cursor: pointer;
    background: transparent;
    font-family: inherit;
}

.nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    display: none;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-menu {
    display: grid;
    gap: 4px;
}

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

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

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.65s ease, transform 1.1s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide .hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 18% 40%, rgba(37, 99, 235, 0.52), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
    color: #ffffff;
    padding: 64px 0;
}

.hero-kicker,
.page-kicker,
.type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker,
.page-kicker {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.82);
    padding: 7px 13px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.hero-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.86);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    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(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.10);
}

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

.hero-dot {
    width: 36px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    opacity: 0.45;
    background: #ffffff;
    cursor: pointer;
}

.hero-dot.active {
    opacity: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.content-section,
.page-section,
.detail-layout,
.category-shell,
.search-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.content-section.alt {
    width: 100%;
    padding: 54px max(16px, calc((100% - 1180px) / 2));
    background: #ffffff;
}

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

.section-head h2,
.page-title-row h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title-row p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px 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(-5px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    height: 258px;
    overflow: hidden;
    background: #e5e7eb;
}

.movie-card-compact .poster-link {
    height: 210px;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 60%);
    transition: opacity 0.25s ease;
}

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

.type-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    padding: 5px 9px;
}

.rank-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.play-float {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

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

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

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 13px;
}

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

.category-card {
    min-height: 148px;
    padding: 22px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.10)),
        #ffffff;
    border: 1px solid #dbeafe;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.40);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

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

.page-hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.20), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border-bottom: 1px solid #dbeafe;
}

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

.page-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.search-input,
.select-input {
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.search-input {
    flex: 1 1 320px;
}

.select-input {
    flex: 0 1 180px;
    background: #ffffff;
}

.search-input:focus,
.select-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.detail-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.40), transparent 28%),
        linear-gradient(135deg, #020617, #111827 58%, #0f172a);
    color: #ffffff;
    padding: 48px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 34px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.42);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.20));
}

.player-cover.hidden {
    display: none;
}

.player-btn {
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.player-btn:hover {
    transform: scale(1.06);
}

.detail-copy {
    padding: 8px 0;
}

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

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

.detail-copy h1 {
    color: #ffffff;
}

.detail-lead {
    margin: 16px 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.08);
}

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

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 13px;
    font-weight: 700;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.34);
}

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

.article-section {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 8px;
}

.article-card {
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

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

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.ranking-no {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ranking-cover {
    width: 110px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-info h3 {
    margin: 0 0 6px;
}

.ranking-info p {
    margin: 0;
    color: var(--muted);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    max-width: 560px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    gap: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

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

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

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

    .mobile-toggle {
        display: block;
    }

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

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

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

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

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

@media (max-width: 720px) {
    .brand-text {
        font-size: 18px;
    }

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

    .hero-copy {
        padding: 44px 0 86px;
    }

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

    .poster-link {
        height: 210px;
    }

    .section-head,
    .page-title-row,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .ranking-row {
        grid-template-columns: 46px 86px minmax(0, 1fr);
    }

    .ranking-row .btn {
        grid-column: 1 / -1;
    }

    .ranking-cover {
        width: 86px;
        height: 58px;
    }
}

@media (max-width: 460px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .mobile-panel.open {
        grid-template-columns: 1fr;
    }

    .poster-link {
        height: 260px;
    }
}
