:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --cyan: #06b6d4;
    --deep: #0f172a;
    --deep-2: #1e293b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
}

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

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

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    color: #cbd5e1;
    font-weight: 650;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.42);
}

.header-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    padding: 10px 16px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

.mobile-nav-link {
    padding: 12px 4px;
    color: #cbd5e1;
    font-weight: 650;
}

.mobile-nav-link.active {
    color: #60a5fa;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #1d4ed8 0%, rgba(29, 78, 216, 0) 32%), linear-gradient(135deg, #0f172a, #1e293b 45%, #334155);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.12)), linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0));
}

.hero-copy {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: 1180px;
}

.hero-tags,
.movie-meta-line,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.hero-tags span,
.movie-meta-line span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags a,
.hero-tags span {
    padding: 7px 13px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-tags a:first-child {
    background: var(--brand);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 32px;
    font-size: clamp(18px, 2.4vw, 25px);
    color: #e2e8f0;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
}

.primary-button:hover,
.glass-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.glass-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.glass-button.dark,
.ghost-button {
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line);
}

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

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

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

.compact-top {
    padding-top: 56px;
}

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

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

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.text-link {
    color: var(--brand);
    font-weight: 800;
}

.text-link:hover {
    color: var(--brand-dark);
}

.light,
.light .eyebrow,
.light h2,
.light-link {
    color: #ffffff;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

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

.movie-meta-line span {
    padding: 4px 9px;
    color: var(--brand);
    background: #eff6ff;
}

.movie-meta-line.rich span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.movie-card h2,
.rank-info h2 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card p,
.rank-info p,
.category-overview-card p,
.page-hero p,
.detail-copy p,
.content-card p,
.site-footer p {
    color: var(--muted);
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    font-size: 14px;
}

.tag-row span {
    padding: 5px 10px;
    color: #0369a1;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    border: 1px solid #bae6fd;
}

.tag-row.large span {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(147, 197, 253, 0.34);
}

.category-band {
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f766e);
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    color: #ffffff;
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.1));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
}

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

.category-tile em {
    margin-top: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
}

.split-block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

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

.mini-card {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 104px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.mini-card img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    margin-bottom: 4px;
    font-size: 17px;
}

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

.page-main {
    min-height: 70vh;
    padding-bottom: 64px;
}

.page-hero {
    margin-top: 38px;
    margin-bottom: 30px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 30px;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.24), transparent 35%), linear-gradient(135deg, #ffffff, #eef6ff);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.slim-hero {
    display: block;
}

.rank-hero {
    background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.28), transparent 34%), linear-gradient(135deg, #ffffff, #f8fafc);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select,
.search-large input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #f8fafc;
    padding: 12px 14px;
}

.filter-field input:focus,
.filter-field select:focus,
.search-large input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.empty-state {
    display: none;
    margin: 24px 0;
    padding: 24px;
    text-align: center;
    border-radius: 20px;
    color: var(--muted);
    background: #ffffff;
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 180px;
    overflow: hidden;
    background: #0f172a;
}

.category-cover-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-card > div {
    padding: 22px;
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 90px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    font-weight: 950;
}

.rank-thumb img {
    width: 90px;
    height: 118px;
    object-fit: cover;
    border-radius: 16px;
}

.rank-info h2 {
    margin-top: 0;
}

.search-panel {
    display: grid;
    gap: 24px;
}

.search-large {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-large input {
    border: 0;
    border-radius: 999px 0 0 999px;
    background: #ffffff;
    padding: 16px 22px;
}

.search-large button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    padding: 0 26px;
    font-weight: 900;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--brand);
    font-weight: 800;
}

.detail-hero {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.25);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
    margin: 18px 0;
    font-size: clamp(36px, 6vw, 66px);
    color: #ffffff;
}

.lead-text {
    max-width: 820px;
    font-size: 20px;
    color: #e2e8f0 !important;
}

.detail-copy .primary-button {
    margin-top: 24px;
}

.player-section {
    margin-top: 32px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.1));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-shell.is-playing .play-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    padding-left: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--cyan));
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
    font-size: 30px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    margin-top: 30px;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card h2:not(:first-child) {
    margin-top: 26px;
}

.content-card p {
    font-size: 16px;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

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

.info-card dd {
    margin: 0 0 8px;
    font-weight: 800;
}

.info-card a {
    color: var(--brand);
}

.related-block {
    padding-top: 40px;
}

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 44px 0;
}

.footer-logo {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    text-align: center;
}

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

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

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

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

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

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

    .hero-carousel {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .listing-grid,
    .overview-grid,
    .split-block,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero,
    .detail-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .page-hero {
        display: block;
    }

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

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

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

    .rank-row {
        grid-template-columns: 54px 78px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .rank-thumb img {
        width: 78px;
        height: 104px;
    }

    .search-large {
        border-radius: 22px;
        display: grid;
    }

    .search-large input {
        border-radius: 22px 22px 0 0;
    }

    .search-large button {
        min-height: 46px;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 30px;
        height: 30px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .category-tile-grid {
        grid-template-columns: 1fr;
    }

    .category-cover-row {
        height: 130px;
    }

    .rank-info p {
        display: none;
    }

    .content-card {
        padding: 22px;
    }
}
