
:root {
    color-scheme: light;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-cyan: #06b6d4;
    --color-red: #ef4444;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #f8fafc;
    --color-line: #e5e7eb;
    --shadow-card: 0 22px 55px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 35px rgba(37, 99, 235, 0.12);
    --radius-large: 28px;
    --radius-card: 20px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    color: var(--color-text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.nav-shell {
    max-width: 1220px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a,
.mobile-links a {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-links a:hover,
.mobile-links a.is-active {
    color: var(--color-primary);
    background: #eff6ff;
}

.nav-search,
.mobile-search,
.hero-search,
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: #ffffff;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 210px;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nav-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-search input {
    flex: 1;
}

.mobile-links {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.58), rgba(6, 182, 212, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.38), transparent 30%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    min-height: 650px;
    margin: 0 auto;
    padding: 90px 24px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    gap: 70px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: #bfdbfe;
}

.hero-copy h1 {
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

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

.primary-button,
.ghost-button,
.section-link,
.text-link,
.ranking-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    color: var(--color-primary);
    background: #ffffff;
    padding: 14px 24px;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.25);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 14px 24px;
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-link:hover,
.ranking-action:hover {
    transform: translateY(-2px);
}

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

.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span,
.detail-hero .tag-row span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
    position: relative;
    min-height: 500px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0891b2);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    opacity: 0.96;
}

.hero-poster::after,
.poster-frame::after,
.detail-poster::after,
.ranking-thumb::after,
.category-thumbs::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.5));
    pointer-events: none;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(18px);
}

.hero-controls button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    font-size: 24px;
}

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

.hero-dots .hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots .hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.quick-channels {
    margin-top: -40px;
    position: relative;
    z-index: 8;
    padding: 0 24px;
}

.quick-shell {
    max-width: 1220px;
    margin: 0 auto;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
}

.quick-shell h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
    margin: 10px 0;
    letter-spacing: -0.035em;
}

.quick-shell p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.channel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.channel-chips a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--color-primary);
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease;
}

.channel-chips a:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}

.section,
.section-narrow {
    max-width: 1220px;
    margin: 0 auto;
    padding: 72px 24px;
}

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

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-link {
    color: var(--color-primary);
    background: #eff6ff;
    padding: 12px 18px;
}

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

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

.movie-card {
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius-card);
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 14px 36px 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: #bfdbfe;
    box-shadow: var(--shadow-card);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame img,
.ranking-thumb img,
.category-thumbs img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

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

.poster-shine {
    position: absolute;
    inset: auto 12px 12px 12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
}

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

.movie-kicker {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.movie-card h3,
.ranking-body h3 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p,
.ranking-body p {
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0 0 14px;
    font-size: 14px;
}

.text-link {
    margin-top: 14px;
    color: var(--color-primary);
    font-size: 14px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
}

.movie-card-horizontal .poster-frame {
    height: 100%;
    min-height: 210px;
}

.gradient-section,
.channel-strip:nth-of-type(even) {
    max-width: none;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.gradient-section > *,
.channel-strip > * {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 62px 86px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-rank {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), #f97316);
    font-size: 18px;
    font-weight: 900;
}

.ranking-thumb {
    position: relative;
    width: 86px;
    height: 116px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.ranking-body h3,
.ranking-body p {
    max-width: 760px;
}

.ranking-action {
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.22), transparent 28%), radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 26%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin: 0 auto;
    padding: 82px 24px;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 62px);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-bar {
    align-items: stretch;
}

.filter-bar input {
    flex: 1;
}

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

.category-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card > a {
    display: block;
}

.category-thumbs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.category-thumbs img {
    min-width: 100%;
}

.category-body {
    padding: 22px;
}

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

.category-body p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.detail-hero {
    min-height: 560px;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.56), rgba(8, 145, 178, 0.36)), var(--detail-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1220px;
    margin: 0 auto;
    padding: 72px 24px 86px;
}

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

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 480px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

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

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

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.26);
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    cursor: pointer;
}

.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    font-size: 34px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-card.is-playing .player-play {
    opacity: 0;
    pointer-events: none;
}

.player-play:hover {
    transform: translate(-50%, -50%) scale(1.07);
}

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

.content-card {
    border-radius: var(--radius-card);
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.92);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.meta-card div {
    border-radius: 16px;
    background: var(--color-soft);
    padding: 16px;
}

.meta-card dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.meta-card dd {
    margin: 0;
    font-weight: 800;
}

.hero-search {
    max-width: 680px;
    margin-top: 28px;
}

.hero-search input {
    flex: 1;
    min-height: 54px;
}

.hero-search button {
    min-height: 54px;
    min-width: 110px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
    margin-top: 30px;
}

.footer-shell {
    max-width: 1220px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr;
    gap: 46px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

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

.footer-shell h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-shell a:not(.footer-brand) {
    display: block;
    color: #cbd5e1;
    margin: 10px 0;
}

.footer-shell a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    padding: 20px 24px 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 38px;
    }

    .hero-poster {
        min-height: 430px;
    }

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

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

    .nav-toggle {
        display: inline-flex;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 72px 24px 120px;
    }

    .hero-poster {
        display: none;
    }

    .quick-shell,
    .latest-list,
    .detail-layout,
    .detail-content,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-action {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .detail-poster {
        max-width: 320px;
        min-height: 430px;
    }

    .meta-card dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding: 0 16px;
    }

    .brand,
    .footer-brand {
        font-size: 18px;
    }

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

    .quick-channels,
    .section,
    .section-narrow,
    .page-hero-inner,
    .detail-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

    .movie-card-horizontal {
        grid-template-columns: 124px minmax(0, 1fr);
    }

    .movie-card-horizontal .poster-frame {
        min-height: 180px;
    }

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

    .filter-bar,
    .hero-search {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .ranking-thumb {
        display: none;
    }

    .ranking-action {
        grid-column: 2 / -1;
    }

    .player-play {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .meta-card dl {
        grid-template-columns: 1fr;
    }
}
