:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --green-500: #22c55e;
    --text: #1f2937;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: #67e8f9;
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #dbeafe;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    transition: 0.2s ease;
    white-space: nowrap;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 16px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: var(--slate-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s 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;
}

.hero-bg::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.28), transparent 30%), radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.3), transparent 26%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.65fr;
    gap: 48px;
    align-items: center;
    min-height: 640px;
    padding: 88px 0 120px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a5f3fc;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-tags span {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.26);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-radius: 32px;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0891b2);
}

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

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

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

.search-panel,
.filter-bar {
    position: relative;
    z-index: 9;
    display: grid;
    grid-template-columns: 1fr 160px 180px auto;
    gap: 12px;
    margin-top: -46px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-panel input,
.search-panel select,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.search-results {
    grid-column: 1 / -1;
    display: none;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.search-results.is-visible {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.search-result-item {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.content-section,
.split-section,
.ranking-list,
.detail-main,
.overview-stack {
    padding-top: 64px;
}

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

.section-title.compact {
    align-items: flex-start;
}

.section-title h2 {
    display: inline-flex;
    margin: 0 0 6px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.section-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    place-items: center;
    border-radius: 13px;
    color: transparent;
    vertical-align: middle;
}

.section-icon.blue {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.section-icon.orange {
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.section-icon.green {
    background: linear-gradient(135deg, var(--green-500), #14b8a6);
}

.section-icon.cyan {
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0891b2);
}

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

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

.play-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 32px;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-mask {
    opacity: 1;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3 {
    height: 44px;
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
}

.movie-card p {
    height: 42px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-block,
.category-overview-card,
.article-card,
.player-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-block.cyan,
.category-overview-card:nth-child(even) {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
    transition: 0.2s ease;
}

.rank-item:hover {
    background: #e0f2fe;
}

.rank-no {
    color: var(--orange-500);
    font-size: 22px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e293b, #0891b2);
}

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

.rank-info em {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.category-cloud a {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.category-cloud strong,
.category-cloud span {
    display: block;
}

.category-cloud span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

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

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

.small-hero .container {
    padding-bottom: 64px;
}

.page-hero h1 {
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.category-stats span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.filter-bar {
    grid-template-columns: 1fr 160px 180px;
    margin-top: -32px;
}

.category-overview-card + .category-overview-card {
    margin-top: 32px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 110px 1fr 180px;
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
    position: relative;
}

.ranking-cover img {
    width: 110px;
    height: 154px;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e293b, #0891b2);
}

.ranking-cover span {
    position: absolute;
    top: -10px;
    left: -10px;
    padding: 8px 10px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
    font-weight: 900;
}

.ranking-main h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.ranking-main .hero-tags span,
.detail-main .hero-tags span {
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.35);
    background: #f1f5f9;
}

.ranking-score {
    text-align: right;
}

.ranking-score strong,
.ranking-score span,
.ranking-score em {
    display: block;
}

.ranking-score strong {
    color: var(--blue-600);
    font-size: 30px;
}

.ranking-score span,
.ranking-score em {
    color: var(--muted);
    font-style: normal;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: end;
}

.detail-poster {
    width: 320px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    background: linear-gradient(135deg, #1e293b, #0891b2);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.detail-copy h1 {
    font-size: clamp(36px, 5vw, 64px);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 5px;
    color: #a5f3fc;
    font-size: 12px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(14, 116, 144, 0.68));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
    font-size: 28px;
}

.play-overlay strong {
    font-size: 24px;
}

.play-overlay em {
    color: #bae6fd;
    font-style: normal;
}

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

.article-card {
    margin-top: 28px;
}

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

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

.related-section {
    padding-top: 32px;
}

.site-footer {
    margin-top: 76px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 54px 0;
}

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

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

    .split-section,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .hero,
    .hero-content {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-content,
    .detail-layout {
        grid-template-columns: 1fr;
        padding: 64px 0 92px;
    }

    .hero-poster,
    .detail-poster {
        width: min(280px, 100%);
        margin: 0 auto;
    }

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

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

    .split-section,
    .footer-grid,
    .detail-meta-grid,
    .category-cloud,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .ranking-score {
        text-align: left;
    }

    .section-title,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        display: none;
    }
}
