:root {
  --bg: #0b1220;
  --bg-soft: #121b2f;
  --bg-panel: rgba(16, 24, 40, 0.82);
  --bg-panel-strong: rgba(13, 19, 32, 0.94);
  --bg-panel-light: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --text-muted: #bac6da;
  --text-dim: #7d8ca8;
  --accent: #2e90fa;
  --accent-strong: #5ab0ff;
  --accent-cold: #6ed8d1;
  --accent-lime: #a8f0b6;
  --accent-gold: #ffb85c;
  --success: #4ade80;
  --danger: #ff697b;
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.22);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(46, 144, 250, 0.14), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(110, 216, 209, 0.12), transparent 22%),
    radial-gradient(circle at 50% 80%, rgba(255, 184, 92, 0.08), transparent 28%),
    linear-gradient(180deg, #111a2d 0%, #0a1120 42%, #070d18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.26;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 110px,
      rgba(255, 255, 255, 0.022) 110px,
      rgba(255, 255, 255, 0.022) 111px
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 24%);
}

a {
  color: inherit;
}

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

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.45;
}

.bg-orb-a {
  top: 88px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: rgba(46, 144, 250, 0.2);
}

.bg-orb-b {
  top: 20%;
  right: 8%;
  width: 220px;
  height: 220px;
  background: rgba(110, 216, 209, 0.18);
}

.bg-orb-c {
  bottom: 10%;
  left: 30%;
  width: 320px;
  height: 320px;
  background: rgba(255, 184, 92, 0.1);
}

.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  flex: 1;
  padding: 34px 0 72px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: rgba(6, 10, 18, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo,
.logo-full {
  text-decoration: none;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-cold));
  color: #f8fbff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 38px rgba(46, 144, 250, 0.24);
}

.logo-full,
.hero h1,
.section-title,
.detail-block-title,
.movie-stage-copy h1,
.hero-note strong,
.stat-num {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.logo-full {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.search-form {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 560px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-form input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.search-form input::placeholder {
  color: var(--text-dim);
}

.search-form button {
  min-width: 118px;
  min-height: 50px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link,
.btn-random,
.btn-random-secondary,
.btn,
.cat-chip,
.tab-link,
.genre-chip,
.video-item,
.movie-card,
.kp-result-item {
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.nav-link {
  padding: 11px 15px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-primary {
  color: #14100b;
  background: linear-gradient(135deg, var(--accent-gold), #ffe6a8);
}

.nav-link-primary:hover,
.nav-link-primary.is-active {
  color: #14100b;
  background: linear-gradient(135deg, #ffd978, #fff0b7);
}

.btn-random,
.btn-random-secondary,
.btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn:hover,
.btn-random:hover,
.btn-random-secondary:hover,
.cat-chip:hover,
.tab-link:hover,
.movie-card:hover,
.video-item:hover,
.kp-result-item:hover {
  transform: translateY(-2px);
}

.btn-random,
.btn-random-secondary,
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.btn-kp {
  color: #1b1209;
  background: linear-gradient(135deg, var(--accent-gold), #ffe8ae);
}

.btn-remove {
  color: #ffe1e6;
  background: rgba(255, 105, 123, 0.1);
  border-color: rgba(255, 105, 123, 0.24);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(12, 18, 31, 0.98), rgba(10, 16, 26, 0.94));
  box-shadow: var(--shadow-xl);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -50px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 95, 59, 0.28), transparent 70%);
  filter: blur(6px);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.88fr);
  gap: 22px;
  padding: 34px;
}

.hero-compact {
  padding: 28px 30px;
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-kicker,
.section-kicker,
.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cold);
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-kicker::before,
.section-kicker::before,
.meta-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cold), transparent);
}

.hero-home h1 {
  font-size: clamp(3rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-home h1 span {
  display: block;
}

.hero-home h1 span:nth-child(2) {
  color: var(--accent-cold);
}

.hero-home h1 span:nth-child(3) {
  color: var(--accent-gold);
}

.hero-compact h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero p,
.toolbar-copy p,
.watch-note,
.footer-copy p,
.kp-result-info p,
.spotlight-card p,
.login-prompt {
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-actions,
.watch-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.92rem;
}

.hero-note {
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(118, 214, 255, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-note-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  margin-bottom: 14px;
  font-size: 3.4rem;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.hero-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-note-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-note-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.hero-note-grid b {
  font-size: 1.15rem;
}

.spotlight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.spotlight-card,
.catalog-shell,
.kp-results,
.profile-tabs,
.auth-shell,
.status-section,
.detail-block,
.player-shell,
.movie-stage,
.stats-bar .stat-item,
.login-prompt {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-panel);
  box-shadow: var(--shadow-lg);
}

.spotlight-card {
  padding: 24px;
  border-radius: 26px;
}

.spotlight-card-feature {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 95, 59, 0.16), rgba(118, 214, 255, 0.08)),
    var(--bg-panel);
}

.spotlight-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-lime);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spotlight-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.stat-item {
  padding: 18px;
  border-radius: 20px;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  line-height: 0.95;
  letter-spacing: 0.06em;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.categories-bar,
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categories-bar {
  margin-bottom: 24px;
}

.profile-tabs {
  padding: 16px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
}

.cat-chip,
.tab-link,
.genre-chip {
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.cat-chip.active,
.tab-link.active,
.genre-chip:hover {
  color: #140f0a;
  background: linear-gradient(135deg, var(--accent-gold), #ffe7ad);
  border-color: rgba(255, 211, 106, 0.3);
}

.cat-chip.cat-random {
  color: var(--text);
  background: rgba(118, 214, 255, 0.1);
  border-color: rgba(118, 214, 255, 0.24);
}

.tab-count {
  margin-left: 8px;
  color: inherit;
  opacity: 0.8;
}

.catalog-shell,
.kp-results,
.auth-shell,
.player-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
}

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

.toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title,
.detail-block-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.count {
  color: var(--accent-cold);
  font-size: 0.58em;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-group,
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label,
.form-group label {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.filter-group select,
.filter-group input,
.form-group input,
.form-group select {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 18, 0.74);
  color: var(--text);
  outline: 0;
  font: inherit;
}

.filter-group select:focus,
.filter-group input:focus,
.form-group input:focus,
.form-group select:focus,
.search-form input:focus {
  border-color: rgba(118, 214, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(118, 214, 255, 0.12);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--bg-panel-strong);
  box-shadow: var(--shadow-md);
}

.movie-card:hover {
  border-color: rgba(255, 95, 59, 0.26);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.36);
}

.movie-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(5, 7, 11, 0.3) 100%);
  pointer-events: none;
}

.movie-card-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(255, 95, 59, 0.1), rgba(118, 214, 255, 0.08));
}

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

.movie-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.06), rgba(5, 8, 14, 0.72));
}

.card-overlay-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-rating,
.card-type,
.card-status,
.card-user-rating {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-rating {
  color: #130e08;
  background: linear-gradient(135deg, var(--accent-gold), #ffeebd);
}

.card-type {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.card-status,
.card-user-rating {
  align-self: flex-start;
}

.card-user-rating {
  color: #07110a;
  background: linear-gradient(135deg, var(--accent-lime), #ecffcd);
}

.status-watching {
  color: #07100f;
  background: linear-gradient(135deg, #7be7b0, #d8ffe9);
}

.status-completed {
  color: #07110a;
  background: linear-gradient(135deg, var(--accent-lime), #efffcf);
}

.status-dropped {
  color: #24080c;
  background: linear-gradient(135deg, #ff8a99, #ffd1d8);
}

.status-planned {
  color: #08101d;
  background: linear-gradient(135deg, var(--accent-cold), #dff6ff);
}

.status-on_hold {
  color: #201505;
  background: linear-gradient(135deg, #ffd36a, #fff0c8);
}

.movie-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-title {
  font-size: 1.14rem;
  line-height: 1.25;
}

.card-genres,
.card-director,
.card-desc,
.meta-votes {
  color: var(--text-muted);
}

.card-genres {
  font-size: 0.92rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.card-director {
  font-size: 0.9rem;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.65;
}

.empty-state,
.catalog-feed-status,
.login-prompt,
.alert {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.empty-state,
.catalog-feed-status {
  text-align: center;
  color: var(--text-muted);
}

.catalog-feed-status {
  margin-top: 24px;
}

.catalog-feed-status.is-finished {
  color: var(--text-dim);
}

.catalog-feed-sentinel {
  height: 2px;
}

.kp-results {
  margin-top: 24px;
}

.kp-result-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.kp-results > .kp-result-item + .kp-result-item {
  margin-top: 14px;
}

.kp-result-poster {
  width: 96px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

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

.kp-result-info h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.kp-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kp-import-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(118, 214, 255, 0.1);
  border: 1px solid rgba(118, 214, 255, 0.24);
  color: var(--accent-cold);
  font-size: 0.86rem;
}

.movie-stage {
  position: relative;
  overflow: hidden;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 38px;
}

.movie-stage-backdrop {
  position: absolute;
  inset: 0;
  background-position: center top;
  background-size: cover;
  opacity: 0.18;
  filter: saturate(1.1);
}

.movie-stage-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.82) 40%, rgba(6, 10, 18, 0.96) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(6, 10, 18, 0.4));
}

.movie-stage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.movie-detail-poster {
  position: sticky;
  top: 106px;
}

.movie-detail-poster img,
.no-poster.large {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
}

.no-poster,
.no-poster.large {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 95, 59, 0.16), rgba(118, 214, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.detail-rating-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-width: 98px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.rating-label {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.movie-stage-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-decoration: none;
  color: var(--text-muted);
}

.back-link::before {
  content: "←";
}

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

.detail-type {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #0f0c08;
  background: linear-gradient(135deg, var(--accent-gold), #ffe8b1);
  font-weight: 700;
}

.movie-stage-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.original-title {
  color: var(--text-dim);
  font-size: 1.03rem;
}

.detail-loading {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(118, 214, 255, 0.08);
  border: 1px solid rgba(118, 214, 255, 0.18);
  color: var(--accent-cold);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.meta-item,
.extra-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.meta-label::before {
  width: 18px;
}

.meta-value,
.extra-value,
.director-name {
  display: block;
  margin-top: 8px;
  color: var(--text);
  line-height: 1.45;
}

.short-description {
  max-width: 900px;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-muted);
}

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

.detail-director {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.watch-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 95, 59, 0.14), rgba(118, 214, 255, 0.07)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.watch-panel-copy {
  max-width: 720px;
}

.watch-panel-copy .detail-block-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.player-shell {
  margin-bottom: 24px;
}

.player-progress-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(46, 144, 250, 0.14), rgba(255, 173, 92, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.player-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-progress-copy strong {
  font-size: 1.18rem;
  line-height: 1.35;
}

.player-progress-copy p {
  color: var(--text-muted);
  line-height: 1.65;
}

.player-progress-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.player-progress-pill {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(7, 13, 23, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.player-progress-bar,
.profile-progress-bar {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.player-progress-bar span,
.profile-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5da7ff, #ffbf72);
}

.player-frame-wrap {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.44);
}

.player-frame-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.player-frame-wrap-embed {
  min-height: 560px;
  padding: 0;
}

.player-frame-wrap-embed .kinobox {
  min-height: 560px;
}

.player-frame-wrap-embed .kinobox_section,
.player-frame-wrap-embed .kinobox_container,
.player-frame-wrap-embed .kinobox_iframe_container,
.player-frame-wrap-embed .kinobox_iframe {
  height: 100%;
  min-height: 560px;
  border-radius: 0;
}

.player-frame-wrap-embed .kinobox_container {
  background: #05070c;
}

.player-frame-wrap-embed .kinobox_menu_button {
  background-color: rgba(46, 144, 250, 0.88);
  outline: none;
}

.player-frame-wrap-embed .kinobox_menu_button:hover {
  background-color: rgba(90, 176, 255, 0.92);
}

.player-frame-wrap-embed .kbt_button {
  background: rgba(7, 12, 20, 0.82);
}

.player-frame-wrap-embed .kbt_button ul {
  background: rgba(17, 26, 45, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}

.player-frame-wrap-embed .kbt_button li {
  background: rgba(22, 32, 54, 0.96);
  color: var(--text);
}

.player-frame-wrap-embed .kbt_button li:hover,
.player-frame-wrap-embed .kbt_button .kinobox_menu_active {
  background: rgba(46, 144, 250, 0.92) !important;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 24px;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-block,
.status-section {
  padding: 24px;
  border-radius: 30px;
}

.detail-block-title {
  margin: 10px 0 16px;
}

.detail-slogan {
  margin-bottom: 16px;
  color: var(--accent-gold);
  font-size: 1.05rem;
  line-height: 1.6;
}

.description {
  color: var(--text-muted);
  line-height: 1.85;
}

.detail-actors,
.detail-crew,
.media-group {
  margin-top: 16px;
}

.actor-list,
.crew-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.actor-item,
.crew-item {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.actor-photo,
.crew-photo {
  width: 100%;
  max-width: 108px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 10px;
}

.actor-name,
.crew-name {
  display: block;
  line-height: 1.45;
}

.crew-group + .crew-group {
  margin-top: 18px;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.video-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.video-item:hover {
  border-color: rgba(255, 95, 59, 0.2);
}

.video-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f0b08;
  background: linear-gradient(135deg, var(--accent-gold), #ffe9b4);
}

.video-name {
  line-height: 1.4;
}

.video-type {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.media-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.media-group-head strong {
  font-size: 1rem;
}

.media-group-head span {
  color: var(--text-dim);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

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

.extra-sub {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.status-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-auto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.status-date,
.form-footer,
.form-footer a,
.login-prompt a {
  color: var(--text-muted);
}

.profile-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.profile-progress-meta,
.card-meta-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.form-footer a,
.login-prompt a {
  color: var(--accent-cold);
  text-decoration: none;
}

.auth-shell {
  max-width: 620px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alert-error {
  margin-bottom: 18px;
  color: #ffd4db;
  background: rgba(255, 105, 123, 0.12);
  border-color: rgba(255, 105, 123, 0.24);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 30px;
}

.footer-copy strong {
  display: block;
  margin-bottom: 6px;
}

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

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

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

.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 30px;
  background: rgba(2, 4, 8, 0.88);
  align-items: center;
  justify-content: center;
}

.gallery-modal img {
  max-width: min(100%, 1200px);
  max-height: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.gallery-modal-close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 1180px) {
  .nav-inner,
  .nav-actions {
    flex-wrap: wrap;
  }

  .search-form {
    order: 3;
    max-width: none;
    width: 100%;
  }

  .hero-home,
  .movie-stage-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-detail-poster {
    position: relative;
    top: auto;
    max-width: 360px;
  }

  .spotlight-strip {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .container {
    padding: 0 18px;
  }

  .site-main {
    padding: 24px 0 56px;
  }

  .hero-home,
  .catalog-shell,
  .kp-results,
  .movie-stage,
  .detail-block,
  .status-section,
  .profile-tabs,
  .auth-shell,
  .player-shell {
    padding: 22px;
  }

  .hero-home h1 {
    font-size: clamp(3.2rem, 16vw, 5.6rem);
  }

  .hero-compact h1,
  .movie-stage-copy h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

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

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

  .toolbar,
  .watch-panel,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .kp-result-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .kp-result-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .video-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .video-type {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    gap: 14px;
  }

  .brand-copy {
    display: none;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .stats-bar,
  .filter-bar,
  .hero-note-grid,
  .actor-list,
  .crew-list,
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

  .movie-card {
    border-radius: 22px;
  }

  .kp-result-item {
    grid-template-columns: 1fr;
  }

  .kp-result-poster {
    width: 84px;
  }

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

  .hero-badge,
  .cat-chip,
  .tab-link,
  .genre-chip,
  .btn,
  .btn-random,
  .btn-random-secondary {
    width: 100%;
  }

  .hero-actions,
  .hero-badges,
  .watch-panel-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Redesign Layer */

:root {
  --bg: #08101c;
  --bg-soft: #111d31;
  --bg-panel: rgba(15, 24, 40, 0.84);
  --bg-panel-strong: rgba(10, 17, 29, 0.96);
  --bg-panel-light: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-muted: #c1cada;
  --text-dim: #8190ab;
  --accent: #f58a3a;
  --accent-strong: #ffb15e;
  --accent-cold: #71c7ff;
  --accent-lime: #a7f5bf;
  --accent-gold: #ffd27a;
  --shadow-xl: 0 34px 90px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

body {
  background:
    radial-gradient(circle at 10% 12%, rgba(113, 199, 255, 0.12), transparent 22%),
    radial-gradient(circle at 84% 9%, rgba(245, 138, 58, 0.15), transparent 20%),
    radial-gradient(circle at 54% 76%, rgba(255, 210, 122, 0.08), transparent 24%),
    linear-gradient(180deg, #0f1828 0%, #09111f 40%, #060c16 100%);
}

body::before {
  opacity: 0.16;
  background:
    linear-gradient(transparent, transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 128px,
      rgba(255, 255, 255, 0.018) 128px,
      rgba(255, 255, 255, 0.018) 129px
    );
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 24%);
}

.site-main {
  padding: 28px 0 80px;
}

.container {
  max-width: 1440px;
  padding: 0 28px;
}

.navbar {
  top: 0;
  padding-top: 16px;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.nav-inner {
  min-height: 82px;
  padding: 14px 18px;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 17, 29, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.brand-lockup {
  gap: 16px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(245, 138, 58, 0.96), rgba(113, 199, 255, 0.92));
  box-shadow: 0 14px 32px rgba(113, 199, 255, 0.16);
}

.logo-full {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.search-form {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.search-form input {
  min-height: 52px;
  padding: 0 20px;
}

.search-form button {
  min-width: 126px;
  min-height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.nav-link {
  font-size: 0.94rem;
}

.nav-link-primary,
.btn-kp,
.detail-type,
.card-rating,
.video-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
}

.nav-link-primary,
.btn-kp,
.detail-type,
.card-rating {
  color: #1a120b;
}

.btn-random,
.btn-random-secondary,
.btn-ghost,
.hero-badge,
.cat-chip,
.tab-link,
.genre-chip {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.075);
}

.btn,
.btn-random,
.btn-random-secondary {
  min-height: 50px;
}

.btn-primary {
  background: linear-gradient(135deg, #5da7ff, #8cd0ff);
  color: #08111d;
}

.hero {
  border-radius: 36px;
  border-color: rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(circle at top right, rgba(113, 199, 255, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(11, 19, 33, 0.96), rgba(16, 28, 47, 0.92));
  box-shadow: var(--shadow-xl);
}

.hero::before {
  inset: auto -40px -120px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 138, 58, 0.18), transparent 70%);
}

.hero-home {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
  padding: 40px;
}

.hero-copy {
  gap: 20px;
}

.hero-kicker,
.section-kicker,
.meta-label,
.spotlight-label {
  letter-spacing: 0.14em;
}

.hero-home h1 {
  max-width: 780px;
  font-size: clamp(3.3rem, 7vw, 5.4rem);
  line-height: 0.96;
}

.hero-home h1 span {
  margin-bottom: 4px;
}

.hero-home h1 span:nth-child(2) {
  color: var(--accent-gold);
}

.hero-home h1 span:nth-child(3) {
  color: var(--accent-cold);
}

.hero-copy > p {
  max-width: 720px;
  font-size: 1rem;
}

.hero-badges {
  gap: 12px;
}

.hero-badge {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.hero-note {
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(113, 199, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-note strong {
  font-size: 3.8rem;
  line-height: 0.92;
}

.hero-note-grid {
  gap: 14px;
}

.hero-note-grid div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.spotlight-strip {
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.spotlight-card {
  padding: 26px;
  border-radius: 28px;
}

.spotlight-card-feature {
  background:
    radial-gradient(circle at top right, rgba(255, 210, 122, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(245, 138, 58, 0.08), rgba(113, 199, 255, 0.06)),
    rgba(14, 23, 38, 0.9);
}

.stats-bar {
  gap: 14px;
}

.stat-item {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(12, 20, 34, 0.82);
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.categories-bar {
  gap: 12px;
  margin-bottom: 26px;
}

.cat-chip,
.tab-link,
.genre-chip {
  min-height: 44px;
  padding: 0 20px;
}

.cat-chip.active,
.tab-link.active,
.genre-chip:hover {
  background: linear-gradient(135deg, #ffffff, #e8eef7);
  color: #0b1220;
}

.catalog-shell,
.kp-results,
.auth-shell,
.player-shell,
.profile-tabs,
.detail-block,
.status-section,
.movie-stage,
.spotlight-card,
.login-prompt {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 18, 30, 0.84);
}

.catalog-shell,
.kp-results,
.auth-shell,
.player-shell {
  padding: 30px;
  border-radius: 34px;
}

.toolbar {
  gap: 22px;
  margin-bottom: 22px;
}

.section-title,
.detail-block-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.filter-bar {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.filter-group select,
.filter-group input,
.form-group input,
.form-group select {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(7, 13, 23, 0.78);
}

.movie-grid {
  gap: 22px;
}

.movie-card {
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(10, 17, 29, 0.96);
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(113, 199, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.movie-card::after {
  background: linear-gradient(180deg, transparent 48%, rgba(6, 10, 16, 0.48) 100%);
}

.movie-card-overlay {
  padding: 16px;
  background: linear-gradient(180deg, rgba(6, 10, 16, 0.02), rgba(6, 10, 16, 0.76));
}

.card-rating,
.card-type,
.card-status,
.card-user-rating {
  min-height: 34px;
  font-size: 0.8rem;
}

.card-type {
  background: rgba(255, 255, 255, 0.11);
}

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

.card-title {
  font-size: 1.08rem;
  line-height: 1.32;
}

.card-desc {
  color: rgba(193, 202, 218, 0.88);
}

.empty-state,
.catalog-feed-status,
.login-prompt,
.alert {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.kp-result-item {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.movie-stage {
  padding: 34px;
  border-radius: 40px;
}

.movie-stage-backdrop {
  opacity: 0.16;
}

.movie-stage-grid {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 32px;
}

.movie-detail-poster img,
.no-poster.large {
  border-radius: 30px;
}

.detail-rating-badge {
  right: 18px;
  bottom: 18px;
}

.movie-stage-copy {
  gap: 20px;
}

.movie-stage-copy h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.detail-type-row {
  gap: 12px;
}

.detail-type {
  min-height: 40px;
  padding: 0 16px;
}

.detail-meta {
  gap: 14px;
}

.meta-item,
.extra-item {
  padding: 18px;
  border-radius: 20px;
}

.detail-director,
.watch-panel {
  border-radius: 28px;
}

.watch-panel {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(113, 199, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(245, 138, 58, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.player-shell {
  padding: 28px;
}

.player-frame-wrap {
  border-radius: 30px;
}

.player-frame-wrap-embed {
  min-height: 620px;
}

.player-frame-wrap-embed .kinobox,
.player-frame-wrap-embed .kinobox_section,
.player-frame-wrap-embed .kinobox_container,
.player-frame-wrap-embed .kinobox_iframe_container,
.player-frame-wrap-embed .kinobox_iframe {
  min-height: 620px;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.74fr);
  gap: 26px;
}

.detail-main,
.detail-side {
  gap: 26px;
}

.detail-block,
.status-section {
  padding: 26px;
  border-radius: 32px;
}

.actor-list,
.crew-list {
  gap: 16px;
}

.actor-item,
.crew-item {
  border-radius: 20px;
}

.video-list {
  gap: 16px;
}

.video-item {
  padding: 18px;
  border-radius: 24px;
}

.image-gallery {
  gap: 14px;
}

.gallery-item {
  border-radius: 20px;
}

.auth-shell {
  max-width: 660px;
}

.footer {
  background: transparent;
  border-top: 0;
  padding-bottom: 22px;
}

.footer-inner {
  padding: 22px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(9, 15, 25, 0.78);
  backdrop-filter: blur(18px);
}

.player-frame-wrap-embed .kinobox_menu_button {
  width: 46px;
  height: 46px;
  right: 18px;
  background-color: rgba(18, 28, 45, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.player-frame-wrap-embed .kinobox_menu_button:hover {
  background-color: rgba(30, 45, 71, 0.96);
}

.player-frame-wrap-embed .kbt_button {
  padding-right: 86px;
  background: rgba(7, 13, 23, 0.72);
}

.player-frame-wrap-embed .kbt_button ul {
  border-radius: 16px;
  background: rgba(13, 22, 37, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-frame-wrap-embed .kbt_button li {
  padding: 14px 16px;
  background: rgba(18, 29, 48, 0.94);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
}

.player-frame-wrap-embed .kbt_button li:hover,
.player-frame-wrap-embed .kbt_button .kinobox_menu_active {
  background: linear-gradient(135deg, rgba(93, 167, 255, 0.96), rgba(140, 208, 255, 0.96)) !important;
  color: #08111d;
}

.spotlight-strip,
.spotlight-card,
.spotlight-card-feature {
  display: none;
}

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

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

.continue-shelf {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 191, 114, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(93, 167, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(10, 18, 30, 0.84);
  box-shadow: var(--shadow-md);
}

.continue-shelf-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.05);
}

.continue-shelf-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.continue-shelf-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.continue-shelf-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.continue-shelf-copy p strong {
  color: var(--text);
}

.continue-shelf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.continue-shelf-bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.continue-shelf-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5da7ff, #ffbf72);
}

.continue-shelf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.continue-strip {
  margin-bottom: 24px;
}

.continue-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.continue-strip-link {
  color: var(--accent-cold);
  text-decoration: none;
}

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

.continue-mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-decoration: none;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 18, 30, 0.82);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.continue-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 167, 255, 0.2);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.continue-mini-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.05);
}

.continue-mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.continue-mini-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.continue-mini-body strong {
  color: var(--text);
  line-height: 1.35;
}

.continue-mini-body span {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.4;
}

.continue-mini-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.continue-mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5da7ff, #ffbf72);
}

.filter-bar {
  margin-bottom: 24px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.filter-bar-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.cat-chip-action {
  appearance: none;
  cursor: pointer;
  font: inherit;
  color: var(--text-muted);
}

.cat-chip-action:hover {
  color: var(--text);
}

.mobile-copy-status {
  margin: -10px 0 24px;
  color: var(--accent-cold);
  font-size: 0.94rem;
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

@media (max-width: 1180px) {
  .nav-inner {
    padding: 12px 14px;
  }

  .hero-home,
  .movie-stage-grid,
  .detail-layout,
  .spotlight-strip {
    grid-template-columns: 1fr;
  }

  .hero-home {
    padding: 34px;
  }

  .movie-stage-copy h1 {
    max-width: none;
  }

  .movie-detail-poster {
    max-width: 360px;
  }

  .detail-layout {
    gap: 22px;
  }

  .continue-shelf {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

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

@media (max-width: 820px) {
  .container {
    padding: 0 18px;
  }

  .site-main {
    padding: 22px 0 64px;
  }

  .navbar {
    padding-top: 12px;
  }

  .nav-inner,
  .hero-home,
  .catalog-shell,
  .kp-results,
  .movie-stage,
  .detail-block,
  .status-section,
  .profile-tabs,
  .auth-shell,
  .player-shell,
  .spotlight-card {
    padding: 22px;
  }

  .hero-home h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .movie-stage-copy h1,
  .hero-compact h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

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

  .continue-shelf {
    grid-template-columns: 1fr;
  }

  .continue-shelf-poster {
    max-width: 220px;
  }

  .continue-strip-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .continue-shelf-actions,
  .player-progress-stats,
  .toolbar-actions,
  .filter-actions {
    flex-direction: column;
  }

  .player-progress-pill,
  .toolbar-actions .btn,
  .filter-actions .btn {
    width: 100%;
  }

  .player-frame-wrap-embed,
  .player-frame-wrap-embed .kinobox,
  .player-frame-wrap-embed .kinobox_section,
  .player-frame-wrap-embed .kinobox_container,
  .player-frame-wrap-embed .kinobox_iframe_container,
  .player-frame-wrap-embed .kinobox_iframe {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    border-radius: 24px;
  }

  .hero-home,
  .movie-stage {
    padding: 20px;
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stats-bar,
  .hero-note-grid,
  .filter-bar-wide {
    grid-template-columns: 1fr;
  }

  .continue-shelf {
    padding: 20px;
  }

  .continue-mini-card {
    grid-template-columns: 64px minmax(0, 1fr);
    border-radius: 20px;
  }

  .movie-card {
    border-radius: 24px;
  }

  .card-title {
    font-size: 1rem;
  }

  .footer-inner {
    padding: 18px;
    border-radius: 24px;
  }

  .cat-chip-action,
  .continue-shelf-actions .btn,
  .toolbar-actions .btn,
  .filter-actions .btn {
    width: 100%;
  }
}
