:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #111827;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #10b981;
    --red: #ef4444;
    --pink: #ec4899;
    --radius: 1.25rem;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 36rem), linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.24);
}

.brand-text {
    font-size: 22px;
}

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

.nav-link,
.nav-dropdown-panel a,
.mobile-panel a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-panel a:hover,
.mobile-panel a:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.92);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-button {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.nav-dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 280px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search,
.mobile-search,
.search-box-large,
.filter-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input,
.search-box-large input,
.filter-panel input,
.filter-panel select {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    outline: 0;
}

.header-search input,
.mobile-search input {
    width: 230px;
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-box-large button {
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.mobile-toggle {
    display: none;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.16) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(15, 23, 42, 0.52) 43%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

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

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.section-kicker.red {
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.section-kicker.green {
    background: linear-gradient(90deg, #16a34a, #10b981);
}

.section-kicker.pink {
    background: linear-gradient(90deg, #db2777, #e11d48);
}

.hero h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero p {
    color: #dbeafe;
    max-width: 680px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    margin: 0 0 24px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.quick-tags button {
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.ghost-button {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

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

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

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.page-sections {
    padding: 56px 0 76px;
}

.section-block {
    margin-bottom: 64px;
}

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

.section-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-heading a {
    color: #bae6fd;
    font-weight: 700;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.86));
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 26px 54px rgba(2, 6, 23, 0.4);
}

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

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

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

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

.poster-shade,
.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 58%);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #dc2626, #f97316);
}

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

.movie-meta-line,
.card-stats,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--subtle);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

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

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
}

.category-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 10px);
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.88), rgba(51, 65, 85, 0.72));
}

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

.category-tile {
    position: relative;
    min-height: 172px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(125, 211, 252, 0.48);
}

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

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 2;
}

.category-tile strong {
    bottom: 50px;
    color: #ffffff;
    font-size: 21px;
}

.category-tile em {
    bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    font-style: normal;
}

.inner-hero {
    padding: 88px 0 48px;
    background: radial-gradient(circle at 24% 10%, rgba(37, 99, 235, 0.28), transparent 34rem), linear-gradient(180deg, #0f172a, rgba(15, 23, 42, 0.2));
    border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
    margin: 16px 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.05;
}

.inner-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 48px 0 74px;
}

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

.category-overview-card,
.side-card,
.content-card,
.filter-panel,
.search-box-large,
.search-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.24);
}

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    min-height: 184px;
    padding: 14px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: 16px;
}

.category-preview img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.category-overview-card h2,
.side-card h2,
.content-card h2 {
    margin: 6px 0 10px;
}

.category-overview-card p,
.content-card p,
.side-card p {
    color: var(--muted);
    line-height: 1.75;
}

.category-overview-card span {
    color: #bae6fd;
    font-weight: 800;
}

.side-card {
    padding: 20px;
}

.sticky-side {
    position: sticky;
    top: 100px;
    align-self: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--muted);
    border-radius: 14px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.58);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(51, 65, 85, 0.86);
    transform: translateX(2px);
}

.rank-item img {
    width: 56px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

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

.rank-item strong {
    color: #ffffff;
    font-size: 14px;
}

.rank-item em {
    color: var(--subtle);
    font-size: 12px;
    font-style: normal;
    margin-top: 5px;
}

.mini-rank {
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #dc2626, #f97316);
    font-weight: 800;
}

.filter-panel {
    align-items: stretch;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-panel input {
    min-width: 280px;
    flex: 1;
    padding: 12px 16px;
}

.filter-panel select {
    padding: 12px 16px;
}

.quick-tags button {
    cursor: pointer;
}

.quick-tags button.is-active,
.quick-tags button:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(37, 99, 235, 0.42);
}

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

.detail-bg,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.detail-bg {
    object-fit: cover;
    filter: blur(6px) saturate(1.1);
    transform: scale(1.04);
    opacity: 0.46;
}

.detail-bg-shade {
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 54%, rgba(2, 6, 23, 0.34) 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #bae6fd;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
}

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

.detail-meta {
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.78);
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-content {
    padding: 0 0 76px;
}

.player-section {
    margin-top: -90px;
    position: relative;
    z-index: 3;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #000000;
    box-shadow: var(--shadow);
}

.site-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(0, 0, 0, 0.56));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 34px;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
}

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

.detail-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 34px 0 56px;
}

.content-card {
    padding: 24px;
}

.search-page {
    padding: 48px 0 78px;
}

.search-box-large {
    padding: 18px;
    margin-bottom: 20px;
}

.search-box-large input {
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    font-size: 16px;
}

.search-box-large button {
    min-height: 52px;
    padding: 0 24px;
}

.search-summary {
    display: none;
    color: var(--muted);
    margin-bottom: 24px;
    padding: 14px 18px;
}

.search-summary.is-visible {
    display: block;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #020617;
}

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

.site-footer p,
.footer-links a {
    color: var(--subtle);
}

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

.footer-bottom {
    padding: 18px 16px;
    color: var(--subtle);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

    .hero {
        height: 620px;
    }

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

    .two-column-layout,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .sticky-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero {
        height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .movie-grid-large,
    .category-grid,
    .category-overview-grid,
    .detail-text-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-panel input,
    .filter-panel select {
        min-width: 0;
        width: 100%;
    }

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

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

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

    .hero p,
    .inner-hero p,
    .detail-one-line {
        font-size: 15px;
    }

    .category-panel {
        padding: 20px;
    }
}
