:root {
 --brand: #183E8F;
 --brand-soft: #eef2fb;
 --text: #1a1a1a;
 --muted: #8a8f98;
 --bg: #f7f8fa;
 --card: #ffffff;
 --border: #e6e8ee;
 --radius: 12px;
 --shadow: 0 2px 10px rgba(0,0,0,0.06);
 }
 * { box-sizing: border-box; }
 body {
 margin: 0;
 background:url(/knopki/new/bg123.jpg) #183E8F; margin:0px; padding:0px; background-repeat: repeat-x; background-attachment: fixed; background-size: cover;
 color: var(--text);
 font-family: 'Segoe UI', Arial, sans-serif;
 font-size: 14px;
 line-height: 1.5;
 }
 
 a { color: var(--brand); text-decoration: none; }
 a:hover { text-decoration: underline; }

 .site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

 /* ===== Верхняя полоса ===== */
 .site-topbar { background: var(--brand); color: #fff; font-size: 11px; padding: 6px 0; }
 .site-topbar-inner {
 max-width: 1200px; margin: 0 auto; padding: 0 16px;
 display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
 }
 .site-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
 .site-topbar a:hover { text-decoration: underline; }
 .site-topbar img { vertical-align: middle; margin-right: 4px; margin-top: -2px; }
 .site-topbar input[type="text"], .site-topbar input[type="password"] { border-radius: 4px; border: 1px solid #ccc; padding: 2px 4px; font-size: 11px; }
 .site-topbar input[type="submit"] { border-radius: 4px; border: none; background: #fff; color: var(--brand); font-weight: 700; font-size: 11px; padding: 3px 8px; cursor: pointer; }
 
 /* ===== Шапка ===== */
 .site-header { background: #fff; border-bottom: 3px solid var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,0.04); position: relative; z-index: 100; }
 .site-header-inner {
 max-width: 1200px; margin: 0 auto; padding: 10px 16px;
 display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
 }
 .site-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: 0.3px; text-decoration: none; white-space: nowrap; }
 .site-logo:hover { text-decoration: none; color: var(--brand); }
 .site-logo img { height: 34px; width: auto; display: block; }

 /* ===== Меню ===== */
 .site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
 .site-nav > ul > li { position: relative; }
 .site-nav > ul > li > a {
 display: inline-block; padding: 9px 12px; font-size: 14px; font-weight: 600;
 color: var(--text); border-radius: 8px; text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap;
 }
 .site-nav > ul > li > a:hover, .site-nav > ul > li:hover > a { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
 .site-nav > ul > li > ul {
 list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 220px;
 background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); border: 1px solid var(--border);
 opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 200;
 }
 .site-nav > ul > li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
 .site-nav > ul > li > ul > li > a { display: block; padding: 8px 10px; font-size: 13px; color: var(--text); border-radius: 6px; text-decoration: none; white-space: nowrap; }
 .site-nav > ul > li > ul > li > a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

 /* ===== ОБНОВЛЕННЫЙ БЛОК МАТЧЕЙ ===== */
 .match-section { padding: 20px 0 0; }
 .match-grid { display: grid; grid-template-columns: 260px 260px 1fr 1fr; gap: 16px; }
 
 .match-card, .stat-card-dark { 
 background: linear-gradient(145deg, #183E8F, #0f2557); /* Синий градиент */
 border-radius: 16px;
 box-shadow: 0 8px 20px rgba(24, 62, 143, 0.25);
 padding: 18px 20px;
 font-family: 'Segoe UI', Arial, sans-serif;
 color: #fff;
 position: relative;
 overflow: hidden;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
 }
 .match-card:hover, .stat-card-dark:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(24, 62, 143, 0.35); }
 .match-card::before, .stat-card-dark::before {
 content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px;
 background: rgba(255, 255, 255, 0.05); border-radius: 50%; z-index: 0;
 }
 .match-badge, .stat-badge-dark {
 display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
 color: #fff; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px);
 padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; position: relative; z-index: 1;
 }
 .match-meta { font-size: 12px; color: rgba(255, 255, 255, 0.7); line-height: 1.4; margin-bottom: 16px; text-align: center; position: relative; z-index: 1; }
 .match-center { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; z-index: 1; }
 .match-center img { height: 64px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
 .match-score { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 1px; text-align: center; min-width: 70px; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
 .match-score small { display: block; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.6); letter-spacing: 1px; margin-top: 2px; }
 .match-names { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.9); text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; position: relative; z-index: 1; }
 .match-names span { width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .match-names .winner { font-weight: 700; color: #fff; }

.match-score-box {
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid rgba(255, 255, 255, 0.2);
 border-radius: 8px;
 padding: 2px 2px;
 display: inline-block;
 min-width: 70px;
 text-align: center;
 backdrop-filter: blur(4px);
}


 /* Статистика (Бомбардиры / Ассистенты) в темном стиле */
 .stat-list-dark { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
 .stat-list-dark li { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 255, 255, 0.9); padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
 .stat-list-dark li:last-child { border-bottom: none; }
 .stat-list-dark li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 78%; }
 .stat-list-dark li .val { font-weight: 700; color: #fff; min-width: 18px; text-align: right; }

 /* ===== ОСНОВНАЯ СЕТКА ===== */
 .site-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px 0 40px; align-items: start; }
 .content-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; min-height: 300px; }
 .content-card h1, .content-card h2, .content-card h3 { color: var(--text); font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
 .content-card h1 { font-size: 26px; border-left: 4px solid var(--brand); padding-left: 12px; }
 .content-card h2 { font-size: 21px; color: var(--brand); }
 .content-card h3 { font-size: 17px; }
 .content-card p { margin: 0 0 12px; }
 .content-card table { max-width: 100%; }
 .content-card img { max-width: 100%; height: auto; }

 /* ===== Сайдбар ===== */
 .sidebar-merged { display: flex; flex-direction: column; gap: 16px; }
 .side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; font-family: 'Segoe UI', Arial, sans-serif; overflow: hidden; position: relative; width: 100%; }
 .side-card .side-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
 .side-card .side-body { font-size: 13px; color: var(--text); line-height: 1.5; width: 100%; }
 .side-card .side-body img { max-width: 100%; height: auto; }
 .side-card .side-body a { color: var(--brand); text-decoration: none; }
 .side-card .side-body a:hover { text-decoration: underline; }
 .side-card .side-body ul { list-style: none; margin: 0; padding: 0; }
 .side-card .side-body ul li { padding: 6px 0; border-bottom: 1px solid #f0f2f6; font-size: 13px; line-height: 1.4; }
 .side-card .side-body ul li:last-child { border-bottom: none; }
 .side-card .side-body ul li a { color: var(--text); }
 .side-card .side-body ul li a:hover { color: var(--brand); }
 .side-card .uzer_coment, .side-card .uzer_coment * { font-size: 12px; line-height: 1.45; }

 /* ===== ОПРОСЫ, ПАРТНЕРЫ, СТАТИСТИКА ===== */
 .poll-box { width: 100% !important; text-align: left; }
 .poll-box table { width: 100% !important; table-layout: fixed; }
 .poll-box td { width: 100% !important; display: block !important; box-sizing: border-box !important; padding: 0 0 8px 0 !important; border: none !important; }
 .partners-box { width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px 0; }
 .partners-box img { max-width: 100%; height: auto; }
 .stats-box { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
 .stats-box .ym-advanced-informer { display: block; margin: 0 auto 10px auto; width: 88px; height: 31px; }

#tabs_online { width: 100%; display: flex; flex-direction: column; align-items: center; border-radius: 6px; padding: 8px; margin-top: 5px; }
 .center_dm_uo { width: 100%; display: flex; flex-direction: column; align-items: center; }
 .uo_ul { justify-content: center; width: 100%; margin-bottom: 10px; border-bottom: 1px solid #ccc; padding-bottom: 5px; }
 .uo_ul a { font-weight: 700; color: var(--brand); font-size: 13px; }
 .uzer_online, .uzer_allist { width: 100%; text-align: left; font-size: 12px; line-height: 1.6; padding: 5px; }
 .uzer_online a:nth-child(4n+1), .uzer_allist a:nth-child(4n+1) { color: #cc0000 !important; font-weight: 700; }
 .uzer_online a:nth-child(4n+2), .uzer_allist a:nth-child(4n+2) { color: #8a8f98 !important; font-weight: 600; }
 .uzer_online a:nth-child(4n+3), .uzer_allist a:nth-child(4n+3) { color: #008000 !important; font-weight: 700; }
 .uzer_online a:nth-child(4n+4), .uzer_allist a:nth-child(4n+4) { color: #183E8F !important; font-weight: 700; }

 /* ===== Подвал ===== */
 .site-footer { background: #111827; color: #cbd2dc; padding: 24px 16px; margin-top: 20px; font-size: 13px; }
 .site-footer a { color: #fff; }
 .site-footer .site-footer-inner { max-width: 1200px; margin: 0 auto; }

 /* ===== АДАПТИВ ===== */
 @media (max-width: 1100px) {
 .site-header-inner { padding: 8px 12px; gap: 12px; }
 .site-nav { width: 100%; }
 .site-nav > ul { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
 .site-nav > ul > li > a { padding: 7px 10px; font-size: 13px; }
 .site-nav > ul > li > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; display: none; }
 .site-nav > ul > li:focus-within > ul, .site-nav > ul > li:hover > ul { display: block; }
 .match-grid { grid-template-columns: 1fr 1fr; }
 }
 @media (max-width: 760px) {
 .site-topbar-inner { justify-content: center; text-align: center; font-size: 10px; }
 .site-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px 0 32px; }
 .content-card { order: 1; }
 .sidebar-merged { order: 2; }
 .match-grid { grid-template-columns: 1fr !important; }
 }

 /* ===== ТАБЛИЦА ===== */
 .league-table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
 .league-table { width: 100%; border-collapse: collapse; font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; }
 .league-table th { background: var(--brand-soft); color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; padding: 4px 4px; text-align: center; border-bottom: 2px solid var(--border); }
 .league-table td { padding: 8px; border-bottom: 1px solid #f0f2f6; color: var(--text); vertical-align: middle; }
 .league-table tr:last-child td { border-bottom: none; }
 .col-pos { width: 30px; text-align: center; color: var(--muted); font-weight: 600; }
 .col-team { text-align: left; font-weight: 600; }
 .col-num { width: 40px; text-align: center; }
 .row-deportivo td { background-color: #eef2fb; color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); border-top: 2px solid var(--brand); }
 .row-deportivo .col-pos { border-left: 4px solid var(--brand); color: var(--brand); }

 /* ===== ОПРОС ===== */
 .cell-poll, .cell-poll form, .cell-poll-answers, .cell-poll-answers ul { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; display: block !important; font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; color: var(--text); }
 .cell-poll-answers ul { list-style: none !important; }
 .cell-poll-title { font-weight: 700; font-size: 14px; color: var(--brand); margin-bottom: 12px; line-height: 1.3; text-align: left; }
 .cell-poll-answers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
 .cell-poll-answers .answer, .cell-poll-answers li { position: relative; padding-bottom: 4px; overflow: hidden; width: 100% !important; display: block !important; }
 .cell-poll-answers label { display: flex; align-items: flex-start; cursor: pointer; gap: 8px; font-weight: 500; color: var(--text); position: relative; z-index: 2; line-height: 1.4; width: 100%; }
 .cell-poll-answers input[type="radio"] { margin: 3px 0 0 0 !important; cursor: pointer; accent-color: var(--brand); flex-shrink: 0; width: 16px; height: 16px; }
 .cell-poll-answers .progress { background-color: #f0f2f6; border-radius: 4px; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; transition: width 0.3s; }
 .cell-poll-answers .procent { font-weight: 700; color: var(--brand); font-size: 12px; margin-left: 4px; }
 .cell-poll input[type="submit"], .cell-poll button, .cell-poll .btn { background: #5fa5d9 !important; color: #fff !important; border: none !important; border-radius: 6px !important; padding: 10px 12px !important; width: 100% !important; font-weight: 700 !important; font-size: 13px !important; cursor: pointer !important; margin: 10px 0 !important; display: block !important; transition: background 0.2s !important; text-align: center; }
 .cell-poll input[type="submit"]:hover, .cell-poll button:hover, .cell-poll .btn:hover { background: #4a8fc2 !important; }
 .cell-poll-link { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); width: 100%; }
 .cell-poll-link span strong { color: var(--text); font-weight: 700; }
 .cell-poll-link a { color: var(--brand); text-decoration: none; font-weight: 600; display: inline-block; }
 .cell-poll-link a:hover { text-decoration: underline; }
 .cell-poll-link .links-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1.2; }

/* ===== Цвета групп пользователей в блоке Статистика ===== */
/* Применяем приоритет !important, чтобы перебить общий стиль .side-card a */

.uzer_online a.groupAdmin,
.uzer_allist a.groupAdmin,
.uzer_online a.groupAdmin:link,
.uzer_allist a.groupAdmin:link,
.uzer_online a.groupAdmin:visited,
.uzer_allist a.groupAdmin:visited {
 color: red !important;
 font-weight: 700 !important; /* Админов делаем жирными */
}

.uzer_online a.groupModer,
.uzer_allist a.groupModer,
.uzer_online a.groupModer:link,
.uzer_allist a.groupModer:link {
 color: blue !important;
 font-weight: 600 !important; /* Модеров чуть жирнее */
}

.uzer_online a.groupVerify,
.uzer_allist a.groupVerify,
.uzer_online a.groupVerify:link,
.uzer_allist a.groupVerify:link {
 color: gray !important;
}

.uzer_online a.groupOther1,
.uzer_allist a.groupOther1,
.uzer_online a.groupOther1:link,
.uzer_allist a.groupOther1:link {
 color: green !important;
}

/* Обычные пользователи (чтобы не были синими как ссылки) */
.uzer_online a:not([class*="group"]),
.uzer_allist a:not([class*="group"]) {
 color: #555 !important;
 font-weight: 500 !important;
}

/* При наведении оставляем подчеркивание, чтобы было понятно, что это ссылки */
.uzer_online a:hover,
.uzer_allist a:hover {
 text-decoration: underline !important;
}
 /* ===== ЖЕСТКАЯ ОЧИСТКА СТАТИСТИКИ ОТ РАМОК ===== */
 #tabs_online * {
 border: none !important; /* Убираем ВСЕ рамки у всех элементов */
 outline: none !important;
 text-decoration: none !important;
 }

 /* Возвращаем красивую серую плашку для вкладок */
 .uo_ul {
 display: flex !important;
 justify-content: center !important;
 gap: 14px !important;
 margin: 0 0 12px 0 !important;
 padding: 0 !important;
 width: 100% !important;
 }

 .uo_ul li {
 display: inline-block !important;
 padding: 0 !important;
 margin: 0 !important;
 }

 .uo_ul li a {
 display: inline-block;
 padding: 4px 12px;
 border-radius: 4px;
 font-weight: 700;
 font-size: 13px;
 color: var(--brand) !important;
 background: transparent;
 transition: background 0.2s;
 }

 /* Активная вкладка (онлайн) */
 .uo_ul li a.active-tab {
 background: #e6e8ee;
 color: #1a1a1a !important;
 }

 /* Ники пользователей */
 .uzer_online, 
 .uzer_allist {
 width: 100% !important;
 text-align: center !important;
 font-size: 12px !important;
 line-height: 1.6 !important;
 padding: 0 !important;
 margin: 0 !important;
 }
 
 /* Рисуем ОДНУ линию под всем этим блоком */
 #tabs_online {
 border-top: 1px solid #e6e8ee !important;
 padding-top: 12px !important;
 margin-top: 4px !important;
 }