:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(30, 41, 59, 0.86);
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(34, 211, 238, 0.32);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.58);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.42);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.26);
    transition: transform 260ms ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
    border-radius: 12px;
    color: #cbd5e1;
    font-weight: 650;
    transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.72);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.72);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: #e2e8f0;
    border-radius: 999px;
    transition: transform 220ms ease, opacity 220ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    overflow: hidden;
    isolation: isolate;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 74% 16%, rgba(59, 130, 246, 0.16), transparent 32rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.92));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0 116px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.99);
    transition: opacity 680ms ease, transform 680ms ease, visibility 680ms ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: -10% -15%;
    z-index: -1;
    opacity: 0.28;
    filter: blur(6px) saturate(1.25);
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.9) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

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

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

.kicker,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker::before,
.hero-kicker::before {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    content: "";
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero h2 {
    margin: 0 0 16px;
    color: #e0f2fe;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
}

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--muted-strong);
    font-size: clamp(16px, 1.5vw, 20px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.genre-list span {
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
    color: #bae6fd;
    background: rgba(8, 47, 73, 0.38);
    font-size: 12px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

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

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

.btn-primary {
    color: white;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 38px rgba(34, 211, 238, 0.26);
}

.btn-primary:hover {
    box-shadow: 0 18px 46px rgba(34, 211, 238, 0.34);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
}

.btn-plain {
    color: #67e8f9;
    background: rgba(8, 47, 73, 0.34);
}

.hero-poster {
    position: relative;
    display: block;
    width: min(100%, 390px);
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(8, 47, 73, 0.72));
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow: var(--shadow);
    transform: perspective(900px) rotateY(-7deg) rotateX(2deg);
    transition: transform 280ms ease;
}

.hero-poster:hover {
    transform: perspective(900px) rotateY(-2deg) rotateX(0deg) translateY(-6px);
}

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

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.28);
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #e0f2fe;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-dot {
    width: 28px;
    height: 7px;
    margin: 0 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.34);
}

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

.search-band {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 28px;
    padding: 28px 0;
}

.search-band h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 34px);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.62);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.search-form input:focus {
    border-color: rgba(34, 211, 238, 0.64);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.search-form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    font-weight: 800;
    cursor: pointer;
}

.block-section {
    padding: 72px 0;
}

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

.section-heading.tight {
    align-items: start;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.16;
}

.section-heading p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    min-width: max-content;
    border-radius: 999px;
    padding: 10px 16px;
    color: #67e8f9;
    background: rgba(8, 47, 73, 0.32);
    border: 1px solid rgba(34, 211, 238, 0.16);
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.26);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(34, 211, 238, 0.44);
    box-shadow: 0 24px 68px rgba(2, 6, 23, 0.38);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(8, 47, 73, 0.74));
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.04);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(2, 6, 23, 0.86));
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: translateY(0);
}

.card-rank {
    position: absolute;
    left: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 34px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: #67e8f9;
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.tag-row {
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.54);
    border-color: rgba(148, 163, 184, 0.18);
}

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

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: 0 18px 56px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(18px);
}

.panel-large {
    padding: 24px;
}

.ranking-panel {
    padding: 24px;
}

.sticky-panel {
    position: sticky;
    top: 92px;
}

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

.rank-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: border-color 220ms ease, transform 220ms ease, background 220ms ease;
}

.rank-link:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 47, 73, 0.34);
}

.rank-marker {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 900;
}

.rank-link span:last-child {
    display: grid;
    gap: 2px;
}

.rank-link strong {
    line-height: 1.25;
}

.rank-link small {
    color: var(--muted);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.66));
    transition: transform 230ms ease, border-color 230ms ease;
}

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

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.4);
}

.category-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 68%);
}

.category-card strong,
.category-main-link strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p,
.category-main-link p {
    color: var(--muted);
    margin: 0 0 18px;
}

.category-card div,
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card span:not(.category-glow),
.mini-links a,
.category-sibling-links a {
    border-radius: 999px;
    padding: 6px 9px;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.58);
    font-size: 12px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 104px 0 64px;
    background:
        radial-gradient(circle at 24% 18%, rgba(34, 211, 238, 0.16), transparent 32rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.92));
    border-bottom: 1px solid var(--line);
}

.slim-hero {
    padding: 86px 0 58px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 740px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
}

.hero-search,
.page-search {
    max-width: 720px;
    margin-top: 26px;
}

.breadcrumb-links,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

.breadcrumb a::after,
.breadcrumb-links a::after {
    margin-left: 8px;
    color: rgba(148, 163, 184, 0.58);
    content: "/";
}

.category-sibling-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

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

.category-overview-card {
    padding: 22px;
}

.category-main-link {
    display: block;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.mini-links {
    margin-top: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 9px 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.42);
    background: rgba(8, 47, 73, 0.52);
}

.empty-state {
    display: none;
    margin: 40px 0 0;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid var(--line);
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.34;
    filter: blur(4px) saturate(1.12);
}

.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 55%);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 74px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(8, 47, 73, 0.74));
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-size: 19px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.64);
    font-weight: 750;
}

.player-section {
    padding: 72px 0 32px;
}

.player-shell {
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 30px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.38), rgba(15, 23, 42, 0.86));
    box-shadow: var(--shadow);
}

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

.video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    cursor: pointer;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
}

.player-start span {
    display: grid;
    place-items: center;
    width: clamp(76px, 9vw, 112px);
    height: clamp(76px, 9vw, 112px);
    border-radius: 34px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.34);
    font-size: 34px;
    transform: translateX(2px);
    transition: transform 220ms ease;
}

.player-start:hover span {
    transform: translateX(2px) scale(1.06);
}

.player-start.is-hidden {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    padding: 32px 0 24px;
}

.detail-main,
.detail-side {
    padding: 28px;
}

.detail-main h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-main p {
    margin: 0 0 26px;
    color: var(--muted-strong);
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
}

.detail-side dl div {
    display: grid;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side dt {
    color: var(--muted);
    font-size: 13px;
}

.detail-side dd {
    margin: 0;
    color: #f8fafc;
    font-weight: 750;
}

.detail-side a {
    color: #67e8f9;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(260px, 1fr);
    gap: 36px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

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

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

.footer-categories h2 {
    grid-column: 1 / -1;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

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

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

    .split-layout,
    .ranking-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 58px 0 112px;
    }

    .hero-poster {
        width: min(100%, 300px);
        transform: none;
    }

    .search-band-inner,
    .detail-hero-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

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

    .detail-poster {
        width: min(100%, 280px);
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

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

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

    .movie-card h2 {
        font-size: 16px;
    }

    .movie-card p {
        display: none;
    }

    .tag-row {
        display: none;
    }

    .block-section {
        padding: 46px 0;
    }

    .page-hero {
        padding: 64px 0 44px;
    }

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

    .detail-hero-inner {
        padding: 48px 0;
    }

    .detail-main,
    .detail-side,
    .panel-large,
    .ranking-panel {
        padding: 18px;
    }
}
