/* ═══════════════════════════════════════════════════════
   Bible Sermon App — Main Styles
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #f0f4f8;
  --c-surface:  #ffffff;
  --c-sidebar:  #1a2744;
  --c-primary:  #2563eb;
  --c-primary-h:#1d4ed8;
  --c-success:  #16a34a;
  --c-danger:   #dc2626;
  --c-warning:  #d97706;
  --c-text:     #1e293b;
  --c-muted:    #64748b;
  --c-border:   #e2e8f0;
  --c-acc-open: #eff6ff;
  --c-acc-border:#3b82f6;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --transition: .2s ease;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-bg); color: var(--c-text); font-size: 14px; }

/* ── Layout ──────────────────────────────────────────── */
.layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--c-sidebar); color: #fff;
  display: flex; flex-direction: column; overflow: hidden;
}
.sidebar-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.sidebar-user { font-size: 12px; color: rgba(255,255,255,.5); }
.sidebar-user span { color: rgba(255,255,255,.85); font-weight: 600; }

.sidebar-section { padding: 14px 20px 6px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; }

.sidebar-body { flex: 1; overflow-y: auto; padding-bottom: 16px; }
.sidebar-body::-webkit-scrollbar { width: 4px; }
.sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; cursor: pointer;
  color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: rgba(59,130,246,.2); color: #fff; border-left-color: #3b82f6; }
.nav-item .ico { font-size: 16px; flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto; background: var(--c-primary); color: #fff;
  border-radius: 10px; padding: 1px 7px; font-size: 11px;
}
.nav-item .status-dot {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #4b5563;
}
.nav-item .status-dot.live { background: #22c55e; box-shadow: 0 0 6px #22c55e; }

.sidebar-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; gap: 8px;
}
.sidebar-foot button {
  flex: 1; padding: 8px; border: none; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.sidebar-foot button:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── Content area ─────────────────────────────────────── */
.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  background: var(--c-surface); border-bottom: 1px solid var(--c-border);
  padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.topbar-title { font-size: 16px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.page { flex: 1; overflow-y: auto; padding: 24px; }
.page::-webkit-scrollbar { width: 6px; }
.page::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

/* ── Кнопки ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 5px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-h); }
.btn-success { background: var(--c-success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--c-muted); border: 1.5px solid var(--c-border); }
.btn-ghost:hover { background: var(--c-bg); color: var(--c-text); }
.btn-warning { background: var(--c-warning); color: #fff; }
.btn-icon { padding: 7px; width: 34px; height: 34px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Карточки ─────────────────────────────────────────── */
.card {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }

.sermon-card {
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; cursor: pointer; border: 2px solid transparent; transition: all var(--transition);
  position: relative;
}
.sermon-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.sermon-card.active-sermon { border-color: var(--c-success); }
.sermon-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.sermon-card-meta { font-size: 12px; color: var(--c-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.sermon-card-actions { display: flex; gap: 6px; margin-top: 12px; }
.sermon-card-preacher { font-size: 11px; font-weight: 600; color: var(--c-primary);
  background: #eff6ff; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; display: inline-block; }

.status-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.status-draft    { background: #f1f5f9; color: var(--c-muted); }
.status-ready    { background: #dcfce7; color: var(--c-success); }
.status-archived { background: #fef3c7; color: var(--c-warning); }

/* ── Аккордион ────────────────────────────────────────── */
.accordion { margin-bottom: 8px; }
.acc-item {
  background: var(--c-surface); border-radius: var(--radius);
  border: 1.5px solid var(--c-border); margin-bottom: 6px; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.acc-item.done { opacity: .6; border-color: #cbd5e1; }
.acc-item.open { border-color: var(--c-acc-border); box-shadow: 0 0 0 3px rgba(59,130,246,.08); }

.acc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; cursor: pointer; user-select: none;
  transition: background var(--transition);
}
.acc-header:hover { background: var(--c-bg); }
.acc-item.open .acc-header { background: var(--c-acc-open); }

.acc-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--c-border); color: var(--c-muted);
}
.acc-item.open .acc-num { background: var(--c-primary); color: #fff; }
.acc-item.done .acc-num { background: var(--c-success); color: #fff; }

.acc-title { flex: 1; font-weight: 600; font-size: 14px; }
.acc-chevron { color: var(--c-muted); transition: transform var(--transition); font-size: 12px; }
.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-actions { display: flex; gap: 4px; opacity: 0; transition: opacity var(--transition); }
.acc-header:hover .acc-actions { opacity: 1; }

.acc-body { display: none; padding: 16px; border-top: 1px solid var(--c-border); }
.acc-item.open .acc-body { display: block; }

/* Слайды в секции */
.section-slides { margin-top: 16px; }
.section-slides-title { font-size: 12px; font-weight: 700; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.slides-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.slide-thumb {
  width: 80px; height: 50px; border-radius: 6px; border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 18px; background: var(--c-bg); position: relative; overflow: hidden;
  transition: all var(--transition); flex-shrink: 0;
}
.slide-thumb:hover { border-color: var(--c-primary); transform: scale(1.05); }
.slide-thumb.active-slide { border-color: var(--c-success); box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; }
.slide-thumb .slide-type-ico { position: relative; z-index: 1; font-size: 20px; }
.slide-thumb .slide-num { position: absolute; bottom: 2px; right: 4px; font-size: 10px;
  font-weight: 700; color: rgba(255,255,255,.9); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.slide-add { border-style: dashed; color: var(--c-muted); }
.slide-add:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-acc-open); }

/* ── WYSIWYG ──────────────────────────────────────────── */
.wysiwyg-wrap { border: 1.5px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.wysiwyg-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
}
.wysiwyg-toolbar button {
  padding: 4px 8px; border: none; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--c-text); font-size: 13px;
  transition: all var(--transition);
}
.wysiwyg-toolbar button:hover { background: var(--c-border); }
.wysiwyg-toolbar button.active { background: var(--c-primary); color: #fff; }
.wysiwyg-toolbar .sep { width: 1px; background: var(--c-border); margin: 2px 4px; align-self: stretch; }
.wysiwyg-body {
  min-height: 140px; max-height: 400px; overflow-y: auto;
  padding: 14px; outline: none; line-height: 1.7; font-size: 14px;
}
.wysiwyg-body:empty::before { content: attr(data-placeholder); color: var(--c-muted); }

/* Библейская вставка в тексте */
.bible-insert {
  display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 4px; padding: 1px 6px; font-size: 13px; color: #1e40af;
  margin: 0 2px; cursor: default;
}

/* ── Формы ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--c-text);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--c-border);
  border-radius: 7px; font-size: 14px; color: var(--c-text);
  background: var(--c-surface); transition: border var(--transition); outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ── Модальные окна ───────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 1000; padding: 40px 20px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--c-surface); border-radius: 14px;
  width: 100%; max-width: 640px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: translateY(-20px); transition: transform .25s;
  flex-shrink: 0;
}
.overlay.show .modal { transform: translateY(0); }
.modal-lg { max-width: 820px; }
.modal-head {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; gap: 12px;
}
.modal-head h3 { flex: 1; font-size: 17px; font-weight: 700; }
.modal-head .modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--c-bg); cursor: pointer; font-size: 16px; color: var(--c-muted);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.modal-head .modal-close:hover { background: var(--c-border); color: var(--c-text); }
.modal-body { padding: 20px 24px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Слайд-редактор ───────────────────────────────────── */
.slide-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.slide-preview {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
  background: #1a1a2e; display: flex; align-items: center; justify-content: center;
  position: relative; font-size: 14px; color: rgba(255,255,255,.3);
}
.slide-preview-inner { width: 100%; height: 100%; position: relative; }
.slide-preview-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.slide-preview-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; font-weight: 600; word-break: break-word;
}
.slide-type-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.slide-type-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--c-border); background: transparent; cursor: pointer;
  color: var(--c-muted); transition: all var(--transition);
}
.slide-type-tab.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ── Библейский пикер ─────────────────────────────────── */
.bible-picker { display: grid; gap: 10px; }
.bible-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.lang-check { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.lang-check input { width: 16px; height: 16px; cursor: pointer; }
.lang-check span { font-size: 13px; font-weight: 600; }
.bible-result-preview {
  background: var(--c-bg); border-radius: 8px; padding: 12px;
  font-size: 13px; line-height: 1.7; max-height: 180px; overflow-y: auto;
  border: 1px solid var(--c-border); min-height: 60px;
  color: var(--c-muted); font-style: italic;
}
.bible-result-preview.loaded { color: var(--c-text); font-style: normal; }

/* ── Монитор (live slides view) ───────────────────────── */
.monitor-panel {
  position: fixed; bottom: 20px; right: 20px; width: 220px;
  background: var(--c-sidebar); border-radius: 12px; padding: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); z-index: 100;
  transition: all var(--transition);
}
.monitor-panel-head { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.monitor-panel-head .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.monitor-slide-current {
  background: rgba(255,255,255,.1); border-radius: 8px; padding: 10px;
  font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 8px;
}
.monitor-slide-name { font-weight: 700; color: #fff; font-size: 13px; margin-bottom: 4px; }
.monitor-link { display: block; text-align: center; padding: 6px; border-radius: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); text-decoration: none;
  font-size: 11px; font-weight: 600; transition: background var(--transition); }
.monitor-link:hover { background: rgba(255,255,255,.2); }

/* ── Страница монитора (slides.php) ─────────────────────*/
.slides-page {
  width: 100vw; height: 100vh; overflow: hidden;
  background: #000; display: flex; align-items: center; justify-content: center;
  position: relative;
}
.slide-display {
  width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.slide-display-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; }
.slide-display-text {
  position: relative; z-index: 2; text-align: center; padding: 40px;
  max-width: 90%;
}
.slide-display-ref { font-size: clamp(14px,2vw,24px); opacity: .7; margin-bottom: 12px; }
.slide-display-verse { font-size: clamp(20px,4vw,56px); font-weight: 700; line-height: 1.3; }
.slide-display-caption { font-size: clamp(14px,2.5vw,32px); line-height: 1.4; }
.slide-no-content { color: rgba(255,255,255,.2); font-size: 18px; text-align: center; }
.slides-info-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.6);
  padding: 6px 16px; border-radius: 20px; font-size: 12px; white-space: nowrap;
}
.slide-yt-wrap { width: 100%; height: 100%; }
.slide-yt-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Таблицы ──────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--c-bg); padding: 10px 14px; text-align: left;
  font-size: 12px; font-weight: 700; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--c-border); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.table tr:hover td { background: var(--c-bg); }

/* ── Алерты ───────────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Страница логина ──────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a2744 0%, #1e3a8a 100%); padding: 20px;
}
.login-card {
  background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .ico { font-size: 48px; margin-bottom: 8px; }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--c-text); }
.login-logo p { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* ── Очередь в боковой панели ─────────────────────────── */
.queue-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 20px;
  font-size: 12px; color: rgba(255,255,255,.6); border-left: 3px solid transparent;
}
.queue-item.q-active { color: #fff; border-left-color: #22c55e; background: rgba(34,197,94,.1); }
.queue-item.q-waiting { border-left-color: var(--c-primary); }
.queue-item .q-name { flex: 1; }

/* ── Утилиты ──────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-muted { color: var(--c-muted); }
.text-sm { font-size: 12px; }
.fw-bold { font-weight: 700; }
.w-full { width: 100%; }
.drag-handle { cursor: grab; color: var(--c-border); padding: 0 4px; }
.drag-handle:active { cursor: grabbing; }

/* ── Уведомления ──────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  padding: 12px 22px; border-radius: 30px; font-size: 13px; font-weight: 600;
  color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.25);
  animation: toastIn .3s ease; white-space: nowrap;
}
@keyframes toastIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.toast-success { background: var(--c-success); }
.toast-error   { background: var(--c-danger); }
.toast-info    { background: var(--c-primary); }

/* ── Адаптив ──────────────────────────────────────────── */
@media(max-width:768px) {
  .sidebar { width: 60px; }
  .sidebar-logo, .nav-item span, .sidebar-section, .sidebar-user,
  .sidebar-foot button span { display: none; }
  .nav-item { padding: 12px; justify-content: center; }
  .nav-item .ico { margin: 0; }
  .page { padding: 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .slide-editor { grid-template-columns: 1fr; }
  .modal { margin: 0; border-radius: 14px 14px 0 0; position: fixed; bottom: 0; max-width: 100%; }
  .overlay { align-items: flex-end; padding: 0; }
}

/* ═══════════════════════════════════════════════════════
   Monitor Control Panel (sidebar bottom)
   ═══════════════════════════════════════════════════════ */
.mcp-wrap {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 14px;
  background: rgba(0,0,0,.2);
  flex-shrink: 0;
}
.mcp-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 10px;
}
.mcp-header .live-dot { flex-shrink: 0; }
.mcp-header .mcp-title { flex: 1; }
.mcp-vis-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6); border-radius: 5px;
  padding: 2px 7px; font-size: 11px; cursor: pointer;
  transition: all .2s;
}
.mcp-vis-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.mcp-vis-btn.hidden-screen { border-color: var(--c-danger); color: #f87171; }

/* Текущий слайд — превью */
.mcp-current {
  background: #000; border-radius: 8px; overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(34,197,94,.4);
}
.mcp-current-inner { width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center; }
.mcp-current-bg { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.mcp-current-text {
  position: relative; z-index: 2; text-align: center; padding: 6px;
  font-size: 9px; line-height: 1.3; word-break: break-word;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); max-height: 100%; overflow: hidden;
}
.mcp-empty { color: rgba(255,255,255,.2); font-size: 11px; text-align: center; }

/* Полоска миниатюр */
.mcp-strip {
  display: flex; gap: 5px; margin-bottom: 10px; align-items: center;
}
.mcp-thumb {
  flex: 1; aspect-ratio: 16/9; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.15);
  background: #1e293b; display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; overflow: hidden; position: relative;
  transition: all .2s;
}
.mcp-thumb:hover { border-color: rgba(255,255,255,.4); transform: scale(1.05); }
.mcp-thumb.cur { border-color: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3); flex: 1.4; }
.mcp-thumb.prev, .mcp-thumb.nxt { opacity: .65; flex: 0.85; }
.mcp-thumb.empty { opacity: .25; cursor: default; }
.mcp-thumb img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.mcp-thumb .mtp-ico { position:relative;z-index:1; }
.mcp-thumb .mtp-label {
  position:absolute; bottom:0; left:0; right:0;
  font-size:8px; color:rgba(255,255,255,.8); text-align:center;
  background:linear-gradient(transparent,rgba(0,0,0,.7)); padding:2px 2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* Кнопки навигации */
.mcp-nav {
  display: flex; align-items: center; gap: 6px;
}
.mcp-nav-btn {
  background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.8);
  border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 700;
  padding: 6px 10px; transition: all .2s; flex-shrink: 0;
}
.mcp-nav-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.mcp-nav-btn:disabled { opacity: .3; cursor: default; }
.mcp-counter {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.7);
}
.mcp-section-label {
  font-size: 10px; color: rgba(255,255,255,.35);
  text-align: center; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Кнопка мониторинга в аккордионе */
.slide-thumb.slide-on-air { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.slide-thumb.slide-on-air::after {
  content: '●'; position:absolute; top:2px; left:3px;
  color: #22c55e; font-size: 8px; z-index:2;
}
