/* =====================================================
   Dizi — Современный турецкий дизайн
   Палитра: глубокий чёрный + рубин (флаг Турции) + золото
   ===================================================== */

/* ── ProximaNova web font ── */
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Light.woff') format('woff'); font-weight: 300; font-display: swap; }
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Semibold.woff') format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Extrabld.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: ProximaNova; src: url('/assets/fonts/ProximaNova-Black.woff') format('woff'); font-weight: 900; font-display: swap; }

html { scroll-behavior: smooth; }

:root {
  color-scheme: dark;
  /* ── Тёмная палитра ── */
  --bg-0:     #070709;
  --bg:       #0a0a0c;
  --bg-1:     #13131a;
  --bg-2:     #1a1a24;
  --bg-3:     #222230;
  --line:     rgba(255,255,255,.08);
  --text:     #f4f4f6;
  --text-dim: #c0c0c8;
  --text-muted: #9aa0aa;

  --red:      #e30a17;
  --red-700:  #b30713;
  --red-300:  #ff5a63;
  --gold:     #d4a24c;
  --gold-300: #e8c98a;
  --gold-700: #8b6620;

  /* Тени и радиусы */
  --shadow-sm:  0 2px 10px rgba(0,0,0,.55);
  --shadow-md:  0 8px 32px rgba(0,0,0,.75);
  --shadow-lg:  0 24px 80px rgba(0,0,0,.9);
  --shadow-red: 0 14px 40px rgba(227,10,23,.45);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-width: 320px;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(227,10,23,.13), transparent 55%),
    radial-gradient(ellipse 50% 30% at 100% 0%, rgba(232,169,46,.06), transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; color: inherit; }

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

/* -------------------- ШАПКА -------------------- */
.site-header {
  position: static;
  background: rgba(10,10,12,.75);
  border-bottom: 1px solid var(--line);
}
.site-main { padding-top: 0; }
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: ProximaNova, system-ui, sans-serif;
  font-weight: 700; font-size: 26px; letter-spacing: .5px;
}
.logo__mark {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 800; font-family: ProximaNova, sans-serif; font-size: 18px;
  box-shadow: 0 6px 18px rgba(227,10,23,.45), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
}
.logo__mark::after {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 7px;
}
.logo__text { line-height: 1; }
.logo__accent { color: var(--gold); }

.nav { display: flex; gap: 6px; }
.nav__link {
  padding: 10px 16px; border-radius: 999px;
  color: var(--text-dim); font-weight: 500; font-size: 14px;
  transition: all .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-2); }

.search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0 14px;
  border-radius: 8px;
  min-width: 260px;
  transition: all .2s var(--ease);
}
.search:focus-within { border-color: var(--gold) !important; box-shadow: none !important; outline: none !important; }
.search svg { color: var(--text-muted); flex-shrink: 0; }
.search input {
  background: transparent; border: 0; outline: 0;
  padding: 10px 0; width: 100%; font-size: 14px;
}

.user-area { display: flex; align-items: center; gap: 10px; }
.user-area__name {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
  color: #1d1d24; font-weight: 700; font-size: 14px;
}

.burger {
  display: none; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 8px;
  height: 37px; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0; transition: opacity .2s; }
/* Кнопка «Войти» в шапке — одной высоты с бургером */
.header-actions #open-auth-modal { height: 37px; padding-top: 0; padding-bottom: 0; }

/* -------------------- КНОПКИ -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600; font-size: 13px;
  cursor: pointer; border: 0; text-decoration: none;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
}
.btn--primary:hover { filter: brightness(1.12); }
.btn--primary:active { filter: brightness(.92); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
  color: #1d1d24;
}
.btn--gold:hover { transform: translateY(-1px); }
.btn--ghost {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--bg-3); border-color: var(--gold); color: var(--gold); }
.btn--danger {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
  border: none;
}
.btn--danger:hover { filter: brightness(1.12); }
.btn--success { background: #16a34a; color: #fff; border: none; }
.btn--success:hover { filter: brightness(1.1); }
.btn--sm { padding: 10px 14px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.fav-btn--active { border-color: #e74c3c !important; color: #e74c3c !important; }
.fav-btn--active:hover { background: rgba(231,76,60,.1) !important; }
/* Алиасы для admin (одинарное тире) */
.btn-primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-700) 100%); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-3); border-color: var(--gold); color: var(--gold); }

/* -------------------- HERO / БАННЕР -------------------- */
.hero {
  margin-top: 28px;
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #1a0608 0%, #2a0a0e 40%, #0a0a0c 100%);
  border: 1px solid var(--line);
  isolation: isolate;
  min-height: 380px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 40%, rgba(212,162,76,.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(227,10,23,.30), transparent 50%);
  z-index: -1;
}
.hero::after {
  /* турецкий орнамент-полумесяц */
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,76,.10), transparent 70%);
  z-index: -1;
}
.hero__inner {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 40px;
  padding: 56px 56px 44px;
  align-items: center;
}
.hero__pre {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 18px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.hero__title em { color: var(--red-300); font-style: normal; }
.hero__title span { color: var(--gold); font-style: italic; }
.hero__desc {
  color: var(--text-dim); font-size: 17px; line-height: 1.6;
  max-width: 540px; margin: 0 0 28px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 36px;
}
.hero__stat {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.hero__stat-num {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 32px; color: var(--gold); font-weight: 700; line-height: 1;
}
.hero__stat-label { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* -------------------- СЕКЦИИ -------------------- */
.section { margin-top: 56px; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 20px; margin-top: 20px; gap: 20px;
}
.section__head--mt { margin-top: 24px; }
.section__title {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 28px; font-weight: 700; margin: 0;
}
.section__sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.section__link { color: var(--gold); font-size: 14px; font-weight: 600; }
.section__link:hover { color: var(--gold-300); }

/* -------------------- ЛЕНТА СЕРИЙ (модуль свежих эпизодов сверху) -------------------- */
.episodes-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
}
.episodes-strip::-webkit-scrollbar { height: 6px; }
.episodes-strip::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.episode-card {
  scroll-snap-align: start;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .25s var(--ease);
}
.episode-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-700);
  box-shadow: var(--shadow-md);
}
.episode-card__poster {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-3);
}
.episode-card__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.episode-card:hover .episode-card__poster img { transform: scale(1.06); }
.episode-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.episode-card__body { padding: 14px 16px 16px; }
.episode-card__title {
  font-weight: 700; font-size: 15px;
  margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.episode-card__ep { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.episode-card__meta { color: var(--text-muted); font-size: 12px; }

/* -------------------- КАРТОЧКА КОНТЕНТА (постер) -------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card__poster {
  position: relative;
  aspect-ratio: 2/3;
  background: var(--bg-3);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.card:hover .card__poster img { transform: scale(1.05); }
.card__poster::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7));
  opacity: 0; pointer-events: none;
}
.card__ratings {
  position: absolute; top: 8px; right: 8px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end; z-index: 3;
}
.card__rating-badge {
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 3px;
  line-height: 1;
}
.card__rating-badge--site { color: #e8a020; }
.card__rating-badge--kp   { color: #f90; }
.card__rating-badge--imdb { color: #f5c518; }
.card__last-ep {
  position: absolute; bottom: 0; left: 0;
  font-size: 11px; font-weight: 700;
  color: #fff;
  z-index: 2;
  background: rgba(0,0,0,.72);
  padding: 3px 7px 4px;
  border-radius: 0 4px 0 0;
  white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.card__body { padding: 12px 4px 0; }
.card__title {
  font-weight: 600; font-size: 14px; line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { color: var(--text-muted); font-size: 12px; }

/* -------------------- СТРАНИЦА КОНТЕНТА -------------------- */
.content-page {
  position: relative;
  overflow: clip; /* clips backdrop blur without clipping child box-shadows */
}
.content-page__hero {
  position: relative;
  display: grid; grid-template-columns: 238px 1fr; gap: 32px;
  padding: 20px 0;
  align-items: start;
}

/* Series page left column (poster + actions) */
.cpg-left { display: flex; flex-direction: column; gap: 12px; }
.cpg-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow-wrap: break-word; }
.cpg-actions { display: flex; flex-direction: column; gap: 10px; }

.poster-ep-badge {
  background: rgba(0,0,0,.7);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 10px; text-align: center;
  border-radius: 0 0 var(--r-md) var(--r-md);
  margin-top: -4px;
}

.rating-block__detail { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.content-page__backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(32px) brightness(.35) saturate(1.2);
  z-index: 0; opacity: .55;
}
.content-page__hero > * { position: relative; z-index: 1; }
.content-page__poster {
  position: relative;
  width: 238px; max-width: 100%; height: 340px;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(67,67,67,.25);
  flex-shrink: 0;
}
.content-page__poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-sub-btn {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(10,10,12,.82);
  color: var(--text-dim);
  border: 1.5px solid rgba(255,255,255,.18);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, border-color .18s;
  font-size: 15px;
}
.poster-sub-btn:hover { color: #fff; border-color: rgba(255,255,255,.45); }
.poster-sub-btn.sub-btn--active {
  color: var(--gold);
  border-color: rgba(212,162,76,.55);
  background: rgba(10,10,12,.88);
}
.poster-sub-btn.sub-btn--active:hover { color: var(--gold-300); border-color: var(--gold); }
.content-page__title {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600; margin: 0 0 4px; line-height: 1.2;
}
.content-page__orig { color: var(--text-dim); font-style: italic; }
.content-page__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px; color: var(--text-dim);
}
.chip--gold { color: var(--gold); border-color: rgba(212,162,76,.35); }
.chip--red { color: var(--red-300); border-color: rgba(227,10,23,.35); }
.content-page__desc { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.content-page__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* -------------------- ОПИСАНИЕ (свернуть/развернуть) -------------------- */
.desc-block { position: relative; }
.desc-toggle { appearance: none; -webkit-appearance: none; position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.desc-limiter { max-height: 80px; overflow: hidden; position: relative; transition: max-height .4s ease; }
.desc-limiter .content-page__desc { margin: 0; }
.desc-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 44px; background: linear-gradient(to top, var(--bg) 0%, transparent 100%); transition: opacity .3s; }
.desc-toggle:checked ~ .desc-limiter { max-height: 1400px; }
.desc-toggle:checked ~ .desc-limiter .desc-fade { opacity: 0; pointer-events: none; }
.desc-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-size: 12px; margin-top: 4px; }
.desc-btn i { transition: transform .3s; }
.desc-toggle:checked ~ .desc-btn i { transform: rotate(180deg); }

/* -------------------- ПЛЕЕР -------------------- */
#player-section {
  scroll-margin-top: 80px;
  position: relative; z-index: 2;
}
.player-wrap {
  margin: 0 0 16px;
}

.video-responsive {
  padding-top: 45%;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.video-responsive > iframe,
.video-responsive > video {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: var(--r-md);
}
@media (max-width: 590px) {
  .video-responsive { padding-top: 60%; }
}
.player-placeholder {
  aspect-ratio: 16/9; display: grid; place-items: center;
  color: var(--text-muted); font-size: 14px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

/* -------------------- КОММЕНТАРИИ -------------------- */
.comments { margin-top: 0; }
.comment-form {
  margin-top: 16px;
  margin-bottom: 28px;
}
.bb-editor {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s;
  background: var(--bg-1);
}
.bb-editor:focus-within { border-color: var(--gold); }
.bb-editor:focus-within .bb-toolbar { border-bottom-color: rgba(212,162,76,.3); }
.bb-toolbar {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 10px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.bb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 4px; border: none;
  background: none; color: var(--text-muted);
  cursor: pointer; font-size: 13px; font-weight: 700;
  font-family: inherit; transition: background .15s, color .15s;
  line-height: 1;
}
.bb-btn:hover { background: var(--bg-3); color: var(--text); }
.bb-btn--b { font-weight: 700; }
.bb-btn--i { font-style: italic; }
.bb-btn--u { text-decoration: underline; }
.bb-btn--s { text-decoration: line-through; }
.bb-sep { width: 1px; height: 16px; background: var(--line); margin: 0 4px; flex-shrink: 0; }
.bb-editor textarea {
  width: 100%; min-height: 110px;
  background: var(--bg-1);
  border: none; outline: none;
  padding: 12px 14px; color: var(--text);
  resize: none; font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.comment-form__foot {
  display: flex; justify-content: flex-end; align-items: center;
  margin-top: 10px; flex-wrap: wrap; gap: 8px;
}
.captcha-wrap { margin-top: 10px; }
.captcha-field { display: flex; flex-direction: column; gap: 6px; }
.captcha-question { font-size: 13px; color: var(--text-dim); }
.captcha-field input[type="text"] {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 12px;
  color: var(--text); font-size: 14px; font-family: inherit;
  width: 200px; outline: none; transition: border-color .2s;
}
.captcha-field input[type="text"]:focus { border-color: var(--gold); }
.bb-quote {
  border-left: 3px solid var(--gold);
  margin: 6px 0; padding: 6px 12px;
  background: var(--bg-2); border-radius: 0 4px 4px 0;
  color: var(--text-muted); font-style: italic;
}
.bb-u { text-decoration: underline; }
.bb-s { text-decoration: line-through; }

.comments-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.comment {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.comment--reply { margin-left: 32px; }
.comment__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold) 0%, #8b6620 100%);
  color: #1d1d24; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.comment__head {
  display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap;
}
.comment__name { font-weight: 700; font-size: 14px; }
.comment__reply-to { font-size: 12px; color: var(--gold); }
.comment__date { color: var(--text-muted); font-size: 12px; }
.comment__body { color: var(--text); font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.comment__footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.comment__reply-btn { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0; transition: color .15s; }
.comment__reply-btn:hover { color: var(--gold); }
.comment__votes { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.vote-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12px; cursor: pointer; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; transition: border-color .15s, color .15s; }
.vote-btn:hover { border-color: var(--gold); color: var(--gold); }
.vote-btn--active { color: var(--gold); border-color: var(--gold); }
.vote-btn--dis:hover { border-color: var(--red); color: var(--red); }
.vote-btn--dis.vote-btn--active { color: var(--red); border-color: var(--red); }

/* Inline reply form */
.reply-form-wrap { grid-column: 1 / -1; margin-top: 10px; }
.reply-form-wrap textarea { width: 100%; min-height: 70px; resize: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; color: var(--text); font-size: 14px; transition: border-color .2s; }
.reply-form-wrap textarea:focus { outline: 0; border-color: var(--gold); }
.reply-form-wrap__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* -------------------- ФОРМЫ АВТОРИЗАЦИИ -------------------- */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.auth-card__head {
  padding: 30px 32px 6px;
  text-align: center;
}
.auth-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(212,162,76,.15);
  color: var(--gold);
  border-radius: 14px;
  font-size: 28px;
  margin-bottom: 14px;
}
.auth-card__icon--muted {
  background: rgba(255,255,255,.05); color: var(--text-muted);
}
.auth-card__title {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 24px; font-weight: 700; margin: 0 0 8px;
  color: var(--text);
}
.auth-card__sub {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
}
.auth-card__form { padding: 24px 32px 28px; }
.auth-card__error { margin: 0 0 16px; }
.auth-card__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.auth-card__grid .field { margin-bottom: 0; }
.auth-card__foot {
  margin-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.auth-card__foot a { color: var(--gold); font-weight: 500; text-decoration: none; }
.auth-card__foot a:hover { color: var(--gold-300); }
.auth-card__agree {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted); line-height: 1.45;
  margin: 0 0 4px; cursor: pointer;
}
.auth-card__agree input { margin-top: 2px; flex-shrink: 0; }
.auth-card__agree a { color: var(--gold); }
.auth-card__submit { margin-top: 14px; }
.auth-card__note {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-muted); text-align: center;
}
.auth-card__note a { color: var(--gold); }

.field { margin-bottom: 16px; }
.field__label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field__link { font-size: 12px; font-weight: 500; color: var(--gold); text-decoration: none; }
.field__link:hover { color: var(--gold-300); }

/* Автозаполнение браузера — держим тёмный фон вместо белого */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-2) inset !important;
  caret-color: var(--text);
  transition: background-color 99999s ease 0s;
}
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}

@media (max-width: 520px) {
  .auth-card__head { padding: 26px 22px 20px; }
  .auth-card__form { padding: 20px 22px 24px; }
  .auth-card__grid { grid-template-columns: 1fr; }
}

/* -------------------- FLASH-СООБЩЕНИЯ -------------------- */
.flash {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  border: 1px solid;
}
.flash--success { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.4); color: #86efac; }
.flash--error   { background: rgba(227,10,23,.08); border-color: rgba(227,10,23,.4); color: var(--red-300); }
.flash--info    { background: rgba(212,162,76,.08); border-color: rgba(212,162,76,.4); color: var(--gold-300); }
/* модификаторы отступов вместо инлайн-стилей */
.flash--block { margin-top: 32px; }          /* пустые состояния разделов */
.flash--mb    { margin-top: 0; margin-bottom: 16px; } /* сообщения в формах */
.flash--row   { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flash-row__btn { flex-shrink: 0; }

/* -------------------- ПАГИНАЦИЯ -------------------- */
.pager {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 40px; flex-wrap: wrap;
}
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  color: var(--text-dim);
  transition: .2s;
}
.pager a:hover { color: var(--gold); border-color: var(--gold); }
.pager .current {
  background: linear-gradient(135deg, var(--red), var(--red-700));
  color: #fff; border-color: transparent;
}

/* -------------------- ПОДВАЛ -------------------- */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 28px 0 16px;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-bottom: 20px;
}
.site-footer__brand { font-size: 15px; font-weight: 700; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__nav a { color: var(--text-muted); font-size: 13px; padding: 3px 0; }
.site-footer__nav a:hover { color: var(--text); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  color: var(--text-muted); font-size: 12px;
}
.site-footer__disclaimer { color: var(--text-muted); font-size: 12px; opacity: .6; }
.ornament { color: var(--gold); font-size: 20px; opacity: .6; }

/* -------------------- КНОПКА НАВЕРХ -------------------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 20px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, background .15s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--bg-3); }

/* -------------------- ADMIN -------------------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 28px; }
.admin-sidebar {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px;
  position: sticky; top: 90px; align-self: start;
}
.admin-sidebar a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
}
.admin-sidebar a:hover { background: var(--bg-2); color: var(--text); }
.admin-sidebar a.active {
  background: linear-gradient(135deg, var(--red), var(--red-700));
  color: #fff;
}
.admin-content {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px;
}
.admin-content h1 { font-family: ProximaNova, system-ui, sans-serif; font-size: 36px; margin: 0 0 24px; }
.admin-content h2 { font-family: ProximaNova, system-ui, sans-serif; font-size: 26px; margin: 28px 0 16px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
}
.stat-card__num {
  font-family: ProximaNova, system-ui, sans-serif;
  font-size: 36px; font-weight: 700; line-height: 1;
  color: var(--gold);
}
.stat-card__label { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

table.dt { width: 100%; border-collapse: collapse; }
table.dt th, table.dt td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.dt th { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
table.dt tr:hover td { background: var(--bg-2); }
table.dt .actions { display: flex; gap: 6px; }
table.dt .actions a { padding: 6px 10px; font-size: 12px; }

/* -------------------- АДАПТИВНОСТЬ -------------------- */
@media (max-width: 1024px) {
  .site-header__inner { grid-template-columns: auto 1fr auto auto; }
  .nav { display: none; }
  .search { min-width: 200px; }
  .hero__inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .content-page__hero { grid-template-columns: 238px 1fr; padding: 20px 0; gap: 28px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .site-footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .site-footer__nav { justify-content: center; }
  .site-footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .site-header__inner { gap: 12px; }
  .user-area { display: none; }
  .burger { display: flex; }
  .menu-open .user-area { display: flex; position: absolute; top: 68px; right: 16px; flex-direction: column; background: var(--bg-1); padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-md); z-index: 200; }
  .hero__inner { padding: 28px 20px; }
  .content-page__hero { grid-template-columns: 1fr; }
  .content-page__poster { max-width: 220px; margin: 0 auto; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section__title { font-size: 22px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-h1 {
  font-family: var(--font-display, ProximaNova, system-ui, sans-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text, #f4f4f6);
  letter-spacing: 0.3px;
}
.admin-sub {
  color: var(--muted, #9aa0aa);
  margin: 0 0 24px;
  font-size: 14px;
}

.admin-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-card-head h2 {
  font-family: var(--font-display, ProximaNova, system-ui, sans-serif);
  font-size: 24px;
  margin: 0;
  color: var(--gold, #d4a24c);
  font-weight: 600;
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 1024px) {
  .admin-grid-2 { grid-template-columns: 1fr; }
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted, #9aa0aa);
}
.admin-form label small {
  color: rgba(154,160,170,0.7);
  font-size: 12px;
}
.admin-form input[type=text],
.admin-form input[type=number],
.admin-form input[type=password],
.admin-form input[type=email],
.admin-form textarea,
.admin-form select {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  color: var(--text, #f4f4f6);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--gold, #d4a24c);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.18);
}
.admin-form code {
  background: rgba(212,162,76,0.1);
  color: var(--gold, #d4a24c);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.admin-form .form-row {
  display: flex;
  gap: 10px;
}
.check-row {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
}
.check-row input { margin-top: 3px; }
.check-row span {
  color: var(--text, #f4f4f6);
  font-size: 14px;
  font-weight: 500;
}
.check-row small { display: block; flex-basis: 100%; }

.admin-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.admin-filter input,
.admin-filter select {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--text, #f4f4f6);
  font-size: 14px;
  min-width: 200px;
  outline: none;
}
.admin-filter input:focus,
.admin-filter select:focus {
  border-color: var(--gold, #d4a24c);
}

.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table input[type=text],
.admin-table input[type=number],
.admin-table input[type=email],
.admin-table textarea {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text, #f4f4f6);
  font: inherit;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-table input[type=text]:focus,
.admin-table input[type=number]:focus,
.admin-table textarea:focus {
  border-color: var(--gold, #d4a24c);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.18);
}
.admin-table thead th {
  text-align: left;
  font-weight: 500;
  color: var(--muted, #9aa0aa);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table tbody td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .num.pos { color: #6cd28e; }
.admin-table .small { font-size: 12px; }
.admin-table .muted { color: var(--muted, #9aa0aa); }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.pill-ok  { background: rgba(108,210,142,0.15); color: #7fd9a0; }
.pill-off { background: rgba(227,10,23,0.15); color: #ff8a8a; }
.pill-warn { background: rgba(212,162,76,0.15); color: var(--gold, #d4a24c); }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(212,162,76,0.12);
  color: var(--gold, #d4a24c);
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.btn-mini {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f4f4f6);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-mini:hover { background: rgba(212,162,76,0.12); border-color: var(--gold, #d4a24c); }
.btn-mini-danger:hover { background: rgba(227,10,23,0.18); border-color: var(--red, #e30a17); color: #ff7a83; }

.role-select {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  padding: 5px 8px;
  color: var(--text, #f4f4f6);
  font-size: 13px;
  cursor: pointer;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: center;
}
.admin-tabs .tab, .admin-tabs .admin-tab {
  padding: 10px 20px;
  color: var(--text-muted, #9aa0aa);
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-tabs .tab:hover, .admin-tabs .admin-tab:hover { color: var(--text, #f4f4f6); }
.admin-tabs .tab.active, .admin-tabs .admin-tab--active {
  color: var(--gold, #d4a24c);
  border-bottom-color: var(--gold, #d4a24c);
}
.admin-card--notop {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

.cmt-list { list-style: none; padding: 0; margin: 0; }
.cmt-row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cmt-row:last-child { border-bottom: none; }
.cmt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}
.cmt-head a { color: var(--gold, #d4a24c); text-decoration: none; }
.cmt-head a:hover { text-decoration: underline; }
.cmt-body {
  margin: 0 0 10px;
  color: var(--text, #f4f4f6);
  line-height: 1.5;
  font-size: 14px;
}

.page-link {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: var(--muted, #9aa0aa);
  text-decoration: none;
  margin: 0 2px;
  font-size: 13px;
  transition: all 0.15s;
}
.page-link:hover { color: var(--gold, #d4a24c); border-color: var(--gold, #d4a24c); }
.page-link.active {
  background: var(--gold, #d4a24c);
  color: #1a1208;
  border-color: var(--gold, #d4a24c);
  font-weight: 600;
}

.btn-sm { padding: 7px 14px !important; font-size: 13px !important; }

/* ============================================
   v2: Phosphor icons, player switcher, fieldsets
   ============================================ */

/* Размеры иконок Phosphor */
.i-xs { font-size: 13px; vertical-align: -2px; line-height: 1; }
.i-sm { font-size: 16px; vertical-align: -3px; line-height: 1; }
.i-md { font-size: 20px; vertical-align: -4px; line-height: 1; }
.i-lg { font-size: 24px; vertical-align: -5px; line-height: 1; }

/* Lucide SVG (data-lucide). Размер в px — не зависит от font-size родителя
   (важно для кнопок с font-size:0). i.licon — заглушка до рендера svg. */
svg.lucide, i.licon {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: -0.18em;
  stroke-width: 2;
  flex-shrink: 0;
}
svg.lucide.i-xs, i.licon.i-xs { width: 15px; height: 15px; }
svg.lucide.i-sm, i.licon.i-sm { width: 17px; height: 17px; }
svg.lucide.i-md, i.licon.i-md { width: 21px; height: 21px; }
svg.lucide.i-lg, i.licon.i-lg { width: 26px; height: 26px; }
svg.lucide.licon--fill { fill: currentColor; }
svg.lucide-loader-circle, svg.lucide-loader-2, svg.lucide-loader { animation: licon-spin 0.8s linear infinite; }
@keyframes licon-spin { to { transform: rotate(360deg); } }

button .i-sm, .btn .i-sm, a .i-sm { margin-right: 4px; }
.btn-mini .i-sm { margin: 0; }

/* Админ-сайдбар: иконка + текст */
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar a .i-sm { flex-shrink: 0; }
.admin-sidebar a span { line-height: 1; }
.admin-sidebar .admin-back {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  color: var(--muted, #9aa0aa);
}

/* Переключатель плееров на странице сериала */
.player-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 40px 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.player-switcher__label {
  font-size: 13px;
  color: var(--muted, #9aa0aa);
  margin-right: 6px;
}
.player-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text, #f4f4f6);
  text-decoration: none;
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  transition: all .15s;
}
.player-tab:hover {
  border-color: var(--gold, #d4a24c);
  color: var(--gold, #d4a24c);
}
.player-tab--active {
  background: rgba(212,162,76,0.12);
  color: var(--gold, #d4a24c);
  border-color: rgba(212,162,76,0.45);
  cursor: default;
  pointer-events: none;
}
.player-tab--active:hover { color: var(--gold, #d4a24c); background: rgba(212,162,76,0.12); }
.player-tab__name { font-weight: 600; }
.player-tab__sub {
  opacity: .75;
  font-size: 12px;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.player-tab--active .player-tab__sub { border-left-color: rgba(212,162,76,0.45); }
.player-tab__count {
  font-size: 11px;
  opacity: .7;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.player-tab--active .player-tab__count { border-left-color: rgba(212,162,76,0.35); }

@media (max-width: 600px) {
  .player-switcher { margin: 0 16px 12px; padding: 10px; }
  .player-tab { padding: 6px 10px; font-size: 12px; }
}

/* Fieldset в админ-формах */
.fset {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px 4px;
  margin: 14px 0;
}
.fset legend {
  padding: 0 8px;
  color: var(--muted, #9aa0aa);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.fset label { margin-bottom: 10px; }

/* Сетка 2 колонки в админ-формах */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .admin-grid-2 { grid-template-columns: 1fr; gap: 10px; }
}

/* Чекбокс-строка */
.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold, #d4a24c);
}
.check-row span { font-weight: 500; }
.check-row small {
  width: 100%;
  margin-left: 28px;
  color: var(--muted, #9aa0aa);
  font-size: 12px;
}

/* Шапка карточки админки */
.admin-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.admin-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.admin-card-head .badge {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(212, 162, 76, 0.12);
  color: var(--gold, #d4a24c);
  border-radius: 999px;
}

/* Тонкие подсказки под input */
.admin-form small {
  display: block;
  margin-top: 4px;
  color: var(--muted, #9aa0aa);
  font-size: 11.5px;
}
.admin-form small code {
  background: rgba(255,255,255,0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}

/* Числовые ячейки в таблице */
.admin-table th.num, .admin-table td.num { text-align: right; }
.admin-table td.num.pos { color: #6ec275; }

/* Пагинатор страницы admin */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
  align-items: center;
}
.pager a, .pager .page-link {
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: var(--text, #f4f4f6);
  text-decoration: none;
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  transition: all .15s;
}
.pager a:hover { border-color: var(--gold, #d4a24c); color: var(--gold, #d4a24c); }
.pager .current, .pager .page-link.active {
  background: var(--gold, #d4a24c);
  color: #1d1d24;
  border-color: var(--gold, #d4a24c);
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
}
.pager span { padding: 6px 4px; color: var(--muted, #9aa0aa); font-size: 13px; }

/* Стили скрытых обёрток admin */
.table-wrap { overflow-x: auto; margin-top: 8px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table thead th {
  color: var(--muted, #9aa0aa);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
}
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table .muted { color: var(--text-muted, #9aa0aa); }
.admin-table .small { font-size: 12px; }

/* Бэйджи источников в списке контента */
.src-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim, #c0c0c8);
}
.src-badge--kodik { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
.src-badge--manual { background: rgba(34, 197, 94, 0.18); color: #86efac; }

/* Заголовок страницы admin */
.admin-h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; }
.admin-sub { color: var(--muted, #9aa0aa); margin: 0 0 22px; font-size: 14px; }

/* ============================================
   v2.1: mobile fixes, search toggle, catalog AJAX
   ============================================ */

/* Кнопка поиска (видна только на мобилках) */
.search-toggle {
  display: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f4f4f6);
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.search-toggle:hover { background: rgba(255,255,255,0.08); }

/* Каталог: сетка фильтров */
.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 22px 0 28px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.catalog-filters .field { margin: 0; }
.catalog-filters .cf-label { font-size: 12px; color: var(--text-muted, #9aa0aa); margin-bottom: 4px; display: block; }
.catalog-filters select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text, #f4f4f6);
  border-radius: 8px;
  font-size: 14px;
}
.catalog-filters select:focus { outline: 2px solid var(--gold, #d4a24c); border-color: var(--gold, #d4a24c); }
.catalog-filters__submit { height: 41px; }
.catalog-meta { color: var(--text-muted, #9aa0aa); margin: 0 0 16px; font-size: 14px; }

/* Бэйджи источников на карточках эпизодов */
.episode-card__src {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  z-index: 2;
}
.episode-card__trans {
  font-size: 11px;
  color: var(--gold-300, #e8c98a);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   МОБИЛЬНЫЕ ПРАВКИ
   ============================================ */
@media (max-width: 920px) {
  /* Шапка: search-toggle вместо инлайн-поиска */
  .search-toggle { display: inline-flex !important; z-index: 110; }
  .burger { display: flex !important; z-index: 110; position: relative; }
  .search {
    display: flex !important;
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    z-index: 100;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    background: var(--bg-1, #1a1a1f);
    border: 1px solid var(--line, #2a2a38);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  }
  .search:focus-within { border-color: var(--gold, #d4a24c) !important; }
  body.search-open .search {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .search input { width: 100%; font-size: 16px; }
}

@media (max-width: 760px) {
  .container { padding-left: 14px; padding-right: 14px; }

  /* Hero */
  .hero__inner { grid-template-columns: 1fr !important; gap: 24px; }
  .hero__title { font-size: 32px !important; line-height: 1.15; }
  .hero__desc { font-size: 15px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .hero__stat-num { font-size: 26px !important; }
  .hero__cta { flex-wrap: wrap; gap: 8px; }
  .hero__cta .btn { flex: 1 1 calc(50% - 4px); padding: 12px 14px; font-size: 14px; }

  /* Шапка */
  .site-header__inner { gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .logo__text { display: none; }
  .nav { gap: 4px; }
  .nav__link { padding: 6px 8px; font-size: 13px; }
  .user-area { gap: 6px; }
  .user-area .btn { padding: 6px 10px; font-size: 12px; }
  .user-area__name { display: none; }

  /* Сетка карточек */
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .card__poster { aspect-ratio: 2 / 3; }
  .card__title { font-size: 14px; }
  .card__meta { font-size: 12px; }
  .card__type { font-size: 10px; padding: 3px 6px; }
  .card__rating { font-size: 11px; padding: 3px 6px; }

  /* Серии-лента */
  .episodes-strip { gap: 10px; }
  .episode-card { min-width: 200px; }
  .episode-card__title { font-size: 13px; }
  .episode-card__ep, .episode-card__meta { font-size: 11px; }

  /* Заголовки секций */
  .section__title { font-size: 19px; }
  .section__sub { font-size: 13px; }
  .section__head { flex-wrap: wrap; gap: 8px; }
  .section__link { font-size: 13px; }

  /* Каталог */
  .catalog-filters { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .catalog-filters__submit { grid-column: 1 / -1; }

  /* Страница сериала */
  .content-page__hero {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .content-page__poster { margin: 0 auto; }
  .content-page__title { font-size: 20px !important; text-align: center; }
  .content-page__orig { text-align: center; }
  .content-page__meta { justify-content: center; }
  .content-page__actions { justify-content: center; }
  .player-wrap { margin: 0 0 16px !important; }
  .player-switcher { margin: 0 0 10px !important; padding: 10px 12px !important; }
  .player-tab { padding: 7px 11px !important; }
  .player-tab__count { display: none; }

  /* Комментарии */
  .bb-editor textarea { min-height: 80px; }
  .comment-form__foot { flex-direction: row; align-items: center; gap: 8px; }
  .comment--reply { margin-left: 16px; }

  /* Футер */
  .site-footer__disclaimer { display: block; margin-top: 4px; }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr 1fr !important; }
  .hero__title { font-size: 26px !important; }
  .nav__link[href*="catalog.php"]:not([href*="type="]) { display: none; } /* «Каталог» прячем — это общая ссылка */
  .grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn--lg { padding: 12px 18px; font-size: 14px; }
}

/* AJAX-loading состояние */
#catalog-results { transition: opacity .15s; }

/* Чтобы кнопка поиска не плавала отдельно на десктопе */
@media (min-width: 921px) {
  .search-toggle { display: none !important; }
}

/* ============================================
   v2.2: ratings, top-tabs, info-row, genres
   ============================================ */

/* Информация о фильме */
.info-table { display: flex; flex-direction: column; gap: 0; margin: 4px 0; }
.info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 16px;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info-row:last-child { border-bottom: none; }
.info-row__label { color: var(--text-muted); }
.info-row__val   { color: var(--text); }

/* Звёздный рейтинг */
.rating-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.rating-score-box {
  width: 62px; height: 62px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.rating-block__avg {
  font-size: 22px; font-weight: 700; color: var(--text); line-height: 1;
}
.rating-right { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rating-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-label { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.rating-block__stars { display: inline-flex; gap: 1px; }
.rating-block__count { font-size: 12px; color: var(--text-muted); }
.rating-block__hint { font-size: 12px; color: var(--text-muted); }
.rating-block__hint a { color: var(--gold); }
.star {
  background: none; border: 0; padding: 3px;
  cursor: pointer; color: rgba(255,255,255,0.18);
  transition: color .12s; line-height: 0;
}
.star--on { color: var(--gold, #d4a24c); }

/* ── Star partial-fill wrap ── */
.star-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer; padding: 2px;
  user-select: none; outline: none;
}
.star-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.star-bg { color: rgba(255,255,255,.18); transition: color .12s; display: block; line-height: 0; }
.star-fg {
  position: absolute;
  top: 2px; left: 2px; right: 2px; bottom: 2px;
  display: flex; line-height: 0;
  color: var(--gold);
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
  transition: color .12s;
  pointer-events: none;
}

/* Топ-табы */
.top-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.top-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f4f4f6);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
}
.top-tab:hover { border-color: var(--gold, #d4a24c); }
.top-tab.active {
  background: var(--gold, #d4a24c);
  color: #1d1d24;
  border-color: var(--gold, #d4a24c);
  font-weight: 600;
}

/* Сетки топов — показываем по одной */
.top-grid { display: none; }
.top-grid.active { display: grid; }

/* Ранг #1 на карточке */
.card__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--gold, #d4a24c), #b8860b);
  color: #1d1d24;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Чекбоксы жанров в редакторе */
.genre-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 14px;
}
.genre-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  cursor: pointer;
}
.genre-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold, #d4a24c);
}

/* Edit-3 кнопка действий */
.btn-mini {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text, #f4f4f6);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}
.btn-mini:hover { border-color: var(--gold, #d4a24c); }
.btn-mini-danger:hover { border-color: #ef4444; color: #fca5a5; }

@media (max-width: 760px) {
  .rating-block { padding: 12px; gap: 12px; }
  .rating-score-box { width: 52px; height: 52px; }
  .rating-block__avg { font-size: 18px; }
  .top-tabs { width: 100%; }
  .top-tab { flex: 1; text-align: center; padding: 8px 10px; }
}

/* ======================================================
   v7: Drawer, User Dropdown, Auth Modal, Custom Select
   ====================================================== */

/* ── Header: flex layout override ── */
.site-header__inner {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 12px;
}
.site-header__inner .nav { flex: 1; }

/* ── Brand logo: icon removed, text-only, always visible ── */
.logo__mark { display: none !important; }
.logo__text--brand {
  display: inline !important;
  font-family: ProximaNova, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.3px;
  color: var(--text);
  white-space: nowrap;
}
.logo__text--brand .logo__accent { color: var(--gold); }
@media (max-width: 760px) {
  .logo__text--brand { display: inline !important; font-size: 16px !important; }
}

/* Search: always inline on desktop */
@media (min-width: 641px) {
  .search {
    display: flex !important;
    position: relative !important;
    top: auto !important; left: auto !important; right: auto !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    min-width: 320px;
    flex-shrink: 0;
  }
}

/* Search submit button */
.search__submit-btn {
  background: none; border: none; padding: 4px 2px;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center;
  border-radius: 50%; transition: .2s; flex-shrink: 0;
}
.search__submit-btn:hover { color: var(--gold); }
.search:focus-within .search__submit-btn { color: var(--text); }

/* Header actions (desktop auth) */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Mobile controls — hidden on desktop */
.header-mobile-ctrl { display: none; }

/* Generic icon button */
.icon-btn {
  background: none; border: none; padding: 8px; cursor: pointer;
  color: var(--text-dim); display: inline-flex; align-items: center;
  border-radius: var(--r-sm); transition: .2s;
}
.icon-btn:hover { color: var(--text); background: var(--bg-2); }

/* ── Mobile search bar (slides down from header) ── */
.mobile-search-bar {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  border-top: 0 solid var(--line);
  background: var(--bg-1);
}
body.search-open .mobile-search-bar {
  max-height: 80px;
  border-top-width: 1px;
}
.mobile-search-form {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s;
}
.mobile-search-form:focus-within { border-color: var(--gold); }
.mobile-search-form i { flex-shrink: 0; }
.mobile-search-form input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 16px; color: var(--text); font-family: inherit;
  box-shadow: none !important;
}
.mobile-search-form input::placeholder { color: var(--text-muted); }

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  z-index: 9600;
  transform: translateX(-100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
body.drawer-open .mobile-drawer { transform: translateX(0); }

.mobile-drawer__inner { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.mobile-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  transition: .2s;
}
.mobile-nav__link:hover { color: var(--text); background: var(--bg-2); }
.mobile-nav__link .i-sm { color: var(--text-muted); flex-shrink: 0; }

.mobile-drawer__divider { height: 1px; background: var(--line); margin: 20px 0; }
.mobile-drawer__auth { display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer__user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--bg-2);
  border-radius: var(--r-sm); margin-bottom: 4px;
}
.mobile-drawer__uname { font-weight: 700; font-size: 14px; }
.mobile-drawer__urole { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.mobile-drawer__auth-btns { display: flex; flex-direction: column; gap: 8px; }

/* Burger → X animation when drawer open */
.burger span { transition: opacity .2s; }

/* Drawer overlay — sits above header so header items are blocked while drawer is open */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 9550;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
body.drawer-open .drawer-overlay { display: block; }
body.drawer-open { overflow: hidden; }

/* ── User dropdown ── */
.user-menu-wrap { position: relative; }
.user-menu-btn {
  background: none; border: 2px solid var(--line); padding: 2px; cursor: pointer;
  border-radius: 999px; transition: box-shadow .2s, border-color .2s; display: inline-flex;
}
.user-menu-btn:hover { border-color: var(--gold); }
.avatar--lg { width: 40px; height: 40px; font-size: 18px; }
.avatar--photo { object-fit: cover; display: block; }

.user-menu-drop {
  display: none;
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); min-width: 220px;
  box-shadow: var(--shadow-md); z-index: 9000; overflow: hidden;
}
.user-menu-drop.open { display: block; animation: drop-in .18s var(--ease); }
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-menu-drop__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; background: var(--bg-2);
}
.user-menu-drop__name { font-weight: 700; font-size: 14px; }
.user-menu-drop__role { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.user-menu-drop__divider { height: 1px; background: var(--line); }
.user-menu-drop__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 14px; color: var(--text-dim); transition: .15s;
}
.user-menu-drop__item:hover { background: var(--bg-2); color: var(--text); }
.user-menu-drop__item .i-sm { color: var(--text-muted); flex-shrink: 0; }
.user-menu-drop__item--danger:hover { color: var(--red-300); background: rgba(227,10,23,.08); }
.user-menu-drop__item--danger:hover .i-sm { color: var(--red-300); }
.drop-count {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ── Auth modal (login) — единый стиль с report-modal ── */
.auth-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.72); z-index: 9500;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 16px;
  overflow-y: auto;
  animation: report-fade .2s ease;
  align-items: center; justify-content: center;
}
.auth-modal-overlay.open { display: flex; }

.auth-modal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  width: 100%; max-width: 440px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  overflow: hidden;
}
.auth-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212,162,76,.08), transparent);
  flex-shrink: 0;
}
.auth-modal__head h3 {
  font-size: 16px; font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.auth-modal__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(212,162,76,.15);
  color: var(--gold);
  border-radius: 8px;
  font-size: 18px;
}
.auth-modal__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 20px;
  display: flex; align-items: center; padding: 4px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.auth-modal__close:hover { color: var(--text); background: var(--bg-2); }
.auth-modal__form {
  padding: 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.auth-modal__sub {
  margin: 0 0 18px;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.auth-modal__error { margin: 0 0 14px; }
.auth-modal__error[hidden] { display: none; }
.auth-modal .field { margin-bottom: 14px; }
.auth-modal .field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-dim); margin-bottom: 8px;
}
.auth-modal .field input {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text); font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.auth-modal .field input:focus { border-color: var(--gold); }
.auth-modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.auth-modal__link {
  color: var(--gold); font-weight: 500; font-size: 13px;
  text-decoration: none;
}
.auth-modal__link:hover { color: var(--gold-300); }

/* ── Catalog: custom select (.csel) + styled native select ── */
.cf-field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1; }
.cf-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.cf-select {
  width: 100%; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-sm);
  font-size: 14px; font-family: inherit; cursor: pointer; outline: none;
  transition: .2s;
}
.cf-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,76,.15); }

.csel { position: relative; }
.csel__trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: .2s; text-align: left;
}
.csel__trigger:hover, .csel.open .csel__trigger { border-color: var(--gold); }
.csel--has-value .csel__trigger { border-color: rgba(212,162,76,.5); }
.csel__val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel__trigger .i-xs { flex-shrink: 0; color: var(--text-muted); transition: transform .2s; }
.csel.open .csel__trigger .i-xs { transform: rotate(180deg); }

.csel__drop {
  display: none;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--shadow-md);
  z-index: 200; overflow: hidden;
}
.csel.open .csel__drop { display: block; animation: drop-in .15s var(--ease); }

.csel__search-wrap { padding: 8px; border-bottom: 1px solid var(--line); }
.csel__search {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 10px;
  font-size: 13px; color: var(--text); font-family: inherit; outline: none;
}
.csel__search:focus { border-color: var(--gold); }

.csel__list { list-style: none; margin: 0; padding-inline-start: 0; max-height: 300px; overflow-y: auto; padding: 4px 0; }
.csel__group {
  display: block;
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  pointer-events: none;
}
.csel__group:first-child { padding-top: 4px; }
.csel--radio .csel__list { padding: 0; }
.csel__list::-webkit-scrollbar { width: 4px; }
.csel__list::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }
.csel__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer; font-size: 13px; transition: .12s; line-height: 1;
}
.csel__opt span { line-height: 1; vertical-align: middle; }
.csel__opt:hover { background: var(--bg-2); }
.csel__chk {
  flex-shrink: 0; align-self: center;
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--line); border-radius: 4px;
  background: var(--bg-3); cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
}
.csel__chk:checked { background: var(--gold); border-color: var(--gold); }
.csel__chk:checked::after {
  content: ''; position: absolute;
  left: 3px; top: 0px; width: 5px; height: 9px;
  border: 2px solid #0a0a0c; border-top: none; border-left: none;
  transform: rotate(45deg);
}
.csel__opt--hidden { display: none; }
.csel-hidden { display: none; }

/* Radio-style csel: no checkboxes, highlighted selection */
.csel--radio .csel__chk { display: none; }
.csel--radio .csel__opt { padding: 12px; }
.csel--radio .csel__opt--selected {
  background: rgba(212,162,76,.15);
  color: var(--gold);
  font-weight: 600;
}

/* Catalog filters: flex layout override */
.catalog-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 20px !important;
  background: var(--bg-1) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
}
.catalog-filters__submit { flex-shrink: 0; align-self: flex-end; height: auto; }

/* ── Responsive (v7) ── */
@media (max-width: 1024px) {
  .nav { display: none !important; }
  .header-mobile-ctrl { display: flex !important; align-items: center; gap: 6px; }
  /* Push search (and everything after) to the right when nav is gone */
  .search { margin-left: auto !important; }
}

@media (max-width: 640px) {
  .search { display: none !important; }
  /* Hide only the register link — Войти stays visible on mobile */
  .header-actions a.btn--primary { display: none !important; }
  /* Avatar stays right: auto margin before it pushes it all the way right */
  .header-actions { margin-left: auto; }
  /* Remove auto from burger (it follows the avatar naturally) */
  .header-mobile-ctrl { margin-left: 0; }
  .cf-field { min-width: calc(50% - 6px); }
  .catalog-filters__submit { width: 100%; }
}

@media (min-width: 641px) {
  .mobile-search-bar { display: none !important; }
}

@media (min-width: 1025px) {
  .header-mobile-ctrl { display: none !important; }
  .mobile-drawer { display: none !important; }
  .drawer-overlay { display: none !important; }
}

/* Mobile search bar — always visible below the fixed header on mobile */
@media (max-width: 640px) {
  .mobile-search-bar {
    max-height: none !important;
    overflow: visible !important;
    border-top: none !important;
    padding: 0 0 10px !important;
    background: transparent !important;
  }
  .mobile-search-form {
    display: flex !important;
    align-items: center !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    height: 38px !important;
    gap: 8px !important;
    color: var(--text-muted) !important;
  }
  .mobile-search-form i { flex-shrink: 0; font-size: 15px; }
  .mobile-search-form input {
    flex: 1 !important;
    font-size: 14px !important;
    padding: 0 !important;
    color: var(--text) !important;
    background: transparent !important;
  }
  #mobile-search-close { display: none !important; }
}

/* ============================================
   v2.4: toast, spoiler, register page
   ============================================ */

/* Toast */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  max-width: 380px; width: calc(100vw - 40px);
}
.toast {
  display: flex; align-items: stretch;
  padding: 0;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  border: 1px solid var(--line);
  overflow: hidden;
  pointer-events: all;
  animation: toast-in .25s var(--ease);
  min-height: 56px;
}
.toast__icon {
  flex-shrink: 0;
  width: 52px; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: #14a085;
}
.toast__icon svg, .toast__icon .licon { width: 22px; height: 22px; }
.toast--error   .toast__icon { background: #c0392b; }
.toast--success .toast__icon { background: #14a085; }
.toast--info    .toast__icon { background: #2980b9; }
.toast--warning .toast__icon { background: #d4a24c; color: #1d1d24; }
.toast__msg {
  flex: 1; min-width: 0;
  padding: 14px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  display: flex; align-items: center;
}
.toast__close {
  flex-shrink: 0;
  background: none; border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  padding: 0 14px;
  display: flex; align-items: center;
  transition: color .15s;
}
.toast__close:hover { color: var(--text); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: none; }
}
.toast--out { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s; }

/* Spoiler in comments */
.spoiler-block { display: inline; }
.spoiler-wrap { display: block; margin: 6px 0; }
.spoiler-chk { display: none; }
.spoiler-mask {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; user-select: none; transition: background .15s;
}
.spoiler-mask:hover { background: var(--bg-3); }
.spoiler-warn { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.spoiler-reveal { font-size: 13px; color: var(--gold); font-weight: 600; }
.spoiler-text { display: none; padding: 6px 0; }
.spoiler-chk:checked ~ .spoiler-mask { display: none; }
.spoiler-chk:checked ~ .spoiler-text { display: block; }

/* ============================================
   v2.3: drawer menu, player groups, admin mobile
   ============================================ */

/* Главные табы плееров (Основной / Запасной) */
.player-switcher--main {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: none;
}
.player-switcher--main .player-tab {
  font-weight: 600;
}

/* Под-табы — озвучки */
.player-switcher--subs {
  margin: 0 0 16px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}
.player-tab--sub {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}
.player-tab__q {
  font-size: 10.5px;
  opacity: 0.7;
  font-weight: 600;
}

/* ============================================
   МОБИЛЬНЫЙ DRAWER (бургер)
   ============================================ */
@media (max-width: 920px) {
  .nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 270px;
    height: 100vh;
    z-index: 1000;
    background: var(--bg-1, #1a1a1f);
    border-left: 1px solid var(--gold, #d4a24c);
    box-shadow: -20px 0 50px rgba(0,0,0,0.6);
    flex-direction: column;
    gap: 0 !important;
    padding: 72px 0 16px;
    transition: right .22s ease;
    overflow-y: auto;
  }
  .nav__link {
    display: block;
    padding: 14px 22px !important;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  body.menu-open .nav { right: 0; }

  /* user-area внутри drawer */
  .menu-open .user-area {
    display: flex;
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    width: 270px;
    z-index: 1001;
    padding: 16px 22px;
    background: var(--bg-2, #0f0f14);
    border-top: 1px solid var(--line, rgba(255,255,255,0.08));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 0;
    box-shadow: none;
  }
  .menu-open .user-area .btn { width: 100%; text-align: center; padding: 10px; }
  .menu-open .user-area__name { display: flex; }

  /* затемнение фона */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99;
  }
  body.menu-open { overflow: hidden; }
}

/* ============================================
   АДМИНКА — мобильные правки
   ============================================ */
@media (max-width: 920px) {
  .admin-layout {
    display: block !important;
    grid-template-columns: none !important;
  }
  .admin-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow-x: auto;
    position: static;
    width: auto;
    max-height: none;
  }
  .admin-sidebar a {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    gap: 6px;
  }
  .admin-sidebar a span { font-size: 12px; }
  .admin-sidebar .admin-back {
    border-top: 0;
    margin-top: 0;
    padding-top: 8px;
  }
  .admin-content {
    padding: 0;
    width: 100%;
  }
  .admin-card {
    padding: 16px 14px !important;
    margin-bottom: 14px;
  }
  .admin-h1 { font-size: 22px; }
  .admin-grid-2 { grid-template-columns: 1fr !important; gap: 10px; }
  .admin-form label { font-size: 13px; }
  .admin-form input, .admin-form select, .admin-form textarea {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 6px 6px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 580px; }
  .fset { padding: 10px 12px 2px; }
  .fset legend { font-size: 11px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card__num { font-size: 24px; }
  .stat-card__label { font-size: 12px; }

  /* кнопки в админ-формах */
  .admin-form .btn, .admin-form button { width: 100%; justify-content: center; }
  .form-row { flex-direction: column; gap: 8px; }

  /* table-wrap для контента */
  .content-table { font-size: 12px; }
  .content-table img { max-width: 40px; }

  /* Группа cards действий */
  .row-actions { white-space: nowrap; }
  .row-actions .btn-mini { padding: 7px 9px; }
}

/* ============================================
   ADMIN PANEL — separate layout
   ============================================ */
.adm-body {
  background: var(--bg) !important;
  background-image: none !important;
}
/* Контент-область тянется минимум на весь экран под шапкой,
   чтобы фон не обрывался ниже короткой страницы */
.adm-body .adm-wrap { background: var(--bg); }
.adm-body .adm-main { min-height: calc(100vh - var(--adm-bar-h)); }

/* ── Full-width DLE-раскладка админки (тёмная палитра) ── */
:root { --adm-bar-h: 60px; --adm-sidebar-w: 260px; }

.adm-bar {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--adm-bar-h);
}
.adm-bar__inner {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 0 24px;
}
.adm-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  width: calc(var(--adm-sidebar-w) - 24px);
}
.adm-badge {
  display: inline-block;
  background: var(--red);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .6px;
  text-transform: uppercase; line-height: 1.4;
}
.adm-bar__spacer { flex: 1; }
.adm-bar__user { display: flex; align-items: center; gap: 12px; }
.adm-bar__uname { font-size: 13px; color: var(--text-dim); }

.adm-burger {
  display: none; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0 10px;
  height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.adm-burger span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0; }

.adm-wrap {
  padding-top: var(--adm-bar-h);
  min-height: 100vh;
}

.adm-sidebar {
  position: fixed;
  top: var(--adm-bar-h); bottom: 0; left: 0;
  width: var(--adm-sidebar-w);
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow-y: auto;
  z-index: 250;
}
.adm-nav-title {
  font-size: 11px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 4px 12px 10px;
}
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-sm);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: .15s;
}
.adm-nav__link:hover { background: var(--bg-2); color: var(--text); }
.adm-nav__link--active {
  background: linear-gradient(135deg, var(--red), var(--red-700));
  color: #fff;
}
.adm-nav__link .i-sm { flex-shrink: 0; }

.adm-main {
  margin-left: var(--adm-sidebar-w);
  padding: 28px 32px 60px;
  min-width: 0;
}

.adm-title-link { color: var(--text); font-weight: 600; }
.adm-title-link:hover { color: var(--gold); }

/* ── DLE-раскладка контента админки ── */
.adm-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 14px;
}
.adm-crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); }
.adm-crumbs a:hover { color: var(--gold); }
.adm-crumbs__sep { opacity: .5; }
.adm-crumbs__cur { color: var(--text); }

.adm-section-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.adm-section-head > .licon { color: var(--gold); flex-shrink: 0; }
.adm-section-title {
  margin: 0; font-size: 22px; font-weight: 700; color: var(--text);
}
.adm-flashes { margin-bottom: 18px; }

/* Заголовок раздела теперь в .adm-section-head — старый .admin-h1 прячем,
   подзаголовок .admin-sub оставляем (там бывает «Всего записей: N» и т.п.) */
.adm-main .admin-h1 { display: none; }
.adm-main .admin-sub { margin-top: -8px; }

/* ── Экран «Изменения сохранены» (DLE-style) ── */
.dle-saved {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.dle-saved__bar {
  width: 56px;
  background: #2e9e54;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dle-saved__bar svg { width: 26px; height: 26px; color: #fff; }
.dle-saved__body { flex: 1; padding: 0; }
.dle-saved__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--text);
}
.dle-saved__text {
  padding: 40px 22px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
}
.dle-saved__actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.dle-saved__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: #fff; border: none;
}
.dle-saved__btn--list { background: #1f9b8e; }
.dle-saved__btn--edit { background: #4a7bb5; }
.dle-saved__btn--view { background: #7a5546; }
.dle-saved__btn:hover { filter: brightness(1.1); }
@media (max-width: 560px) {
  .dle-saved__btn { width: 100%; justify-content: center; }
}

/* Карточки админки: полная ширина, авто-отступ между соседними, читаемая ширина форм */
.admin-card { max-width: none; }
.admin-card + .admin-card { margin-top: 24px; }

/* ── Dashboard: статистика ── */
.adm-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.adm-stat {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 16px;
}
.adm-stat > i { font-size: 22px; color: var(--gold); flex-shrink: 0; }
.adm-stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--text); }
.adm-stat span { font-size: 12px; color: var(--text-muted); }
@media (max-width: 1100px) { .adm-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .adm-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; } .adm-stat { padding: 12px; } }

/* ── Dashboard: быстрый доступ (DLE-style) ── */
.adm-quick-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.adm-quick {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-2); text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.adm-quick:hover { border-color: var(--gold); transform: translateY(-1px); background: var(--bg-3); }
.adm-quick__icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,162,76,.12); color: var(--gold); font-size: 22px;
}
.adm-quick__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-quick__title {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.adm-quick__badge {
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 1px 7px;
}
.adm-quick__desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 700px) { .adm-quick-grid { grid-template-columns: 1fr; } }

/* Admin: clickable title removes need for separate edit button on mobile */
@media (max-width: 860px) {
  .adm-bar__uname { display: none; }
  .adm-burger { display: flex; order: -1; }
  .adm-brand { width: auto; }
  .adm-main { margin-left: 0; padding: 16px; }
  /* Боковое меню — выезжающий слева drawer */
  .adm-sidebar {
    top: var(--adm-bar-h);
    width: 270px; max-width: 82vw;
    z-index: 9000;
    transform: translateX(-100%);
    transition: transform .25s var(--ease);
  }
  .adm-sidebar--open { transform: translateX(0); }
  .adm-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 8999; opacity: 0; visibility: hidden;
    transition: opacity .25s;
  }
  .adm-sidebar-overlay--show { opacity: 1; visibility: visible; }
}

/* Content table: hide less important columns on narrow screens */
@media (max-width: 640px) {
  .content-table th:nth-child(1),
  .content-table td:nth-child(1),
  .content-table th:nth-child(4),
  .content-table td:nth-child(4),
  .content-table th:nth-child(5),
  .content-table td:nth-child(5),
  .content-table th:nth-child(6),
  .content-table td:nth-child(6),
  .content-table th:nth-child(7),
  .content-table td:nth-child(7) { display: none; }
  .table-wrap table.content-table { min-width: auto; }
}

/* Player switcher на мобиле */
@media (max-width: 760px) {
  .player-switcher--main {
    margin: 0 0 8px !important;
    padding: 0 !important;
    gap: 6px;
  }
  .player-switcher--main .player-tab {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: 13px;
  }
  .player-switcher--subs {
    margin: 0 0 14px !important;
    padding: 8px 10px;
  }
  .player-tab--sub { padding: 5px 9px; font-size: 11px; }
  .player-switcher__label { width: 100%; font-size: 12px; }
}

/* -------------------- ПРОФИЛЬ -------------------- */
.profile-hero {
  position: relative;
  display: flex; flex-direction: column;
  padding: 0;
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(212,162,76,.06) 0%, rgba(212,162,76,.01) 50%, var(--bg-1) 100%), var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.profile-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 0% 0%, rgba(212,162,76,.08), transparent 60%);
  pointer-events: none;
}
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero__top {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 24px;
}
.profile-hero__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.profile-hero__avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
  flex-shrink: 0; position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.profile-hero__avatar-wrap .online-dot {
  position: absolute;
  width: 18px; height: 18px;
  bottom: 4px; right: 4px;
  top: auto; left: auto;
  border: 3px solid var(--bg-1);
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.profile-info { min-width: 0; flex: 1; }
.profile-name {
  font-size: 22px; font-weight: 700; margin: 0 0 6px;
  word-break: break-word;
}
.profile-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.profile-meta__sep { opacity: .4; }
.profile-meta__lbl { color: var(--text-muted); }
.profile-hero__date {
  font-size: 13px; color: var(--text-muted);
  text-align: right; white-space: nowrap;
}

.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 0 24px;
}
.profile-stat {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s;
}
.profile-stat:hover { border-color: rgba(212,162,76,.4); transform: translateY(-1px); }
.profile-stat__val { font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1; }
.profile-stat__lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.profile-body {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 20px; padding: 24px 0 40px;
}
.profile-card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.profile-card__head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.profile-card__head .ph { color: var(--gold); }
.profile-card__body { padding: 20px; }
.profile-field-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.profile-field-row:last-child { border-bottom: none; }
.profile-field-lbl { color: var(--text-muted); }
.profile-field-val { color: var(--text); font-weight: 500; }
.profile-history {
  display: flex; flex-direction: column; gap: 0;
}
.profile-history__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none; color: var(--text);
  transition: background .15s;
}
.profile-history__item:last-child { border-bottom: none; }
.profile-history__item:hover .profile-history__title { color: var(--gold); }
.profile-history__poster {
  width: 40px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0;
}
.profile-history__poster img { width: 100%; height: 100%; object-fit: cover; }
.profile-history__title { font-size: 14px; font-weight: 500; margin-bottom: 4px; transition: color .15s; }
.profile-history__meta { font-size: 12px; color: var(--text-muted); }
.profile-cmt {
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
}
.profile-cmt:last-child { border-bottom: none; }
.profile-cmt__meta { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.profile-cmt__meta a { color: var(--gold); text-decoration: none; }
.profile-cmt__meta a:hover { text-decoration: underline; }
.profile-cmt__body { color: var(--text); line-height: 1.5; }
@media (max-width: 900px) {
  .profile-body { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .profile-hero__top { padding: 16px; gap: 14px; }
  .profile-hero__bottom {
    padding: 12px 16px;
    flex-wrap: wrap; gap: 8px;
  }
  .profile-avatar,
  .profile-avatar--img { width: 64px; height: 64px; font-size: 24px; }
  .profile-name { font-size: 18px; }
  .profile-hero__date { font-size: 12px; }
  .profile-stats { padding: 14px 0 20px; gap: 10px; }
  .profile-stat { padding: 14px 16px; }
  .profile-stat__val { font-size: 22px; }
}

/* -------------------- ХЛЕБНЫЕ КРОШКИ -------------------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 20px 0 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { opacity: .4; }

/* -------------------- РЕКОМЕНДУЕМ -------------------- */
.related-section { margin: 24px 0 8px; }
.related-section .section__title { margin-bottom: 16px; }

/* Description block below hero (full-width) */
.desc-block--full { margin: 16px 0; }
.desc-block--full .desc-fade { background: linear-gradient(to top, var(--bg) 0%, transparent 100%); }

/* -------------------- COMMENT TREE -------------------- */
.cmt-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 20px 0 0; }
.cmt-tab { display: flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; background: none; border-top: none; border-left: none; border-right: none; cursor: pointer; font-family: inherit; }
.cmt-tab:hover { color: var(--text); }
.cmt-tab--active { color: var(--text); border-bottom-color: var(--gold); }

.cmt-list { display: flex; flex-direction: column; }

.cmt {
  display: flex; gap: 12px;
  padding: 16px 0;
  scroll-margin-top: 100px;
  position: relative;
  transition: background .15s;
}
.cmt:target,
.cmt-children .cmt:target {
  background: rgba(212,162,76,.06);
  box-shadow: inset 3px 0 0 var(--gold);
  padding: 18px 24px;
}
.cmt-root-wrap { padding: 0; }
.cmt-root-wrap + .cmt-root-wrap { border-top: 1px solid var(--line); margin-top: 4px; }
.cmt-children > .cmt { border-bottom: 1px solid rgba(255,255,255,.06); }
.cmt-children > .cmt:last-child { border-bottom: none; }

.cmt__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #1d1d24;
  flex-shrink: 0; user-select: none;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-700) 100%);
}
.cmt__avatar--img { object-fit: cover; display: block; }
.cmt__content { flex: 1; min-width: 0; }
.cmt__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cmt__name { font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.cmt__name:hover { color: var(--gold); }
.cmt__date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.cmt__body { font-size: 14px; line-height: 1.65; color: var(--text-dim); word-break: break-word; }
.cmt__foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
}
.cmt__foot-actions {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
}
.cmt__foot .cmt__votes { flex-shrink: 0; margin-left: auto; }
@media (max-width: 640px) {
  .cmt__mod-btn .cmt-mod-label { display: none; }
}
.cmt__reply-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--text-muted); padding: 0;
  display: flex; align-items: center; gap: 4px; font-family: inherit;
  transition: color .15s;
}
.cmt__reply-btn:hover { color: var(--gold); }
.cmt__votes { display: flex; align-items: center; gap: 3px; margin-left: auto; }

/* Vote buttons — icon only, score in center */
.vote-btn {
  background: none; border: none;
  border-radius: 999px; padding: 6px 8px;
  font-size: 20px; cursor: pointer; color: var(--text-muted);
  display: inline-flex; align-items: center;
  transition: color .15s; font-family: inherit;
}
.cmt__votes .vote-btn .i-xs { font-size: 18px; vertical-align: -4px; }
.vote-btn--like:hover { color: var(--gold); }
.vote-btn--like.vote-btn--active { color: var(--gold); }
.vote-btn--dis:hover { color: var(--red-300); }
.vote-btn--dis.vote-btn--active { color: var(--red-300); }
.vote-score {
  font-size: 15px; font-weight: 700;
  color: var(--text-muted); min-width: 30px; text-align: center;
}
.vote-score--pos { color: var(--gold); }
.vote-score--neg { color: var(--red-300); }

/* ── Comment tree (replies are flat inside the parent) ── */
.cmt-children {
  margin-left: 50px;
  padding-left: 8px;
  border-left: 2px solid rgba(212,162,76,.22);
  transition: border-color .15s;
}
.cmt-children:hover { border-left-color: rgba(212,162,76,.55); }
.cmt-children .cmt {
  padding: 14px 0;
}
.cmt-children .cmt__avatar-wrap,
.cmt-children .cmt__avatar-wrap .cmt__avatar,
.cmt-children .cmt__avatar-wrap .cmt__avatar--img {
  width: 34px; height: 34px;
}
.cmt-children .cmt__avatar-wrap .cmt__avatar { font-size: 14px; }
@media (max-width: 640px) {
  .cmt-children { margin-left: 30px; padding-left: 12px; }
}

/* Reply-to badge (shown when nesting was flattened past depth cap) */
.cmt__reply-to {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--gold);
  text-decoration: none;
  padding: 2px 8px;
  background: rgba(212,162,76,.12);
  border-radius: 999px;
  transition: background .15s;
}
.cmt__reply-to:hover { background: rgba(212,162,76,.22); }
.cmt__reply-to .i-xs { font-size: 13px; }
/* Comment counter */
.comments-count { color: var(--red-300); }

/* Reply indicator banner */
.reply-indicator {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  background: rgba(212,162,76,.1);
  border: 1px solid rgba(212,162,76,.25);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  font-size: 13px; color: var(--text-dim);
}
.reply-indicator__text { display: flex; align-items: center; gap: 6px; }
.reply-indicator__cancel {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px;
  display: inline-flex; align-items: center;
  transition: color .15s; font-family: inherit;
}
.reply-indicator__cancel:hover { color: var(--text); }

@media (max-width: 760px) {
  .cmt__avatar { width: 32px; height: 32px; font-size: 13px; }
  .cmt-replies { margin-left: 16px; }
  .cmt__date { width: 100%; margin-left: 0; margin-top: 2px; }
}
/* Load more comments */
.cmt-root-hidden { display: none; }
.btn-load-more {
  display: block; width: 100%;
  padding: 12px; margin: 16px 0 4px;
  background: transparent;
  color: var(--text-muted); font-weight: 600; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .15s, color .15s;
  font-family: inherit; text-align: center;
}
.btn-load-more { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-load-more:hover { border-color: var(--gold); color: var(--gold); }

/* Replies pagination */
.cmt-reply-hidden { display: none; }
.cmt-more-replies {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: fit-content; margin: 12px auto 4px; padding: 9px 18px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-muted); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.cmt-more-replies:hover { border-color: var(--gold); color: var(--gold); }
.cmt-more-replies .ph { font-size: 13px; }

/* -------------------- SCROLL LOCK -------------------- */
body.modal-open { overflow: hidden; height: 100vh; }

/* -------------------- МОБИЛЬНЫЙ ФИЛЬТР — ТОГЛ -------------------- */
.filter-mobile-toggle { display: none; }

@media (max-width: 760px) {
  .filter-mobile-toggle { display: flex; width: 100%; justify-content: center; margin-bottom: 10px; }
  .catalog-filters .cf-field { display: none; }
  /* Закрытый фильтр — никакого фона/рамки/паддинга */
  .catalog-filters {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 16px !important;
  }
  /* Открытый фильтр — Grid 2 колонки */
  .catalog-filters--open {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    background: var(--bg-1) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--r-md) !important;
    padding: 14px !important;
  }
  .catalog-filters--open .cf-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
  .catalog-filters--open .cf-field--half { grid-column: auto; }
  .catalog-filters--open .cf-field--reset { grid-column: 1 / -1; margin-top: 2px; }
}

/* -------------------- CARD WRAP — для кнопки подписки на постере -------------------- */
.card-wrap { position: relative; }
.card-wrap .card { display: flex; flex-direction: column; width: 100%; height: 100%; }
.card__sub-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,.15);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s, color .2s, border-color .2s;
  font-size: 13px;
}
.card-wrap:hover .card__sub-btn { opacity: 1; }
.card__sub-btn.sub-btn--active { color: var(--gold); border-color: rgba(212,162,76,.5); opacity: 1; }
.card__sub-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* -------------------- ПРОФИЛЬ — ПОДПИСКИ -------------------- */
.profile-sub-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.profile-sub-row:last-child { border-bottom: none; }
.profile-sub-row .profile-history__item { flex: 1; padding: 8px 0; border-bottom: none; }
.profile-card__count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--bg-3); color: var(--text-muted);
  border-radius: 999px; padding: 2px 7px;
}

/* -------------------- КАТАЛОГ — СОСТОЯНИЕ ЗАГРУЗКИ -------------------- */
#catalog-results { transition: opacity .2s; min-height: 200px; }

/* -------------------- КОЛОКОЛ УВЕДОМЛЕНИЙ -------------------- */
.notif-bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: color .15s, border-color .15s, background .15s;
}
.notif-bell:hover { color: var(--text); border-color: var(--gold); background: var(--bg-3); }
.notif-bell .i-sm, .notif-bell .i-md { margin: 0; vertical-align: 0; line-height: 1; display: block; }
.notif-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; pointer-events: none;
}

/* -------------------- ОНЛАЙН-DOT + РОЛЬ В КОММЕНТАРИЯХ -------------------- */
.cmt__avatar-wrap { position: relative; flex-shrink: 0; align-self: flex-start; width: 38px; height: 38px; }
.cmt .cmt__avatar-wrap .online-dot,
.cmt-children .cmt__avatar-wrap .online-dot {
  position: absolute !important;
  width: 12px; height: 12px;
  top: auto !important; left: auto !important;
  bottom: -1px !important; right: -1px !important;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.online-dot {
  position: absolute; top: 0; right: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: #2ecc71; border: 2px solid var(--bg-1);
}
.online-dot--offline { background: #e53935; }
.cmt__role {
  font-size: 9px; font-weight: 700; letter-spacing: .4px;
  padding: 1px 6px; border-radius: 4px; text-transform: uppercase;
  vertical-align: middle;
}
.cmt__role--admin { background: rgba(227,10,23,.18); color: var(--red-300); }
.cmt__role--moder { background: rgba(212,162,76,.15); color: var(--gold-300); }
.cmt__moderation-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  padding: 1px 6px; border-radius: 4px; text-transform: uppercase;
  background: rgba(255,200,0,.12); color: #f0c040; border: 1px solid rgba(240,192,64,.3);
}

/* -------------------- ПОД ПЛЕЕРОМ -------------------- */
.player-under {
  display: flex; align-items: center;
  gap: 0;
  padding: 6px 8px 6px 16px;
  margin-top: 8px;
  margin-bottom: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  position: relative; z-index: 5;
  overflow: visible;
}

/* -------------------- ШЕРИНГ -------------------- */
.share-bar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  flex: 1; padding: 6px 0;
}
.share-bar__label {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  margin-right: 5px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .share-bar__label { display: none; }
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  box-sizing: border-box;
  border: none; padding: 0;
  border-radius: 50%;
  font-size: 14px; color: #fff;
  text-decoration: none; cursor: pointer;
  font-family: inherit;
  transition: opacity .15s, background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.share-btn:hover { opacity: .85; }
.share-btn--vk    { background: #0077ff; }
.share-btn--ok    { background: #f7941e; font-size: 12px; font-weight: 700; }
.share-btn--tg    { background: #2aabee; }
.share-btn--viber { background: #7360f2; }
.share-btn--wa    { background: #25d366; }
.share-btn--copy  {
  background: var(--bg-3); color: var(--text-muted);
  border: 1px solid var(--line);
}
.share-btn--copy:hover { color: var(--gold); border-color: var(--gold); background: var(--bg-2); opacity: 1; }

/* -------------------- КНОПКА «СООБЩИТЬ О ПРОБЛЕМЕ» -------------------- */
.btn-report {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 12px;
  cursor: pointer; transition: color .15s, border-color .15s;
}
.btn-report:hover { color: var(--red-300); border-color: var(--red-300); }
.btn-report--red {
  display: grid; place-items: center;
  width: 42px; height: 38px;
  font-size: 16px;
  background: #e53935; color: #fff; border: none;
  border-radius: 6px;
  flex-shrink: 0; margin-left: auto;
  cursor: pointer; transition: background .15s;
}
.btn-report--red:hover { background: #c62828; }
/* Ya.Share2 widget */
.ya-share2 { height: 24px; margin-left: 0; }
.ya-share2 a:not(:hover) { opacity: 1; }

/* -------------------- МОДАЛ «СООБЩИТЬ О ПРОБЛЕМЕ» -------------------- */
.report-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9500;
  align-items: center; justify-content: center;
  padding: 16px;
  overflow-y: auto;
  animation: report-fade .2s ease;
}
.report-modal.open { display: flex; }
@keyframes report-fade { from { opacity: 0; } to { opacity: 1; } }
.report-modal__box {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  overflow: hidden;
}
.report-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(212,162,76,.08), transparent);
  flex-shrink: 0;
}
.report-modal__head h3 {
  font-size: 16px; font-weight: 600; margin: 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.report-modal__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(229,57,53,.15);
  color: #e57373;
  border-radius: 8px;
  font-size: 18px;
}
.report-modal__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 20px;
  display: flex; align-items: center; padding: 4px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.report-modal__close:hover { color: var(--text); background: var(--bg-2); }
.report-modal form {
  padding: 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.report-modal .field { margin-bottom: 14px; }
.report-modal .field:last-of-type { margin-bottom: 0; }
.report-modal .field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-dim); margin-bottom: 8px;
}
.report-modal .field select,
.report-modal .field textarea,
.report-modal .field input {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text); font-family: inherit; font-size: 14px;
  outline: none;
  transition: border-color .15s;
}
.report-modal .field select:focus,
.report-modal .field textarea:focus,
.report-modal .field input:focus { border-color: var(--gold); }
.report-modal .field textarea { resize: vertical; min-height: 90px; }
.report-modal__foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* -------------------- МЕССЕНДЖЕР -------------------- */
body.page-messages .site-footer { display: none; }
body.page-messages {
  height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column;
}
body.page-messages .site-header { position: sticky; top: 0; flex-shrink: 0; z-index: 9100; }
body.page-messages .site-main {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 0;
  display: flex; flex-direction: column;
}
body.page-messages .site-main > .container {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding-top: 16px; padding-bottom: 24px;
}
.messenger {
  display: flex; gap: 0;
  flex: 1; min-height: 0;
  min-width: 300px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}

/* Sidebar */
.messenger__sidebar {
  width: 300px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
}
.messenger__sidebar-head {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.messenger__sidebar-head h1,
.messenger__sidebar-head h2 {
  font-size: 16px; font-weight: 600; margin: 0; flex: 1;
}
.messenger__conv-list { flex: 1; overflow-y: auto; }

/* Conversation items */
.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.conv-item:hover { background: var(--bg-2); }
.conv-item--active { background: var(--bg-3); }
.conv-item__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.conv-item__body { flex: 1; min-width: 0; }
.conv-item__name {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-item__badge {
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 700;
  border-radius: 10px; padding: 1px 6px;
  flex-shrink: 0;
}
.conv-item__preview {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.conv-item__time {
  font-size: 11px; color: var(--text-muted);
  flex-shrink: 0; align-self: flex-start; margin-top: 2px;
}

/* Main area */
.messenger__main {
  flex: 1; display: flex; flex-direction: column;
  background: var(--bg-0); min-width: 0;
}
.messenger__conv-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: var(--bg-1); flex-shrink: 0;
}
.messenger__back {
  display: none; color: var(--text-muted); font-size: 20px;
  text-decoration: none;
}
.messenger__conv-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.messenger__conv-name { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); }
.messenger__conv-name:hover { color: var(--gold); }
.messenger__conv-status { font-size: 12px; color: var(--text-muted); }
.messenger__conv-status--online { color: #4caf50; }
.conv-item__avatar--rel { position: relative; }
.online-dot--head {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px;
  background: #4caf50; border-radius: 50%;
  border: 2px solid var(--bg-1);
}
.messenger__messages {
  flex: 1; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
/* Hide scrollbars in messenger */
.messenger__messages,
.messenger__conv-list { scrollbar-width: none; -ms-overflow-style: none; }
.messenger__messages::-webkit-scrollbar,
.messenger__conv-list::-webkit-scrollbar { display: none; }
.messenger__empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
  color: var(--text-muted); font-size: 14px;
  padding: 32px 16px; text-align: center;
}
.messenger__empty--full { flex: 1; }
.messenger__empty i { font-size: 40px; opacity: .4; }

/* Unread divider */
.msg-unread-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0; color: var(--gold); font-size: 12px; font-weight: 600;
}
.msg-unread-divider::before,
.msg-unread-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gold); opacity: .3;
}

/* Message bubbles */
.msg-bubble {
  max-width: 70%; display: flex; flex-direction: column; gap: 3px;
}
.msg-bubble--mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble--theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble__body {
  padding: 8px 12px; border-radius: 16px;
  font-size: 14px; line-height: 1.5; word-break: break-word;
}
.msg-bubble--mine .msg-bubble__body {
  background: var(--gold); color: #000;
  border-bottom-right-radius: 4px;
}
.msg-bubble--theirs .msg-bubble__body {
  background: var(--bg-2); color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--line);
}
.msg-bubble__time {
  font-size: 11px; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
  padding: 0 4px;
}

/* Input row */
.messenger__input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: var(--bg-1);
}
.messenger__input {
  flex: 1; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 14px;
  font-size: 14px; color: var(--text); resize: none;
  line-height: 1.5; max-height: 58px; overflow-y: auto;
  font-family: inherit;
  transition: border-color .15s;
}
.messenger__input:focus { outline: none; border-color: var(--gold); }
.messenger__input::placeholder { color: var(--text-muted); }
.messenger__send-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: #000; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .15s;
  padding: 0; line-height: 1;
}
.messenger__send-btn i { font-size: 18px; display: flex; line-height: 1; }
.messenger__send-btn:hover { opacity: .85; }
.messenger__send-btn:disabled { opacity: .5; cursor: default; }
/* Hide textarea scrollbar */
.messenger__input { scrollbar-width: none; -ms-overflow-style: none; }
.messenger__input::-webkit-scrollbar { display: none; }

/* Compose button in sidebar header */
.messenger__compose-btn {
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--text-muted); cursor: pointer;
  width: 34px; height: 34px; min-width: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; box-sizing: border-box; line-height: 34px;
  transition: color .15s, border-color .15s;
  font-size: 0;
}
.messenger__compose-btn i { font-size: 16px; line-height: 1; display: block; width: 16px; height: 16px; }
.messenger__compose-btn:hover { color: var(--gold); border-color: var(--gold); }

/* Compose search panel */
.messenger__compose {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.messenger__compose-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 0 14px; border-radius: 8px;
  transition: all .2s var(--ease);
}
.messenger__compose-wrap:focus-within { border-color: var(--gold); }
.messenger__compose-wrap > i { color: var(--text-muted); flex-shrink: 0; font-size: 16px; line-height: 1; }
.messenger__compose-input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 10px 0; font-size: 14px; color: var(--text);
  font-family: inherit; min-width: 0;
}
.messenger__compose-input::placeholder { color: var(--text-muted); }
.messenger__compose-results { margin-top: 6px; }
.compose-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; text-decoration: none; border-radius: var(--r-sm);
  font-size: 13px; color: var(--text); transition: background .15s;
}
.compose-result:hover { background: var(--bg-3); }
.compose-empty { font-size: 13px; color: var(--text-muted); padding: 8px 4px; }

/* Small avatar variant */
.conv-item__avatar--sm { width: 32px; height: 32px; font-size: 13px; }

/* System avatar */
.conv-item__avatar--system {
  background: var(--bg-3); color: var(--gold);
  font-size: 18px; border: 1px solid var(--line);
  position: relative;
}
.conv-item__avatar--system .online-dot {
  position: absolute !important;
  width: 11px; height: 11px;
  top: auto !important; left: auto !important;
  bottom: -1px !important; right: -1px !important;
  border: 2px solid var(--bg-1);
  border-radius: 50%;
  background: #4ade80;
}

/* System message bubble */
.msg-bubble--system .msg-bubble__body {
  background: var(--bg-3); border: 1px dashed var(--line);
  border-bottom-left-radius: 4px; color: var(--text);
}

/* Online text helper */
.text-online { color: #2ecc71; }

/* Links inside message bubbles (system notifications) */
.msg-link { color: var(--gold); text-decoration: underline; word-break: break-all; }
.msg-link:hover { color: var(--gold-300); }

/* Mobile messenger */
@media (max-width: 640px) {
  body.page-messages { display: block; height: auto; overflow: visible; }
  body.page-messages .site-main {
    display: block; flex: none;
    position: fixed; top: 117px; left: 0; right: 0; bottom: 0; overflow: hidden;
    padding: 0;
  }
  body.page-messages .site-main > .container {
    display: block; flex: none;
    padding: 0; height: 100%; overflow: hidden;
  }
  .messenger {
    flex: none; height: 100%; margin: 0; border-radius: 0; min-width: 0;
    border: none;
  }
  .messenger__sidebar { width: 100%; border-right: none; }
  .messenger__sidebar--hidden-mobile { display: none; }
  .messenger__main--hidden-mobile { display: none; }
  .messenger__main { width: 100%; }
  .messenger__back { display: flex; }
  .msg-bubble { max-width: 85%; }
  .messenger__input-row { padding: 10px 12px; }
}
/* Landscape phones — короткая высота, разрешаем скролл всей страницы */
@media (max-height: 520px) {
  body.page-messages {
    height: auto !important; overflow: auto !important;
    display: block;
  }
  body.page-messages .site-main {
    position: static !important; top: auto !important;
    flex: none; display: block;
    overflow: visible !important; height: auto;
    padding: 0;
  }
  body.page-messages .site-main > .container {
    height: auto; overflow: visible; padding: 12px;
    display: block;
  }
  .messenger { height: 80vh; min-height: 420px; border-radius: var(--r-md); }
}

/* -------------------- СТРАНИЦА ПОИСКА (DLE-style) -------------------- */
.search-page { padding-bottom: 40px; }
.search-page__title {
  display: flex; align-items: center; gap: 10px;
  margin: 24px 0 18px;
}
.search-page__title .licon { color: var(--gold); }
.search-box {
  display: flex; gap: 10px; align-items: stretch;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px;
  margin-bottom: 24px;
}
.search-box__input {
  flex: 1; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px 16px;
  color: var(--text); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s;
}
.search-box__input:focus { border-color: var(--gold); }
.search-box__btn { flex-shrink: 0; white-space: nowrap; }
.search-info {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
}
.search-info__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
}
.search-info__title .licon { color: var(--gold); }
.search-info p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.search-page__result-head { margin-bottom: 16px; font-size: 15px; color: var(--text-dim); }
@media (max-width: 560px) {
  .search-box { flex-direction: column; }
  .search-box__btn { justify-content: center; }
}

/* -------------------- АДМИН: SEO страниц -------------------- */
.admin-seo-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.admin-seo-list {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 8px; max-height: 70vh; overflow-y: auto;
}
.admin-seo-group {
  font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); padding: 12px 12px 6px; font-weight: 700;
}
.admin-seo-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text-dim); font-size: 13px; transition: background .15s, color .15s;
}
.admin-seo-item:hover { background: var(--bg-2); color: var(--text); }
.admin-seo-item.is-active { background: var(--gold); color: #1a1a1f; font-weight: 600; }
.admin-seo-item .ph { color: var(--gold); flex-shrink: 0; }
.admin-seo-item.is-active .ph { color: #1a1a1f; }
.admin-seo-form { margin: 0; }
@media (max-width: 760px) {
  .admin-seo-layout { grid-template-columns: 1fr; }
  .admin-seo-list { max-height: 240px; }
}

/* -------------------- СТРАНИЦА ПОМОЩИ -------------------- */
.help-page { padding: 0 0 40px; }
.section__head--col { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
.section__head--col .section__sub { margin: 0; }

/* Заметный блок-предупреждение про блокировщики */
.help-callout[hidden] { display: none; }
.help-callout {
  display: flex; gap: 16px;
  background: linear-gradient(135deg, rgba(212,162,76,.1), rgba(212,162,76,.02));
  border: 1px solid rgba(212,162,76,.35);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.help-callout__icon {
  flex-shrink: 0;
  font-size: 28px; color: var(--gold);
  line-height: 1;
}
.help-callout__body { min-width: 0; }
.help-callout__body h2 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 0 0 8px;
}
.help-callout__body > p {
  font-size: 14px; color: var(--text-dim); line-height: 1.6;
  margin: 0 0 10px;
}
@media (max-width: 560px) {
  .help-callout { flex-direction: column; gap: 10px; padding: 16px; }
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.help-card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
}
.help-card__icon {
  font-size: 28px; color: var(--gold);
  margin-bottom: 10px; display: flex;
}
.help-card h2 {
  font-size: 15px; font-weight: 600; margin: 0 0 12px;
  color: var(--text);
}
.help-list {
  margin: 0; padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.help-list li {
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}
.help-list li strong { color: var(--text); }
.help-list kbd {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; font-size: 12px;
  font-family: monospace; color: var(--text);
}
.help-contact {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 24px;
}
.help-contact h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.help-contact p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* -------------------- ADMIN CRON URL -------------------- */
.cron-url-block { margin: 12px 0; }
.cron-url-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.cron-url-row label { font-size: 13px; color: var(--text-muted); min-width: 130px; }
.cron-url {
  flex: 1; font-size: 12px; font-family: monospace;
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 6px 10px;
  color: var(--text); overflow-x: auto; white-space: nowrap;
  min-width: 0;
}

/* -------------------- ПАГИНАЦИЯ -------------------- */
.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
  margin: 24px 0 8px;
}
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text-dim); font-size: 14px;
  text-decoration: none; transition: border-color .15s, color .15s;
}
.pagination__btn:hover { border-color: var(--gold); color: var(--gold); }
.pagination__btn--active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; pointer-events: none; }
.pagination__dots { color: var(--text-muted); font-size: 14px; padding: 0 4px; }

/* -------------------- ПРОФИЛЬ — новая вёрстка -------------------- */
.profile-role-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: rgba(212,162,76,.15); color: var(--gold);
  border-radius: 5px; padding: 2px 8px; letter-spacing: .3px;
}
.profile-stat { text-decoration: none; color: inherit; }
.profile-stat:hover .profile-stat__val { color: var(--gold-300); }
.profile-grid {
  display: grid; grid-template-columns: 340px 1fr;
  gap: 20px; padding: 24px 0 40px;
}
.profile-col-left, .profile-col-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile-grid > * { min-width: 0; }
.profile-quicknav { display: flex; flex-direction: column; padding: 0; }
.profile-qn-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none; color: var(--text);
  transition: background .15s;
}
.profile-qn-item:last-child { border-bottom: none; }
.profile-qn-item:hover { background: var(--bg-2); }
.profile-qn-item > .ph { font-size: 20px; color: var(--gold); flex-shrink: 0; }
.profile-qn-item > div { flex: 1; min-width: 0; }
.profile-qn-title { font-size: 14px; font-weight: 600; }
.profile-qn-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-qn-arrow { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 32px; }
}

/* ─────────────── SETTINGS PAGE ─────────────── */
.settings-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; padding: 24px 0 40px;
}
@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; gap: 14px; padding: 16px 0 32px; }
}

/* Theme picker */
.theme-picker {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.theme-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; flex: 1; min-width: 80px;
}
.theme-option input { display: none; }
.theme-option__preview {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; border: 2px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.theme-option--active .theme-option__preview,
.theme-option:hover .theme-option__preview {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,162,76,.2);
}
.theme-option__preview--dark  { background: #0a0a0c; color: #f3f3f5; }
.theme-option__preview--light { background: #f2f2f6; color: #14141a; }
.theme-option__preview--auto  { background: linear-gradient(135deg,#0a0a0c 50%,#f2f2f6 50%); color: var(--gold); }
.theme-option__label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.theme-option--active .theme-option__label { color: var(--gold); font-weight: 600; }

/* Privacy toggles */
.settings-toggle-list { display: flex; flex-direction: column; gap: 2px; }
.settings-toggle {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.settings-toggle:last-child { border-bottom: none; }
.settings-toggle input { display: none; }
.settings-toggle__info { flex: 1; }
.settings-toggle__title { display: block; font-size: 14px; font-weight: 500; }
.settings-toggle__desc  { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.settings-toggle__knob {
  width: 40px; height: 22px; border-radius: 11px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--line);
  position: relative; transition: background .2s;
}
.settings-toggle__knob::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--text-muted); transition: left .2s, background .2s;
}
.settings-toggle input:checked ~ .settings-toggle__knob { background: var(--gold); border-color: var(--gold); }
.settings-toggle input:checked ~ .settings-toggle__knob::after { left: 21px; background: #fff; }

/* Avatar upload block */
.avatar-upload-row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.avatar-upload-preview {
  flex-shrink: 0;
}
.avatar-upload-img {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--line);
  display: block;
}
.avatar-upload-placeholder {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #1d1d24;
}
.avatar-upload-controls { display: flex; flex-direction: column; gap: 10px; }
.avatar-upload-controls form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.avatar-upload-hint { font-size: 12px; color: var(--text-muted); margin: 0; }

/* Profile avatar with image */
.profile-avatar--img {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; border: 3px solid rgba(212,162,76,.3);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* -------------------- СТАТИЧЕСКИЕ СТРАНИЦЫ -------------------- */
.static-page { margin: 0 auto; }
.static-page__title { margin: 24px 0 16px; }
.static-page-body {
  font-size: 15px; line-height: 1.75; color: var(--text-dim);
  padding: 0 0 48px;
}
.static-page-body h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.static-page-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.static-page-body p { margin: 0 0 14px; }
.static-page-body ul, .static-page-body ol { margin: 0 0 14px; padding-left: 24px; }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a { color: var(--gold); text-decoration: underline; }

/* -------------------- ADMIN — ДОПОЛНИТЕЛЬНЫЕ СТИЛИ -------------------- */
/* Nav badge (unread count) */
.adm-nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.adm-nav__link--active .adm-nav-badge { background: rgba(255,255,255,.3); }

/* Unread counter in heading */
.adm-counter {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  vertical-align: middle; margin-left: 6px;
}

/* Status badges */
.adm-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: .3px;
}
.adm-status--ok   { background: rgba(46,204,113,.15); color: #2ecc71; }
.adm-status--warn { background: rgba(230,126,34,.15);  color: #e6813e; }
.adm-status--new  { background: rgba(52,152,219,.15);  color: #52a5e2; }

/* Type badge */
.adm-badge-type {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--bg-3); color: var(--text-muted);
  border-radius: 5px; padding: 2px 7px; white-space: nowrap;
}

/* Table row states */
.adm-row--muted td { opacity: .55; }
.adm-row--highlight td { background: rgba(52,152,219,.05); }

/* Table wrapper */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  min-width: 600px;
}
.adm-table th {
  padding: 10px 12px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--line);
}
.adm-table td {
  padding: 10px 12px; vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: rgba(255,255,255,.02); }

@media (max-width: 860px) {
  .adm-nav { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .adm-nav__link { font-size: 14px; padding: 11px 14px; }
}
@media (max-width: 540px) {
  .adm-table { min-width: 480px; }
  .adm-main { padding: 12px; }
}

/* ======================================================
   v60: Dark theme depth & polish
   ====================================================== */

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* ── Header ── */
.site-header {
  background: rgba(13,13,24,.82);
}

/* ── Cards with depth ── */
.card__poster {
  box-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.card:hover .card__poster {
  box-shadow: 0 10px 32px rgba(0,0,0,.75), 0 0 0 1px rgba(232,169,46,.18);
}

.episode-card {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
.episode-card:hover {
  border-color: rgba(232,169,46,.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.65), 0 0 0 1px rgba(232,169,46,.15);
  transform: translateY(-3px);
}

/* ── Profile & settings cards ── */
.profile-card {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(18,18,31,.9) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.profile-stat {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: box-shadow .2s, border-color .2s;
}
.profile-stat:hover {
  border-color: rgba(232,169,46,.35);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ── Admin panel ── */
.adm-main {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(18,18,31,.92) 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.adm-sidebar {
  background: linear-gradient(180deg, var(--bg-1) 0%, rgba(18,18,31,.9) 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.admin-card {
  background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.01) 100%);
}

/* ── Buttons glow ── */
.btn--primary:hover {
  box-shadow: 0 4px 18px rgba(227,10,23,.4);
}
.btn--gold:hover {
  box-shadow: 0 4px 18px rgba(232,169,46,.4);
  transform: translateY(-1px);
}
.btn--ghost:hover {
  box-shadow: 0 0 0 1px var(--gold);
}

/* ── Input focus ring ── */
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(232,169,46,.15), 0 2px 8px rgba(0,0,0,.4);
}

/* ── User menu dropdown shadow ── */
.user-menu-drop {
  box-shadow: 0 20px 56px rgba(0,0,0,.85), 0 0 0 1px var(--line);
}

/* ── Auth modal depth ── */

/* ── Hero depth ── */
.hero { box-shadow: 0 20px 64px rgba(0,0,0,.6); }

/* ── Rating block ── */
.rating-block {
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}

/* ── Catalog filters ── */
.catalog-filters {
  box-shadow: var(--shadow-sm) !important;
}

/* ── Comment editor ── */
.bb-editor {
  box-shadow: inset 0 1px 4px rgba(0,0,0,.35);
}

/* ── Profile avatar glow ── */
.profile-avatar--img  { border-color: rgba(232,169,46,.4); box-shadow: 0 0 0 2px rgba(232,169,46,.12); }
.avatar-upload-img    { border-color: rgba(232,169,46,.4); }

/* ── Online dot ── */
.online-dot { box-shadow: 0 0 0 2px var(--bg-1); }

/* ── Share copy button ── */

/* ── Messenger bubbles ── */
.msg-bubble--mine .msg-bubble__body {
  box-shadow: 0 2px 8px rgba(232,169,46,.2);
}


/* ── Mobile search focus — без свечения, только обводка на wrap ── */
.mobile-search-form input:focus { outline: none !important; box-shadow: none !important; }

/* ── Settings: date selects ── */
.date-selects { display: flex; gap: 8px; }
.date-sel {
  flex: 1; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); font-size: 14px;
  font-family: inherit; cursor: pointer;
  transition: border-color .2s;
}
.date-sel:focus { outline: none; border-color: var(--gold); }

/* ── Settings: section label ── */
.settings-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Field hint ── */
.field-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Last comments page ── */
/* ── Moderator/admin controls inside .cmt ── */
.cmt__mod-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 6px;
  color: var(--text-muted); cursor: pointer;
  font-size: 12px; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.cmt__mod-btn:hover { color: var(--text); border-color: var(--gold); }
.cmt__mod-btn--del { color: #e57373; }
.cmt__mod-btn--del:hover { color: #e57373; border-color: rgba(229,115,115,.5); background: rgba(229,115,115,.08); }
.cmt__mod-del-form { display: inline; }
.cmt__ip {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-muted);
  font-family: monospace; font-size: 12px;
}
.cmt__edit-form {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  margin: 10px 0;
  background: var(--bg-2);
  border-radius: 8px;
}
.cmt__edit-form[hidden] { display: none; }
.cmt__edit-form textarea {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; color: var(--text); font-family: inherit;
  font-size: 14px; resize: vertical;
}
.cmt__edit-buttons { display: flex; gap: 8px; }

/* ── Section head — кнопка назад + заголовок в один ряд ── */
.section__head-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.section__title--inline { margin: 0; }

/* ── Profile stat tiles (4 colored cards) ── */
.profile-stats4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 16px 0 0;
}
.profile-stat4 {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .15s;
}
.profile-stat4:hover { border-color: rgba(212,162,76,.35); }
.profile-stat4__icon {
  font-size: 28px;
  color: var(--gold);
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,162,76,.1);
  border-radius: 10px;
}
.profile-stat4__val {
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1;
}
.profile-stat4__avg {
  font-size: 14px; font-weight: 600; color: var(--gold);
}
.profile-stat4__lbl {
  font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .profile-stats4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .profile-stat4 { padding: 12px 14px; gap: 10px; }
  .profile-stat4__icon { width: 38px; height: 38px; font-size: 22px; }
  .profile-stat4__val { font-size: 18px; }
}

/* ── Profile content blocks (top rated / favs / history / comments) ── */
.prof-block {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  min-width: 0;
}
.prof-block__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.prof-block__title {
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: var(--text);
}
.prof-block__title .ph { color: var(--gold); font-size: 18px; }
.prof-block__more {
  font-size: 13px; color: var(--gold);
  text-decoration: none; white-space: nowrap;
}
.prof-block__more:hover { color: var(--gold-300); }

/* Poster row — grid of small posters */
.prof-poster-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.prof-poster {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--text);
}
.prof-poster__img {
  position: relative;
  width: 100%; aspect-ratio: 2/3;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s;
}
.prof-poster:hover .prof-poster__img { transform: translateY(-2px); }
.prof-poster__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-poster__ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 24px;
}
.prof-poster__rating {
  position: absolute; top: 6px; right: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px;
  background: rgba(0,0,0,.7);
  color: var(--gold);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.prof-poster__rating--kp { color: #fff; background: rgba(212,162,76,.85); }
.prof-poster__title {
  font-size: 13px; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.prof-poster:hover .prof-poster__title { color: var(--gold); }
.prof-poster__sub {
  font-size: 11px; color: var(--text-muted);
}

/* Comments mini-list inside profile block */
.prof-comments { display: flex; flex-direction: column; gap: 10px; }
.prof-cmt {
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 10px;
  border-left: 3px solid rgba(212,162,76,.4);
  transition: border-left-color .15s, background .15s;
}
.prof-cmt:hover {
  border-left-color: var(--gold);
  background: rgba(212,162,76,.04);
}
.prof-cmt__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.prof-cmt__title {
  font-size: 14px; font-weight: 600; color: var(--gold);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.prof-cmt__title::before {
  content: '\f0c1';  /* placeholder */
  display: none;
}
.prof-cmt__title:hover { color: var(--gold-300); }
.prof-cmt__time { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.prof-cmt__body {
  font-size: 13.5px; line-height: 1.6; color: var(--text-dim);
  word-break: break-word;
}

/* Ratings grid (full page) */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 640px) {
  .ratings-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* Profile col-right should stack blocks */
.profile-col-right { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1100px) {
  .prof-poster-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .prof-poster-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .prof-block { padding: 14px; }
  .prof-poster-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 110px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .prof-poster-row::-webkit-scrollbar { height: 4px; }
  .prof-poster-row::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 2px; }
}

/* ── Empty state block ── */
.empty-block {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  margin: 48px auto;
  padding: 48px 24px;
  max-width: 480px;
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.empty-block__icon {
  font-size: 48px;
  color: var(--gold);
  opacity: .7;
}
.empty-block__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.empty-block__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Profile nav (left aside) ── */
.profile-nav {
  display: flex; flex-direction: column;
  gap: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
}
.profile-nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.profile-nav__item:hover {
  background: var(--bg-2);
  color: var(--text);
}
.profile-nav__item > .ph {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  width: 20px; text-align: center;
}
.profile-nav__item > span:not(.profile-nav__cnt) { flex: 1; min-width: 0; }
.profile-nav__cnt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; width: auto; height: 20px; padding: 0 7px;
  background: rgba(212,162,76,.15);
  color: var(--gold);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  flex: 0 0 auto;
}
.profile-nav__arrow {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  width: auto !important;
  transition: transform .15s;
}
.profile-nav__item:hover .profile-nav__arrow { transform: translateX(2px); color: var(--gold) !important; }

/* Cards spacing in right column */
.profile-col-right { display: flex; flex-direction: column; gap: 16px; }

/* ── Last comments (lastcomments page) ── */
.lcmt-page-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
  margin-top: 24px;
}
.lcmt-user-link { color: var(--gold); }
.lcmt-empty { color: var(--text-muted); text-align: center; margin: 48px 0; }
.lcmt-pagination { margin-top: 24px; }
.lcmt__avatar-link { text-decoration: none; }
.lcmt__del-form { display: inline; }
.lcmt-list { display: flex; flex-direction: column; }
.lcmt {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.lcmt:last-child { border-bottom: none; }
.lcmt__poster {
  flex-shrink: 0;
  width: 64px; height: 90px;
  border-radius: 6px; overflow: hidden;
  background: var(--bg-2);
  display: block;
  position: relative;
}
.lcmt__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcmt__poster-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 22px;
}
.lcmt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lcmt__title {
  font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.lcmt__title:hover { color: var(--gold); }
.lcmt__header {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
}
.lcmt__header .cmt__avatar-wrap { width: 28px; height: 28px; }
.lcmt__header .cmt__avatar,
.lcmt__header .cmt__avatar--img { width: 28px; height: 28px; font-size: 12px; }
.lcmt__header .cmt__name { font-size: 13px; }
.lcmt__header .cmt__date { margin-left: auto; }
.lcmt__text {
  font-size: 14px; line-height: 1.55; color: var(--text-dim);
  word-break: break-word;
}
.lcmt__footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.lcmt__goto {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gold); text-decoration: none;
  padding: 4px 10px;
  background: rgba(212,162,76,.1);
  border-radius: 999px;
  transition: background .15s;
}
.lcmt__goto:hover { background: rgba(212,162,76,.2); }
.lcmt__mod {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.lcmt__ip {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-muted);
  font-family: monospace;
}
.lcmt__act {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 6px;
  color: var(--text-muted); cursor: pointer;
  font-size: 12px; font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.lcmt__act:hover { color: var(--text); border-color: var(--gold); }
.lcmt__act--del { color: #e57373; }
.lcmt__act--del:hover { color: #e57373; border-color: rgba(229,115,115,.5); background: rgba(229,115,115,.08); }
.lcmt__edit-form {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 8px;
}
.lcmt__edit-form[hidden] { display: none; }
.lcmt__edit-form textarea {
  width: 100%; background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 6px; padding: 8px; color: var(--text); font-family: inherit;
  font-size: 14px; resize: vertical;
}
.lcmt__edit-buttons { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .lcmt { gap: 12px; }
  .lcmt__poster { width: 52px; height: 74px; }
  .lcmt__mod { margin-left: 0; width: 100%; }
}

/* ── Страница «Технические работы» ── */
.page-maintenance {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(227,10,23,.10), transparent 60%),
    var(--bg);
  padding: 24px;
}
.maintenance { width: 100%; max-width: 560px; }
.maintenance__box {
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.maintenance__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212,162,76,.12);
  color: var(--gold, #d4a24c);
}
.maintenance__icon svg { width: 38px; height: 38px; }
.maintenance__title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text);
}
.maintenance__msg {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

