:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.22);
    --text: #e5f6ff;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --teal: #14b8a6;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.2), transparent 34rem),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.14), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #07111f 52%, #020617 100%);
    color: var(--text);
    line-height: 1.7;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    width: min(1460px, 100%);
    margin: 0 auto;
    padding: 0 18px 56px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(17, 94, 89, 0.96), rgba(8, 47, 73, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1460px, 100%);
    min-height: 68px;
    margin: 0 auto;
    padding: 0 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

.brand-mark.small {
    width: 32px;
    height: 32px;
    border-radius: 11px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #cffafe, #5eead4);
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #d9fbff;
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #67e8f9;
    transform: translateY(-1px);
}

.quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.34);
}

.quick-search input {
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
}

.quick-search button,
.search-controls button {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: #00131a;
    font-weight: 800;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
}

.mobile-panel {
    width: min(1460px, 100%);
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-links,
.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-links a,
.mobile-cats a {
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
    position: relative;
    height: min(70vh, 720px);
    min-height: 520px;
    margin: 26px 0 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.52) 46%, rgba(2, 6, 23, 0.08) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 42%);
}

.hero-copy {
    position: absolute;
    left: clamp(24px, 7vw, 92px);
    bottom: clamp(38px, 9vw, 96px);
    width: min(760px, calc(100% - 48px));
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 780px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
}

.hero-tags,
.card-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag,
.card-tags span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: #cffafe;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-actions,
.page-hero .btn,
.detail-info .btn {
    margin-top: 26px;
}

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

.btn + .btn {
    margin-left: 10px;
}

.btn.primary {
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: #00131a;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #ecfeff;
}

.btn.ghost.dark {
    background: rgba(15, 23, 42, 0.55);
}

.btn:hover,
.poster-wrap:hover,
.category-tile:hover,
.wide-card:hover,
.rank-row:hover {
    transform: translateY(-3px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.48);
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    right: 32px;
    bottom: 28px;
    display: flex;
    gap: 9px;
}

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

.hero-dot.active {
    width: 32px;
    background: #22d3ee;
}

.quick-entry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.quick-entry a,
.content-section,
.category-card-large,
.search-board,
.story-card,
.player-section,
.rank-row,
.detail-hero,
.page-hero {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.quick-entry a {
    padding: 20px;
}

.quick-entry strong {
    display: block;
    color: #f8fafc;
    font-size: 1.1rem;
}

.quick-entry span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.content-section {
    margin: 28px 0;
    padding: clamp(20px, 3vw, 34px);
}

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

.section-head h2,
.story-card h2,
.rank-info h2,
.category-card-large h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.15;
}

.eyebrow {
    margin: 0 0 8px;
    color: #67e8f9;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-more,
.text-link {
    color: #67e8f9;
    font-weight: 850;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.small-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.44);
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-5px);
}

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

.poster-wrap img,
.wide-poster img,
.detail-poster img,
.category-tile img,
.rank-thumb img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), transparent 52%);
    content: "";
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.9);
    color: #00131a;
    font-size: 0.9rem;
    font-weight: 900;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #22d3ee);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
}

.card-body {
    padding: 15px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #67e8f9;
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body h3 {
    min-height: 2.65em;
    margin: 7px 0 7px;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.3;
}

.card-body p,
.wide-card p,
.story-card p,
.category-card-large p,
.rank-info p {
    color: var(--muted);
}

.card-body p {
    display: -webkit-box;
    min-height: 4.6em;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.92rem;
}

.card-tags {
    gap: 6px;
}

.card-tags span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.74rem;
}

.wide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.wide-card {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 16px;
    min-height: 210px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.34);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.wide-card:hover {
    border-color: rgba(34, 211, 238, 0.44);
}

.wide-poster {
    overflow: hidden;
    border-radius: 17px;
    background: #0f172a;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background: #0f172a;
    transition: transform 0.2s ease;
}

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

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

.category-tile span {
    bottom: 43px;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile small {
    bottom: 18px;
    color: #cbd5e1;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 28px;
    padding: clamp(24px, 5vw, 52px);
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 36rem),
        linear-gradient(135deg, rgba(15, 118, 110, 0.48), rgba(15, 23, 42, 0.88));
}

.compact-hero {
    min-height: 250px;
}

.ranking-hero,
.category-hero {
    min-height: 300px;
}

.category-list-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 20px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    min-height: 220px;
    overflow: hidden;
    border-radius: 20px;
}

.filter-panel,
.search-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-panel input,
.filter-panel select,
.search-controls input,
.search-controls select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 15px;
    outline: 0;
    background: rgba(2, 6, 23, 0.54);
    color: #e5f6ff;
}

.search-board {
    padding: clamp(20px, 3vw, 34px);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 96px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.rank-number {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(20, 184, 166, 0.18));
    color: #cffafe;
    font-size: 1.4rem;
    font-weight: 950;
}

.rank-thumb {
    height: 126px;
    overflow: hidden;
    border-radius: 16px;
}

.rank-info h2 {
    font-size: 1.25rem;
}

.rank-score {
    text-align: center;
}

.rank-score strong {
    display: block;
    color: #67e8f9;
    font-size: 1.45rem;
}

.rank-score span {
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 16px;
    color: #a5f3fc;
    font-size: 0.92rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 44px);
    padding: clamp(20px, 4vw, 42px);
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 10%, rgba(34, 211, 238, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(15, 118, 110, 0.28), rgba(15, 23, 42, 0.94));
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.detail-info .hero-tags {
    margin-top: 18px;
}

.player-section {
    margin: 28px 0;
    padding: 14px;
    background: var(--panel-strong);
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.58));
    color: #ffffff;
    cursor: pointer;
}

.play-cover span {
    display: grid;
    width: clamp(68px, 9vw, 104px);
    height: clamp(68px, 9vw, 104px);
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: #00131a;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 950;
    box-shadow: 0 22px 54px rgba(34, 211, 238, 0.35);
}

.play-cover.hidden {
    display: none;
}

.detail-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

.story-card {
    padding: clamp(20px, 3vw, 34px);
}

.story-card p:last-child {
    margin-bottom: 0;
    color: #cbd5e1;
}

.site-footer {
    width: min(1460px, 100%);
    margin: 24px auto 0;
    padding: 36px 22px 44px;
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.footer-links a {
    color: #67e8f9;
}

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

@media (max-width: 1080px) {
    .quick-search {
        display: none;
    }

    .nav-links {
        gap: 14px;
    }

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

@media (max-width: 820px) {
    main {
        padding: 0 12px 36px;
    }

    .navbar {
        min-height: 62px;
        padding: 0 14px;
    }

    .nav-links {
        display: none;
    }

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

    .brand-name {
        font-size: 1.05rem;
    }

    .hero-slider {
        min-height: 560px;
        border-radius: 22px;
    }

    .hero-copy {
        left: 20px;
        bottom: 38px;
        width: calc(100% - 40px);
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        width: 40px;
        height: 40px;
    }

    .hero-prev {
        left: auto;
        right: 74px;
    }

    .hero-next {
        right: 24px;
    }

    .hero-dots {
        right: auto;
        left: 22px;
        bottom: 24px;
    }

    .quick-entry,
    .filter-panel,
    .search-controls,
    .detail-hero,
    .category-card-large,
    .category-list-section,
    .rank-row {
        grid-template-columns: 1fr;
    }

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

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

    .wide-card {
        grid-template-columns: 110px 1fr;
    }

    .rank-row {
        align-items: start;
    }

    .rank-thumb {
        width: 118px;
    }
}

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

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

    .wide-card {
        grid-template-columns: 1fr;
    }

    .wide-poster {
        aspect-ratio: 16 / 10;
    }

    .btn + .btn {
        margin-top: 10px;
        margin-left: 0;
    }

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