/* ============================================================
   VideoTube — тёмная тема в стиле YouTube
   ============================================================ */
:root {
  --bg: #0f0f0f;
  --surface: #212121;
  --surface-2: #272727;
  --surface-3: #1f1f1f;
  --border: #303030;
  --text: #f1f1f1;
  --text-dim: #aaaaaa;
  --accent: #f00;
  --blue: #3ea6ff;
  --red: #ff4e45;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: rgba(62, 166, 255, .4); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================ Шапка ============================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 16px; background: var(--bg);
}
.topbar-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; position: relative; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); }

.logo { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -.8px; }
.logo-accent { color: var(--red); }

.search-form { flex: 1; max-width: 620px; margin: 0 16px; }
.search-box { display: flex; }
.search-box input {
  flex: 1; height: 40px; padding: 0 16px; font-size: 15px;
  background: #121212; color: var(--text);
  border: 1px solid var(--border); border-right: none;
  border-radius: 20px 0 0 20px; outline: none; min-width: 0;
}
.search-box input:focus { border-color: var(--blue); }
.search-btn {
  width: 64px; height: 40px; cursor: pointer;
  background: #222; color: var(--text);
  border: 1px solid var(--border); border-radius: 0 20px 20px 0;
}
.search-btn:hover { background: #2c2c2c; }

.bell .bell-badge {
  position: absolute; top: 1px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: #c00; color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 500; font-style: normal;
  display: flex; align-items: center; justify-content: center;
}
.avatar { border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; }
.avatar-s { width: 32px; height: 32px; }
.avatar-m { width: 36px; height: 36px; }
.avatar-l { width: 40px; height: 40px; }
.avatar-xl { width: 80px; height: 80px; }
.avatar-xxl { width: 120px; height: 120px; }
.avatar-btn { display: flex; align-items: center; }

/* ============================ Каркас ============================ */
.layout { display: flex; padding-top: 56px; min-height: 100vh; }
.content { flex: 1; min-width: 0; padding: 24px; }
.no-sidebar .content-center { max-width: 720px; margin: 0 auto; width: 100%; }

.sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 56px;
  height: calc(100vh - 56px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px; transition: width .18s ease;
}
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-item {
  display: flex; align-items: center; gap: 24px;
  padding: 7px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-size: 14px;
  white-space: nowrap; overflow: hidden;
}
.side-item:hover { background: var(--surface-2); }
.side-item.active { background: var(--surface-2); font-weight: 500; }
.side-item.side-channel { gap: 16px; }
.side-title { padding: 6px 12px; font-weight: 500; font-size: 15px; }
.side-empty { padding: 6px 12px; color: var(--text-dim); font-size: 12.5px; white-space: normal; }
.side-sep { border-top: 1px solid var(--border); margin: 12px 4px; }

/* Схлопнутый сайдбар (иконная панель) */
body.sidebar-collapsed .sidebar { width: 72px; }
body.sidebar-collapsed .side-item { flex-direction: column; gap: 6px; padding: 14px 0; font-size: 10px; justify-content: center; }
body.sidebar-collapsed .side-item.side-channel { flex-direction: row; gap: 0; justify-content: center; padding: 10px 0; }
body.sidebar-collapsed .side-item.side-channel .side-label { display: none; }
body.sidebar-collapsed .side-title,
body.sidebar-collapsed .side-empty { display: none; }
.sidebar-overlay { display: none; }

/* ============================ Чипсы категорий ============================ */
.chips {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 16px;
  position: sticky; top: 56px; background: var(--bg); z-index: 40;
}
.chip {
  background: var(--surface-2); color: var(--text); border: none; cursor: pointer;
  padding: 7px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; text-decoration: none;
}
.chip:hover { background: #3f3f3f; }
.chip.active { background: var(--text); color: var(--bg); }

/* ============================ Сетка видео ============================ */
.video-grid {
  display: grid; gap: 40px 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.video-card { text-decoration: none; color: inherit; display: block; }
.thumb-wrap {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #1d1d1d;
}
.thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0, 0, 0, .8); color: #fff;
  font-size: 12px; font-weight: 500; padding: 1px 5px; border-radius: 4px;
}
.status-badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.status-pending { background: rgba(230, 150, 0, .9); }
.status-blocked { background: rgba(200, 0, 0, .9); }
.card-info { display: flex; gap: 12px; margin-top: 12px; }
.card-text { min-width: 0; }
.card-title {
  font-size: 16px; font-weight: 500; line-height: 1.4; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-channel, .card-meta { color: var(--text-dim); font-size: 14px; }
.card-channel { margin-bottom: 2px; }
.video-card:hover .card-title { opacity: .92; }

/* Горизонтальные строки видео */
.video-row { display: flex; gap: 8px; position: relative; margin-bottom: 10px; }
.row-thumb-wrap {
  position: relative; width: 168px; aspect-ratio: 16 / 9; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: #1d1d1d;
}
.row-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-info { flex: 1; min-width: 0; text-decoration: none; }
.row-title {
  font-size: 14px; font-weight: 500; margin: 0 0 4px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-channel, .row-meta { color: var(--text-dim); font-size: 12px; }
.video-row.large .row-thumb-wrap { width: 360px; }
.row-remove { position: absolute; right: -4px; top: -4px; width: 32px; height: 32px; }

/* ============================ Страница просмотра ============================ */
.watch-layout { display: flex; gap: 24px; align-items: flex-start; }
.watch-main { flex: 1; min-width: 0; max-width: 1280px; }
.watch-side { width: 382px; flex-shrink: 0; }
.player {
  width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; display: block;
  position: relative;
}
.player video { width: 100%; height: 100%; display: block; }
.player-next {
  position: absolute; inset: 0; z-index: 2; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .78);
}
.player-next[hidden] { display: none; }
.player-next-card {
  width: min(420px, 100%); padding: 20px 22px; border-radius: 12px;
  background: rgba(33, 33, 33, .97); border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); text-align: center;
}
.player-next-label { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.player-next-title { font-size: 17px; font-weight: 600; line-height: 1.35; margin-bottom: 16px; }
.player-next-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.player-next-actions .btn-primary { text-decoration: none; }
.watch-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin: 12px 0 10px; }
.watch-actions-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.channel-line { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel-name-link { text-decoration: none; }
.channel-name-link strong { font-size: 16px; font-weight: 500; display: block; }
.sub-count { color: var(--text-dim); font-size: 12px; }
.subscribe-btn {
  background: var(--text); color: var(--bg); border: none; border-radius: 18px;
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.subscribe-btn:hover { background: #fff; }
.subscribe-btn.subscribed { background: var(--surface-2); color: var(--text); }
.subscribe-btn.subscribed:hover { background: #3f3f3f; }
.watch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-pill { display: flex; background: var(--surface-2); border-radius: 18px; overflow: hidden; }
.action-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 15px;
  background: transparent; border: none; color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.action-btn + .action-btn { border-left: 1px solid rgba(255, 255, 255, .12); }
.action-btn:hover { background: #3f3f3f; }
.action-btn.active { color: #fff; }
.action-btn.active .icon { fill: var(--blue); }
.action-toggle { position: relative; user-select: none; }
.action-toggle-label { white-space: nowrap; }
.switch-input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  border: 0; white-space: nowrap;
}
.switch {
  position: relative; display: inline-block; width: 34px; height: 20px;
  flex-shrink: 0; background: #555; border-radius: 10px;
  transition: background .15s;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.switch-input:checked + .switch { background: var(--blue); }
.switch-input:checked + .switch::after { transform: translateX(14px); }
.switch-input:focus-visible + .switch { outline: 2px solid var(--blue); outline-offset: 2px; }
.desc-box { background: var(--surface-2); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin: 16px 0 24px; }
.desc-meta { font-weight: 500; margin-bottom: 6px; }
.desc-text { white-space: pre-wrap; word-wrap: break-word; color: var(--text); }
.desc-text.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc-toggle { background: none; border: none; color: var(--text-dim); font-weight: 600; cursor: pointer; padding: 6px 0 0; }

/* Комментарии */
.comments-title { font-size: 20px; font-weight: 700; margin: 28px 0 16px; }
.comment-form-row { display: flex; gap: 12px; margin-bottom: 28px; align-items: flex-start; }
.comment-field { flex: 1; }
.comment-input {
  width: 100%; background: transparent; border: none; outline: none;
  border-bottom: 1px solid var(--border); color: var(--text);
  padding: 6px 2px; font-size: 14px; resize: none; min-height: 34px;
}
.comment-input:focus { border-bottom: 2px solid var(--text); }
.comment-actions { display: none; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.comment-actions.visible { display: flex; }
.btn-ghost {
  background: transparent; border: none; color: var(--text);
  border-radius: 18px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-ghost:hover { background: var(--surface-2); }
.comment { display: flex; gap: 12px; margin-bottom: 18px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { font-size: 13px; font-weight: 500; }
.comment-head .author { text-decoration: none; }
.comment-time { color: var(--text-dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
.comment-text { font-size: 14px; margin: 4px 0 6px; white-space: pre-wrap; word-wrap: break-word; }
.comment-ctrl {
  background: none; border: none; padding: 4px 8px; margin-left: -8px;
  color: var(--text-dim); font-size: 12.5px; font-weight: 500; cursor: pointer; border-radius: 12px;
}
.comment-ctrl:hover { background: var(--surface-2); color: var(--text); }
.comment-ctrl.danger:hover { color: #ff6b6b; }
.replies { margin-top: 14px; padding-left: 14px; border-left: 1px solid var(--border); }
.show-replies {
  background: transparent; border: none; color: var(--blue); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 18px; cursor: pointer; margin-bottom: 12px;
}
.show-replies:hover { background: rgba(62, 166, 255, .15); }
.reply-form { margin: 10px 0 14px; }

/* ============================ Канал ============================ */
.channel-banner { height: 160px; border-radius: var(--radius); }
.channel-head { display: flex; align-items: center; gap: 24px; margin: 20px 0; flex-wrap: wrap; }
.channel-name { font-size: 28px; font-weight: 700; margin: 0; }
.channel-meta { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.channel-bio { color: var(--text-dim); font-size: 14px; margin-top: 4px; max-width: 640px; white-space: pre-wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab {
  padding: 11px 16px; color: var(--text-dim); text-decoration: none;
  font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-color: var(--text); }

/* ============================ Плейлисты, уведомления ============================ */
.playlist-hero { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.playlist-cover {
  width: 320px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #1d1d1d; flex-shrink: 0; position: relative;
}
.playlist-cover img { width: 100%; height: 100%; object-fit: cover; }
.notif {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--radius);
  text-decoration: none; align-items: flex-start;
}
.notif:hover { background: var(--surface-2); }
.notif.unread { background: rgba(62, 166, 255, .09); }
.notif-text { font-size: 14px; }
.notif-time { color: var(--text-dim); font-size: 12px; margin-top: 4px; }

/* ============================ Формы и карточки ============================ */
.page-title { font-size: 24px; font-weight: 700; margin: 0 0 20px; }
.section-title { font-size: 20px; font-weight: 700; margin: 28px 0 14px; }
.auth-card {
  max-width: 420px; margin: 48px auto; padding: 32px;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 16px;
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-dim); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="search"], .field input[type="url"], .field textarea, .field select {
  width: 100%; background: #121212; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.form-error {
  background: rgba(255, 0, 0, .12); border: 1px solid rgba(255, 0, 0, .35);
  color: #ff9d9d; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.form-error ul { margin: 0; padding-left: 18px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-warn { background: rgba(255, 193, 7, .1); color: #ffd76b; border: 1px solid rgba(255, 193, 7, .3); }
.alert-info { background: rgba(62, 166, 255, .1); color: #8ec9ff; border: 1px solid rgba(62, 166, 255, .3); }
.btn-primary {
  background: var(--text); color: var(--bg); border: none; border-radius: 18px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #fff; }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-outline {
  border: 1px solid var(--border); border-radius: 18px; padding: 7px 13px;
  color: var(--blue); font-size: 14px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: transparent;
}
.btn-outline:hover { background: rgba(62, 166, 255, .12); }
.btn-danger { background: rgba(255, 0, 0, .15); border: 1px solid rgba(255, 0, 0, .4); color: #ff9d9d; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.btn-block { width: 100%; justify-content: center; }
.link-dim { color: var(--blue); text-decoration: none; }
.link-dim:hover { text-decoration: underline; }
.form-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* Загрузка видео */
.upload-card { max-width: 680px; margin: 0 auto; }
.dropzone {
  border: 2px dashed var(--border); border-radius: 16px; padding: 56px 20px;
  text-align: center; cursor: pointer; color: var(--text-dim); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: rgba(62, 166, 255, .05); }
.dropzone h3 { color: var(--text); margin: 12px 0 4px; font-size: 17px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: 16px 0 8px; }
.progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width .15s; }
.file-info { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

/* ============================ Студия и админка ============================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.bar-chart { display: flex; align-items: stretch; gap: 6px; height: 150px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar { width: 100%; max-width: 34px; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar.empty { background: var(--surface-2); }
.bar-x { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th {
  text-align: left; color: var(--text-dim); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .6px; padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.table td { padding: 10px 14px; border-bottom: 1px solid #242424; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.table .cell-thumb { width: 120px; border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; display: block; }
.btn-sm {
  padding: 5px 10px; font-size: 12.5px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-sm:hover { background: var(--surface-2); }
.btn-sm.danger { color: #ff8080; border-color: rgba(255, 0, 0, .35); }
.btn-sm.danger:hover { background: rgba(255, 0, 0, .12); }
.btn-sm.success { color: #7be3a2; border-color: rgba(0, 200, 100, .35); }
.btn-sm.success:hover { background: rgba(0, 200, 100, .1); }
.pill { padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 600; display: inline-block; }
.pill-ok { background: rgba(0, 200, 100, .15); color: #7be3a2; }
.pill-warn { background: rgba(255, 193, 7, .15); color: #ffd76b; }
.pill-bad { background: rgba(255, 0, 0, .15); color: #ff9d9d; }
.pill-neutral { background: var(--surface-2); color: var(--text-dim); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

/* ============================ Разное ============================ */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-dim); }
.empty-state h1, .empty-state h2 { color: var(--text); margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--text); color: var(--bg); padding: 12px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 500; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.results-count { color: var(--text-dim); margin-bottom: 18px; }
.desc-snippet { color: var(--text-dim); font-size: 12.5px; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-dim); }
.small { font-size: 12.5px; }

/* Подсказки поиска */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 64px;
  background: #212121; border: 1px solid var(--border); border-radius: 12px;
  z-index: 120; overflow: hidden; display: none;
}
.suggest.visible { display: block; }
.suggest-item { padding: 9px 16px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.suggest-item:hover, .suggest-item.hl { background: var(--surface-2); }
.suggest-item .icon { color: var(--text-dim); }

/* ============================ Адаптивность ============================ */
@media (max-width: 1100px) {
  .watch-layout { flex-direction: column; }
  .watch-side { width: 100%; }
  .video-row.large .row-thumb-wrap { width: 240px; }
}
@media (max-width: 792px) {
  .sidebar {
    position: fixed; left: 0; top: 56px; bottom: 0; z-index: 90;
    transform: translateX(-105%); transition: transform .2s ease; background: var(--bg);
  }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-collapsed .sidebar { width: 240px; }
  body.sidebar-collapsed .side-item { flex-direction: row; gap: 24px; padding: 7px 12px; font-size: 14px; }
  body.sidebar-collapsed .side-item.side-channel { flex-direction: row; gap: 16px; }
  body.sidebar-collapsed .side-item.side-channel .side-label { display: inline; }
  body.sidebar-collapsed .side-title, body.sidebar-collapsed .side-empty { display: block; }
  .sidebar-overlay {
    display: block; position: fixed; inset: 56px 0 0 0; background: rgba(0, 0, 0, .55);
    z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .content { padding: 16px; }
  .avatar-xxl { width: 88px; height: 88px; }
  .channel-name { font-size: 22px; }
}
@media (max-width: 620px) {
  .search-form { display: none; }
  .video-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-row.large .row-thumb-wrap { width: 168px; }
  .playlist-cover { width: 100%; }
  .action-toggle-label { display: none; }
  .player-next { padding: 12px; }
  .player-next-card { padding: 14px 16px; }
  .player-next-title { font-size: 15px; }
}
