:root {
  --bg: #ffffff;
  --btn-bg: var(--text);
  --btn-text: #fff;
  --panel: #f9fafb; /* чуть темнее белого */
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --ru: #f57d7d;
  --accent: #374151; /* синий для ссылок */
  --danger: #dc2626; /* красный */
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

[data-theme="dark"] {
  --bg: #111;
  --btn-bg: var(--accent);
  --btn-text: #fff;
  --panel: #1a1a1a;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #333;
  --ru: #ab0025;
  --accent: #d1d5db;
  --danger: #ef4444;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

/* ====== Layout ====== */
.site-wrap {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 70px; /* отступ под фиксированную шапку */
}

/* ====== Sidebar ====== */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.9) 100%);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 0 8px rgba(255,255,255,0.15) inset;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(26,26,26,0.9) 100%);
  border: 1px solid rgba(51,51,51,0.6);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 8px rgba(255,255,255,0.05) inset;
}

.brand {
  font-weight: 700;
  font-size: 30px;
}
.brand-badge {
  color: var(--ru);
  display: inline-block;
  transition: transform 0.3s ease;
}
.brand:hover .brand-badge {
  transform: translateY(-5px) rotate(-10deg);
}
@keyframes jump-rotate {
  0% { transform: translateY(0) rotate(0deg); }
  10% { transform: translateY(-6px) rotate(-5deg); }
  20% { transform: translateY(0) rotate(3deg); }
  30% { transform: translateY(-6px) rotate(-3deg); }
  40% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); } /* остальное время покой */
}

.brand-badge {
  display: inline-block;
  animation: jump-rotate 5s infinite;
  transform-origin: bottom center; /* вращение вокруг нижней точки */
}



.sidebar .section {
  margin-top: 20px;
}
.sidebar .section h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.search-inline {
  display: flex;
  gap: 6px;
}
.search-inline input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ====== Buttons ====== */
.btn {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  opacity: 0.9;
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ====== Categories ====== */
.category-list .category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px; /* чуть выше для ощущения "дорого" */
  text-decoration: none;
  color: #4b5563; /* гармоничный серый */
  border-radius: var(--radius);
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px; /* увеличенный шрифт */
  font-weight: 600; /* чуть жирнее */
}

.category-list .category-row .category-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-list .category-row i {
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: #9ca3af; /* нейтральный серый */
}

/* Hover и active эффекты */
.category-list .category-row:hover,
.category-list .category-row:focus,
.category-list .category-row:active {
  background: rgba(203, 213, 225, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.category-list .category-row:hover i,
.category-list .category-row:focus i,
.category-list .category-row:active i {
  transform: scale(1.2) rotate(10deg);
  color: #111; /* более контрастный при hover */
}

/* Тёмная тема */
[data-theme="dark"] .category-list .category-row {
  color: #d1d5db; /* светло-серый */
}

[data-theme="dark"] .category-list .category-row:hover,
[data-theme="dark"] .category-list .category-row:focus,
[data-theme="dark"] .category-list .category-row:active {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

[data-theme="dark"] .category-list .category-row i {
  color: #9ca3af;
}

[data-theme="dark"] .category-list .category-row:hover i,
[data-theme="dark"] .category-list .category-row:focus i,
[data-theme="dark"] .category-list .category-row:active i {
  color: #fff;
}


/* ====== Content ====== */
.main {
  flex: 1;
}
.page-title {
  font-size: 26px;
  margin-bottom: 10px;
}
.lead {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

/* ====== Video ====== */
.video-player video {
  width: 100%;
  max-height: 70vh;
  border-radius: var(--radius);
  background: #000;
}

/* ====== Info Blocks ====== */
.info-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Теги */
.info-block.tags a {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  transition: 0.2s;
}
.info-block.tags a::before {
  content: "#";
  margin-right: 2px;
}
.info-block.tags a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Статистика */
.info-block.stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ====== Admin ====== */
.admin-actions a {
  margin-right: 10px;
  font-weight: bold;
  color: var(--danger);
}
.admin-actions a.edit {
  color: var(--accent);
}

/* ====== Recommendations ====== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.thumb-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.link_img {
  position: relative;
  padding-bottom: 56%;
  overflow: hidden;
}
.link_img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-info {
  padding: 10px;
}
.thumb-info h3 {
  font-size: 14px;
  margin: 0;
  color: var(--text);
}

/* ====== Premium Header ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.9) 100%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 0 8px rgba(255,255,255,0.15) inset;
  z-index: 2000;
  backdrop-filter: blur(6px); /* лёгкая размытка фона */
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-header .brand {
  font-weight: 700;
  font-size: 20px;
  color: #000; 
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.site-header nav {
  display: flex;
  gap: 20px;
}

.site-header nav a {
  font-size: 14px;
  color: #374151; /* тёмно-серый для текста */
  transition: color 0.3s, text-shadow 0.3s;
}

.site-header nav a:hover {
  color: #4f46e5; /* фиолетовый акцент при наведении */
  text-shadow: 0 0 6px rgba(79,70,229,0.5);
}

.search-btn {
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(79,70,229,0.3);
}

.search-btn i {
  transition: transform 0.3s ease, color 0.3s;
}

.search-btn:hover {
  background: #6366f1;
  box-shadow: 0 6px 15px rgba(99,102,241,0.35);
}

.search-btn:hover i {
  transform: scale(1.2) rotate(12deg);
  color: #fff;
}

/* Тёмная тема */
[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(26,26,26,0.9) 100%);
  border-bottom: 1px solid rgba(51,51,51,0.6);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 8px rgba(255,255,255,0.05) inset;
}

[data-theme="dark"] .site-header .brand {
  color: #fff;
}

[data-theme="dark"] .site-header nav a {
  color: #d1d5db;
}

[data-theme="dark"] .site-header nav a:hover {
  color: #a78bfa;
  text-shadow: 0 0 6px rgba(167,139,250,0.5);
}

[data-theme="dark"] .search-btn {
  background: #7c3aed;
  box-shadow: 0 4px 10px rgba(124,58,237,0.3);
}

[data-theme="dark"] .search-btn:hover {
  background: #9333ea;
  box-shadow: 0 6px 15px rgba(147,51,234,0.35);
}


/* Анимация пульса */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* При фокусе на input запускаем пульс у иконки */
.search-inline input:focus + .search-btn i {
  animation: pulse 0.8s infinite;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s;
}
.icon-btn i {
  transition: transform 0.4s ease;
}

.icon-btn.rotate i {
  transform: rotate(360deg);
}

/* ====== Visibility Helpers ====== */
.desktop-hide { display: none; }
.mobile-hide { display: block; }

/* ====== Mobile ====== */
@media (max-width: 900px) {
  .site-wrap {
    flex-direction: column;
    padding: 15px;
  }

  .desktop-hide { display: block; } /* логотип в шапке */
  .mobile-hide { display: none; }   /* логотип в сайдбаре скрыт */

  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 240px;
    height: 100%;
    overflow-y: auto;
    transition: left 0.3s;
    z-index: 1000;
  }
  .sidebar.open {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .site-header {
    width: 100%; /* на мобилках тянется на всю ширину */
    left: 0;
    transform: none;
  }

  .info-block.stats {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ====== Footer ====== */
.site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.9) 100%);
  border-top: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--radius);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08), 0 0 8px rgba(255,255,255,0.15) inset;
  backdrop-filter: blur(6px);
  padding: 20px 0;
  max-width: 1200px;
  margin: 40px auto 0;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.3s ease;
}

.site-footer a {
  color: var(--accent);
  transition: color 0.2s;
}

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

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right span {
  font-size: 13px;
  color: #6b7280;
  max-width: 400px;
}

.footer-counters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Тёмная тема */
[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(26,26,26,0.9) 100%);
  border-top: 1px solid rgba(51,51,51,0.6);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.3), 0 0 8px rgba(255,255,255,0.05) inset;
  color: #9ca3af;
}

[data-theme="dark"] .site-footer a {
  color: #3b82f6;
}

[data-theme="dark"] .site-footer a:hover {
  color: #f3f4f6;
}

[data-theme="dark"] .footer-right span {
  color: #9ca3af;
}
/* ====== Рекламынй блок ====== */

.mirror-section {
  margin-top: 20px;
}

.mirror-section h4 {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.mirror-block {
  position: relative; /* для ABSOLUTE label */
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(249,250,251,0.9) 100%);
  border: 1px solid rgba(229,231,235,0.6);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 6px rgba(255,255,255,0.15) inset;
  backdrop-filter: blur(6px);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

/* Иконка ADS в правом верхнем углу */
.mirror-ads-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(229,231,235,0.6); /* мягкий серый для светлой темы */
  color: var(--text); /* гармонирующий текст */
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Ссылки */
.mirror-block a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.mirror-block a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* Для рекламной ссылки */
.mirror-block .ad-link {
  font-size: 13px;
  color: #6b7280;
}

.mirror-block .ad-link:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Тёмная тема */
[data-theme="dark"] .mirror-block {
  background: linear-gradient(180deg, rgba(17,17,17,0.95) 0%, rgba(26,26,26,0.9) 100%);
  border: 1px solid rgba(51,51,51,0.6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 6px rgba(255,255,255,0.05) inset;
}

[data-theme="dark"] .mirror-block a {
  color: #3b82f6;
}

[data-theme="dark"] .mirror-block a:hover {
  color: #f3f4f6;
}

[data-theme="dark"] .mirror-block .ad-link {
  color: #9ca3af;
}

[data-theme="dark"] .mirror-ads-label {
  background: rgba(55,55,55,0.6); /* мягкий темный тон */
  color: #f3f4f6; /* гармонирующий текст */
}
/* ====== Рекламынй блок // Закончился ====== */

/* ====== Аккаунт / Авторизация ====== */
.auth-section {
  margin-top: 20px;
}

.auth-section h4 {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* Кнопки авторизации */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  background: rgba(203, 213, 225, 0.2);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Авторизованный пользователь */
.auth-btn.logged-in {
  justify-content: flex-start;
  gap: 10px;
  padding-left: 8px;
}

/* Аватарка */
.auth-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Тёмная тема */
[data-theme="dark"] .auth-btn {
  background: var(--panel);
  border-color: #333;
  color: #f3f4f6;
}

[data-theme="dark"] .auth-btn:hover {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

[data-theme="dark"] .auth-avatar {
  border-color: #333;
}
/* Авторизованный пользователь // Конец */

/* --- Общий стиль страницы просмотрта видео --- */
/* ====== Страница просмотра видео ====== */
.video-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: var(--text);
  font-family: "Inter", sans-serif;
}

.page-title {
  font-size: 26px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
}

.video-player {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  background: #000;
}

.video-element {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.info-block {
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  color: var(--text);
}

/* ====== Теги ====== */
.info-block.tags span {
  margin-right: 8px;
}
.info-block.tags a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.info-block.tags a:hover {
  color: var(--text);
}

/* ====== Статистика ====== */
.info-block.stats {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ====== Действия (лайк, дизлайк, закладки) ====== */
.video-actions {
  display: flex;
  gap: 12px;
}
.video-actions .btn {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  color: var(--text);
}
.video-actions .btn:hover {
  background: rgba(203,213,225,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ====== Описание видео ====== */
.info-block.description {
  line-height: 1.6;
  font-size: 15px;
}

/* ====== Admin Actions ====== */
.admin-actions a {
  margin-right: 10px;
  font-weight: bold;
  color: var(--danger);
}
.admin-actions a.edit {
  color: var(--accent);
}

/* ====== Рекомендации ====== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 16px;
}
.thumb-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.thumb-card img {
  width: 100%;
  display: block;
}
.thumb-card h3 {
  font-size: 14px;
  padding: 6px 10px;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

/* ====== Тёмная тема ====== */
[data-theme="dark"] .video-page,
[data-theme="dark"] .info-block,
[data-theme="dark"] .thumb-card {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .info-block.tags a,
[data-theme="dark"] .thumb-card h3 {
  color: var(--accent);
}
[data-theme="dark"] .info-block.tags a:hover {
  color: var(--text);
}

[data-theme="dark"] .video-actions .btn {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
}
[data-theme="dark"] .video-actions .btn:hover {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
[data-theme="dark"] .admin-actions a {
  color: var(--danger);
}
[data-theme="dark"] .admin-actions a.edit {
  color: var(--accent);
}

/* --- Общий стиль страницы просмотрта видео/ / Конец --- */


/* ====== Filter Buttons ====== */
.filter-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

/* ===== Анимация огня ===== */
@keyframes fire-flame {
  0% { color: #facc15; transform: scale(1); }
  25% { color: #fb923c; transform: scale(1.2); }
  50% { color: #ef4444; transform: scale(1.1); }
  75% { color: #fb923c; transform: scale(1.2); }
  100% { color: #facc15; transform: scale(1); }
}

/* Анимация часов (мягкий подпрыг) */
@keyframes clock-tick {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(5deg); }
  50% { transform: translateY(-3px) rotate(-5deg); }
  75% { transform: translateY(-2px) rotate(3deg); }
}

/* Стили иконок */
.filter-btn i.fire-icon {
  color: #facc15;
  transition: transform 0.3s ease, color 0.3s ease;
}

.filter-btn i.clock-icon {
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}


.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.filter-btn i {
  font-size: 16px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--muted);
}

/* Hover и active эффекты */
.filter-btn:hover,
.filter-btn:focus,
.filter-btn.active {
  background: var(--panel);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.filter-btn:hover i,
.filter-btn:focus i,
.filter-btn.active i {
  transform: scale(1.2) rotate(10deg);
  color: var(--accent);
}

/* Тёмная тема */
[data-theme="dark"] .filter-btn {
  background: var(--panel);
  border-color: #333;
  color: #d1d5db;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

[data-theme="dark"] .filter-btn i {
  color: #9ca3af;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn:focus,
[data-theme="dark"] .filter-btn.active {
  background: rgba(255,255,255,0.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  border-color: var(--accent);
}

[data-theme="dark"] .filter-btn:hover i,
[data-theme="dark"] .filter-btn:focus i,
[data-theme="dark"] .filter-btn.active i {
  color: var(--accent);
  transform: scale(1.2) rotate(10deg);
}
/* Классы для JS */
.animate-fire {
  animation: fire-flame 1s ease-in-out;
}

.animate-clock {
  animation: clock-tick 1s ease-in-out;
}
.profile-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--text);
}

/* Баннер */
.channel-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.channel-banner img,
.banner-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9); /* чуть затемнить для читаемости */
}

/* Шапка */
.channel-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: -50px; /* наползает на баннер */
  padding: 20px;
  background: var(--panel); /* фон под аватар и инфу */
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}
.channel-avatar img,
.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #8f0013;
  object-fit: cover;
  background: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* тень под аватаром */
}
.channel-info h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}
.channel-info .role {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

/* Статистика */
.channel-stats {
  display: flex;
  gap: 40px;
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.channel-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.channel-stats .number {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.channel-stats .label {
  font-size: 13px;
  color: var(--muted);
}

/* О канале */
.channel-details {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.channel-details h3 {
  margin-bottom: 10px;
  font-size: 18px;
}
.channel-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.channel-details li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* Топ-10 */
.channel-top-videos {
  padding: 20px;
}
.channel-top-videos h3 {
  margin-bottom: 15px;
  font-size: 18px;
}
.channel-top-videos li {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.channel-top-videos li:hover {
  color: var(--accent);
  transform: translateX(4px);
}




