:root {
    color-scheme: light;
    --bg: #f7fbff;
    --paper: #ffffff;
    --paper-soft: #f2f8ff;
    --ink: #111827;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.10);
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --pink: #db2777;
    --blue: #2563eb;
    --purple: #7c3aed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    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:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.14), transparent 34rem),
        radial-gradient(circle at 90% 12%, rgba(219, 39, 119, 0.12), transparent 30rem),
        var(--bg);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.07);
}

.nav-wrap {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 23px;
    background: linear-gradient(100deg, var(--cyan-dark), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.32);
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #334155;
    font-weight: 700;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--cyan-dark);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.nav-search input {
    width: 230px;
    border: 0;
    outline: 0;
    padding: 11px 14px 11px 18px;
    background: transparent;
}

.nav-search button,
.hero-search button,
.primary-button,
.ghost-button,
.play-action,
.filter-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-search button,
.hero-search button,
.primary-button,
.play-action {
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    box-shadow: 0 16px 30px rgba(6, 182, 212, 0.22);
}

.nav-search button {
    padding: 11px 18px;
    border-radius: 0;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
}

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

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.play-action:hover,
.filter-button:hover {
    transform: translateY(-2px);
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 20px 20px;
    background: #fff;
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    font-weight: 800;
    color: #334155;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #0e7490 48%, #831843);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background:
        radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.26), transparent 28rem),
        radial-gradient(circle at 82% 18%, rgba(244, 114, 182, 0.26), transparent 28rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.72));
    z-index: 1;
}

.hero::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.88));
    z-index: 2;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 40px;
    padding: 88px 0 72px;
}

.hero-copy {
    max-width: 700px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #22d3ee;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 900;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(100deg, #67e8f9, #f9a8d4, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-search {
    display: flex;
    width: min(610px, 100%);
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: #fff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.hero-search button {
    padding: 0 25px;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(22px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.hero-feature {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    align-items: center;
}

.hero-feature img {
    aspect-ratio: 2 / 3;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.hero-feature h2 {
    margin: 8px 0;
    font-size: 26px;
    line-height: 1.18;
}

.hero-feature p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.meta-pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #0e7490;
    background: rgba(34, 211, 238, 0.12);
}

.hero-feature .hero-tags span {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.12);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
    width: 30px;
    background: #22d3ee;
}

main {
    display: block;
}

.section,
.page-section {
    padding: 54px 0;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-link {
    font-weight: 900;
    color: var(--cyan-dark);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.poster-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(15, 23, 42, 0.80);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(6px);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.card-body h3 a:hover {
    color: var(--cyan-dark);
}

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

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

.channel-card {
    min-height: 168px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 15rem),
        linear-gradient(135deg, var(--cyan-dark), var(--blue) 56%, var(--pink));
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.channel-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.channel-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 92px 1fr;
    gap: 16px;
    align-items: center;
    min-height: 120px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 92px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.page-hero {
    padding: 78px 0 42px;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(244, 114, 182, 0.24), transparent 34rem),
        linear-gradient(135deg, #0f172a, #164e63 52%, #831843);
}

.page-hero h1 {
    margin: 12px 0 14px;
    max-width: 920px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
    line-height: 1.8;
}

.filter-bar {
    position: sticky;
    top: 74px;
    z-index: 20;
    padding: 14px 0;
    background: rgba(247, 251, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.filter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-input {
    flex: 1;
    min-width: 240px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    outline: 0;
    background: #fff;
}

.filter-button {
    min-height: 42px;
    padding: 0 16px;
    color: #0f172a;
    background: #fff;
    border: 1px solid var(--line);
}

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

.detail-hero {
    padding: 48px 0;
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.24), transparent 32rem),
        radial-gradient(circle at top right, rgba(244, 114, 182, 0.22), transparent 30rem),
        linear-gradient(135deg, #0f172a, #123047 54%, #831843);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: end;
    margin-top: 24px;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

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

.detail-copy p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.player-wrap {
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.video-frame {
    position: relative;
    background: #020617;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.74));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.article-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.article-panel p {
    margin: 0 0 22px;
    color: #475569;
    font-size: 17px;
    line-height: 1.95;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--paper-soft);
}

.side-list img {
    width: 70px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    margin-bottom: 4px;
}

.side-list span {
    color: var(--muted);
    font-size: 13px;
}

.horizontal-card {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.horizontal-card .poster-link img {
    height: 100%;
    min-height: 160px;
}

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #172554 54%, #831843);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-grid p {
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-grid a {
    display: block;
    margin: 9px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 18px;
    text-align: center;
    color: #94a3b8;
}

.empty-state {
    display: none;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
}

.empty-state.is-visible {
    display: block;
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-panel.is-open {
        display: block;
    }

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

    .hero-panel {
        max-width: 560px;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .nav-wrap {
        height: 66px;
    }

    .brand {
        font-size: 20px;
    }

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

    .hero-content {
        padding: 56px 0;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-search {
        border-radius: 26px;
        flex-direction: column;
    }

    .hero-search button {
        min-height: 44px;
    }

    .hero-feature {
        grid-template-columns: 110px 1fr;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .horizontal-card {
        grid-template-columns: 120px 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 16px;
    }

    .rank-item img {
        width: 74px;
    }

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

    .article-panel,
    .side-panel {
        padding: 20px;
        border-radius: 22px;
    }
}

@media (max-width: 430px) {
    .grid,
    .channel-grid {
        grid-template-columns: 1fr;
    }
}
