/* Общие настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #000;
}

/* Шапка сайта */
header {
  background: linear-gradient(135deg, #8b0000, #000);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(139, 0, 0, 0.3);
  border-bottom: 2px solid #8b0000;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: #ff4d4d;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

/* Поиск */
.search-bar {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
  margin: 0 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #8b0000;
  border-radius: 20px;
  outline: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #ff4d4d;
}

/* Навигация (категории) */
nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: #ff4d4d;
  text-shadow: 0 0 5px rgba(255, 77, 77, 0.7);
}

/* Основной контент */
.main-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  margin: 2rem auto;
  width: 90%;
  max-width: 1200px;
}

/* Список каналов/разделов */
.channels-list {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(139, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid #8b0000;
}

/* Заголовки категорий с кнопками */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(60, 0, 0, 0.7);
  border-bottom: 1px solid #8b0000;
  cursor: pointer;
}

.category-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ff4d4d;
}

/* Кнопка сворачивания */
.toggle-btn {
  background: rgba(139, 0, 0, 0.5);
  border: 1px solid #ff4d4d;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  color: #ff4d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.toggle-btn:hover {
  background: #8b0000;
  color: #fff;
  transform: scale(1.1);
}

/* Содержимое категории */
.category-content {
  display: block;
}

.channel-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(80, 0, 0, 0.5);
  transition: background-color 0.2s;
}

.channel-item:hover {
  background-color: rgba(50, 0, 0, 0.5);
}

.channel-icon {
  width: 32px;
  height: 32px;
  margin-right: 1rem;
  border-radius: 4px;
}

.channel-name {
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}

.channel-name:hover {
  color: #ff4d4d;
}

.channel-description {
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Боковая панель */
.sidebar {
  background: rgba(30, 30, 30, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(139, 0, 0, 0.2);
  padding: 1.5rem;
  border: 1px solid #8b0000;
}

.quick-links {
  list-style: none;
}

.quick-links li {
  margin-bottom: 0.75rem;
}

.quick-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #ccc;
  transition: color 0.3s;
}

.quick-links a:hover {
  color: #ff4d4d;
}

.link-icon {
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
}

/* Кнопки модерации */
.moderation-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mod-btn {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.mod-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-closed,
.btn-rejected {
  background-color: #ff4d4d;
  color: white;
}

.btn-pending {
  background-color: #ffcc00;
  color: #333;
}

.btn-approved,
.btn-reviewed {
  background-color: #4CAF50;
  color: white;
}

/* Подвал */
footer {
  background: #000;
  color: #777;