:root {
    --sky: #0284c7;
    --sky-deep: #0369a1;
    --orange: #f97316;
    --orange-deep: #ea580c;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f9fafb;
    line-height: 1.6;
}

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: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

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

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #ffffff;
    background: var(--sky);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--sky);
    cursor: pointer;
}

.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 35%, rgba(14, 165, 233, 0.28), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
    padding-top: 42px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.25);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p {
    margin: 0 0 18px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

.btn.primary {
    color: #ffffff;
    background: var(--sky);
    box-shadow: 0 18px 40px rgba(2, 132, 199, 0.3);
}

.btn.primary:hover {
    background: var(--sky-deep);
    transform: translateY(-2px);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn.text {
    color: #ffffff;
    padding-inline: 6px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.search-panel {
    margin-top: -44px;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box {
    flex: 1;
    display: flex;
    gap: 12px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 15px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: 0.2s ease;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-box button {
    border: 0;
    border-radius: 16px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 900;
    cursor: pointer;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--sky-deep);
    background: #e0f2fe;
    font-weight: 800;
}

.section-block {
    padding: 62px 0;
}

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

.section-heading span,
.page-hero span,
.ranking-hero span {
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.section-heading h2,
.page-hero h1,
.ranking-hero h1 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-heading > a,
.inline-more {
    color: var(--sky);
    font-weight: 900;
}

.section-heading.light,
.section-heading.light a {
    color: #ffffff;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, var(--sky), var(--orange));
    box-shadow: 0 18px 48px rgba(2, 132, 199, 0.18);
    overflow: hidden;
    transition: 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 60px rgba(249, 115, 22, 0.22);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 8px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.06) 56%);
    opacity: 0.72;
}

.card-badge,
.card-score {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 12px;
    right: 12px;
    background: rgba(249, 115, 22, 0.92);
}

.card-score {
    left: 12px;
    bottom: 12px;
    background: rgba(2, 132, 199, 0.9);
}

.card-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: auto;
    border-radius: 999px;
    color: var(--sky);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.86);
    transition: 0.25s ease;
    font-size: 25px;
    text-indent: 4px;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-body strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.28;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card:hover strong {
    color: var(--sky);
}

.movie-line {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta em {
    font-style: normal;
}

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

.showcase-main,
.rank-card,
.side-card,
.content-card,
.player-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.showcase-main {
    padding: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #0284c7, #f97316);
}

.rank-card,
.side-card {
    padding: 24px;
}

.rank-card h2,
.side-card h2,
.player-card h2,
.content-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.rank-list,
.side-recommend {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: 0.22s ease;
}

.rank-item:hover {
    background: #e0f2fe;
}

.rank-no {
    font-size: 18px;
    font-weight: 900;
    color: var(--orange);
    text-align: center;
}

.rank-item img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.rank-copy em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 86px 0 68px;
}

.gradient-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, var(--sky), var(--orange));
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.category-overview {
    display: grid;
    gap: 22px;
    padding: 56px 0;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    height: 130px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
}

.filter-panel span {
    color: #374151;
    font-size: 13px;
    font-weight: 900;
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.ranking-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.ranking-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-hero-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.28));
}

.ranking-hero-copy {
    position: relative;
    z-index: 1;
}

.ranking-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 72px minmax(0, 1fr) 82px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: 0.22s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
}

.ranking-index {
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

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

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

.ranking-info strong {
    font-size: 18px;
}

.ranking-info em {
    margin: 4px 0;
    color: var(--muted);
    font-style: normal;
}

.ranking-info small {
    color: #64748b;
}

.ranking-score {
    color: var(--sky);
    font-weight: 900;
    text-align: right;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.detail-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px);
    transform: scale(1.08);
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48)),
        linear-gradient(0deg, #f9fafb 0%, rgba(249, 250, 251, 0) 28%);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 42px 0 78px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
}

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

.detail-top {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster img {
    width: 300px;
    height: 420px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.detail-intro {
    color: #ffffff;
    padding-bottom: 20px;
}

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-intro p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-facts span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    margin-top: -40px;
    padding-bottom: 68px;
    position: relative;
    z-index: 2;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.content-card {
    padding: 24px;
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--sky);
    background: rgba(255, 255, 255, 0.92);
    font-size: 32px;
    text-indent: 5px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-grid p {
    max-width: 620px;
    margin: 12px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
}

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

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .detail-side {
        order: 2;
    }
}

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

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 12px;
        right: 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        text-align: center;
    }

    .hero {
        height: 620px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .search-box,
    .footer-grid {
        flex-direction: column;
        align-items: stretch;
    }

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

    .poster-wrap {
        height: 235px;
    }

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

    .movie-card-body strong {
        font-size: 16px;
    }

    .category-overview-card,
    .detail-top,
    .filter-panel,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-cover-stack img {
        height: 94px;
    }

    .detail-poster img {
        width: 210px;
        height: 296px;
    }

    .detail-content {
        margin-top: -28px;
    }

    .ranking-score {
        text-align: left;
    }
}

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

    .poster-wrap {
        height: 320px;
    }

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

    .hero-copy {
        padding-top: 12px;
    }
}
