:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(34, 211, 238, 0.22);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #34d399;
    --orange: #f59e0b;
    --shadow: 0 20px 60px rgba(8, 145, 178, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.12), transparent 30rem),
        radial-gradient(circle at 85% 4%, rgba(59, 130, 246, 0.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.grid-light {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.14) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.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);
    overflow: clip;
}

.nav-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cyan), #93c5fd, var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

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

.nav-link {
    position: relative;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.nav-link::after {
    content: "";
    position: absolute;
    inset: auto 12px 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
}

.top-search {
    display: flex;
    align-items: center;
    width: 250px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
}

.top-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.top-search input {
    padding: 10px 6px 10px 14px;
}

.top-search button {
    width: 42px;
    height: 42px;
    border: 0;
    color: var(--cyan);
    background: transparent;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
}

.mobile-panel {
    position: relative;
    z-index: 2;
    display: none;
    padding: 0 16px 16px;
}

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

.mobile-panel form {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-panel a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.hero-shell {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 20% 12%, rgba(34, 211, 238, 0.22), transparent 28rem),
        radial-gradient(circle at 75% 45%, rgba(59, 130, 246, 0.22), transparent 34rem);
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 92px 0 110px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.45;
    animation: pulseGlow 5s ease-in-out infinite;
}

.hero-glow.one {
    width: 280px;
    height: 280px;
    top: 8%;
    left: 5%;
    background: rgba(34, 211, 238, 0.35);
}

.hero-glow.two {
    width: 430px;
    height: 430px;
    right: 2%;
    bottom: 12%;
    background: rgba(59, 130, 246, 0.35);
    animation-delay: 1s;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
    gap: 48px;
    align-items: center;
}

.hero-slide.active {
    display: grid;
    animation: heroIn 0.7s ease both;
}

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

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-main h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    max-width: 840px;
    font-size: clamp(42px, 7vw, 78px);
    background: linear-gradient(90deg, var(--cyan), #93c5fd, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 690px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-tags,
.hero-actions,
.hero-stats,
.meta-line,
.detail-stats,
.detail-pills,
.social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

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

.hero-tags a {
    padding: 8px 12px;
    color: #bae6fd;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-actions {
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 15px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
    border: 1px solid rgba(34, 211, 238, 0.42);
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
    max-width: 480px;
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats span {
    padding: 16px 18px;
    text-align: center;
    border-right: 1px solid rgba(34, 211, 238, 0.16);
}

.hero-stats span:last-child {
    border-right: 0;
}

.hero-stats strong {
    display: block;
    color: var(--cyan);
    font-size: 28px;
}

.hero-stats em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.hero-poster {
    position: relative;
    min-height: 520px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.16)),
        #0f172a;
}

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

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 58%);
}

.hero-poster-info {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
}

.hero-poster-info strong {
    display: block;
    font-size: 30px;
    line-height: 1.2;
}

.hero-poster-info em {
    color: var(--cyan);
    font-style: normal;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-controls button {
    border: 1px solid var(--line);
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dots button.active {
    width: 30px;
    background: var(--cyan);
}

.wave-cut {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 78px;
    background: var(--bg);
    clip-path: polygon(0 42%, 18% 68%, 45% 46%, 68% 72%, 100% 36%, 100% 100%, 0 100%);
}

.content-section {
    padding: 64px 0;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--cyan);
    font-weight: 700;
}

.section-more span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

.featured-grid,
.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.featured-card,
.video-card,
.rank-row,
.compact-card,
.category-card,
.panel-card,
.detail-block,
.side-card,
.filter-bar,
.index-group {
    border: 1px solid var(--line-soft);
    background: var(--panel);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.featured-card {
    position: relative;
    min-height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
}

.featured-poster,
.featured-poster img {
    width: 100%;
    height: 100%;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.34), transparent);
}

.featured-content {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 8px;
}

.featured-content strong {
    font-size: 24px;
    line-height: 1.2;
}

.featured-content > span:last-child {
    color: #d1d5db;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-halo,
.card-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(34, 211, 238, 0.88);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-halo {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.featured-card:hover .play-halo,
.video-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.video-card:hover,
.compact-card:hover,
.rank-row:hover,
.category-card:hover {
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.video-poster {
    aspect-ratio: 3 / 4;
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent 44%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.video-card:hover .card-shade {
    opacity: 1;
}

.card-play {
    width: 52px;
    height: 52px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
}

.video-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.video-body strong {
    line-height: 1.3;
    font-size: 16px;
}

.video-card:hover strong,
.rank-row:hover strong,
.compact-card:hover strong {
    color: var(--cyan);
}

.line-clamp {
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.meta-line.muted {
    color: #64748b;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill.cyan {
    color: #ecfeff;
    background: rgba(34, 211, 238, 0.74);
}

.pill.soft {
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(34, 211, 238, 0.1);
}

.rating {
    color: #fbbf24;
    font-weight: 800;
}

.glow-panel {
    position: relative;
}

.panel-card {
    position: relative;
    padding: 28px;
    border-color: rgba(34, 211, 238, 0.18);
    border-radius: 28px;
}

.panel-card::before {
    content: "";
    position: absolute;
    inset: -30px;
    z-index: -1;
    border-radius: 34px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08));
    filter: blur(32px);
}

.ranking-list,
.ranking-board {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.rank-item.large {
    grid-template-columns: 58px minmax(0, 1fr);
}

.rank-index {
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
}

.rank-thumb {
    width: 130px;
    height: 78px;
    border-radius: 12px;
}

.rank-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-main strong,
.compact-body strong {
    line-height: 1.3;
}

.rank-main > span:nth-child(2) {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-score {
    color: #fbbf24;
    font-size: 22px;
    font-weight: 900;
}

.category-strip,
.category-grid {
    display: grid;
    gap: 16px;
}

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

.category-strip a,
.category-card {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.category-strip a {
    min-height: 120px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.08));
}

.category-strip strong,
.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-strip span,
.category-card p,
.category-card div {
    color: var(--muted);
    font-size: 14px;
}

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

.category-card {
    min-height: 210px;
}

.category-card p {
    margin: 0 0 18px;
}

.category-card div {
    display: grid;
    gap: 6px;
}

.page-hero {
    position: relative;
    padding: 90px 0 72px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.78)),
        radial-gradient(circle at 15% 15%, rgba(34, 211, 238, 0.2), transparent 28rem);
    border-bottom: 1px solid var(--line-soft);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    background: linear-gradient(90deg, var(--cyan), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 19px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(120px, 170px)) auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 26px;
    border-radius: 20px;
}

.filter-search,
.filter-bar select,
.filter-bar button {
    min-height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.filter-search {
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.filter-search span {
    color: var(--cyan);
}

.filter-bar select {
    padding: 0 12px;
}

.filter-bar button {
    padding: 0 16px;
    cursor: pointer;
}

.empty-state {
    display: none;
    padding: 44px;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.empty-state.show {
    display: block;
}

.player-hero {
    padding: 36px 0 44px;
    background:
        radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.17), transparent 28rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.9));
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: #000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.video-element {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.9);
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.45);
    font-size: 34px;
    padding-left: 6px;
}

.player-overlay strong {
    max-width: min(760px, 90%);
    font-size: clamp(22px, 4vw, 40px);
    line-height: 1.2;
    text-align: center;
}

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

.player-overlay.loading span {
    animation: pulseGlow 1.2s ease-in-out infinite;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    padding: 52px 0 20px;
}

.detail-main h1 {
    margin: 12px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    color: #ffffff;
}

.detail-stats {
    margin-bottom: 24px;
    color: var(--muted);
}

.detail-stats span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.detail-block {
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 22px;
}

.detail-block h2,
.side-card h2,
.index-group h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 14px;
    font-size: 22px;
    line-height: 1.3;
}

.detail-block h2::before,
.side-card h2::before,
.index-group h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--cyan);
}

.detail-block p {
    margin: 0;
    color: #d1d5db;
    font-size: 16px;
}

.accent-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(34, 211, 238, 0.07));
    border-color: rgba(34, 211, 238, 0.22);
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.info-list div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    color: #f8fafc;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-cloud span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    font-size: 13px;
}

.detail-side {
    min-width: 0;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: 22px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
}

.compact-thumb {
    width: 112px;
    height: 72px;
    border-radius: 12px;
}

.compact-body {
    display: grid;
    gap: 8px;
}

.compact-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index-group {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
}

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

.text-link-grid a {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-link-grid a:hover {
    color: var(--cyan);
}

.site-footer {
    position: relative;
    margin-top: 44px;
    padding: 56px 0 24px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(0, 0, 0, 0.92));
    overflow: hidden;
}

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    margin: 0;
    max-width: 430px;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

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

.social-row {
    margin-top: 18px;
}

.social-row span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--cyan);
    border: 1px solid var(--line);
    background: rgba(34, 211, 238, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.copyright {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.42;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.68;
    }
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .top-search {
        margin-left: auto;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-poster {
        min-height: 420px;
        transform: none;
    }

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

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

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

    .side-card {
        position: static;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .top-search {
        display: none;
    }

    .brand {
        font-size: 20px;
    }

    .hero-shell {
        min-height: auto;
    }

    .hero-container {
        padding: 56px 0 92px;
    }

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

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

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

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

    .hero-stats span {
        border-right: 0;
        border-bottom: 1px solid rgba(34, 211, 238, 0.16);
    }

    .hero-stats span:last-child {
        border-bottom: 0;
    }

    .hero-poster {
        min-height: 360px;
    }

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

    .featured-grid,
    .movie-grid,
    .movie-grid.six,
    .all-grid,
    .category-strip,
    .category-grid,
    .footer-grid,
    .text-link-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .rank-score {
        grid-column: 2;
        justify-self: start;
        font-size: 18px;
    }

    .rank-thumb {
        width: 96px;
        height: 64px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 62px 0 50px;
    }

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

    .detail-block {
        padding: 18px;
    }

    .footer-grid {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.six,
    .all-grid,
    .category-strip,
    .category-grid,
    .text-link-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item,
    .rank-item.large {
        grid-template-columns: 40px minmax(0, 1fr);
    }
}
