html {
    scroll-behavior: smooth;
}

:root {
    --sky: #38bdf8;
    --sky-dark: #0284c7;
    --blue: #2563eb;
    --rose: #fb7185;
    --amber: #f59e0b;
    --ink: #172033;
    --muted: #667085;
    --soft: #f0f9ff;
    --line: #e5edf5;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

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(180deg, #f8fcff 0%, #ffffff 40%, #f0f9ff 100%);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
    font-size: 16px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link {
    color: #475467;
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-dark);
    background: #e0f2fe;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 999px;
    padding: 11px 15px;
    outline: none;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.header-search button,
.primary-btn,
.rank-action {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.ghost-btn,
.section-more,
.text-link {
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--sky-dark);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    text-decoration: none;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #e0f2fe;
    color: var(--sky-dark);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    padding: 10px 20px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    background: #08111f;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.9s ease;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.22)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.78));
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 420px);
    align-items: center;
    gap: 56px;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 14px;
    color: #7dd3fc;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--sky-dark);
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(1.5deg);
}

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

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(12px);
    font-size: 34px;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.alt-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(180deg, #ffffff, #eef9ff);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    color: inherit;
    text-decoration: none;
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #dff6ff, #eff6ff);
}

.large-card .poster-frame {
    aspect-ratio: 16 / 9;
}

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

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.66));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.card-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.top-left {
    top: 12px;
    left: 12px;
}

.top-right {
    top: 12px;
    right: 12px;
}

.play-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.88);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-dark);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: 0.25s ease;
}

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

.card-content {
    padding: 18px;
}

.card-content h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-content h2 a,
.rank-info h2 a,
.category-overview-body h2 a {
    color: inherit;
    text-decoration: none;
}

.card-content h2 a:hover,
.rank-info h2 a:hover,
.category-overview-body h2 a:hover {
    color: var(--sky-dark);
}

.card-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.card-meta a,
.detail-meta a {
    color: var(--sky-dark);
    text-decoration: none;
    font-weight: 800;
}

.tag-row {
    margin-top: 13px;
}

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

.category-tile,
.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    color: #ffffff;
    text-decoration: none;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.72)), var(--tile-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.category-tile strong,
.category-cover span {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.22), transparent 34%), linear-gradient(135deg, #08111f, #0f2b4a);
}

.compact-hero {
    padding: 84px 24px;
}

.compact-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.channel-hero {
    min-height: 390px;
    padding: 78px 24px;
    display: flex;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.42)), var(--channel-image);
    background-size: cover;
    background-position: center;
}

.channel-copy {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px 180px;
    gap: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

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

.category-overview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.category-overview-card .category-cover {
    border-radius: 0;
    min-height: 220px;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

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

.sample-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.sample-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--sky-dark);
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

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

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-hero {
    min-height: 650px;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.3)), var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.20), transparent 34%);
}

.detail-hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 70px;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.74);
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.45);
}

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

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

.detail-meta {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-copy .primary-btn {
    display: inline-flex;
    margin-top: 28px;
}

.detail-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.player-card,
.article-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.25), rgba(2, 6, 23, 0.74));
    cursor: pointer;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky-dark);
    background: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

.play-overlay small {
    color: rgba(255, 255, 255, 0.74);
}

.two-column-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.article-card {
    padding: 28px;
}

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

.article-card p {
    margin: 0;
    color: #475467;
    line-height: 1.9;
}

.site-footer {
    margin-top: 40px;
    padding: 48px 24px 28px;
    background: linear-gradient(180deg, #ffffff, #e0f2fe);
    border-top: 1px solid var(--line);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    font-size: 26px;
    font-weight: 900;
    color: var(--sky-dark);
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-links a {
    color: #475467;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--sky-dark);
}

.footer-bottom {
    max-width: 1280px;
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #64748b;
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-search {
        margin-left: auto;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: auto;
        min-height: 68px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

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

    .brand-subtitle {
        display: none;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-search input {
        flex: 1;
        min-width: 0;
    }

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

    .hero-content {
        padding: 54px 18px 76px;
        gap: 28px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-arrow {
        display: none;
    }

    .content-section {
        padding: 40px 16px;
    }

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

    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .two-column-detail,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 48px 96px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / -1;
        text-align: center;
    }

    .detail-hero-inner {
        padding: 28px 16px 50px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
