:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-solid: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.16);
    --cyan-line: rgba(34, 211, 238, 0.42);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    --radius-small: 14px;
    --container: min(1180px, calc(100vw - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: var(--container);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #001018;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.brand-text em {
    color: var(--cyan);
    font-size: 0.72rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

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

.desktop-nav a,
.mobile-nav a,
.nav-dropdown > a {
    color: var(--muted-strong);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    width: 180px;
    padding: 10px;
    display: grid;
    gap: 2px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.dropdown-panel a {
    padding: 8px 10px;
    border-radius: 10px;
}

.dropdown-panel a:hover {
    background: var(--cyan-soft);
}

.header-search {
    width: 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.header-search input,
.mobile-nav input,
.wide-search input,
.listing-tools input {
    width: 100%;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search input {
    padding: 4px 8px;
}

.header-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #001018;
    background: var(--cyan);
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    width: var(--container);
    margin: 0 auto 14px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.mobile-nav a {
    display: block;
    padding: 10px 6px;
}

.mobile-nav form {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.hero {
    width: var(--container);
    margin: 28px auto 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 32px;
    box-shadow: var(--shadow);
    background: var(--panel-solid);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 58px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-overlay,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.56) 46%, rgba(2, 6, 23, 0.08) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, transparent 68%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.intro-panel h1,
.detail-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p,
.page-hero p,
.intro-panel p,
.featured-band p,
.detail-one-line {
    max-width: 720px;
    color: var(--muted-strong);
    font-size: 1.05rem;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span {
    padding: 6px 10px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
}

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

.primary-button,
.ghost-button,
.listing-tools a,
.section-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #001018;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.26);
}

.ghost-button,
.listing-tools a,
.section-heading a {
    color: var(--text);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--line);
}

.primary-button:hover,
.ghost-button:hover,
.listing-tools a:hover,
.section-heading a:hover {
    transform: translateY(-2px);
    border-color: var(--cyan-line);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(2, 6, 23, 0.58);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: var(--cyan);
}

.hero-side {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-side-head,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-side-head span {
    font-weight: 800;
}

.hero-side-head a {
    color: var(--cyan);
    font-size: 0.86rem;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-mini-card:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: var(--cyan-line);
}

.hero-mini-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini-card span {
    color: var(--muted-strong);
    font-weight: 700;
}

.section-wrap,
.page-hero {
    width: var(--container);
    margin: 0 auto 56px;
}

.intro-panel,
.featured-band,
.page-hero {
    padding: clamp(24px, 5vw, 42px);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.intro-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 26px;
    align-items: center;
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.wide-search input {
    padding: 8px 12px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2,
.featured-band h2,
.detail-text h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
}

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

.category-tile,
.category-overview-card {
    min-height: 190px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-line);
}

.tile-covers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 12px;
}

.tile-covers img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

.category-tile strong,
.category-title {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.category-tile span,
.category-overview-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

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

.overview-links a {
    color: var(--muted-strong);
    font-size: 0.92rem;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.45s ease, opacity 0.3s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    color: #001018;
    background: var(--cyan);
    font-size: 0.78rem;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid var(--cyan-line);
}

.movie-info {
    padding: 14px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
}

.movie-info h2 {
    margin: 8px 0 6px;
    font-size: 1rem;
    line-height: 1.32;
}

.movie-info h2 a:hover {
    color: var(--cyan);
}

.movie-info p {
    display: -webkit-box;
    min-height: 3.05em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list span {
    padding: 4px 8px;
    font-size: 0.72rem;
}

.page-main {
    padding-top: 28px;
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
    min-height: 260px;
    display: grid;
    align-content: end;
}

.listing-tools {
    max-width: 760px;
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.listing-tools input {
    min-height: 46px;
    padding: 0 16px;
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.detail-hero {
    position: relative;
    min-height: 680px;
    margin-top: -1px;
    background-size: cover;
    background-position: center;
}

.detail-content {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
    padding: 42px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--muted-strong);
    font-size: 0.92rem;
}

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

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

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

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

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

.player-section {
    margin-top: -72px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #000;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    gap: 12px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.82));
    border: 0;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 900;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #001018;
    background: var(--cyan);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.42);
}

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

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

.detail-text article {
    padding: 26px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.detail-text p {
    color: var(--muted-strong);
}

.site-footer {
    width: var(--container);
    margin: 80px auto 28px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 26px;
}

.footer-brand {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 900;
}

.site-footer p,
.footer-bottom {
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

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

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

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

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

    .hero-side {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-side-head {
        grid-column: 1 / -1;
    }

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

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-stage {
        min-height: 520px;
    }

    .hero-slide {
        padding: 36px;
    }

    .hero-side,
    .intro-panel,
    .detail-layout,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 620px) {
    :root {
        --container: min(100vw - 20px, 1180px);
    }

    .header-inner {
        height: 64px;
    }

    .brand-text em {
        display: none;
    }

    .hero {
        margin-top: 16px;
    }

    .hero-stage {
        min-height: 500px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px 22px 54px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(2rem, 13vw, 3.6rem);
    }

    .hero-arrow {
        display: none;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .home-grid,
    .listing-grid,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .listing-tools {
        flex-direction: column;
        border-radius: 22px;
    }

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

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

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