:root {
    --amber: #d97706;
    --amber-soft: #fff7ed;
    --rose: #e11d48;
    --rose-soft: #fff1f2;
    --sky: #0284c7;
    --sky-soft: #f0f9ff;
    --teal: #0f766e;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.1);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.24), transparent 28rem),
        radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.2), transparent 26rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #f0f9ff 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 1.38rem;
    background: linear-gradient(90deg, var(--amber), var(--rose), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--amber), var(--rose), var(--sky));
    box-shadow: 0 12px 26px rgba(225, 29, 72, 0.25);
}

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

.nav-link {
    color: #374151;
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--rose);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #374151;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-nav .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    margin-top: 8px;
}

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

.hero {
    min-height: 760px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #111827;
}

.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-bg,
.hero-bg img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    object-fit: cover;
    filter: saturate(1.12) contrast(1.05);
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(120, 53, 15, 0.9), rgba(136, 19, 55, 0.82), rgba(12, 74, 110, 0.82)),
        radial-gradient(circle at 65% 45%, rgba(255, 255, 255, 0.1), transparent 20rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
    color: #ffffff;
    padding-top: 86px;
    padding-bottom: 112px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #92400e;
    background: rgba(254, 243, 199, 0.9);
}

.hero h1 {
    margin: 24px 0 20px;
    font-size: clamp(3.5rem, 8vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: #ffedd5;
    font-size: clamp(1.08rem, 2.2vw, 1.45rem);
    line-height: 1.75;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.82rem;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.32);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-btn.dark {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.74);
    border-color: var(--line);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 520px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

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

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

.hero-dots button.is-active {
    width: 58px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 6;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(18px);
}

.hero-search input,
.hero-search button,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
}

.hero-search input {
    min-width: 0;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.28);
}

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

.hero-search button {
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    padding: 14px 24px;
    background: linear-gradient(90deg, var(--amber), var(--rose));
    cursor: pointer;
}

.page-shell {
    padding-top: 68px;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background:
        linear-gradient(100deg, rgba(120, 53, 15, 0.95), rgba(136, 19, 55, 0.9), rgba(12, 74, 110, 0.9)),
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 22rem);
}

.compact-hero .container {
    padding: 86px 0 66px;
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.06em;
    margin: 18px 0;
}

.page-hero p {
    max-width: 760px;
    color: #ffedd5;
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

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

.section-heading {
    text-align: center;
    margin-bottom: 34px;
}

.section-heading.left {
    text-align: left;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1;
    margin: 16px 0 12px;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, var(--amber), var(--rose), var(--sky));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(135deg, rgba(217, 119, 6, 0.28), rgba(225, 29, 72, 0.18), rgba(2, 132, 199, 0.18)),
        #f8fafc;
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.54));
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    padding-left: 8px;
    color: #cbd5e1;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.movie-card p {
    margin: 0;
    min-height: 4.5em;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: #9f1239;
    background: rgba(255, 241, 242, 0.88);
    border-color: rgba(254, 205, 211, 0.9);
}

.gradient-panel {
    width: min(1180px, calc(100% - 32px));
    padding: 42px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

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

.channel-card,
.category-tile {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 241, 242, 0.9), rgba(240, 249, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.channel-card span,
.category-tile span {
    font-size: 2rem;
}

.channel-card strong,
.category-tile strong {
    font-size: 1.2rem;
}

.channel-card em,
.category-tile em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.65;
}

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

.split-section {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 42px;
    align-items: start;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ranking-item span {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

.ranking-item strong {
    line-height: 1.35;
}

.ranking-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--rose);
    font-weight: 900;
}

.category-stack {
    display: grid;
    gap: 46px;
}

.category-preview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.category-preview-head h3 {
    margin: 0;
    font-size: 1.55rem;
}

.category-preview-head a {
    color: var(--rose);
    font-weight: 900;
}

.filter-section {
    padding-top: 46px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    color: var(--ink);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid var(--line);
}

.empty-state {
    margin-bottom: 24px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.site-footer {
    margin-top: 40px;
    padding: 64px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 18px;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 14px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    padding: 32px 0 18px;
    font-size: 0.95rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: center;
    padding-bottom: 54px;
}

.player-card,
.detail-copy,
.story-block {
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.player-card {
    padding: 14px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 16 / 9;
    background: #030712;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #030712;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    border: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(225, 29, 72, 0.32), transparent 18rem),
        rgba(3, 7, 18, 0.44);
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 18px 42px rgba(225, 29, 72, 0.34);
    font-size: 1.8rem;
}

.play-overlay strong {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

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

.detail-copy {
    padding: 34px;
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.lead {
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.8;
    margin: 0 0 20px;
}

.detail-meta span {
    color: #075985;
    background: rgba(240, 249, 255, 0.86);
    border-color: rgba(186, 230, 253, 0.9);
}

.detail-tags {
    margin: 18px 0 24px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 24px;
}

.story-block {
    padding: 30px;
}

.story-block h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.story-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

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

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

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

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

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

    .hero-poster {
        display: none;
    }
}

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

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

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

    .hero-content {
        padding-top: 96px;
        padding-bottom: 142px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 16vw, 4.6rem);
    }

    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .hero-search input,
    .hero-search button {
        min-height: 48px;
    }

    .hero-dots {
        bottom: 150px;
    }

    .section {
        padding: 52px 0;
    }

    .movie-grid,
    .compact-grid,
    .mini-grid,
    .ranking-grid,
    .channel-grid,
    .all-channels,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .gradient-panel {
        padding: 28px;
    }

    .detail-copy,
    .story-block {
        padding: 24px;
    }
}
