/* static/css/match-room.css — палитра: #007315 #000000 #424242 #ffffff */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Russo One", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000000;
  color: #BEBEBE;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* BACKGROUND - same as profile page */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('/static/league/images/Vector2.png') no-repeat center center;
  background-size: cover;
  z-index: -10;
  opacity: 0.15;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('/static/league/images/Vector3.png') no-repeat center center;
  background-size: cover;
  z-index: -10;
  opacity: 0.10;
  pointer-events: none;
}

/* Основные страницы лиги (league/base.html): фон как на главной — векторы, без дубля псевдо-слоёв */
body.league-body::before,
body.league-body::after {
  display: none !important;
  content: none !important;
}

/* Фон-клеверы /league/ — расстановка как на главной (league_vector_bg.html) */
body.league-body .league-home-bg__vec {
  position: fixed;
  z-index: 0;
  display: block;
  width: clamp(220px, 34vw, 420px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body.league-body .league-home-bg__vec--left {
  left: 0;
  top: clamp(24px, 5vh, 64px);
}

body.league-body .league-home-bg__vec--right {
  right: 0;
  bottom: clamp(8px, 2vh, 32px);
}

.topbar {
  position: relative; z-index: 10;
  width: 100%; height: 52px; min-height: 52px;
  border-bottom: 1px solid #424242;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px;
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(8px);
  /* visible: иначе overflow:hidden обрезает выпадающее меню профиля (.profile-dropdown__panel) */
  overflow: visible;
}
.topbar-left { display: flex; align-items: center; gap: 40px; height: 100%; }
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
  margin: 0;
  text-decoration: none;
}
.site-logo img {
  max-height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
  filter: none;
}
.menu { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.menu a {
  color: #BEBEBE; text-decoration: none;
  font-size: 10px; font-weight: 400; opacity: 0.85;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: all 0.2s ease;
  font-family: var(--font-display);
}
.menu a:hover { color: #007315; opacity: 1; text-shadow: 0 0 8px rgba(0,115,21,0.4); }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-notify-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 4px;
}

.topbar-notify__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: #007315;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topbar-notify__btn:hover {
  background: rgba(0, 115, 21, 0.1);
  border-color: rgba(0, 115, 21, 0.25);
  box-shadow: 0 0 20px rgba(0, 115, 21, 0.12);
}

.topbar-notify__btn[aria-expanded="true"] {
  background: rgba(0, 115, 21, 0.15);
  border-color: rgba(0, 115, 21, 0.35);
}

.topbar-notify__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #007315;
  color: #BEBEBE;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-family: var(--font-display);
  box-shadow: 0 0 0 2px #050505;
}

.topbar-notify__icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Прозрачный слой: закрытие по клику вне окна, без смещения страницы и без blur */
.topbar-notify-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
}

.topbar-notify-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Мини-окно у колокольчика (позиция top/right задаётся из JS) */
.topbar-notify-sheet {
  position: fixed;
  z-index: 1001;
  width: 336px;
  max-width: calc(100vw - 16px);
  max-height: min(380px, calc(100vh - 64px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #101010 0%, #080808 100%);
  border: 1px solid rgba(0, 115, 21, 0.4);
  border-radius: 14px;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform-origin: top right;
  transform: scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, visibility 0.22s;
  /* fallback до первого открытия */
  top: 56px;
  right: 12px;
}

.topbar-notify-sheet.is-open {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

.topbar-notify-sheet__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.topbar-notify-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(66, 66, 66, 0.55);
  flex-shrink: 0;
}

.topbar-notify-sheet__head-text {
  min-width: 0;
}

.topbar-notify-sheet__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #BEBEBE;
  margin: 0 0 4px;
  line-height: 1.25;
}

.topbar-notify-sheet__subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  color: #9ca3af;
  margin: 0;
  letter-spacing: 0.02em;
}

.topbar-notify-sheet__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid #424242;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.topbar-notify-sheet__close span {
  display: block;
  width: 14px;
  height: 14px;
  position: relative;
}

.topbar-notify-sheet__close span::before,
.topbar-notify-sheet__close span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #a3a3a3;
  border-radius: 1px;
}

.topbar-notify-sheet__close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.topbar-notify-sheet__close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.topbar-notify-sheet__close:hover {
  background: rgba(0, 115, 21, 0.12);
  border-color: rgba(0, 115, 21, 0.45);
}

.topbar-notify-sheet__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 115, 21, 0.05);
  border-bottom: 1px solid rgba(66, 66, 66, 0.45);
  flex-shrink: 0;
}

.topbar-notify-sheet__hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 0.02em;
}

.topbar-notify-sheet__markall {
  border: none;
  background: transparent;
  color: #007315;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}

.topbar-notify-sheet__markall:hover {
  background: rgba(0, 115, 21, 0.12);
}

.topbar-notify-sheet__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 8px;
}

.topbar-notify-empty {
  padding: 28px 16px 24px;
  text-align: center;
  font-family: var(--font-body);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.topbar-notify-empty::before {
  content: "🔔";
  display: block;
  font-size: 1.75rem;
  margin-bottom: 10px;
  opacity: 0.35;
  filter: grayscale(0.3);
}

.topbar-notify-item {
  display: block;
  margin: 0 8px 6px;
  padding: 10px 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(66, 66, 66, 0.5);
  text-decoration: none;
  color: #BEBEBE;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}

.topbar-notify-item:hover {
  background: rgba(0, 115, 21, 0.08);
  border-color: rgba(0, 115, 21, 0.35);
}

.topbar-notify-item.is-unread {
  background: rgba(0, 115, 21, 0.07);
  border-color: rgba(0, 115, 21, 0.4);
  box-shadow: inset 3px 0 0 #007315;
}

.topbar-notify-item__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #f3f4f6;
  line-height: 1.35;
}

.topbar-notify-item__body {
  font-family: var(--font-body);
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 8px;
}

.topbar-notify-item__time {
  font-family: var(--font-body);
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar-notify-sheet__footer {
  flex-shrink: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(66, 66, 66, 0.5);
  background: rgba(0, 0, 0, 0.4);
}

.topbar-notify-sheet__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 115, 21, 0.45);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #007315;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.topbar-notify-sheet__all::after {
  content: "→";
  font-size: 12px;
  opacity: 0.85;
}

.topbar-notify-sheet__all:hover {
  background: rgba(0, 115, 21, 0.12);
  color: #4ade80;
}
header.topbar a.matches-btn {
  border-left: 1px solid #424242;
  border-right: 1px solid #424242;
  border-bottom: none;
  padding: 0 20px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #007315;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration: none !important;
  box-shadow: none;
}
header.topbar a.matches-btn:hover,
header.topbar a.matches-btn:visited,
header.topbar a.matches-btn:focus,
header.topbar a.matches-btn:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration: none !important;
}
.matches-btn__label {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
/* Текущая страница: без заливки — у rgba-фона резкий нижний край выглядел как «подчёркивание» */
header.topbar a.matches-btn.matches-btn--current {
  background: transparent;
  color: #39d353;
  font-weight: 600;
  text-decoration: none !important;
}
header.topbar a.matches-btn.matches-btn--current .matches-btn__label {
  text-decoration: none !important;
}
.profile {
  display: flex; align-items: center; gap: 10px;
  padding-left: 12px;
  margin-left: 4px;
  text-decoration: none; color: #BEBEBE;
  cursor: pointer; transition: opacity 0.2s;
}
.profile:hover { opacity: 0.85; }
.profile .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #424242 0%, #424242 100%);
  border: 1px solid #333;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile .avatar .avatar-fallback {
  font-size: 12px;
  font-weight: 600;
  color: #007315;
  font-family: var(--font-display);
  line-height: 1;
}
.profile-chevron {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  line-height: 1;
  margin-left: 2px;
  flex-shrink: 0;
}
.profile-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.profile-username {
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-display);
  line-height: 1;
}

.role-badge-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px 3px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
  background: rgba(255,0,0,0.05);
  color: #FF0000;
  border: 1px solid #FF0000;
  box-shadow: 0 0 10px rgba(255,0,0,0.25);
  line-height: 1;
}

.profile-dropdown {
  position: relative;
  margin-left: 4px;
  flex-shrink: 0;
}
.profile-dropdown__trigger.profile {
  margin: 0;
  margin-left: 0;
  padding-left: 12px;
  /* Сброс UA: иначе <button> получает белый/серый фон и скругления (Chrome/Edge). */
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  background-color: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.profile-dropdown__trigger.profile::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.profile-dropdown__trigger.profile:focus-visible {
  outline: 2px solid #007315;
  outline-offset: 2px;
}
.profile-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px 0;
  background: rgba(8, 8, 8, 0.98);
  border: 1px solid #424242;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 150;
}
.profile-dropdown__panel[hidden] {
  display: none !important;
}
.profile-dropdown__item {
  display: block;
  padding: 11px 18px;
  color: #BEBEBE;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}
.profile-dropdown__item:hover,
.profile-dropdown__item:focus-visible {
  background: rgba(0, 115, 21, 0.12);
  color: #BEBEBE;
  outline: none;
}
.profile-dropdown__item--danger {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 180, 180, 0.95);
}
.profile-dropdown__item--danger:hover,
.profile-dropdown__item--danger:focus-visible {
  background: rgba(180, 40, 40, 0.15);
  color: #fff;
}

.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 245px;
  gap: 14px;
  padding: 14px 14px 0;
  width: 100%; max-width: 1600px; margin: 0 auto;
  align-items: start;
}
/* Комната матча: под league-body (flex column) сетка тянется по высоте под хедер */
body.league-body > .layout {
  flex: 1 0 auto;
}

.panel {
  border: 1px solid #424242;
  border-radius: 8px;
  background: #070707;
  position: relative; overflow: hidden;
  padding: 14px;
}
.panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,115,21,0.12) 50%, transparent 100%);
}

.sidebar-left, .sidebar-right, .content {
  display: flex; flex-direction: column; gap: 14px; width: 100%;
  min-width: 0;
}
/* panel padding now global */

.back-link {
  padding: 0 0 14px 0;
  margin: 0 0 14px 0;
  border-bottom: 1px solid #424242;
  font-size: 9px; font-weight: 400; color: #424242;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
  cursor: pointer; transition: color 0.2s;
}
.back-link:hover { color: #007315; }

.tournament-block { padding: 14px 0; }
.tournament-label {
  color: #424242; margin-bottom: 10px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.tournament-info { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
/* Сезон: картинка из админки или монограмма; текст не вылезает из сайдбара */
.season-badge {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: 11px;
  font-family: var(--font-display);
  box-shadow: 0 0 10px rgba(0,115,21,0.25);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}
.season-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.season-badge__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  text-align: center;
  line-height: 1.05;
  word-break: break-word;
  font-size: 9px;
}
.tournament-headlines {
  flex: 1 1 auto;
  min-width: 0;
}
.season-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #007315;
  margin-bottom: 4px;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.season-box {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
  display: flex; justify-content: center; align-items: center;
  font-weight: 400; font-size: 12px; border-radius: 6px;
  font-family: var(--font-display);
  box-shadow: 0 0 10px rgba(0,115,21,0.25);
}
.cup-title {
  font-weight: 400; font-size: 12px; margin-bottom: 3px;
  font-family: var(--font-display); color: #BEBEBE;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cup-round {
  color: #424242; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.sidebar-menu { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  padding: 12px 14px;
  font-weight: 400; font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; transition: all 0.2s ease;
  display: block; text-decoration: none;
  color: #aaaaaa; border-radius: 4px;
  font-family: var(--font-display);
}
.menu-item:hover { background: rgba(0,115,21,0.06); color: #007315; }
.menu-item.active {
  background: rgba(0,115,21,0.1); color: #007315;
  border-left: 2px solid #007315; padding-left: 12px;
}

.match-info {
  padding: 0;
}
.match-info .info-block {
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid #424242;
}
.match-info .info-block:last-child {
  border-bottom: none;
}
.match-info .info-block:first-child {
  padding-top: 14px;
}
.match-info .info-block:last-child {
  padding-bottom: 14px;
}
.match-info .info-block span {
  display: block; color: #424242; font-size: 8px;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.match-info .info-block strong {
  font-size: 11px; color: #BEBEBE; font-weight: 400;
  font-family: var(--font-display);
}

/* Server Info Panel - same style as match-info */
.server-info-panel {
  padding: 0;
}
.server-info-panel .info-block {
  padding: 12px 14px;
  margin: 0;
  border-bottom: 1px solid #424242;
}
.server-info-panel .info-block:last-child {
  border-bottom: none;
}
.server-info-panel .info-block:first-child {
  padding-top: 14px;
}
.server-info-panel .info-block:last-child {
  padding-bottom: 14px;
}
.server-info-panel .info-block span {
  display: block; color: #424242; font-size: 8px;
  margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.server-info-panel .info-block strong {
  font-size: 11px; color: #BEBEBE; font-weight: 400;
  font-family: var(--font-display);
}

.panel-title {
  margin-bottom: 14px;
  font-weight: 400; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #424242;
  font-family: var(--font-display);
}

.support-btn, .green-btn, .dark-btn, .red-btn {
  width: 100%; height: 36px; border-radius: 6px;
  font-weight: 400; font-size: 10px; cursor: pointer;
  margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  border: none;
}
.green-btn {
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
  color: #BEBEBE;
  box-shadow: 0 2px 12px rgba(0,115,21,0.25);
}
.green-btn:hover {
  box-shadow: 0 4px 20px rgba(0,115,21,0.45);
  transform: translateY(-1px);
}
a.green-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #BEBEBE;
  box-sizing: border-box;
}
.green-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.dark-btn {
  background: transparent;
  border: 1px solid #424242;
  color: #BEBEBE;
}
.dark-btn:hover {
  border-color: #007315; color: #007315;
  box-shadow: 0 0 12px rgba(0,115,21,0.15);
  background: rgba(0,115,21,0.04);
}
.red-btn {
  background: transparent;
  border: 1px solid rgba(255,0,0,0.5);
  color: #FF0000;
}
.red-btn:hover {
  border-color: #FF0000;
  background: rgba(255,0,0,0.08);
  box-shadow: 0 0 12px rgba(255,0,0,0.2);
}
.support-btn {
  background: transparent;
  border: 1px solid #424242;
  color: #BEBEBE;
}
.support-btn:hover {
  border-color: #007315; color: #007315;
  box-shadow: 0 0 12px rgba(0,115,21,0.15);
  background: rgba(0,115,21,0.04);
}

.match-room-title {
  font-size: 16px; margin: 0 0 14px 0; padding: 0;
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em;
  color: #BEBEBE;
  font-family: var(--font-display);
}

.content h1 {
  font-size: 24px; margin-bottom: 14px;
  font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em;
  color: #BEBEBE;
  font-family: var(--font-display);
}

.match-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #424242;
  margin: 0 -14px;
}
.match-top div {
  padding: 14px;
  font-size: 9px; font-weight: 400;
  color: #424242;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.match-meta-bright { color: #BEBEBE !important; opacity: 1 !important; }

.versus-block {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 150px; padding: 14px 34px;
}
.team-side { display: flex; align-items: center; gap: 14px; }
.team-name {
  font-size: 18px; font-weight: 400; letter-spacing: 0.02em;
  color: #BEBEBE;
  font-family: var(--font-display);
}
.team-logo {
  width: 48px; height: 48px;
  border: 1px solid rgba(0,115,21,0.35);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: rgba(0,115,21,0.05);
}
.team-logo img {
  position: relative;
  z-index: 1;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
}
.team-logo--has-logo::after {
  content: none !important;
  display: none !important;
}
.team-logo--empty::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: #007315;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 10px rgba(0,115,21,0.5);
  border-radius: 2px;
}
.vs-center { text-align: center; }
.vs-text {
  font-size: 58px; font-weight: 400; line-height: 1;
  color: #BEBEBE;
  font-family: var(--font-display);
  text-shadow: 0 0 20px rgba(0,115,21,0.2);
}
.match-starts {
  color: #424242; font-size: 9px; margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.timer {
  font-size: 26px; color: #007315; font-weight: 400; margin-top: 4px;
  font-family: var(--font-display);
  text-shadow: 0 0 12px rgba(0,115,21,0.35);
}
.date {
  color: #424242; font-size: 9px; margin-top: 4px;
  font-family: var(--font-display);
}

.maps-panel .panel-title { margin-bottom: 14px; }
.maps-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }

.map-card {
  position: relative; height: 110px; border-radius: 8px;
  overflow: hidden; cursor: default;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: #111111;
}
.map-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-card.available.map-card--veto-click {
  cursor: pointer;
}
.map-card.available.map-card--veto-click:hover {
  border-color: #007315;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,115,21,0.3);
}
.map-card.available.map-card--veto-click:hover .map-overlay {
  background: linear-gradient(to top, rgba(0,115,21,0.25), rgba(0,0,0,0.15));
}
.map-card.available.map-card--veto-click:focus {
  outline: 2px solid rgba(0, 115, 21, 0.75);
  outline-offset: 2px;
}
.map-card.available.map-card--veto-click:focus:not(:focus-visible) {
  outline: none;
}

.map-card.banned {
  cursor: not-allowed; border-color: #333; pointer-events: none;
  transition: all 0.4s ease;
}
.map-card.banned img { filter: grayscale(100%) brightness(0.4); opacity: 0.6; transition: all 0.4s ease; }
.map-card.banned .map-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.3) 100%);
}
.map-card.banned .map-status {
  background: rgba(220, 38, 38, 0.9); border-color: #dc2626; color: #BEBEBE;
  display: flex; align-items: center; gap: 4px;
}
.map-card.banned .map-status::before { content: "🚫"; font-size: 8px; }
.map-card.banned .map-name { color: #9ca3af; text-shadow: none; }
.map-banned-by {
  position: absolute; top: 28px; right: 8px;
  font-size: 7px; font-weight: 400; color: #f87171;
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 2; text-align: right; line-height: 1.2;
  font-family: var(--font-display);
}

.map-card.picked {
  border: 2px solid #007315;
  box-shadow: 0 0 20px rgba(0, 115, 21, 0.3), inset 0 0 30px rgba(0, 115, 21, 0.06);
  cursor: default; pointer-events: none;
  transition: all 0.4s ease;
}
.map-card.picked img { filter: saturate(1.3) brightness(1.05); transition: all 0.4s ease; }
.map-card.picked .map-overlay {
  background: linear-gradient(to top, rgba(0, 115, 21, 0.45) 0%, rgba(0, 0, 0, 0.1) 100%);
}
.map-card.picked .map-status {
  background: rgba(0, 115, 21, 0.9); border-color: #007315; color: #BEBEBE;
}
.map-card.picked .map-name { color: #007315; text-shadow: 0 0 8px rgba(0, 115, 21, 0.4); }
.map-picked-by {
  position: absolute; top: 28px; right: 8px;
  font-size: 7px; font-weight: 400; color: #4ade80;
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 2; text-align: right; line-height: 1.2;
  font-family: var(--font-display);
}

.map-card.final {
  border: 2px solid #007315;
  box-shadow: 0 0 25px rgba(0,115,21,0.35), inset 0 0 40px rgba(0,115,21,0.08);
  transform: scale(1.02);
}
.map-card.final .map-name { color: #007315; text-shadow: 0 0 10px rgba(0,115,21,0.5); }
.map-card.disabled { opacity: 0.4; cursor: not-allowed; }

/* Final Map Cinematic View */
.final-map-cinematic {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px;
  background: rgba(0,115,21,0.03);
  border-radius: 8px;
  border: 1px solid rgba(0,115,21,0.15);
  animation: fadeInCinematic 0.6s ease-out;
}
@keyframes fadeInCinematic {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.final-map-card {
  position: relative;
  width: 100%; max-width: 480px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #007315;
  box-shadow: 0 0 40px rgba(0,115,21,0.4), inset 0 0 60px rgba(0,115,21,0.1);
  animation: mapGlow 3s ease-in-out infinite alternate;
  background: #111;
}
@keyframes mapGlow {
  from { box-shadow: 0 0 30px rgba(0,115,21,0.3), inset 0 0 40px rgba(0,115,21,0.08); }
  to { box-shadow: 0 0 50px rgba(0,115,21,0.5), inset 0 0 80px rgba(0,115,21,0.12); }
}
.final-map-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.2) brightness(1.05);
}
.final-map-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
}
.final-map-label {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: rgba(0,115,21,0.9);
  color: #BEBEBE;
  font-size: 10px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.15em;
  border-radius: 4px;
  font-family: var(--font-display);
}
.final-map-title {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  font-size: 28px; font-weight: 400;
  color: #BEBEBE;
  text-transform: uppercase; letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(0,115,21,0.6);
  font-family: var(--font-display);
}
.match-ready-indicator {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(0,115,21,0.1);
  border: 1px solid rgba(0,115,21,0.3);
  border-radius: 6px;
  font-size: 11px; font-weight: 400;
  color: #007315;
  text-transform: uppercase; letter-spacing: 0.15em;
  font-family: var(--font-display);
  animation: matchReadyPulse 2s ease-in-out infinite;
}
@keyframes matchReadyPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,115,21,0.2); }
  50% { box-shadow: 0 0 16px rgba(0,115,21,0.4); }
}
.match-ready-indicator::before {
  content: "✓";
  font-size: 14px;
  color: #007315;
}
.connect-server-btn {
  margin-top: 20px;
  width: 100%; max-width: 360px;
  height: 52px;
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
  color: #BEBEBE;
  border: none;
  border-radius: 8px;
  font-size: 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--font-display);
  box-shadow: 0 4px 20px rgba(0,115,21,0.35);
  transition: all 0.3s ease;
}
.connect-server-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(0,115,21,0.55);
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
}
.connect-server-btn:active {
  transform: translateY(-1px);
}
.connect-server-btn-right {
  width: 100%; height: 44px;
  background: linear-gradient(135deg, #007315 0%, #007315 100%);
  color: #BEBEBE;
  border: none;
  border-radius: 6px;
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--font-display);
  box-shadow: 0 3px 16px rgba(0,115,21,0.3);
  transition: all 0.25s ease;
}
.connect-server-btn-right:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,115,21,0.45);
}

.map-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 100%);
  transition: background 0.25s;
}
.map-name {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 13px; font-weight: 400; color: #BEBEBE;
  text-transform: uppercase; letter-spacing: 0.02em;
  z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-family: var(--font-display);
}
.map-status {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 8px; background: rgba(0,0,0,0.7);
  border-radius: 4px;
  font-size: 9px; font-weight: 400; color: #BEBEBE;
  text-transform: uppercase; letter-spacing: 0.05em;
  z-index: 2; border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-display);
}
.map-card.available .map-status { background: rgba(0,115,21,0.85); border-color: #007315; color: #BEBEBE; }
.map-card.banned .map-status { background: rgba(220,38,38,0.85); border-color: #dc2626; }

.ban-btn {
  position: absolute; bottom: 8px; right: 8px;
  padding: 4px 12px; background: #007315; color: #BEBEBE;
  border: none; border-radius: 4px;
  font-size: 9px; font-weight: 400; text-transform: uppercase;
  cursor: pointer; z-index: 3;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  font-family: var(--font-display);
}
.ban-btn:hover {
  background: #007315;
  box-shadow: 0 4px 12px rgba(0,115,21,0.5);
  transform: translateY(-1px);
}
.ban-btn:disabled {
  background: #424242; cursor: not-allowed; box-shadow: none; color: #BEBEBE;
}
/* Подпись BAN/PICK на карте — клик идёт на всю карту */
.ban-btn--label {
  pointer-events: none;
  user-select: none;
  cursor: inherit;
}

.veto-turn-indicator {
  padding: 12px; border-radius: 6px;
  font-size: 11px; font-weight: 400; text-align: center;
  margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.4;
  font-family: var(--font-display);
}
.veto-turn-indicator.your-turn {
  background: rgba(0,115,21,0.1); color: #007315;
  border: 1px solid rgba(0,115,21,0.35);
  box-shadow: 0 0 20px rgba(0,115,21,0.12);
}
.veto-turn-indicator.waiting {
  background: #000000; color: #424242;
  border: 1px solid #424242;
}
.veto-turn-indicator.done {
  background: rgba(0,115,21,0.1); color: #007315;
  border: 1px solid rgba(0,115,21,0.35);
}

.banned-maps-list {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #424242;
}
.banned-title {
  font-size: 9px; color: #424242; text-transform: uppercase;
  font-weight: 400; margin-bottom: 8px; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.banned-tag {
  display: inline-block;
  background: rgba(220,38,38,0.12); color: #f87171;
  padding: 5px 10px; border-radius: 4px;
  font-size: 9px; font-weight: 400;
  margin-right: 6px; margin-top: 6px;
  border: 1px solid rgba(220,38,38,0.25);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 14px;
}
.team-panel, .chat-panel, .action-panel { padding: 14px; }

.player-row {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; margin-bottom: 10px;
}
.player-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-avatar {
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #424242 0%, #424242 100%);
  border: 1px solid rgba(0,115,21,0.35);
  border-radius: 4px;
  overflow: hidden;
}
.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.player-avatar__fb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  color: #007315;
  text-transform: uppercase;
}
.player-name-wrap {
  min-width: 0;
  font-size: 13px; font-weight: 400; color: #BEBEBE;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.player-name-link {
  color: inherit;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-name-link:hover {
  color: #007315;
}
.role {
  padding: 5px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-display);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* Роли: IGL красный, AWP фиолетово-розовый, ENTRY оранжевый, CLUTCHER фиолетовый, SUPPORT/RIFLE синие, ANCHOR зелёный */
.role-igl,
.td-prole.role-igl,
.player-role.role-igl,
.mm-tp-role.role-igl,
.prof-role--igl,
.matchroom-player-badge-igl {
  border-color: rgba(239, 68, 68, 0.65) !important;
  color: #ff8a95 !important;
  background: rgba(239, 68, 68, 0.14) !important;
}

.role-entry,
.td-prole.role-entry,
.player-role.role-entry,
.mm-tp-role.role-entry,
.prof-role--entry,
.matchroom-player-badge-entry {
  border-color: rgba(249, 115, 22, 0.65) !important;
  color: #fdba74 !important;
  background: rgba(249, 115, 22, 0.14) !important;
}

.role-awp,
.td-prole.role-awp,
.player-role.role-awp,
.mm-tp-role.role-awp,
.prof-role--awp,
.matchroom-player-badge-awp {
  border-color: rgba(217, 70, 239, 0.6) !important;
  color: #f0abfc !important;
  background: rgba(192, 38, 211, 0.12) !important;
}

.role-rifle,
.td-prole.role-rifle,
.player-role.role-rifle,
.mm-tp-role.role-rifle,
.prof-role--rifle,
.matchroom-player-badge-rifle {
  border-color: rgba(37, 99, 235, 0.65) !important;
  color: #93c5fd !important;
  background: rgba(37, 99, 235, 0.14) !important;
}

.role-support,
.td-prole.role-support,
.player-role.role-support,
.mm-tp-role.role-support,
.prof-role--support,
.matchroom-player-badge-support {
  border-color: rgba(59, 130, 246, 0.65) !important;
  color: #7dd3fc !important;
  background: rgba(59, 130, 246, 0.14) !important;
}

.role-clutcher,
.td-prole.role-clutcher,
.player-role.role-clutcher,
.mm-tp-role.role-clutcher,
.prof-role--clutcher,
.matchroom-player-badge-clutcher {
  border-color: rgba(147, 51, 234, 0.6) !important;
  color: #d8b4fe !important;
  background: rgba(126, 34, 206, 0.14) !important;
}

.role-anchor,
.td-prole.role-anchor,
.player-role.role-anchor,
.mm-tp-role.role-anchor,
.prof-role--anchor,
.matchroom-player-badge-anchor {
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.12) !important;
}

.role-substitute,
.td-prole.role-substitute,
.player-role.role-substitute,
.mm-tp-role.role-substitute,
.prof-role--substitute,
.matchroom-player-badge-substitute {
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.1) !important;
}

.role-coach,
.td-prole.role-coach,
.player-role.role-coach,
.mm-tp-role.role-coach,
.prof-role--coach,
.matchroom-player-badge-coach {
  border-color: rgba(234, 179, 8, 0.5) !important;
  color: #fde047 !important;
  background: rgba(234, 179, 8, 0.1) !important;
}

.prof-role--captain-label {
  border-color: #007315 !important;
  color: #BEBEBE !important;
  background: rgba(0, 115, 21, 0.18) !important;
}

.matchroom-player-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  letter-spacing: 0.04em;
}

.chat-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.chat-tabs .tab {
  flex: 1; padding: 8px 4px;
  background: #070707;
  border: 1px solid #424242;
  border-radius: 4px;
  font-size: 9px; font-weight: 400;
  text-align: center; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
  color: #424242;
  font-family: var(--font-display);
}
.chat-tabs .tab:hover { background: #070707; color: #aaaaaa; }
.chat-tabs .tab.active {
  background: #070707;
  border-color: rgba(0,115,21,0.4);
  color: #007315;
}

.chat-messages {
  height: 170px; overflow-y: auto;
  background: #070707;
  border: 1px solid #424242;
  border-radius: 4px;
  padding: 10px; margin-bottom: 10px;
}
.chat-placeholder {
  text-align: center; color: #424242;
  font-size: 10px; padding: 20px;
  font-family: var(--font-display);
}
.chat-message {
  margin-bottom: 10px; padding: 8px;
  background: #070707;
  border-radius: 4px;
  border-left: 2px solid #424242;
}
.chat-message.own {
  background: #070707;
  border-left-color: #007315;
}
.chat-message.admin {
  background: #070707;
  border-left: 2px solid rgba(255,0,0,0.4);
  box-shadow: 0 0 8px rgba(255,0,0,0.08);
}
.chat-message.superadmin {
  background: #070707;
  border-left: 2px solid rgba(255,0,0,0.5);
  box-shadow: 0 0 10px rgba(255,0,0,0.12);
}
.role-badge-admin {
  display: inline-block;
  padding: 2px 8px; border-radius: 4px;
  font-size: 8px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-display);
  background: rgba(255,0,0,0.05);
  color: #FF0000;
  border: 1px solid #FF0000;
  box-shadow: 0 0 10px rgba(255,0,0,0.25);
  vertical-align: middle;
  margin-right: 6px;
}
.chat-sender {
  font-size: 9px; font-weight: 400; color: #007315;
  margin-bottom: 4px; text-transform: uppercase;
  font-family: var(--font-display);
}
.chat-text {
  font-size: 10px; color: #BEBEBE; word-wrap: break-word;
  font-family: var(--font-display);
}
.chat-time {
  font-size: 8px; color: #424242; margin-top: 4px; text-align: right;
  font-family: var(--font-display);
}

.chat-input { display: flex; gap: 8px; margin-top: 12px; }
.chat-input input {
  flex: 1;
  background: #070707;
  border: 1px solid #424242;
  color: #BEBEBE;
  padding: 10px 12px;
  font-size: 10px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-display);
}
.chat-input input:focus { border-color: #007315; }
.chat-input input::placeholder { color: #444444; }
.chat-input button {
  width: 36px;
  background: #070707;
  border: 1px solid #424242;
  color: #007315;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  font-family: var(--font-display);
}
.chat-input button:hover {
  border-color: #007315;
  background: #070707;
}

.admin-veto-controls {
  display: flex; gap: 6px; align-items: center;
}
.admin-veto-controls select {
  flex: 1; height: 32px; padding: 0 8px;
  background: #070707;
  border: 1px solid #424242;
  border-radius: 4px;
  font-size: 10px; color: #BEBEBE;
  outline: none;
  font-family: var(--font-display);
}
.admin-veto-controls select:focus { border-color: #007315; }
.admin-veto-controls .ban-btn {
  padding: 0 12px; height: 32px;
  background: #dc2626; color: #BEBEBE;
  border: none; border-radius: 4px;
  font-size: 9px; font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
}
.admin-veto-controls .ban-btn:hover {
  background: #b91c1c;
  box-shadow: 0 0 12px rgba(220,38,38,0.3);
}
.admin-veto-controls .green-btn {
  width: 100%; height: 32px;
  background: #007315; color: #BEBEBE;
  border: none; border-radius: 4px;
  font-size: 9px; font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
}
.admin-veto-controls .green-btn:hover {
  background: #007315;
  box-shadow: 0 0 12px rgba(0,115,21,0.3);
}
.admin-veto-info {
  padding: 8px;
  background: #070707;
  border-radius: 4px;
  line-height: 1.6;
  font-family: var(--font-display);
  font-size: 9px; color: #424242;
}

.map-preview { height: 64px; border-radius: 6px; border: 1px solid #424242; }
.map1 { background: linear-gradient(135deg, #8d5b5e 0%, #6b3e42 100%); }
.map2 { background: linear-gradient(135deg, #7a7a38 0%, #5a5a28 100%); }
.map3 { background: linear-gradient(135deg, #6d8f4e 0%, #4d6f3e 100%); }
.map4 { background: linear-gradient(135deg, #d76869 0%, #b74849 100%); }
.map5 { background: linear-gradient(135deg, #4f7a99 0%, #3f5a79 100%); }
.map6 { background: linear-gradient(135deg, #6c2b79 0%, #4c1b59 100%); }
.map7 { background: linear-gradient(135deg, #7a0f28 0%, #5a0f18 100%); }

/* Hide maps when final map selected */
.maps-panel .final-map-cinematic { display: none; }
.maps-panel.final-map-mode .maps-grid { display: none; }
.maps-panel.final-map-mode .final-map-cinematic { display: flex; }

.rules { padding: 0; }
.rules p {
  margin-bottom: 10px;
  font-size: 9px; font-weight: 400;
  color: #424242; line-height: 1.5;
  font-family: var(--font-display);
}
.rules p:last-child { margin-bottom: 0; }

.admin-veto-controls {
  display: flex; gap: 6px; align-items: center;
}
.admin-veto-controls select {
  flex: 1; height: 32px; padding: 0 8px;
  background: #070707;
  border: 1px solid #424242;
  border-radius: 4px;
  font-size: 10px; color: #BEBEBE;
  outline: none;
  font-family: var(--font-display);
}
.admin-veto-controls select:focus { border-color: #007315; }
.admin-veto-controls .ban-btn {
  padding: 0 12px; height: 32px;
  background: #dc2626; color: #BEBEBE;
  border: none; border-radius: 4px;
  font-size: 9px; font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
}
.admin-veto-controls .ban-btn:hover {
  background: #b91c1c;
  box-shadow: 0 0 12px rgba(220,38,38,0.3);
}
.admin-veto-controls .green-btn {
  width: 100%; height: 32px;
  background: #007315; color: #BEBEBE;
  border: none; border-radius: 4px;
  font-size: 9px; font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all 0.2s;
}
.admin-veto-controls .green-btn:hover {
  background: #007315;
  box-shadow: 0 0 12px rgba(0,115,21,0.3);
}
.admin-veto-info {
  padding: 8px;
  background: #070707;
  border-radius: 4px;
  line-height: 1.6;
  font-family: var(--font-display);
  font-size: 9px; color: #424242;
}

.map-preview { height: 64px; border-radius: 6px; border: 1px solid #424242; }
.map1 { background: linear-gradient(135deg, #8d5b5e 0%, #6b3e42 100%); }
.map2 { background: linear-gradient(135deg, #7a7a38 0%, #5a5a28 100%); }
.map3 { background: linear-gradient(135deg, #6d8f4e 0%, #4d6f3e 100%); }
.map4 { background: linear-gradient(135deg, #d76869 0%, #b74849 100%); }
.map5 { background: linear-gradient(135deg, #4f7a99 0%, #3f5a79 100%); }
.map6 { background: linear-gradient(135deg, #6c2b79 0%, #4c1b59 100%); }
.map7 { background: linear-gradient(135deg, #7a0f28 0%, #5a0f18 100%); }

/* Hide maps when final map selected */
.maps-panel .final-map-cinematic { display: none; }
.maps-panel.final-map-mode .maps-grid { display: none; }
.maps-panel.final-map-mode .final-map-cinematic { display: flex; }

/* League layout: footer at bottom of viewport, full width */
body.league-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.league-body > header {
  flex-shrink: 0;
}
body.league-body > main {
  flex: 1 0 auto;
  width: 100%;
}
/* Подвал как на /league/ (главная лига) */
body.league-body > footer.league-home-footer {
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
}
.league-home-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 20px 36px;
  background: rgba(3, 3, 3, 0.9);
}
.league-home-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.league-home-footer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.league-home-footer__logo img {
  height: 24px;
  width: auto;
  opacity: 0.9;
}
.league-home-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  justify-content: center;
  flex: 1;
}
.league-home-footer__nav a {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}
.league-home-footer__nav a:visited {
  color: rgba(255, 255, 255, 0.4);
}
.league-home-footer__nav a:hover {
  color: #007315;
}
.league-home-footer__soc {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}
.league-home-footer__soc a {
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  transition: color 0.2s;
}
.league-home-footer__soc a:hover {
  color: #007315;
}

/* ——— Завершённый матч: итог и счёт ——— */
.panel--match-done {
  border-color: rgba(0, 115, 21, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 115, 21, 0.12);
}
.versus-block--finished {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(12px, 3vw, 28px);
  min-height: 180px;
  padding: 22px clamp(12px, 3vw, 28px);
}
.mr-finish-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid #424242;
  background: rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.mr-finish-side--winner {
  border-color: #007315;
  box-shadow: 0 0 24px rgba(0, 115, 21, 0.2), inset 0 0 40px rgba(0, 115, 21, 0.06);
}
.mr-finish-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid rgba(0, 115, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(0, 115, 21, 0.06);
  overflow: hidden;
}
.mr-finish-logo img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}
.mr-finish-name {
  font-family: var(--font-display);
  font-size: clamp(11px, 1.8vw, 14px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #BEBEBE;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 100%;
  word-break: break-word;
}
.mr-finish-side:not(.mr-finish-side--winner) .mr-finish-name {
  color: #424242;
}
.mr-finish-score-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #424242;
}
.mr-finish-side--winner .mr-finish-score-big {
  color: #007315;
  text-shadow: 0 0 20px rgba(0, 115, 21, 0.35);
}
.mr-finish-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: min(100%, 200px);
  padding: 8px 6px;
}
.mr-finish-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 115, 21, 0.2);
  border: 1px solid #007315;
  color: #007315;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.mr-finish-scoreline {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1;
  color: #BEBEBE;
  letter-spacing: 0.02em;
}
.mr-finish-colon {
  color: #424242;
  font-weight: 400;
  padding: 0 4px;
}
.mr-finish-winner-line {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #424242;
  max-width: 22ch;
}
.mr-finish-winner-line strong {
  color: #BEBEBE;
  font-weight: 400;
}
.mr-finish-meta {
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #424242;
  font-family: var(--font-display);
}
@media (max-width: 640px) {
  .versus-block--finished {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .mr-finish-center { order: -1; padding-bottom: 6px; }
}

.maps-panel--post-match .panel-title {
  color: #007315;
}
.final-map-cinematic--done {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 115, 21, 0.25);
  animation: none;
}
.final-map-cinematic--done .final-map-card {
  animation: none;
  box-shadow: 0 0 28px rgba(0, 115, 21, 0.25), inset 0 0 50px rgba(0, 0, 0, 0.35);
}
.final-map-cinematic--done .final-map-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.final-map-score-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 12px 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid #007315;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: 0.08em;
  color: #BEBEBE;
  text-shadow: 0 0 16px rgba(0, 115, 21, 0.5);
}
.final-map-status--done {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #BEBEBE;
  animation: none;
  background: rgba(0, 115, 21, 0.12);
  border: 1px solid rgba(0, 115, 21, 0.35);
  padding: 12px 20px;
  border-radius: 6px;
}
.final-map-winner-name {
  color: #007315;
}
.final-map-subline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #424242;
}
.final-map-subline strong {
  color: #BEBEBE;
  font-weight: 400;
}
.connect-server-btn--ghost {
  background: transparent;
  border: 2px solid #007315;
  color: #007315;
  box-shadow: none;
}
.connect-server-btn--ghost:hover {
  background: rgba(0, 115, 21, 0.12);
  color: #BEBEBE;
  border-color: #007315;
  transform: translateY(-2px);
}

.final-map-connect-actions {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 20px;
}
.final-map-connect-actions .green-btn,
.final-map-connect-actions .dark-btn {
  margin-top: 0;
}

/* Toast — комната матча (копирование и т.д.) */
.mr-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(120%);
  z-index: 10050;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  text-align: center;
  color: #BEBEBE;
  background: rgba(8, 10, 8, 0.94);
  border: 1px solid rgba(0, 115, 21, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}
/* Нижний toast: не трогаем компактный (он по центру экрана) */
.mr-toast.mr-toast--show:not(.mr-toast--compact) {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mr-toast.mr-toast--error {
  border-color: rgba(244, 63, 94, 0.55);
  color: #fecaca;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 63, 94, 0.12);
}
/* Компактное уведомление (копирование IP) — строго по центру вьюпорта */
.mr-toast.mr-toast--compact {
  bottom: auto !important;
  top: 50% !important;
  left: 50% !important;
  right: auto;
  max-width: min(300px, calc(100vw - 40px));
  padding: 9px 16px;
  font-size: 9px;
  letter-spacing: 0.11em;
  border-radius: 8px;
  line-height: 1.35;
  transform: translate(-50%, calc(-50% + 10px)) scale(0.97);
  opacity: 0;
}
.mr-toast.mr-toast--compact.mr-toast--show {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
}

/* Модалка: сообщение администратору / проблема */
.mr-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.mr-report-overlay[hidden] {
  display: none !important;
}
.mr-report-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 22px 20px 18px;
  border-radius: 12px;
  background: linear-gradient(165deg, #121212 0%, #0a0a0a 100%);
  border: 1px solid rgba(0, 115, 21, 0.45);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
}
.mr-report-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BEBEBE;
  margin: 0 0 16px;
  padding-right: 28px;
  line-height: 1.35;
}
.mr-report-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.mr-report-close:hover {
  color: #BEBEBE;
  background: rgba(255, 255, 255, 0.06);
}
.mr-report-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.mr-report-select,
.mr-report-textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #424242;
  border-radius: 8px;
  background: #111;
  color: #eee;
  font-size: 13px;
  font-family: inherit;
}
.mr-report-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
}
.mr-report-modal .green-btn {
  width: 100%;
  margin-top: 4px;
}

/* BO3: три карты серии */
.bo3-final-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}
.bo3-final-card {
  flex: 1 1 140px;
  max-width: 220px;
  border: 1px solid rgba(0, 115, 21, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: #070707;
}
.bo3-final-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.bo3-final-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #007315;
  padding: 8px 10px 2px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.bo3-final-name {
  font-size: 11px;
  padding: 0 10px 10px;
  color: #BEBEBE;
  font-family: var(--font-display);
}
.bo3-side-pick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 10px 12px;
  justify-content: center;
}
.bo3-side-btn {
  flex: 1 1 100px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #007315;
  background: rgba(0, 115, 21, 0.2);
  color: #BEBEBE;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  cursor: pointer;
}
.bo3-side-btn:hover {
  background: rgba(0, 115, 21, 0.45);
}
.map-card.bo3-map .map-status {
  background: rgba(0, 115, 21, 0.85);
}

/* Типографика: длинные тексты и формы — Inter */
body.league-body main .chat-panel,
body.league-body main .chat-panel *,
body.league-body main .rules,
body.league-body main .rules *,
body.league-body main .match-info .info-block,
body.league-body main .player-name-link,
body.league-body main input[type="text"],
body.league-body main input[type="number"],
body.league-body main textarea,
body.league-body main select,
body.league-body .prof-card,
body.league-body .prof-card p,
body.league-body .prof-card li,
body.league-body .prof-input,
body.league-body .prof-form-label,
body.league-body .prof-empty,
body.league-body .prof-tabs a,
body.league-body .league-home-footer,
body.league-body .league-home-footer a,
body.league-body .mr-report-modal,
body.league-body .mr-report-modal .mr-report-label,
body.league-body .mr-report-modal .mr-report-textarea,
body.league-body .mr-report-modal .mr-report-select,
body.league-body .messages,
body.league-body .pp-stats,
body.league-body .pp-head .player-name-link {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

body.league-body main .chat-time,
body.league-body main .chat-sender {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
