:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --sky: #0284c7;
    --sky-dark: #0369a1;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --ring: rgba(2, 132, 199, 0.18);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 38%, #fff7ed 100%);
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.24);
}

.logo strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel nav a:hover,
.mobile-panel nav a.active {
    color: var(--sky-dark);
    background: #e0f2fe;
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.top-search input {
    width: 190px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
    color: var(--ink);
}

.top-search button,
.btn,
.hero-button,
.filter-btn,
.play-layer button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sky), var(--sky-dark));
    box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.btn:hover,
.hero-button:hover,
.filter-btn:hover,
.play-layer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.30);
}

.btn-orange,
.hero-button.primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.26);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #0f172a;
    background: #e0f2fe;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.mobile-panel nav,
.mobile-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-cats a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

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

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.20) 100%);
}

.hero-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -160px;
    top: 80px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.45), transparent 68%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    min-height: 690px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    padding-top: 46px;
}

.eyebrow,
.tag-row span,
.movie-meta span,
.breadcrumb a,
.breadcrumb span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.eyebrow {
    gap: 10px;
    margin-bottom: 16px;
}

.eyebrow span {
    padding: 7px 12px;
    background: rgba(249, 115, 22, 0.92);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 670px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-facts {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 42px;
    background: #ffffff;
}

.hero-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    max-width: 980px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-mini img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini strong,
.hero-mini small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-mini small {
    color: #cbd5e1;
}

.section {
    padding: 64px 0 0;
}

.section-card {
    padding: 32px;
    border-radius: 32px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.section-soft {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
    box-shadow: var(--soft-shadow);
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--muted);
}

.more-link {
    color: var(--sky-dark);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.86);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.movie-card-large .poster-link {
    aspect-ratio: 16 / 10;
}

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

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

.score,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 30px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.score {
    right: 12px;
    background: rgba(249, 115, 22, 0.96);
}

.rank-badge {
    left: 12px;
    background: rgba(2, 132, 199, 0.96);
    font-style: normal;
}

.movie-body {
    padding: 17px;
}

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

.movie-meta span {
    padding: 4px 8px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-body p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 14px;
}

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

.tag-row span {
    padding: 5px 9px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(226, 232, 240, 0.85);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.rank-row b {
    color: var(--orange);
    font-size: 20px;
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row strong,
.rank-row span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row span {
    color: var(--muted);
    font-size: 13px;
}

.rank-row em {
    font-style: normal;
    color: var(--sky-dark);
    font-weight: 900;
}

.page-hero {
    padding: 72px 0 20px;
}

.page-hero-box {
    padding: 42px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.50), transparent 32%),
        linear-gradient(135deg, #0f172a, #075985 54%, #ea580c);
    box-shadow: var(--shadow);
}

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

.breadcrumb a,
.breadcrumb span {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    outline: 0;
    padding: 13px 14px;
    background: #f8fafc;
    color: var(--ink);
}

.no-result {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: 24px;
    background: #ffffff;
}

.detail-hero {
    padding: 52px 0 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.08));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-layer span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    font-size: 32px;
    padding-left: 4px;
}

.detail-title {
    padding: 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-title h1 {
    margin-bottom: 14px;
}

.detail-title .tag-row {
    margin-top: 18px;
}

.content-block {
    padding: 30px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.content-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-block p {
    margin: 0 0 16px;
    color: #334155;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.compact-card {
    padding: 10px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid #e2e8f0;
}

.compact-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 10px;
}

.compact-card span,
.compact-card small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card span {
    font-weight: 800;
}

.compact-card small {
    color: var(--muted);
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: #94a3b8;
}

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

.footer-inner nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1080px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-rail {
        display: none;
    }

    .section-card,
    .section-soft,
    .page-hero-box,
    .detail-title,
    .content-block {
        padding: 22px;
        border-radius: 24px;
    }

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

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

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 34px 60px minmax(0, 1fr);
    }

    .rank-row em {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 500px) {
    .movie-grid,
    .movie-grid.large-grid,
    .category-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
