:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111c34;
    --line: rgba(148, 163, 184, 0.24);
    --text: #e5f6ff;
    --muted: #94a3b8;
    --cyan: #0891b2;
    --cyan-soft: #22d3ee;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.35), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(14, 165, 233, 0.20), transparent 28%),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.brand span,
.footer-brand {
    background: linear-gradient(90deg, #ffffff, #67e8f9 60%, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand::before,
.footer-brand::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.desktop-nav {
    display: flex;
    gap: 20px;
    color: #cbd5e1;
    font-weight: 600;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--cyan-soft);
}

.nav-search {
    margin-left: auto;
    display: flex;
    width: min(360px, 34vw);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    overflow: hidden;
}

.nav-search input,
.mobile-search input {
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 12px 16px;
}

.nav-search button,
.mobile-search button,
.global-search-panel button {
    border: 0;
    color: var(--white);
    background: var(--cyan);
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.86);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 22px 22px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 14px;
    flex-direction: column;
}

.mobile-nav.open {
    display: flex;
}

.mobile-search {
    display: flex;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

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

.hero-slides {
    position: relative;
    height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 92px 22px 132px;
}

.hero-copy {
    width: min(780px, 100%);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(103, 232, 249, 0.36);
    background: rgba(8, 145, 178, 0.24);
    color: #cffafe;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--white);
    text-shadow: 0 18px 70px rgba(0, 0, 0, 0.65);
}

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

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

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

.primary-button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    box-shadow: 0 18px 45px rgba(8, 145, 178, 0.38);
}

.ghost-button,
.panel-link {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    background: rgba(15, 23, 42, 0.46);
}

.ghost-button.light {
    border-color: rgba(103, 232, 249, 0.32);
    color: #cffafe;
}

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

.full {
    width: 100%;
}

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

.hero-dots button {
    width: 42px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--cyan-soft);
}

.hero-thumbs {
    position: absolute;
    z-index: 4;
    right: max(22px, calc((100vw - 1280px) / 2 + 22px));
    bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, 1fr));
    gap: 12px;
    width: min(520px, 48vw);
}

.hero-thumb {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(14px);
}

.hero-thumb img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.96);
}

.hero-thumb span {
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 22px;
}

.home-intro {
    padding-top: 34px;
}

.intro-card,
.global-search-panel,
.category-panel,
.detail-title-block,
.detail-columns section {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.48));
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.intro-card {
    padding: clamp(28px, 5vw, 54px);
}

.intro-card h1,
.page-hero h1,
.detail-title-block h1 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.intro-card p,
.page-hero p,
.section-head p,
.category-panel p,
.detail-title-block p,
.detail-columns p {
    color: #cbd5e1;
    line-height: 1.85;
}

.intro-card p {
    max-width: 820px;
    margin: 0 0 28px;
    font-size: 18px;
}

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

.section-head h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head a {
    color: #67e8f9;
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 24px 70px rgba(8, 145, 178, 0.22);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #083344);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.movie-poster i {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #cffafe;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    background: rgba(8, 145, 178, 0.78);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #082f49;
    background: #67e8f9;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.movie-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.movie-info strong {
    color: var(--white);
    font-size: 16px;
    line-height: 1.35;
    min-height: 43px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info em,
.movie-info small,
.compact-card small {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.movie-info small {
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 42%),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.56);
}

.category-tile strong,
.category-panel h2 {
    color: var(--white);
    font-size: 22px;
}

.category-tile span,
.category-tile em {
    color: #cbd5e1;
    line-height: 1.7;
    font-style: normal;
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(100deg, rgba(2, 6, 23, 0.98), rgba(8, 47, 73, 0.72)),
        radial-gradient(circle at 80% 18%, rgba(34, 211, 238, 0.28), transparent 36%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.page-hero > div {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 80px 22px 60px;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.category-panel {
    padding: 24px;
}

.category-panel h2 {
    margin: 0 0 10px;
}

.compact-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.compact-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    background: rgba(2, 6, 23, 0.42);
}

.compact-card img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    background: #0f172a;
}

.compact-card strong {
    display: block;
    color: var(--white);
    margin-bottom: 6px;
}

.filter-bar,
.global-search-panel {
    display: grid;
    grid-template-columns: 1fr 180px 160px;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-bar input,
.filter-bar select,
.global-search-panel input,
.global-search-panel select {
    min-height: 48px;
    width: 100%;
    color: var(--white);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 0 14px;
    outline: 0;
}

.global-search-panel {
    grid-template-columns: 1fr 220px 120px;
    padding: 18px;
}

.detail-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 22px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    border: 1px solid rgba(103, 232, 249, 0.24);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(8, 145, 178, 0.26), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36));
}

.player-cover span {
    position: relative;
    z-index: 2;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 145, 178, 0.9);
    box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.12), 0 20px 50px rgba(0, 0, 0, 0.42);
    font-weight: 900;
}

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

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 5;
    margin: 0;
    color: #fecaca;
    font-weight: 700;
}

.detail-side {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.74);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
    margin-bottom: 14px;
}

.detail-actions {
    flex-direction: column;
}

.detail-content {
    padding-top: 42px;
}

.detail-title-block {
    padding: clamp(24px, 4vw, 42px);
    margin-bottom: 24px;
}

.detail-title-block h1 {
    margin-bottom: 18px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.detail-columns section {
    padding: 28px;
}

.detail-columns h2 {
    margin: 0 0 14px;
    font-size: 26px;
    color: var(--white);
}

.empty-tip {
    padding: 34px;
    text-align: center;
    color: #cbd5e1;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 20px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.84);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.site-footer p,
.footer-links a {
    color: #94a3b8;
    line-height: 1.8;
}

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

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

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

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

    .hero-thumbs {
        width: min(500px, 60vw);
    }
}

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

    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 620px;
        height: 620px;
    }

    .hero-content {
        align-items: center;
        padding-bottom: 150px;
    }

    .hero-thumbs {
        left: 22px;
        right: 22px;
        width: auto;
        grid-template-columns: repeat(3, 1fr);
    }

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

    .category-grid,
    .category-panels,
    .detail-columns,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .detail-side {
        display: grid;
        grid-template-columns: 170px 1fr;
        gap: 18px;
        align-items: center;
    }

    .detail-side img {
        margin-bottom: 0;
    }
}

@media (max-width: 720px) {
    .nav-wrap {
        height: 64px;
        padding: 0 16px;
    }

    .hero-carousel,
    .hero-slides {
        min-height: 720px;
        height: 720px;
    }

    .hero-content {
        padding: 78px 16px 230px;
    }

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

    .hero-thumbs {
        grid-template-columns: 1fr;
        bottom: 24px;
    }

    .hero-dots {
        bottom: 198px;
    }

    .content-section,
    .detail-top,
    .page-hero > div {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .category-grid,
    .category-panels,
    .detail-columns,
    .footer-grid,
    .filter-bar,
    .global-search-panel {
        grid-template-columns: 1fr;
    }

    .global-search-panel {
        padding: 14px;
    }

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

    .detail-side img {
        max-width: 220px;
        margin: 0 auto;
    }

    .player-cover span {
        width: 92px;
        height: 92px;
    }
}

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

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