:root {
    --bg: #0a0e27;
    --bg-2: #10182d;
    --panel: #1a2332;
    --panel-2: #223149;
    --text: #e8eef5;
    --muted: #a8b5c7;
    --subtle: #6b7b8c;
    --blue: #4a9eff;
    --blue-2: #3a8eef;
    --green: #00d4aa;
    --orange: #ff6b35;
    --gold: #f4c430;
    --line: rgba(168, 181, 199, 0.16);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(74, 158, 255, 0.18), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(0, 212, 170, 0.15), transparent 24%),
        linear-gradient(180deg, #0a0e27 0%, #0e1428 52%, #0a0e27 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(168, 181, 199, 0.12);
    background: rgba(10, 14, 39, 0.88);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #061525;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 16px 38px rgba(74, 158, 255, 0.28);
}

.brand-text {
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--blue), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 10px 12px;
    border-radius: 999px;
    color: #c5d0de;
    font-size: 0.95rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(74, 158, 255, 0.14);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(10, 14, 39, 0.96);
}

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

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-block: 14px;
}

.hero-section {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: #050816;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 14, 39, 0.96) 0%, rgba(10, 14, 39, 0.72) 42%, rgba(10, 14, 39, 0.24) 100%),
        linear-gradient(0deg, #0a0e27 0%, rgba(10, 14, 39, 0) 46%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
    align-items: center;
    gap: 56px;
    min-height: 78vh;
    padding-block: 84px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
    width: min(680px, 100%);
    margin: 24px 0 0;
    color: #c5d0de;
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-tags,
.tag-list,
.category-pills,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(168, 181, 199, 0.18);
    border-radius: 999px;
    color: #d9e4ef;
    background: rgba(255, 255, 255, 0.07);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #07131f;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 16px 34px rgba(0, 212, 170, 0.24);
}

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

.hero-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

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

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

.hero-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(10, 14, 39, 0.72);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 28px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.search-strip {
    position: relative;
    z-index: 8;
    margin-top: -44px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid rgba(168, 181, 199, 0.16);
    border-radius: 24px;
    background: rgba(26, 35, 50, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.search-panel p {
    margin: 0;
}

.search-panel p {
    color: var(--muted);
}

.site-search,
.inline-filter {
    display: flex;
    gap: 10px;
}

.site-search input,
.inline-filter input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(168, 181, 199, 0.18);
    border-radius: 999px;
    outline: 0;
    color: var(--text);
    background: rgba(10, 14, 39, 0.7);
    padding: 0 18px;
}

.site-search input:focus,
.inline-filter input:focus {
    border-color: rgba(74, 158, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.12);
}

.site-search button,
.inline-filter button {
    min-width: 96px;
    border: 0;
    border-radius: 999px;
    color: #07131f;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--green));
    cursor: pointer;
}

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

.flat-section {
    padding-top: 28px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2,
.footer-grid h2 {
    margin: 0;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.small-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

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

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

.category-tile {
    overflow: hidden;
    min-height: 250px;
    border: 1px solid rgba(168, 181, 199, 0.15);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(34, 49, 73, 0.92), rgba(26, 35, 50, 0.92));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 158, 255, 0.42);
    box-shadow: var(--shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 118px;
    overflow: hidden;
}

.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.category-tile-body {
    padding: 18px;
}

.category-tile-body h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.category-tile-body p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.category-tile-body span {
    color: var(--green);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(168, 181, 199, 0.13);
    border-radius: 18px;
    background: rgba(26, 35, 50, 0.92);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(74, 158, 255, 0.36);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

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

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.movie-score,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-score {
    right: 10px;
    bottom: 10px;
    color: #07131f;
    background: var(--gold);
}

.rank-badge {
    top: 10px;
    left: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), #ff3d7f);
}

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

.movie-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
    color: var(--blue);
}

.movie-meta,
.movie-desc,
.rank-info p,
.detail-one-line,
.detail-article p,
.detail-side a,
.footer-grid p,
.page-hero p {
    color: var(--muted);
}

.movie-meta {
    margin: 7px 0;
    font-size: 0.84rem;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.9rem;
}

.tag-list span {
    min-height: 24px;
    padding: 3px 8px;
    color: #c5d0de;
    font-size: 0.78rem;
}

.movie-card-compact .movie-desc {
    display: none;
}

.page-main {
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 28px;
    color: var(--subtle);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--blue);
}

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
    content: "/";
    margin-right: 10px;
    color: rgba(168, 181, 199, 0.38);
}

.page-hero {
    margin-top: 24px;
    padding: 42px;
    border: 1px solid rgba(168, 181, 199, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 16%, rgba(0, 212, 170, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(34, 49, 73, 0.92), rgba(26, 35, 50, 0.76));
    box-shadow: var(--shadow);
}

.page-hero p {
    max-width: 860px;
}

.inline-filter {
    max-width: 760px;
    margin-top: 24px;
}

.category-pills {
    margin-top: 22px;
}

.category-pills a:hover {
    border-color: rgba(74, 158, 255, 0.48);
    color: #ffffff;
}

.category-preview {
    padding-block: 44px;
    border-bottom: 1px solid rgba(168, 181, 199, 0.1);
}

.rank-list {
    display: grid;
    gap: 14px;
    padding-top: 32px;
}

.rank-row {
    display: grid;
    grid-template-columns: 84px 56px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(168, 181, 199, 0.12);
    border-radius: 18px;
    background: rgba(26, 35, 50, 0.82);
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: #111b2b;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-index {
    color: var(--gold);
    font-size: 1.9rem;
    font-weight: 900;
    text-align: center;
}

.rank-info h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.rank-info p {
    margin: 0 0 8px;
}

.rank-desc {
    margin-top: 8px !important;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    color: #07131f;
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.seo-copy {
    margin-bottom: 72px;
    padding: 36px;
    border: 1px solid rgba(168, 181, 199, 0.12);
    border-radius: 24px;
    background: rgba(26, 35, 50, 0.72);
}

.seo-copy h2 {
    margin: 0 0 12px;
}

.seo-copy p {
    margin: 0 0 10px;
    color: var(--muted);
}

.detail-main {
    padding-bottom: 80px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 30px;
    align-items: center;
    padding-top: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(168, 181, 199, 0.16);
    border-radius: 26px;
    background: #050816;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #050816;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.3), rgba(5, 8, 22, 0.72));
    cursor: pointer;
    z-index: 4;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: #07131f;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 18px 42px rgba(74, 158, 255, 0.35);
}

.detail-copy {
    padding: 28px;
    border: 1px solid rgba(168, 181, 199, 0.12);
    border-radius: 26px;
    background: rgba(26, 35, 50, 0.72);
}

.detail-copy h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.detail-one-line {
    font-size: 1.05rem;
}

.detail-meta,
.detail-tags {
    margin-top: 18px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding-top: 44px;
}

.detail-article,
.detail-side {
    border: 1px solid rgba(168, 181, 199, 0.12);
    border-radius: 24px;
    background: rgba(26, 35, 50, 0.72);
}

.detail-article {
    padding: 32px;
}

.detail-article h2 + p {
    margin-top: 12px;
}

.detail-article h2:not(:first-child) {
    margin-top: 30px;
}

.detail-article p {
    font-size: 1.02rem;
}

.detail-side {
    align-self: start;
    padding: 24px;
}

.side-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.side-links a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.side-links a:hover {
    color: #fff;
    background: rgba(74, 158, 255, 0.18);
}

.site-footer {
    border-top: 1px solid rgba(168, 181, 199, 0.12);
    background: rgba(26, 35, 50, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 40px;
    padding-block: 54px;
}

.footer-grid h2 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

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

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--blue);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(168, 181, 199, 0.12);
    color: var(--subtle);
    text-align: center;
}

.hidden-card {
    display: none !important;
}

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 82vh;
        padding-block: 68px 96px;
    }

    .hero-card {
        display: none;
    }

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

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

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

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

    .rank-index {
        position: absolute;
        margin: 8px;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 107, 53, 0.86);
        font-size: 1rem;
        line-height: 34px;
    }

    .rank-action {
        grid-column: 2;
        width: max-content;
        padding-inline: 18px;
    }

    .rank-desc {
        display: none;
    }

    .page-hero,
    .detail-copy,
    .detail-article,
    .detail-side,
    .seo-copy {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-section,
    .hero-inner {
        min-height: 74vh;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: clamp(2.05rem, 12vw, 3.2rem);
    }

    .hero-actions,
    .site-search,
    .inline-filter {
        flex-direction: column;
    }

    .site-search button,
    .inline-filter button {
        min-height: 46px;
    }

    .movie-grid,
    .listing-grid,
    .category-grid {
        gap: 14px;
    }

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

    .movie-desc,
    .tag-list {
        display: none;
    }

    .detail-hero {
        gap: 18px;
    }

    .player-shell {
        border-radius: 18px;
    }
}
