:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-light: #1e293b;
    --line: #1f2937;
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #38bdf8;
    --accent-deep: #0284c7;
    --accent-soft: rgba(56, 189, 248, 0.18);
    --danger: #ef4444;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 34rem),
        radial-gradient(circle at 80% 12%, rgba(59, 130, 246, 0.16), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    position: relative;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.42);
}

.logo-mark::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #ffffff;
    transform: translateX(2px);
}

.logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #7dd3fc, #3b82f6);
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #ffffff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
    transform: scaleX(1);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.96);
    color: var(--text);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 14px 0 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.68);
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-slide.is-active .hero-image {
    animation: slowZoom 10s ease forwards;
}

@keyframes slowZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.12);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.08) 44%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 88px 0 72px;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 750;
    margin-bottom: 18px;
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.hero-title,
.page-title,
.detail-title {
    margin: 0;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(42px, 6vw, 78px);
    max-width: 780px;
}

.hero-desc {
    width: min(690px, 100%);
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
    margin: 22px 0 0;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.hero-meta {
    margin: 26px 0 0;
}

.meta-pill,
.tag-pill {
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.64);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 650;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15px;
    padding: 12px 20px;
    font-weight: 780;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.28);
}

.btn-secondary,
.btn-ghost {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.22);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: clamp(20px, 6vw, 72px);
    bottom: 40px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.65);
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--accent);
}

.section {
    padding: 76px 0;
}

.section-alt {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.52));
}

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

.section-title {
    margin: 0;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--muted);
    margin: 8px 0 0;
    max-width: 700px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
    border-color: rgba(56, 189, 248, 0.38);
}

.card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.card-poster.wide {
    aspect-ratio: 16 / 10;
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0) 54%);
    opacity: 0.8;
}

.play-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.9);
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 780;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 13px;
}

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

.channel-card {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.channel-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease;
}

.channel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.24));
}

.channel-copy {
    position: relative;
    z-index: 2;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.channel-copy h2,
.channel-copy h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 850;
}

.channel-copy p {
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

.page-hero {
    padding: 72px 0 42px;
    background:
        radial-gradient(circle at 16% 30%, rgba(14, 165, 233, 0.18), transparent 24rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0));
}

.page-title {
    font-size: clamp(38px, 5vw, 62px);
}

.page-desc {
    margin: 18px 0 0;
    color: var(--muted-strong);
    width: min(780px, 100%);
    font-size: 18px;
}

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

.breadcrumbs a {
    color: #7dd3fc;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.15);
    margin: 28px 0;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    outline: 0;
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.92);
    padding: 12px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(56, 189, 248, 0.82);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.13);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(30, 41, 59, 0.92);
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: #7dd3fc;
    text-align: center;
}

.rank-poster {
    width: 92px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-wrap {
    padding: 42px 0 78px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 32px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.16);
    aspect-ratio: 16 / 9;
}

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

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: #020617;
}

.player-poster.is-hidden {
    display: none;
}

.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: blur(1px) saturate(1.05);
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.76));
}

.play-button {
    position: relative;
    z-index: 4;
    border: 0;
    border-radius: 999px;
    min-width: 168px;
    padding: 16px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 24px 52px rgba(14, 165, 233, 0.34);
    font-weight: 850;
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #ffffff;
}

.detail-panel {
    padding: 28px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.detail-title {
    font-size: clamp(32px, 4vw, 50px);
}

.detail-lead {
    color: #cbd5e1;
    margin: 18px 0 0;
    font-size: 17px;
}

.detail-meta {
    margin-top: 22px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.article-section {
    margin-top: 34px;
    display: grid;
    gap: 24px;
}

.text-panel {
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 28px;
}

.text-panel h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 850;
}

.text-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

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

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #020617, #01040d);
    padding: 44px 0;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
    gap: 30px;
}

.footer-title {
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 850;
    font-size: 19px;
}

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

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    font-size: 14px;
}

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

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

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

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

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

    .menu-button {
        display: inline-flex;
    }

    .header-inner {
        height: 66px;
    }

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

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 26px;
    }

    .section {
        padding: 58px 0;
    }

    .section-head {
        display: block;
    }

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

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

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

    .rank-extra {
        display: none;
    }

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

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

    .hero-title {
        font-size: 38px;
    }

    .hero-actions {
        display: grid;
    }

    .movie-grid,
    .channel-grid,
    .movie-grid.compact,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .card-poster {
        aspect-ratio: 16 / 10;
    }

    .detail-panel,
    .text-panel {
        padding: 22px;
    }
}
