:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --indigo: #4f46e5;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    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, #f8fbff 0%, #eef6ff 45%, #ffffff 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.navbar {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--blue);
    border-radius: 20px;
}

.mobile-menu {
    display: none;
    padding: 0 22px 18px;
    max-width: 1180px;
    margin: 0 auto;
}

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

main {
    overflow: hidden;
}

.hero {
    max-width: 1180px;
    margin: 30px auto 40px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 48px;
    color: white;
    max-width: 700px;
}

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

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

.hero-content h1 {
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.95;
    margin: 18px 0;
    letter-spacing: -0.06em;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #dbeafe;
    margin: 0 0 20px;
}

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

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span,
.tag-row.large span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.page-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn.glass {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn.ghost {
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-dots {
    position: absolute;
    left: 44px;
    bottom: 22px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 26px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-dot.active {
    width: 46px;
    background: white;
}

.hero-side {
    display: grid;
    gap: 20px;
}

.hero-search,
.hero-picks,
.ranking-panel,
.side-card,
.prose-card,
.search-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--shadow-soft);
    border-radius: 26px;
}

.hero-search,
.hero-picks {
    padding: 26px;
}

.hero-search h2,
.hero-picks h2,
.ranking-panel h2,
.side-card h2,
.prose-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.hero-search p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-search form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 18px;
}

.hero-search input,
.search-field input {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    outline: none;
    min-width: 0;
}

.hero-search input:focus,
.search-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.hero-search button {
    border: 0;
    border-radius: 16px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
}

.hero-picks {
    display: grid;
    gap: 14px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-pick:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.hero-pick img {
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
}

.hero-pick strong,
.hero-pick em {
    display: block;
}

.hero-pick strong {
    font-size: 16px;
    margin-bottom: 6px;
}

.hero-pick em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.feature-strip {
    max-width: 1180px;
    margin: 0 auto 54px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-strip article {
    border-radius: 26px;
    background: white;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--line);
}

.feature-strip span {
    display: inline-flex;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
}

.feature-strip h2 {
    margin: 18px 0 8px;
}

.feature-strip p {
    color: var(--muted);
    margin: 0;
    line-height: 1.7;
}

.content-section {
    max-width: 1180px;
    margin: 0 auto 64px;
    padding: 0 22px;
}

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

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.section-head a {
    color: var(--blue);
    font-weight: 800;
    background: #eff6ff;
    border-radius: 999px;
    padding: 10px 16px;
}

.section-head.small h2 {
    font-size: 28px;
}

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

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

.movie-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.16);
}

.movie-card.is-hidden,
.ranking-item.is-hidden,
.category-card.is-hidden {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #f0f9ff);
}

.compact-grid .movie-cover {
    height: 220px;
}

.movie-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.movie-region,
.rank-index {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.rank-index {
    left: 12px;
    right: auto;
    background: rgba(15, 23, 42, 0.72);
}

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

.movie-title {
    display: block;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

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

.movie-meta,
.movie-line {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.ranking-panel,
.side-card {
    padding: 24px;
    position: sticky;
    top: 90px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 44px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.ranking-number {
    color: var(--blue);
    font-weight: 900;
    font-size: 18px;
}

.ranking-item img {
    height: 74px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-text strong,
.ranking-text em {
    display: block;
}

.ranking-text strong {
    font-size: 15px;
    line-height: 1.4;
}

.ranking-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
}

.ranking-list.large {
    background: white;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
}

.page-hero {
    margin: 0 0 42px;
    padding: 78px 22px;
    color: white;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 32%),
        linear-gradient(135deg, #1d4ed8, #0891b2);
}

.page-hero h1 {
    margin: 14px auto;
    max-width: 900px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.search-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.search-field {
    position: relative;
}

.search-field span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 900;
}

.search-field input {
    width: 100%;
    padding-left: 42px;
    background: white;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-btn {
    border: 0;
    background: white;
    color: #334155;
    padding: 10px 15px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 18px;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-cover img {
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
}

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

.category-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 12px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a,
.side-links a {
    color: var(--blue);
    background: #eff6ff;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.detail-hero {
    position: relative;
    color: white;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background: #0f172a;
}

.detail-bg img {
    height: 100%;
    object-fit: cover;
    filter: blur(18px);
    opacity: 0.42;
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.72));
}

.detail-wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 22px 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #dbeafe;
    margin-bottom: 26px;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: white;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    height: 400px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    color: #dbeafe;
    line-height: 1.8;
    font-size: 18px;
    max-width: 820px;
}

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

.detail-meta span {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-weight: 800;
}

.watch-section {
    max-width: 1180px;
    margin: -28px auto 44px;
    padding: 0 22px;
    position: relative;
    z-index: 3;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.5));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 50%;
    font-size: 34px;
    box-shadow: 0 24px 50px rgba(37, 99, 235, 0.45);
    padding-left: 6px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.prose-card,
.side-card {
    padding: 28px;
}

.prose-card p {
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
    margin: 0 0 24px;
}

.detail-side dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.detail-side dd {
    margin: -8px 0 4px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.6;
}

.site-footer {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #cbd5e1;
    padding: 54px 22px 26px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 30px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 18px;
}

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

.footer-grid a:not(.footer-brand) {
    display: block;
    color: #94a3b8;
    margin: 10px 0;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: white;
}

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

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

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

    .ranking-panel,
    .side-card {
        position: static;
    }
}

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

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

    .hero {
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        left: 24px;
        right: 24px;
        bottom: 42px;
    }

    .feature-strip,
    .category-grid,
    .category-grid.wide,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .navbar {
        height: 62px;
        padding: 0 16px;
    }

    .brand {
        font-size: 21px;
    }

    .hero,
    .content-section,
    .feature-strip,
    .watch-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 600px;
        border-radius: 24px;
    }

    .hero-content h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

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

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

    .movie-cover,
    .compact-grid .movie-cover {
        height: 220px;
    }

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

    .category-card {
        grid-template-columns: 108px 1fr;
        gap: 14px;
        padding: 12px;
    }

    .category-cover img {
        height: 136px;
    }

    .ranking-item a {
        grid-template-columns: 36px 54px 1fr;
    }

    .page-hero {
        padding: 58px 16px;
    }

    .detail-wrap {
        padding: 26px 16px 50px;
    }

    .player-card {
        border-radius: 22px;
    }

    .play-overlay span {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}
