:root {
    --bg: #f7fafc;
    --text: #0f172a;
    --muted: #64748b;
    --deep: #020617;
    --panel: #ffffff;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --slate: #1e293b;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 44px rgba(2, 6, 23, 0.28);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.36);
    font-size: 15px;
}

.logo-text {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.nav-link {
    color: #cbd5e1;
    padding: 10px 13px;
    border-radius: 11px;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(51, 65, 85, 0.72);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.75);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-nav-inner {
    display: grid;
    gap: 8px;
    padding: 14px 0 18px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.16) 100%);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, #f7fafc 0%, rgba(247, 250, 252, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 80px 0 150px;
}

.hero-copy {
    width: min(680px, 100%);
    color: #fff;
}

.hero-eyebrow,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.32);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 18px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 19px;
}

.hero-copy .hero-feature-title {
    margin-top: -4px;
    font-size: clamp(24px, 3vw, 38px);
    letter-spacing: -0.02em;
    color: #67e8f9;
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary,
.section-more,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 13px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-primary {
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 14px 34px rgba(6, 182, 212, 0.34);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.42);
}

.btn-secondary {
    padding: 12px 20px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(16px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--cyan);
}

.hero-strip {
    position: absolute;
    left: 50%;
    bottom: 74px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
}

.hero-mini {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    color: #fff;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(226, 232, 240, 0.16);
    backdrop-filter: blur(16px);
}

.hero-mini img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-mini span {
    display: block;
    color: #cbd5e1;
    font-size: 12px;
}

.hero-mini strong {
    display: -webkit-box;
    margin-top: 2px;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section {
    padding: 68px 0;
}

.section.dark {
    color: #fff;
    background: linear-gradient(135deg, #1e293b, #020617);
}

.section.light {
    background: #fff;
}

.section.tinted {
    background: linear-gradient(135deg, #ecfeff 0%, #f8fafc 52%, #eef2ff 100%);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.dark .section-heading p {
    color: #94a3b8;
}

.section-more {
    color: var(--cyan-dark);
    font-size: 15px;
}

.dark .section-more {
    color: #67e8f9;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-box {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.poster-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.02) 58%);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(6, 182, 212, 0.94);
    box-shadow: 0 10px 26px rgba(6, 182, 212, 0.36);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.movie-meta span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    color: #0e7490;
    background: #ecfeff;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h2,
.movie-card h3,
.wide-card h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #0f172a;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card h2,
.movie-card h3 {
    font-size: 18px;
}

.movie-card p,
.wide-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

.horizontal-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scrollbar-width: thin;
}

.horizontal-list .movie-card {
    flex: 0 0 310px;
}

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

.wide-card > a {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    overflow: hidden;
    padding: 12px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card > a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.wide-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
    aspect-ratio: 16 / 10;
}

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

.rank-number {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.wide-content {
    align-self: center;
}

.wide-card h3 {
    font-size: 22px;
}

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

.category-card {
    display: block;
    min-height: 220px;
    padding: 26px;
    border-radius: 22px;
    color: #fff;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.36), transparent 30%), linear-gradient(135deg, #1e293b, #020617);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
}

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

.category-card .mini-links span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.page-hero {
    padding: 72px 0;
    color: #fff;
    background: radial-gradient(circle at 24% 16%, rgba(34, 211, 238, 0.26), transparent 32%), linear-gradient(135deg, #0f172a, #020617);
}

.page-hero h1 {
    max-width: 850px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-box input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.search-box input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.search-box button {
    padding: 0 22px;
    border: 0;
    color: #fff;
    background: var(--cyan-dark);
    cursor: pointer;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button,
.filter-chips a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    cursor: pointer;
}

.filter-chips button.is-active,
.filter-chips button:hover,
.filter-chips a:hover {
    color: #fff;
    background: #0891b2;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #67e8f9;
}

.detail-head {
    padding: 42px 0 54px;
    color: #fff;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.26), transparent 30%), linear-gradient(135deg, #0f172a, #020617);
}

.detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 26px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.44);
    aspect-ratio: 16 / 10;
    background: #0f172a;
}

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

.detail-info h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.detail-info .lead {
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: 19px;
}

.detail-info .tag-row span {
    color: #cffafe;
    background: rgba(6, 182, 212, 0.16);
}

.player-section {
    padding: 54px 0 34px;
    background: #020617;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.42);
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.28));
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-ring {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 20px 54px rgba(6, 182, 212, 0.42);
    font-size: 34px;
}

.detail-body {
    padding: 56px 0;
}

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

.article-panel,
.side-panel {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.article-panel {
    padding: 30px;
}

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

.article-panel p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
}

.side-panel {
    padding: 20px;
    align-self: start;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 11px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.mini-card img {
    width: 78px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-card span {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.empty-filter {
    display: none;
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    color: #64748b;
    background: #fff;
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.footer-grid p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #94a3b8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-grid ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-mini:nth-child(n+3) {
        display: none;
    }

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

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

    .detail-cover {
        max-width: 520px;
    }
}

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

    .header-inner {
        min-height: 64px;
    }

    .logo-text {
        font-size: 19px;
    }

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

    .hero-content {
        align-items: flex-start;
        padding: 60px 0 230px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-strip {
        bottom: 78px;
        grid-template-columns: 1fr;
    }

    .hero-mini:nth-child(n+2) {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

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

    .grid-cards,
    .grid-cards.three,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .wide-card > a {
        grid-template-columns: 1fr;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .player-section {
        padding-top: 28px;
    }

    .article-panel {
        padding: 22px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
