:root {
    --primary: #06b6d4;
    --secondary: #2563eb;
    --accent: #14b8a6;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.12);
    --soft: #f8fafc;
    --dark: #020617;
    --card: #ffffff;
    --radius: 24px;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.12), transparent 28rem),
        radial-gradient(circle at 95% 12%, rgba(37, 99, 235, 0.10), transparent 30rem),
        #f7fbff;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96), rgba(20, 184, 166, 0.96));
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    min-width: max-content;
}

.brand__icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand em {
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    opacity: 0.88;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.nav-link {
    font-weight: 700;
    opacity: 0.92;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fef08a;
}

.top-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 6px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.top-search input,
.hero-search input {
    width: 230px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
}

.top-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

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

.mobile-panel a {
    display: block;
    color: #fff;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
    color: #fff;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0.36)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12) 45%, rgba(2, 6, 23, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 360px;
    align-items: center;
    gap: 58px;
    padding: 86px 0 110px;
}

.hero-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    max-width: 820px;
}

.hero-copy p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-tags,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 22px 0 28px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(6, 182, 212, 0.82);
}

.hero-actions,
.detail-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.34);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 2 / 2.85;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 48px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: #06b6d4;
}

.hero-channel-bar {
    position: absolute;
    left: 50%;
    bottom: 108px;
    z-index: 4;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 32px));
    padding: 14px;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-channel-bar span,
.hero-channel-bar a {
    color: #fff;
    font-weight: 800;
    font-size: 13px;
}

.hero-channel-bar a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.section {
    padding: 58px 0;
}

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

.section-title h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.section-title a {
    color: var(--secondary);
    font-weight: 900;
}

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

.movie-card {
    border-radius: 22px;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    transition: 0.25s ease;
}

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

.card-poster {
    display: block;
    position: relative;
    aspect-ratio: 2 / 2.85;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.score {
    position: absolute;
    right: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-weight: 900;
}

.card-body {
    padding: 14px;
}

.card-tags {
    margin-bottom: 10px;
}

.card-tags span {
    color: #0f172a;
    background: #cffafe;
}

.card-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.card-body p {
    min-height: 62px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

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

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 900;
}

.rank-head a {
    color: var(--secondary);
    font-size: 13px;
}

.rank-row {
    display: grid;
    grid-template-columns: 38px 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.rank-no {
    color: var(--secondary);
    font-weight: 1000;
}

.rank-row img {
    width: 48px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 900;
}

.rank-meta {
    grid-column: 3 / 4;
    color: var(--muted);
    font-size: 12px;
}

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

.category-card,
.channel-card {
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    padding: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.category-card:hover,
.channel-card:hover {
    transform: translateY(-4px);
}

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

.category-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 13px;
}

.site-footer {
    margin-top: 50px;
    padding: 42px 0 26px;
    color: #cbd5e1;
    background: #020617;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-grid p {
    max-width: 580px;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    color: #e0f2fe;
    font-weight: 800;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    color: #64748b;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 28px;
    padding: 46px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.24), transparent 16rem),
        linear-gradient(135deg, #0891b2, #2563eb 52%, #0f766e);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.9;
}

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

.channel-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
}

.channel-cover {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 2 / 2.85;
}

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

.channel-card h2 {
    margin: 8px 0 8px;
}

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

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-weight: 800;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0 0 18px;
    color: #64748b;
    font-weight: 800;
}

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

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-row span {
    min-width: 44px;
    color: var(--muted);
    font-weight: 900;
}

.filter-row button {
    border: 0;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: #0f172a;
    background: #e2e8f0;
    font-weight: 800;
}

.filter-row button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.local-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
}

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

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.ranking-list .rank-row {
    grid-template-columns: 46px 54px minmax(0, 1fr);
}

.search-result-panel {
    min-height: 420px;
}

.movie-detail {
    background: #f7fbff;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.1);
    opacity: 0.62;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.58)), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 54px;
}

.detail-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
}

.lead {
    max-width: 800px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.9;
}

.detail-tags {
    margin: 22px 0 28px;
}

.detail-main {
    padding: 36px 0 0;
}

.player-card,
.detail-article,
.related-section {
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-card {
    padding: 14px;
}

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

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.08));
    cursor: pointer;
}

.player-mask span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    padding-left: 6px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
}

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

.detail-article {
    margin-top: 28px;
    padding: 34px;
}

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-article p {
    color: #334155;
    font-size: 16px;
    line-height: 2;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.info-table div {
    padding: 16px;
    border-radius: 18px;
    background: #f1f5f9;
}

.info-table span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.info-table strong {
    font-size: 15px;
}

.related-section {
    margin-top: 28px;
    padding: 28px;
}

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

.compact-card .card-body p {
    min-height: 42px;
}

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

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

    .top-search input {
        width: 190px;
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 860px) {
    .site-header__inner {
        height: 68px;
    }

    .top-search {
        display: none;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 54px;
        align-items: start;
    }

    .hero-poster {
        width: min(230px, 72vw);
        transform: none;
    }

    .hero-channel-bar {
        bottom: 116px;
        border-radius: 24px;
    }

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

    .category-cards,
    .channel-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

    .channel-card,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .channel-cover,
    .detail-poster {
        width: min(220px, 72vw);
    }

    .page-hero {
        padding: 30px;
    }

    .hero-search {
        align-items: stretch;
        border-radius: 24px;
        flex-direction: column;
    }

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

    .info-table {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .brand strong {
        font-size: 18px;
    }

    .brand em {
        font-size: 11px;
    }

    .brand__icon {
        width: 36px;
        height: 36px;
    }

    .hero-copy h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-copy p,
    .lead {
        font-size: 15px;
    }

    .movie-grid,
    .feature-grid,
    .category-movie-grid,
    .related-grid {
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

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

    .card-body p {
        display: none;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}
