:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #16a34a;
    --purple: #9333ea;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30rem), var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, var(--blue), var(--cyan), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active,
.mobile-nav a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--surface-soft);
    border-radius: 999px;
    border: 1px solid var(--line);
}

.header-search input,
.search-form input,
.filter-input {
    width: 220px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 10px 12px;
}

.header-search button,
.search-form button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.header-search button,
.search-form button,
.primary-button {
    color: white;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.secondary-button {
    color: var(--blue);
    background: white;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.header-search button:hover,
.search-form button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--blue);
    background: #eff6ff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
}

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

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 800;
}

.section-kicker {
    color: var(--blue);
    background: #eff6ff;
    border-color: #dbeafe;
}

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

.hero p {
    margin: 0;
    max-width: 620px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.85;
}

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

.hero-panel {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-poster-stack {
    position: relative;
    width: min(420px, 100%);
    aspect-ratio: 4 / 5;
}

.hero-poster-card {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.8));
}

.hero-mini-list {
    position: absolute;
    right: -26px;
    bottom: 28px;
    width: min(280px, 86%);
    display: grid;
    gap: 10px;
}

.hero-mini-list a,
.ranking-row,
.compact-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    transition: 0.2s ease;
}

.hero-mini-list a:hover,
.ranking-row:hover,
.compact-card:hover {
    transform: translateY(-3px);
}

.hero-mini-list img,
.compact-card img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-mini-list strong,
.compact-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.hero-mini-list em,
.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.hero-dots button {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: white;
}

.section {
    padding: 72px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.section-heading p,
.page-title p,
.detail-title p,
.article-section p,
.category-card p,
.search-panel p {
    color: var(--muted);
    line-height: 1.85;
}

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

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

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

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

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

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

.play-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    color: white;
    background: rgba(37, 99, 235, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

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

.movie-card h3 {
    margin: 8px 0 7px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

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

.tag-row span,
.detail-meta span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}

.sidebar-panel,
.search-panel,
.article-section,
.category-card,
.detail-hero,
.player-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.sidebar-panel,
.search-panel,
.article-section {
    padding: 24px;
}

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

.ranking-row {
    grid-template-columns: 40px 1fr;
}

.rank-no {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    font-weight: 950;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.category-card {
    padding: 24px;
    transition: 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 950;
}

.category-card .category-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 900;
}

.page-title {
    padding: 64px 0 24px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
}

.filter-input {
    width: 100%;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-soft);
}

.search-form input {
    width: 100%;
    font-size: 16px;
}

.search-results {
    margin-top: 24px;
}

.detail-page {
    padding: 42px 0 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 28px;
    overflow: hidden;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #f5d0fe);
    box-shadow: var(--shadow);
}

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

.detail-title h1 {
    margin-top: 10px;
}

.detail-title p {
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.player-panel {
    margin-top: 28px;
    padding: 18px;
    background: #020617;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: black;
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.38), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: 0.2s ease;
}

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

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.36);
    font-size: 30px;
    text-indent: 4px;
}

.article-section {
    margin-top: 28px;
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 950;
}

.article-section p + h2 {
    margin-top: 28px;
}

.related-section {
    margin-top: 56px;
}

.no-results {
    padding: 24px;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.site-footer strong {
    color: white;
    font-size: 22px;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.site-footer a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .site-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-content {
        padding: 72px 0 88px;
    }

    .hero-panel {
        display: none;
    }

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

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

    .site-footer nav {
        justify-content: flex-start;
    }
}

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

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

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

    .card-body {
        padding: 12px;
    }

    .movie-card p {
        display: none;
    }

    .filter-bar,
    .search-form {
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .detail-hero {
        padding: 18px;
    }
}
