:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --cyan: #0891b2;
    --cyan-soft: #e0f7ff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --panel: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #334155;
    font-weight: 600;
    flex: 1;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--blue);
}

.nav-search,
.mobile-search,
.search-panel {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.search-panel input {
    width: 230px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nav-search button,
.mobile-search button,
.search-panel button,
.primary-button,
.ghost-button,
.ranking-copy a,
.section-more {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-panel button,
.primary-button,
.ranking-copy a {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
}

.nav-search button,
.mobile-search button {
    padding: 10px 16px;
}

.primary-button,
.ghost-button,
.ranking-copy a,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.ranking-copy a:hover,
.nav-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #0f172a;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 14px;
}

.lead-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(120deg, #0f1f55, #164e63);
}

.lead-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.lead-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lead-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-slide img.is-missing,
.poster-wrap img.is-missing,
.compact-cover img.is-missing,
.rank-cover img.is-missing,
.detail-poster img.is-missing {
    opacity: 0;
}

.lead-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.52), rgba(15, 118, 110, 0.08));
}

.lead-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    max-width: 1180px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.lead-content h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lead-content p {
    max-width: 650px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

.lead-meta,
.detail-meta,
.rank-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lead-meta span,
.detail-meta span,
.rank-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.lead-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.lead-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.lead-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.lead-prev {
    left: 26px;
}

.lead-next {
    right: 26px;
}

.lead-dots {
    position: absolute;
    left: 50%;
    bottom: 32px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.lead-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.lead-dots button.is-active {
    width: 34px;
    background: #fff;
}

.channel-strip,
.content-section,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.channel-strip {
    padding: 36px 0 20px;
}

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

.category-card,
.category-overview-card,
.movie-card,
.compact-card,
.rank-row,
.soft-panel,
.detail-hero,
.player-section,
.detail-text,
.filter-panel {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.category-card {
    display: grid;
    gap: 8px;
    min-height: 128px;
    border-radius: 24px;
    padding: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.compact-card:hover,
.rank-row:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.category-icon,
.category-overview-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-size: 20px;
    font-weight: 900;
}

.category-card strong {
    font-size: 20px;
}

.category-card small {
    color: var(--muted);
    line-height: 1.5;
}

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

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

.section-head h2,
.page-hero h1,
.detail-intro h1,
.ranking-copy h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.ranking-copy p,
.detail-intro p {
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--blue);
    background: #dbeafe;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #dbeafe, #67e8f9 35%, #1e3a8a 100%);
}

.movie-card.large .poster-wrap {
    aspect-ratio: 16 / 11;
}

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

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

.poster-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
    color: var(--blue-dark);
    background: #dbeafe;
}

.card-body h2,
.compact-card h2,
.rank-info h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 850;
}

.card-body h2 a:hover,
.compact-card h2 a:hover,
.rank-info h2 a:hover {
    color: var(--blue);
}

.card-body p,
.compact-card p,
.rank-info p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

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

.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.tag-row.wide span {
    color: #0f172a;
    background: #e0f2fe;
}

.ranking-band {
    width: min(1180px, calc(100% - 32px));
    margin: 50px auto;
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 26px;
    border-radius: 34px;
    padding: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 28px 65px rgba(37, 99, 235, 0.28);
}

.ranking-copy span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 850;
}

.ranking-copy h2,
.ranking-copy p {
    color: #fff;
}

.ranking-copy a {
    margin-top: 18px;
    color: var(--blue-dark);
    background: #fff;
}

.ranking-list,
.compact-grid {
    display: grid;
    gap: 14px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 18px;
    padding: 12px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ranking-band .compact-card {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.compact-cover {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #dbeafe, #67e8f9 40%, #1e3a8a 100%);
}

.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-band .compact-card h2,
.ranking-band .compact-card p {
    color: #fff;
}

.rank-number {
    display: inline-flex;
    margin-bottom: 4px;
    color: #fff;
    font-weight: 900;
    opacity: 0.8;
}

.soft-panel {
    border-radius: 32px;
    padding: 34px;
}

.page-main {
    padding: 34px 0 64px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 28px;
    border-radius: 34px;
    padding: 54px;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #0369a1 55%, #0891b2);
    box-shadow: var(--shadow);
}

.page-hero.compact {
    padding: 42px;
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
}

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

.category-overview-card {
    border-radius: 26px;
    padding: 26px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-overview-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.8;
}

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

.sample-links a {
    color: var(--blue);
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--blue);
}

.filter-panel {
    border-radius: 30px;
    padding: 24px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #334155;
    background: #e2e8f0;
    cursor: pointer;
    font-weight: 800;
}

.filter-buttons button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 112px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    padding: 16px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-index {
    color: var(--blue);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    width: 112px;
    height: 84px;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 20%, #dbeafe, #67e8f9 40%, #1e3a8a 100%);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin-top: 0;
}

.detail-main {
    padding: 28px 0 64px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 32px;
    align-items: center;
    border-radius: 34px;
    padding: 32px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    background: radial-gradient(circle at 30% 20%, #dbeafe, #67e8f9 40%, #1e3a8a 100%);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-intro h1 {
    margin: 18px 0 16px;
}

.detail-intro p {
    font-size: 18px;
}

.player-section,
.detail-text {
    margin-top: 28px;
    border-radius: 32px;
    padding: 28px;
}

.player-section h2,
.detail-text h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.68), rgba(30, 64, 175, 0.3));
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.play-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    padding-left: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.34);
    font-size: 32px;
}

.player-stage.is-playing .play-layer {
    opacity: 0;
    pointer-events: none;
}

.detail-text p {
    color: #334155;
    line-height: 1.95;
    margin: 0 0 16px;
    font-size: 17px;
}

.related-section {
    width: 100%;
}

.search-panel {
    margin-top: 24px;
}

.search-panel input {
    width: min(520px, 100%);
}

.search-panel button {
    padding: 11px 22px;
}

.search-results {
    display: grid;
    gap: 18px;
}

.search-card {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.search-card img {
    width: 116px;
    height: 88px;
    object-fit: cover;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 20%, #dbeafe, #67e8f9 40%, #1e3a8a 100%);
}

.search-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .compact-grid,
    .three-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-band,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .nav-shell {
        height: 62px;
    }

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

    .lead-slider {
        height: 560px;
    }

    .lead-content h1 {
        font-size: 40px;
    }

    .lead-content p {
        font-size: 17px;
    }

    .lead-arrow {
        display: none;
    }

    .lead-actions,
    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-grid,
    .four-cols,
    .three-cols,
    .category-overview-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .ranking-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-text,
    .soft-panel,
    .filter-panel {
        padding: 22px;
        border-radius: 24px;
    }

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

    .rank-index {
        text-align: left;
    }

    .rank-cover,
    .search-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .mobile-search {
        align-items: stretch;
    }

    .mobile-search input {
        width: 100%;
    }
}
