/* Общие стили */
* { margin: 0; padding: 0; box-sizing: border-box; transition: all 0.2s ease; }
body { font-family: 'Roboto', sans-serif; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(to bottom right, #000000, #333300); color: #f5f5f5; overflow-x: hidden;}
a { text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { text-transform: uppercase; }
#uAdminBar { display: none !important; }

/* Стилизация скроллбара */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #ffd700; border-radius: 10px; border: 3px solid #333; }
::-webkit-scrollbar-thumb:hover { background: #ffc800; }

/* Шапка */
header { background: #222 url('/images/header-background.png') no-repeat right bottom; background-size: auto 100%; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; }
.header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 1rem; padding-left: 290px; }
.logo { color: #ffd700; text-align: left; }
.logo-main { font-size: 1.8rem; font-weight: bold; display: block; color: #ffd700; transition: color 0.3s ease, transform 0.3s ease; }
.logo-main:hover { color: #fff; transform: scale(1.1); }
.logo-sub { font-size: 1rem; color: #fff; display: block; }

/* Поиск */
.search-container { display: flex; align-items: center; gap: 0.5rem; }
.searchForm { position: relative; display: flex; align-items: center; gap: 0.5rem; }
.schQuery { flex: 1; position: relative; }
.queryField { padding: 0.5rem 1rem; border-radius: 25px; border: 2px solid #333; background: #333; color: white; font-size: 1rem; outline: none; width: 100%; max-width: 300px; transition: border-color 0.2s ease, box-shadow 0.2s ease; padding-right: 110px; }
.queryField:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.schBtn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); margin: 0; }
.searchSbmFl { background: #ffd700; border: none; padding: 0.5rem 1rem; border-radius: 25px; color: #000; cursor: pointer; font-weight: bold; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); transition: background 0.2s ease; white-space: nowrap; height: calc(100% - 10px); }
.searchSbmFl:hover { background: #ffc800; }

/* Основной контент */
.main-container { display: flex; flex-grow: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding-left: 250px; }
#allEntries {}


/* Боковое меню */
.sidebar { background: #222; width: 280px; height: 100vh; position: fixed; left: 0; top: 0; padding: 0.5rem; box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1); z-index: 100; color: #fff; display: flex; flex-direction: column; transform: translateX(-100%); }
.sidebar.active { transform: translateX(0); }
.close-menu { display: none; position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.profile-section { padding: 1rem; }
.profile-info { display: flex; align-items: center; gap: 1rem; }
.profile-link { position: relative; transition: transform 0.3s ease; }
.profile-link:hover { transform: scale(1.1); }
.profile-link::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); border-radius: 50%; opacity: 0; transition: opacity 0.3s ease; }
.profile-link:hover::after { opacity: 1; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #ffd700; object-fit: cover; }
.profile-details { display: flex; flex-direction: column; gap: 0.5rem; }
.profile-username { font-size: 1rem; font-weight: bold; color: #fff; margin: 0; text-decoration: none; transition: color 0.2s ease; max-width: 16ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-buttons { display: flex; gap: 0.5rem; }
.profile-button { background: rgba(255, 215, 0, 0.1); color: #ffd700; padding: 0.5rem 1rem; font-size: 0.9rem; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; border-radius: 25px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.profile-button i { font-size: 0.8rem; }
.profile-button:hover { background: rgba(255, 215, 0, 0.2); color: #ffc800; }
.user-section { text-align: center; padding: 1.5rem; }
.user-info { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.user-link { position: relative; transition: transform 0.3s ease; }
.user-link:hover { transform: scale(1.1); }
.user-link::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); border-radius: 50%; opacity: 0; transition: opacity 0.3s ease; }
.user-link:hover::after { opacity: 1; }
.user-avatar { width: 100px; height: 100px; border-radius: 50%; border: 2px solid #ffd700; object-fit: cover; }
.user-username-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.user-username { font-size: 1rem; font-weight: bold; color: #fff; margin: 0; text-decoration: none; transition: color 0.2s ease; }
.user-username:hover { color: #ffd700; }
.user-button { background: #ffd700; color: #000; border: none; padding: 0.3rem; border-radius: 25px; cursor: pointer; font-weight: bold; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); text-align: center; text-decoration: none; transition: background 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: auto; }
.user-button.user-login-button { padding: 0.3rem; font-size: 0.7rem; }
.user-button.user-logout-button { width: 30px; height: 30px; padding: 0; border-radius: 50%; }
.user-button i { font-size: 0.9rem; }
.user-button:hover { background: #ffc800; }

/* Меню */
.sidebar-nav { list-style: none; margin: 0; padding: 0; flex-grow: 1; }
.sidebar-nav li { margin: 0.5rem 0; position: relative; }
.sidebar-nav li > a.menu-toggle { color: #f5f5f5; padding: 0.75rem 1rem; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 1rem; background: #222; border: none; transition: background 0.2s ease; }
.sidebar-nav li > a.menu-toggle:hover { background: #333; }
.sidebar-nav li > a.menu-toggle:hover i { color: #ffd700; }
.sidebar-nav li > a.menu-toggle i.fa-chevron-down { margin-left: 0.5rem; transition: transform 0.2s ease; }
.submenu { list-style: none; margin: 0; padding: 0; padding-left: 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.submenu li { margin: 0.5rem 0; }
.submenu a { color: #ccc; padding: 0.5rem 1rem; border-radius: 8px; display: block; font-size: 0.9rem; background: #222; border-left: 2px solid #ffd700; transition: background 0.2s ease, color 0.2s ease; }
.submenu a:hover { background: #333; color: #fff; }
.submenu.open { max-height: 500px; display: block; }
.sidebar-nav li > a.menu-toggle.open i.fa-chevron-down { transform: rotate(180deg); }


.sidebar-social { display: flex; justify-content: center; gap: 1.5rem; padding: 1rem; border-top: 1px solid #444; margin-top: auto; }
.sidebar-social a { color: #ffd700; font-size: 1.2rem; }
.sidebar-social a:hover { color: #fff; }
.theme-switcher { margin-top: 1rem; text-align: center; }
.theme-button { background: #ffd700; color: #000; border: none; padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; font-weight: bold; width: 100%; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.theme-button:hover { background: #ffc800; }



/* Контент: Основной блок с сеткой матчей и стилями */
.content { flex-grow: 1; padding: 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.5rem; font-weight: bold; color: #ffd700; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.view-all { background: #ffd700; color: #000; border: none; padding: 0.5rem 1rem; border-radius: 25px; cursor: pointer; font-weight: bold; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; transition: box-shadow 0.2s ease; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.view-all:hover { background: #ffc800; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.matches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.match-card { background: #333; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); text-decoration: none; color: #f5f5f5; }
.match-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.match-type { font-size: 1.2rem; font-weight: bold; color: #ffd700; margin-bottom: 1rem; }
.match-tournament { font-size: 0.9rem; color: #888; margin-bottom: 1rem; }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.match-logo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 2px solid #ffd700; background: #ddd; }
.match-score { font-size: 2rem; font-weight: bold; color: #ffd700; }


/* Дети Солнца */
.team-stats-block { background: #222; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); margin-bottom: 3rem; }
.team-stats-block h1 { font-size: 2rem; color: #ffd700; text-align: center; margin-bottom: 1.5rem; }
.team-stats-block .stats-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.team-stats-block .stats-list .stat-item { text-align: center; padding: 1rem; background: #333; border-radius: 10px; }
.team-stats-block .stats-list .stat-item span { display: block; font-size: 1.5rem; color: #ffd700; font-weight: bold; }
.team-stats-block .stats-list .stat-item p { font-size: 1rem; color: #f5f5f5; margin: 0; }

/* Хлебные крошки */
.breadcrumbs { font-size: 0.9rem; color: #f5f5f5; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs a { color: #ffd700; text-decoration: none; transition: color 0.2s ease; }
.breadcrumbs a:hover { color: #ffc800; }
.breadcrumbs span { color: #ccc; }
.breadcrumbs .separator { color: #888; font-size: 0.8rem; }

/* Блок новостей */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.news-card { background: #333; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); overflow: hidden; text-decoration: none; color: #f5f5f5; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); } /* Тень при наведении, но блок не двигается */

/* Контейнер для изображения с фиксированным размером */
.news-image-container { width: 100%; height: 200px; overflow: hidden; position: relative; }

/* Стили для заголовка */
.news-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 0.5rem; color: #ffd700; transition: color 0.1s ease; } /* Добавлен переход для цвета */
.news-title:hover { color: #ccac00; } /* Темнее золотой цвет при наведении */

/* Изображение с приближением */
.news-image { width: 100%; height: 100%; background-position: center; background-size: cover; transition: transform 0.2s ease; }
.news-card:hover .news-image { transform: scale(1.05); } /* Приближение фотографии, но не выходит за пределы контейнера */

/* Мета-информация (автор и дата) */
.news-meta { display: flex; justify-content: space-between; padding: 1rem; font-size: 0.9rem; color: #fff; position: absolute; bottom: 0; width: 100%; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); z-index: 2; }
.news-meta span { display: flex; align-items: center; gap: 0.5rem; }
.news-meta i { margin-right: 0.3rem; }










/* Вид новостей */
#allEntries, .archiveEntries { display: flex; flex-direction: column; gap: 2rem; }
.entryID$ID$ { width: 100%; }
.blocknews-split { display: flex; gap: 1.5rem; background: #333; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.blocknews-left { width: 150px; text-align: center; }
.blocknews-date { font-size: 0.9rem; color: #888; margin-bottom: 1.5rem; }
.blocknews-date i { margin-right: 0.5rem; }
.blocknews-avatar { display: block; margin: 0 auto; width: 60px; height: 60px; border-radius: 50%; border: 2px solid #ffd700; overflow: hidden; }
.blocknews-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.blocknews-username { display: block; margin-top: 1rem; color: #ffd700; font-weight: bold; }
.blocknews-username i { margin-right: 0.5rem; }
.blocknews-stats { display: flex; gap: 0.5rem; margin-top: 1rem; font-size: 0.8rem; color: #888; justify-content: center; } /* Центрирование и компактность */
.blocknews-stats a, .blocknews-stats div { display: flex; align-items: center; gap: 0.3rem; }
.blocknews-stats i { font-size: 0.8rem; margin-right: 0.3rem; }
.blocknews-comments { color: #888; text-decoration: none; } /* Цвет как у просмотров */
.blocknews-views { color: #888; }
.blocknews-rating { color: #888; } /* Цвет как у просмотров */
.blocknews-right { flex: 1; }
.blocknews-cover { display: block; width: 100%; height: 200px; overflow: hidden; border-radius: 10px; position: relative; }
.blocknews-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blocknews-cover:hover img { transform: scale(1.1); }
.blocknews-title { font-size: 1.5rem; font-weight: bold; color: #ffd700; margin: 1rem 0; display: block; }
.blocknews-title:hover { color: #ccac00; }
.blocknews-meta { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.blocknews-category { color: #ffd700; text-decoration: none; }
.blocknews-category:hover { color: #ccac00; }
.blocknews-category i { margin-right: 0.5rem; }
.blocknews-tags {  font-size: 0.9rem;}
.blocknews-tags a {  background: #444;  padding: 0.3rem 0.5rem;  border-radius: 5px;  margin-right: 0.3rem;  color: #ffd700;  text-decoration: none;  display: inline-block;}
.blocknews-tags a::after {content: none; /* Убираем запятую */}
.blocknews-tags a:hover { color: #ccac00;}
.blocknews-tags i {margin-right: 0.5rem;}
.blocknews-message { font-size: 0.95rem; line-height: 1.5; color: #f5f5f5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 10; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.entryReadAll { margin-top: 1rem; }
.entryReadAll a { color: #ffd700; text-decoration: none; font-weight: bold; }
.entryReadAll a:hover { color: #ccac00; }


@media (max-width: 768px) {
  .blocknews-split {
    flex-direction: column; /* Блоки располагаются вертикально */
    gap: 1rem; /* Уменьшаем отступ между блоками */
    padding: 1rem; /* Уменьшаем внутренний отступ */
  }
  .blocknews-left {
    width: 100%; /* Левая колонка занимает всю ширину */
    text-align: center; /* Центрируем содержимое */
  }
  .blocknews-right {
    width: 100%; /* Правая колонка занимает всю ширину */
  }
  .blocknews-stats {
    justify-content: center; /* Статистика центрируется */
    gap: 0.5rem; /* Уменьшаем отступ между элементами */
  }
  .blocknews-cover img {
    height: 150px; /* Уменьшаем высоту обложки */
    margin-bottom: 0.5rem; /* Уменьшаем отступ между превью и заголовком */
  }
  .blocknews-title {
    margin-top: 0.5rem; /* Уменьшаем отступ над заголовком */
  }
}



/* Страница новостей */
.content-block { background: #333; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.newspage-cover { margin-bottom: 1.5rem; overflow: hidden; border-radius: 10px; }
.newspage-cover-image { width: 100%; max-height: 400px; object-fit: cover; }
.newspage-info-platform { background: #2a2a2a; border-radius: 10px; padding: 1rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; box-shadow: 0 3px 6px rgba(0,0,0,0.2); border-left: 4px solid #ffd700; }
.newspage-author-block { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 200px; }
.newspage-author-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 2px solid #ffd700; }
.newspage-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.newspage-author-details { display: flex; flex-direction: column; gap: 0.3rem; }
.newspage-author-name { color: #ffd700; font-weight: bold; text-decoration: none; }
.newspage-author-name:hover { color: #ff9900; text-decoration: none; }
.newspage-post-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: #aaa; }
.newspage-post-meta i { margin-right: 0.3rem; color: #ffd700; }
.newspage-stats-block { display: flex; gap: 1.5rem; background: rgba(0,0,0,0.3); padding: 0.7rem 1.2rem; border-radius: 8px; }
.newspage-stat-item { display: flex; align-items: center; gap: 0.5rem; color: #ddd; font-size: 0.9rem; cursor: help; position: relative; }
.newspage-stat-item i { color: #ffd700; font-size: 1rem; }
.newspage-stat-item:hover { color: #fff; }
.newspage-stat-item:hover i { color: #ff9900; }
.newspage-tags { margin: 1.5rem 0; font-size: 0.9rem; }
.newspage-tags a { background: #444; padding: 0.3rem 0.5rem; border-radius: 5px; margin-right: 0.3rem; color: #ffd700; text-decoration: none; display: inline-block; }
.newspage-tags a:hover { background: #555; color: #ffc800; text-decoration: none; }
.newspage-tags a::after { content: none; }
.newspage-tags i { margin-right: 0.5rem; color: #ffd700; }
.newspage-content { font-size: 1rem; line-height: 1.7; color: #f5f5f5; margin-bottom: 1.5rem; }
.newspage-rate-block { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #444; }

@media (max-width: 768px) {
  .newspage-info-platform { flex-direction: column; align-items: stretch; }
  .newspage-author-block { padding-bottom: 1rem; border-bottom: 1px solid #444; }
  .newspage-stats-block { justify-content: space-around; }
  .newspage-cover-image { max-height: 250px; }
}



/* Контент */
.news-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 0.5rem; color: #ffd700; }
.news-description { font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; color: #f5f5f5; } /* Цвет текста всегда белый */
.news-description:hover { color: #f5f5f5; } /* Цвет текста не меняется при наведении */

/* Футер */
.news-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #888; }
.news-footer span { display: flex; align-items: center; gap: 0.3rem; }
.news-footer .comments { margin-left: 1rem; }
.news-footer .views { margin-left: 1rem; }
.news-footer .like-count { margin-left: auto; }
.like-count { color: #ff0000; }

/* Стили для ссылок */
.news-link { text-decoration: none; color: inherit; transition: color 0.1s ease; } /* Ускоренная анимация */
.news-link:hover { color: #ffd700; }
.news-link .news-title:hover { color: #ffc800; }
.news-link .news-footer span:hover { color: #ffc800; }


/* Брумасик в Питере */

.countdown-block { position: relative; background: linear-gradient(135deg, #fff3cd, #ffd700); border-radius: 15px; padding: 2rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 200px; margin-bottom: 3rem; border: 2px solid #ffd700; color: #333; }
.countdown-content { z-index: 2; position: relative; }
.countdown-text { font-size: 1.5rem; font-weight: bold; line-height: 1.5; }
.countdown-days { color: #333; font-size: 2.5rem; font-weight: 900; margin: 0 0.5rem; }
.countdown-word { font-size: 1.5rem; font-weight: bold; }
@media (max-width: 768px) { .countdown-block { padding: 1.5rem; min-height: 150px; } .countdown-text { font-size: 1.2rem; } .countdown-days { font-size: 2rem; } .countdown-word { font-size: 1.2rem; } }

/* Блок комментариев: Адаптивная сетка карточек с комментариями */
.comments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; width: 100%; margin-bottom: 3rem; }
@media (min-width: 1024px) { .comments-grid { grid-template-columns: repeat(3, 1fr); } }
.comment-card { background: #333; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); padding: 1.5rem; text-decoration: none; color: #f5f5f5; display: flex; flex-direction: column; justify-content: space-between; }
.comment-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.comment-author { display: flex; align-items: center; gap: 0.5rem; font-weight: bold; margin-bottom: 0.5rem; }
.comment-author img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #ffd700; }
.comment-text { font-size: 0.95rem; line-height: 1.5; }
.comment-date { font-size: 0.8rem; color: #888; margin-top: 0.5rem; }

/* Блок онлайн пользователей */
.online-users { margin-bottom: 2rem; }
.groupAdmin { display: flex; flex-wrap: wrap; gap: 1rem; }
.groupAdmin { background: #ffd700; color: #000; padding: 0.5rem 1rem; border-radius: 25px; text-decoration: none; font-weight: bold; transition: background 0.2s ease, transform 0.2s ease; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.groupAdmin:hover { background: #ffc800; transform: translateY(-2px); }

/* Универсальный блок */
.universal-content { margin-bottom: 3rem; }
.content-block { background: #333; padding: 1.5rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.content-block p { font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; color: #f5f5f5; }
.content-block a { color: #ffd700; text-decoration: none; }
.content-block a:hover { text-decoration: underline; }

/* Общие стили для формы входа */
.login-form { background: #333; padding: 1.5rem; width: 100%; max-width: 300px; margin: 0 auto; }
.login-form > div[style] { width: auto !important; max-width: 100%; } /* Отменяем встроенный стиль */
.login-form table { width: 100%; border-collapse: collapse; }
.login-form td { padding: 0.5rem 0; vertical-align: middle; }
.login-form-label { font-weight: bold; color: #ffd700; white-space: nowrap; padding-right: 1.5rem; }
.login-form-val { width: 100%; }
.loginField { background: #444; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; width: 100%; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.loginField:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }
.loginButton { background: #ffd700; border: none; padding: 0.5rem 1rem; border-radius: 25px; color: #000; cursor: pointer; font-weight: bold; text-transform: uppercase; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); transition: background 0.2s ease; width: 100%; margin-top: 1rem; }
.loginButton:hover { background: #ffc800; }
.login-form-links { text-align: center; padding-top: 1rem; }
.login-form-links a { color: #ffd700; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease; }
.login-form-links a:hover { color: #fff; text-decoration: underline; }
#remlogin { margin-right: 0.5rem; }
#remlogin + label { color: #f5f5f5; font-size: 0.9rem; }

/* Убираем заголовок "Регистрация" */
.site-user-reg h2 { display: none; }

/* Общие стили для формы */
.site-user-reg { background: #333; padding: 1.5rem; border-radius: 15px; width: 100%; max-width: 600px; margin: 0 auto; }

/* Стили для таблицы */
.site-user-reg table { width: 100%; border-collapse: collapse; }
.site-user-reg td { padding: 0.8rem 0; vertical-align: middle; }
.site-user-reg .manTd1 { font-weight: bold; color: #ffd700; white-space: nowrap; padding-right: 1.5rem; width: 35%; }
.site-user-reg .manTd2 { width: 65%; }

/* Стили для полей ввода */
.site-user-reg input[type="text"], .site-user-reg input[type="password"], .site-user-reg input[type="email"], .site-user-reg textarea, .site-user-reg select { background: #444; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; width: 100%; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-reg input[type="text"]:focus, .site-user-reg input[type="password"]:focus, .site-user-reg input[type="email"]:focus, .site-user-reg textarea:focus, .site-user-reg select:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }

/* Стили для кнопки "Регистрация" */
.site-user-reg .manFlSbm { background: #ffd700; border: none; padding: 0.5rem 1rem; border-radius: 25px; color: #000; cursor: pointer; font-weight: bold; text-transform: uppercase; transition: background 0.2s ease; width: 100%; max-width: 200px; margin: 1rem auto; display: block; }
.site-user-reg .manFlSbm:hover { background: #ffc800; }

/* Стили для разделительных линий */
.site-user-reg .manHr { border: none; border-top: 1px solid #666; margin: 1rem 0; }

/* Стили для ссылок внутри формы */
.site-user-reg a { color: #ffd700; text-decoration: none; transition: color 0.2s ease; }
.site-user-reg a:hover { color: #fff; text-decoration: underline; }

/* Уменьшаем текст "[ Выбрать аватар | Загрузить свой аватар ]" */
.site-user-reg .manTd2 a { font-size: 0.8rem; }

/* Стили для капчи */
.site-user-reg .captcha-block { display: flex; align-items: center; gap: 0.5rem; }
.site-user-reg .captcha-answer { flex: 1; background: #444; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-reg .captcha-answer:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }
.site-user-reg .captcha-question, .site-user-reg .captcha-renew { cursor: pointer; transition: opacity 0.2s ease; }
.site-user-reg .captcha-question:hover, .site-user-reg .captcha-renew:hover { opacity: 0.8; }

/* Стили для выбора даты рождения */
.site-user-reg select { background: #444; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-reg select:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .site-user-reg { padding: 1rem; }
    .site-user-reg .manTd1, .site-user-reg .manTd2 { width: 100%; display: block; padding: 0.5rem 0; }
    .site-user-reg .manTd1 { padding-bottom: 0; }
    .site-user-reg .manTd2 { padding-top: 0; }
    .site-user-reg .manFlSbm { max-width: 100%; }
    .site-user-reg .captcha-block { flex-direction: column; align-items: flex-start; }
    .site-user-reg .captcha-answer { width: 100%; }
    .site-user-reg .captcha-question, .site-user-reg .captcha-renew { margin-top: 0.5rem; }
}



/* Общие стили для карточки профиля */
.profile-card { background: #333; padding: 1.5rem; border-radius: 15px; margin-bottom: 2rem; }
.profile-card a { text-decoration: none; } /* Убираем подчеркивание для всех ссылок внутри профиля */
.profile-card a:hover { text-decoration: none; } /* Убираем подчеркивание при наведении */

/* Аватар */
.avatar-wrapper { text-align: center; margin-bottom: 1rem; }
.avatar { width: 180px; height: 180px; border-radius: 50%; border: 3px solid #ffd700; object-fit: cover; }

/* Никнейм и кнопка редактирования */
.profile-header { text-align: center; margin-bottom: 1.5rem; }
.nickname { font-size: 1.8rem; font-weight: bold; color: #ffd700; margin-bottom: 1rem; }
.edit-profile-btn { background: #ffd700; color: #000!important; border: none; padding: 0.5rem 1rem; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: background 0.2s ease; display: inline-block; margin-top: 0.5rem; }
.edit-profile-btn:hover { background: #ffc800; text-decoration: none; }

/* Иконки соцсетей и ссылки на профили */
.social-and-profiles { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.social-links, .profile-links { display: flex; gap: 1rem; align-items: center; }
.social-link { color: #ffd700; font-size: 1.5rem; transition: color 0.2s ease; text-decoration: none; }
.social-link:hover { color: #fff; text-decoration: none; } /* Убрано подчеркивание при наведении */
.custom-link { background: #ffd700; color: #000!important; padding: 0.5rem; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: bold; font-size: 0.6rem; transition: background 0.2s ease; }
.custom-link:hover { background: #ffc800; text-decoration: none; } /* Убрано подчеркивание при наведении */

/* Активности */
.activity-list { display: flex; justify-content: space-around; margin-bottom: 1.5rem; }
.activity-item { text-align: center; }
.activity-link { text-decoration: none; color: inherit; display: block; padding: 0.5rem; border-radius: 10px; transition: background 0.2s ease; }
.activity-link:hover { background: rgba(255, 215, 0, 0.1); text-decoration: none; } /* Убрано подчеркивание при наведении */
.activity-count { font-size: 1.2rem; font-weight: bold; color: #ffd700; display: block; }
.activity-label { font-size: 0.9rem; color: #888; }

/* Блок "Обо мне" */
.about-me { margin-bottom: 1.5rem; padding: 1rem; background: #444; border-radius: 15px; }
.about-me h3 { font-size: 1.2rem; font-weight: bold; color: #ffd700; margin-bottom: 0.5rem; }
.about-me p { font-size: 1rem; line-height: 1.5; color: #f5f5f5; }

/* Информация о пользователе */
.user-info { margin-bottom: 1.5rem; }
.user-info h3 { font-size: 1.2rem; font-weight: bold; color: #ffd700; margin-bottom: 0.5rem; }
.user-info ul { list-style: none; padding: 0; }
.user-info li { font-size: 1rem; margin-bottom: 0.5rem; color: #f5f5f5; }
.user-info li strong { color: #ffd700; }

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .profile-card { padding: 1rem; }
    .social-and-profiles { flex-direction: column; align-items: center; gap: 1rem; }
    .activity-list { flex-direction: row; flex-wrap: wrap; gap: 1rem; justify-content: center; } /* Активности в один ряд */
    .activity-item { flex: 1 1 calc(50% - 1rem); text-align: center; } /* Два элемента в ряд */
    .avatar { width: 150px; height: 150px; }
    .nickname { font-size: 1.5rem; }
    .edit-profile-btn { width: auto; padding: 0.5rem 1rem; }
    .custom-link { width: 40px; height: 40px; }
}





/* Общие стили для формы */
.site-user-edit { max-width: 800px; margin: 0 auto; padding: 1.5rem; color: #f5f5f5; }

/* Стили для таблицы */
.site-user-edit table { width: 100%; border-collapse: collapse; }
.site-user-edit td { padding: 0.8rem 0; vertical-align: middle; }
.site-user-edit .manTd1 { font-weight: bold; color: #ffd700; white-space: nowrap; padding-right: 1.5rem; width: 35%; }
.site-user-edit .manTd2 { width: 65%; }

/* Стили для полей ввода */
.site-user-edit input[type="text"], .site-user-edit input[type="password"], .site-user-edit input[type="email"], .site-user-edit textarea, .site-user-edit select { background: #333; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; width: 100%; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-edit input[type="text"]:focus, .site-user-edit input[type="password"]:focus, .site-user-edit input[type="email"]:focus, .site-user-edit textarea:focus, .site-user-edit select:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }

/* Стили для кнопки "Сохранить" */
.site-user-edit .manFlSbm { background: #ffd700; border: none; padding: 0.5rem 1rem; border-radius: 25px; color: #000; cursor: pointer; font-weight: bold; text-transform: uppercase; transition: background 0.2s ease; width: 100%; max-width: 200px; margin: 1rem auto; display: block; }
.site-user-edit .manFlSbm:hover { background: #ffc800; }

/* Стили для разделительных линий */
.site-user-edit .manHr { border: none; border-top: 1px solid #666; margin: 1rem 0; }

/* Стили для ссылок внутри формы */
.site-user-edit a { color: #ffd700; text-decoration: none; transition: color 0.2s ease; }
.site-user-edit a:hover { color: #fff; text-decoration: underline; }

/* Уменьшаем текст "[ Выбрать аватар | Загрузить свой аватар ]" */
.site-user-edit .manTd2 a { font-size: 0.8rem; }

/* Стили для капчи */
.site-user-edit .captcha-block { display: flex; align-items: center; gap: 0.5rem; }
.site-user-edit .captcha-answer { flex: 1; background: #333; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-edit .captcha-answer:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }
.site-user-edit .captcha-question, .site-user-edit .captcha-renew { cursor: pointer; transition: opacity 0.2s ease; }
.site-user-edit .captcha-question:hover, .site-user-edit .captcha-renew:hover { opacity: 0.8; }

/* Стили для выбора даты рождения */
.site-user-edit select { background: #333; border: 1px solid #666; border-radius: 8px; padding: 0.5rem; font-size: 1rem; color: #f5f5f5; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.site-user-edit select:focus { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); outline: none; }

/* Скрываем "Опции пользователя:" */
.site-user-edit #siM63 { display: none; }

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .site-user-edit { padding: 1rem; }
    .site-user-edit .manTd1, .site-user-edit .manTd2 { width: 100%; display: block; padding: 0.5rem 0; }
    .site-user-edit .manTd1 { padding-bottom: 0; }
    .site-user-edit .manTd2 { padding-top: 0; }
    .site-user-edit .manFlSbm { max-width: 100%; }
    .site-user-edit .captcha-block { flex-direction: column; align-items: flex-start; }
    .site-user-edit .captcha-answer { width: 100%; }
    .site-user-edit .captcha-question, .site-user-edit .captcha-renew { margin-top: 0.5rem; }
}



/* Общие стили для блока комментариев */
.comments-info { margin-bottom: 1.5rem; text-align: center; font-size: 0.9rem; color: #888; }
.comments-stats { margin-bottom: 0.5rem; }
.comments-stats span { margin-right: 1rem; }
.comments-stats b { color: #ffd700; }
.comments-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.comments-pagination a { color: #ffd700; text-decoration: none; padding: 0.5rem 1rem; border-radius: 25px; background: #333; transition: background 0.2s ease; }
.comments-pagination a:hover { background: #444; }

/* Стили для карточки комментария */
.comm-card { background: #444; border-radius: 15px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.comm-card-avatar { float: left; margin-right: 1rem; }
.comm-avatar-img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #ffd700; }
.comm-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.comm-card-header-left { flex: 1; }
.comm-card-header-left a { color: #ffd700; text-decoration: none; font-weight: bold; }
.comm-card-header-left a:hover { text-decoration: underline; }
.comm-info { color: #888; font-size: 0.8rem; margin-left: 0.5rem; }
.comm-to-entry a { color: #ffd700; text-decoration: none; font-size: 0.8rem; }
.comm-to-entry a:hover { text-decoration: underline; }
.comm-card-header-right { display: flex; align-items: center; gap: 1rem; }
.comm-rates { display: flex; align-items: center; gap: 0.5rem; }
.comm-rates .svg-icon { width: 16px; height: 16px; fill: #ffd700; }
.comm-rates .u-rate-wrapper { color: #ffd700; font-weight: bold; }
.comm-moder-wrapper { position: relative; }
.u-mpanel { position: absolute; top: 100%; right: 0; background: #333; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); z-index: 10; display: none; }
.u-mpanel-toggle { cursor: pointer; }
.u-mpanel-l { list-style: none; padding: 0.5rem; margin: 0; }
.u-mpanel-l li { margin: 0.5rem 0; }
.u-mpanel-l a { color: #f5f5f5; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.u-mpanel-l a:hover { color: #ffd700; }
.u-mpanel-tooltip { display: none; position: absolute; background: #333; color: #f5f5f5; padding: 0.5rem; border-radius: 8px; font-size: 0.8rem; white-space: nowrap; }
.u-mpanel-l li:hover .u-mpanel-tooltip { display: block; }
.comm-card-body { margin-top: 1rem; }
.comm-message { color: #f5f5f5; line-height: 1.5; }

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .comm-card { padding: 1rem; }
    .comm-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .comm-card-header-right { margin-top: 0.5rem; }
    .comm-card-avatar { float: none; margin-right: 0; margin-bottom: 1rem; }
    .comm-avatar-img { width: 40px; height: 40px; }
    .comm-card-header-left { width: 100%; }
    .comm-card-header-right { width: 100%; justify-content: space-between; }
    .comm-rates { gap: 0.3rem; }
    .comm-moder-wrapper { position: static; }
    .u-mpanel { right: auto; left: 0; }
}



.reactions-block {
  margin: 15px 0;
  display: flex;
  gap: 10px;
}
.reaction {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
}
.reaction:hover {
  transform: scale(1.1);
}
.count {
  font-size: 14px;
  margin-left: 3px;
}



/* Футер: Подвал сайта с текстом и стилями */
footer { background: #222; color: #ffd700; text-align: center; padding: 2rem; margin-top: auto; }
.powered-by { color: #fff; font-size: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 768px) { 
    .header-content { padding-left: 1rem; flex-wrap: wrap; gap: 1rem; } 
    .logo { order: 1; flex: 1; text-align: left; } 
    .menu-toggle { order: 2; margin-left: auto; background: #ffd700; border: none; padding: 0.5rem; border-radius: 5px; color: #000; cursor: pointer; text-transform: uppercase; } /* Убрана желтая тень */
    .search-container { order: 3; flex: 1 1 100%; display: flex; flex-direction: column; gap: 0.5rem; } 
    .search-box { width: 100%; padding: 0.5rem; } 
    .search-button { width: 100%; margin-left: 0; } 
    .main-container { padding-left: 0; width: 100%; } 
    .content { padding: 1rem; width: 100%; } 
    .sidebar { width: 80%; padding-bottom: 120px; } 
    .close-menu { display: block; } 
    .theme-switcher { margin-top: 0.5rem; } 
    .sidebar-social { flex-wrap: wrap; gap: 1rem; } 
    .theme-button { width: auto; } 
} 
@media (min-width: 769px) { 
    .menu-toggle { display: none; } 
    .sidebar { transform: translateX(0); } 
}




  
