/* ==========================================================================
   DARACYBER ESPORTS — MK1 TOURNAMENT STYLES (RESPONSIVE & TV OPTIMIZED)
   ========================================================================== */

:root {
  --bg-main: #0c0d0e;
  --bg-card: #141618;
  --bg-card-hover: #1b1e22;
  --bg-surface-elevated: #20242a;
  
  --accent-primary: #f59e0b;
  --accent-primary-hover: #d97706;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;

  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border-subtle: #23272e;
  --border-card: #282d35;
  --border-hover: #404754;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --transition: all 0.2s ease;
}

/* Сброс стилей */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Широкие рамки контейнера для заполнения мониторов и ТВ без пустоты по краям */
.section-container {
  max-width: 98vw;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   ХЕДЕР
   ========================================================================== */
:root {
  --poster-width: min(calc((100vh - 95px) * 9 / 16), 92vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 14, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  box-sizing: border-box;
}

body.view-tournament .header-inner,
body.view-admin .header-inner {
  max-width: 1720px;
  padding: 0 32px;
}

/* Левая часть: Выплывающее меню турнира */
.header-left-menu {
  display: flex;
  align-items: center;
  justify-self: start;
  margin: 0;
  z-index: 10;
}

.tourney-dropdown-wrapper {
  position: relative;
}

.tourney-dropdown-btn {
  background: rgba(20, 22, 24, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: animDropdownBtnEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}

@keyframes animDropdownBtnEntrance {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.tourney-dropdown-btn:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(26, 29, 33, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.tourney-dropdown-wrapper.open .tourney-dropdown-btn {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.35);
}

.dropdown-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 13px;
}

.dropdown-trigger-text {
  letter-spacing: 0.8px;
}

.dropdown-trigger-arrow,
.dropdown-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  margin-left: 2px;
}

.tourney-dropdown-btn:hover .dropdown-trigger-arrow,
.tourney-dropdown-btn:hover .dropdown-arrow,
.tourney-dropdown-wrapper.open .dropdown-trigger-arrow,
.tourney-dropdown-wrapper.open .dropdown-arrow {
  color: #f59e0b;
}

.tourney-dropdown-wrapper.open .dropdown-trigger-arrow,
.tourney-dropdown-wrapper.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Выплывающая панель */
.tourney-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  width: 310px;
  background: rgba(14, 16, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15);
  padding: 14px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
}

.tourney-dropdown-wrapper.open .tourney-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-title,
.dropdown-header-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-badge {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.5px;
}

.dropdown-items-list,
.dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(3px);
}

.dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.icon-bracket {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dropdown-item.item-bracket:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(20, 22, 24, 0.9) 100%);
}

.icon-players {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.dropdown-item.item-players:hover {
  border-color: #06b6d4;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(20, 22, 24, 0.9) 100%);
}

.icon-tg {
  background: rgba(0, 136, 204, 0.15);
  color: #29b6f6;
  border: 1px solid rgba(0, 136, 204, 0.35);
}

.dropdown-item.item-tg:hover {
  border-color: #0088cc;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.15) 0%, rgba(20, 22, 24, 0.9) 100%);
}

.icon-rules {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.dropdown-item.item-rules:hover {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(20, 22, 24, 0.9) 100%);
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.dropdown-item-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.dropdown-item-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-ext-icon {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover .dropdown-ext-icon {
  color: #29b6f6;
  transform: translateX(1px);
}

.dropdown-socials-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-socials-label {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dropdown-socials-links {
  display: flex;
  gap: 8px;
}

.dropdown-soc-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-soc-link:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}

.dropdown-footer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Центр: Логотип DARACYBER строго по центру */
.header-center-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  z-index: 5;
  pointer-events: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-emblem {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-primary);
  text-transform: uppercase;
}

/* Правая часть: Кнопка REGISTRATION и соцсети */
.header-right-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  margin: 0;
  z-index: 10;
}

.header-socials-divider {
  display: none;
}

.header-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Кнопка REGISTRATION в шапке */
.header-reg-btn {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.22) 0%, rgba(18, 21, 25, 0.9) 100%);
  border: 1px solid rgba(41, 182, 246, 0.45);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(41, 182, 246, 0.12);
  animation: animRegBtnEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}

.header-reg-btn i {
  color: #29b6f6;
  font-size: 12.5px;
  transition: transform 0.25s ease;
}

.header-reg-btn:hover {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.4) 0%, rgba(22, 27, 34, 0.96) 100%);
  border-color: #29b6f6;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(41, 182, 246, 0.4), 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

.header-reg-btn:hover i {
  transform: translateX(2px) scale(1.08);
}

@keyframes animRegBtnEntrance {
  0% {
    opacity: 0;
    transform: translateX(12px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.social-link {
  color: var(--text-secondary);
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-1px);
}

/* Адаптивность шапки для средних и узких экранов десктопа (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .tourney-dropdown-btn {
    padding: 7px 12px;
    font-size: 11.5px;
    gap: 6px;
  }
  .header-reg-btn {
    padding: 7px 12px;
    font-size: 11px;
    gap: 6px;
  }
  .brand-logo {
    gap: 9px;
  }
  .brand-emblem {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 15px;
    letter-spacing: 0.9px;
  }
  .brand-tag {
    font-size: 7.5px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 860px) and (min-width: 769px) {
  .brand-tag {
    display: none;
  }
  .header-soc-desktop {
    display: none;
  }
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-reg-btn {
    padding: 6px 10px;
    font-size: 10.5px;
  }
}

/* Адаптивность шапки для мобильных устройств: логотип слева, боковые кнопки вертикальным списком справа */
@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: 64px;
  }
  .header-inner,
  body.view-tournament .header-inner,
  body.view-admin .header-inner {
    width: 100%;
    max-width: 100%;
    padding: 6px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    height: auto;
    position: relative;
    box-sizing: border-box;
  }

  /* Логотип строго слева, никогда не перекрывается кнопками */
  .header-center-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: static;
    transform: none;
    justify-self: start;
    z-index: 5;
    margin: 0;
  }
  .brand-logo {
    gap: 8px;
  }
  .brand-emblem {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 14px;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }
  .brand-tag {
    font-size: 6.5px;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  /* Боковые кнопки: вертикальный аккуратный список справа */
  .header-left-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    margin: 0;
    z-index: 15;
  }
  .header-right-socials {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    margin: 0;
    z-index: 10;
  }
  .header-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }
  .tourney-dropdown-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
  }

  /* Кнопки списка: одинаковый аккуратный размер и выравнивание */
  .tourney-dropdown-btn,
  .header-reg-btn {
    width: 130px;
    height: 26px;
    padding: 0 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: var(--radius-sm);
  }
  .tourney-dropdown-btn {
    gap: 6px;
  }
  .header-reg-btn {
    gap: 6px;
  }

  .header-soc-desktop {
    display: none !important;
  }
  .header-socials-divider {
    display: none !important;
  }

  /* Выпадающее меню турнира: раскрывается строго под кнопкой */
  .tourney-dropdown-panel {
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    width: min(calc(100vw - 24px), 320px);
    max-width: 320px;
    transform: translateY(-8px) scale(0.97);
  }
  .tourney-dropdown-wrapper.open .tourney-dropdown-panel {
    transform: translateY(0) scale(1);
  }
}

/* Компактный режим на экранах до 360px */
@media (max-width: 360px) {
  .text-long { display: none !important; }
  .text-short { display: inline !important; }
  .reg-text-long { display: none !important; }
  .reg-text-short { display: inline !important; }
  .brand-tag { display: none !important; }
  .brand-name { font-size: 13px !important; }
  .tourney-dropdown-btn,
  .header-reg-btn {
    width: 100px;
    height: 25px;
    padding: 0 6px !important;
    font-size: 10px !important;
    gap: 4px;
  }
}

@media (min-width: 361px) {
  .text-short { display: none !important; }
  .reg-text-short { display: none !important; }
}

/* Кнопки */
.btn-ghost-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost-sm:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.btn-danger-sm {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-danger-sm:hover {
  background: var(--accent-red);
  color: #fff;
}

.btn-action-primary {
  background: #ffffff;
  color: #0c0d0e;
  border: 1px solid #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action-primary:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
}

.btn-action-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* ==========================================================================
   СТРАНИЦЫ И ВКЛАДКИ
   ========================================================================== */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА: ПОСТЕР НА ВСЮ СТРАНИЦУ И КНОПКИ СБОКУ
   ========================================================================== */
.home-poster-viewport {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.16) 0%, rgba(239, 68, 68, 0.08) 35%, rgba(12, 13, 14, 0) 75%),
              linear-gradient(180deg, #111316 0%, #0c0d0e 100%);
  overflow: hidden;
  padding: 14px 20px;
  box-sizing: border-box;
}

.home-poster-content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mobile-poster-cta-wrapper {
  display: none;
}

@media (max-width: 768px) {
  .home-poster-viewport {
    height: calc(100vh - 60px);
    min-height: calc(100vh - 60px);
    padding: 8px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }
}

.pulse-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.8s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.text-gold { color: #f59e0b; }
.text-cyan { color: #06b6d4; }
.text-red { color: #ef4444; }

/* ==========================================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (1. ПОСТЕР -> 2. ШАПКА -> 3. КНОПКИ)
   ========================================================================== */
.site-header-animated {
  animation: animHeaderEntrance 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
}

@keyframes animHeaderEntrance {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Боковая панель с кнопками */
.home-side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(20, 22, 24, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 10;
  width: 100%;
  max-width: 320px;
  justify-self: center;
  animation: animSidePanelEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}

@keyframes animSidePanelEntrance {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.side-panel-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Кнопки сбоку */
.home-side-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-side-buttons-stack .btn-side-nav {
  animation: animButtonSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.home-side-buttons-stack .btn-side-nav:nth-child(1) { animation-delay: 1.2s; }
.home-side-buttons-stack .btn-side-nav:nth-child(2) { animation-delay: 1.35s; }
.home-side-buttons-stack .btn-side-nav:nth-child(3) { animation-delay: 1.5s; }
.home-side-buttons-stack .btn-side-nav:nth-child(4) { animation-delay: 1.65s; }

@keyframes animButtonSlide {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-side-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-side-nav:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.side-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.side-btn-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.side-btn-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.side-btn-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-btn-chevron {
  color: var(--text-muted);
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.btn-side-nav:hover .side-btn-chevron {
  transform: translateX(3px);
  color: var(--accent-primary);
}

/* Цвета кнопок сбоку */
.btn-side-bracket {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 22, 24, 0.95) 100%);
}

.btn-side-bracket .side-btn-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-side-bracket:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(27, 30, 34, 1) 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-side-players .side-btn-icon {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-side-players:hover {
  border-color: #06b6d4;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}

.btn-side-tg {
  border-color: rgba(0, 136, 204, 0.4);
}

.btn-side-tg .side-btn-icon {
  background: rgba(0, 136, 204, 0.2);
  color: #29b6f6;
  border: 1px solid rgba(0, 136, 204, 0.4);
}

.btn-side-tg:hover {
  border-color: #0088cc;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.25);
}

.btn-side-rules .side-btn-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-side-rules:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

.side-panel-footer {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Область постера на всю страницу */
.home-full-poster-card {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  animation: animPosterEntrance 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  will-change: transform, opacity, filter;
}

@keyframes animPosterEntrance {
  0% {
    opacity: 0;
    transform: scale(0.975) translateY(12px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.poster-fullscreen-wrapper {
  position: relative;
  height: 100%;
  max-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
}

.poster-glow-backdrop {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.28) 0%, rgba(239, 68, 68, 0.16) 45%, transparent 75%);
  filter: blur(28px);
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  animation: animGlowEntrance 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  will-change: opacity, transform;
}

@keyframes animGlowEntrance {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
}

.poster-card-frame {
  position: relative;
  z-index: 2;
  height: 100%;
  max-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #090a0c;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  width: fit-content;
}

.poster-card-frame:hover {
  transform: scale(1.01);
  border-color: rgba(245, 158, 11, 0.85);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.35);
}

.poster-card-frame:hover .poster-overlay-hint {
  opacity: 1;
}

.poster-tag-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: rgba(12, 13, 14, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.poster-fullscreen-img {
  display: block;
  max-height: calc(100vh - 95px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  background: #08090b;
}

@media (max-width: 768px) {
  .home-poster-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
  }

  .home-full-poster-card {
    height: auto;
    max-height: calc(100vh - 138px);
    max-width: calc(100vw - 24px);
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 1;
    margin: 0 auto;
  }

  .poster-fullscreen-wrapper,
  .poster-card-frame {
    height: auto;
    max-height: calc(100vh - 138px);
    max-width: calc(100vw - 24px);
  }

  .poster-fullscreen-img {
    max-height: calc(100vh - 142px);
    max-width: calc(100vw - 28px);
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .mobile-poster-cta-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--poster-width, calc(100vw - 24px));
    margin-top: 10px;
    flex-shrink: 0;
    z-index: 20;
    position: relative;
    box-sizing: border-box;
    animation: animCtaEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  .mobile-reg-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0088cc 0%, #006090 55%, #121519 100%);
    border: 1.5px solid rgba(41, 182, 246, 0.8);
    border-radius: var(--radius-md);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 136, 204, 0.4), 0 0 14px rgba(41, 182, 246, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-reg-cta-btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 12px rgba(0, 136, 204, 0.5);
  }

  .mobile-reg-cta-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    animation: ctaShine 3.5s infinite ease-in-out;
    pointer-events: none;
  }

  .reg-cta-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
    flex-shrink: 0;
  }

  .reg-cta-text {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    flex-grow: 1;
    text-align: center;
  }

  .reg-cta-arrow {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }
}

@keyframes ctaShine {
  0% { left: -60%; opacity: 0; }
  15% { opacity: 1; }
  35% { left: 140%; opacity: 0; }
  100% { left: 140%; opacity: 0; }
}

@keyframes animCtaEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.poster-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.poster-overlay-hint i {
  color: #f59e0b;
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Отключение анимаций после вступительного показа */
body.intro-played .site-header-animated,
body.intro-played .tourney-dropdown-btn,
body.intro-played .header-reg-btn,
body.intro-played .home-full-poster-card,
body.intro-played .poster-glow-backdrop,
body.intro-played .mobile-poster-cta-wrapper,
body.intro-played .home-side-panel,
body.intro-played .home-side-buttons-stack .btn-side-nav {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Вкладки на странице турнира */
.tourney-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.tourney-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tourney-nav-tab:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.tourney-nav-tab.active {
  background: var(--accent-primary);
  color: #0c0d0e;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Модальное окно просмотра постера */
.poster-modal-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #090a0c;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.poster-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.poster-modal-close:hover {
  background: rgba(239, 68, 68, 0.8);
}

.poster-modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.poster-modal-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   БАННЕР ТУРНИРА
   ========================================================================== */
.tournament-header-banner {
  background: #0f1113;
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
  margin-bottom: 18px;
}

.detail-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.status-chip {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.chip-live {
  background: var(--accent-red);
  color: #fff;
}

.chip-game {
  background: #22272e;
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.chip-format {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-primary);
}

.detail-main-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.detail-info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.dot-sep {
  color: var(--text-muted);
}

.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tourney-content-wrapper {
  padding-bottom: 50px;
}

.bracket-info-alert {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.alert-icon {
  font-size: 16px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   ТУРНИРНАЯ СЕТКА (ШИРОКАЯ, БЕЗ СКРОЛЛА НА ДЕСКТОПЕ/ТВ)
   ========================================================================== */
.bracket-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  width: 100%;
}

.bracket-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.bracket-title-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bracket-title-flex h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.bracket-format-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  background: #101214;
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* Мобильная навигация по раундам (скрыта на больших экранах, видна на мобильных) */
.mobile-round-nav {
  display: none;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.mobile-round-nav::-webkit-scrollbar {
  display: none;
}

.round-nav-pill {
  background: #181b20;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.round-nav-pill:hover,
.round-nav-pill.active {
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
  font-weight: 800;
}

/* Контейнер сетки — расширен на 100% ширины */
.bracket-scroll-container {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Дерево сетки: на Desktop/ТВ тянется на всю ширину без жесткого min-width */
.bracket-tree {
  display: flex;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.losers-tree {
  display: flex;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

/* Колонки раундов: сжимаются/растягиваются адаптивно */
.round-column {
  flex: 1 1 0;
  min-width: 175px;
  display: flex;
  flex-direction: column;
}

.round-heading {
  background: #111316;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bo-chip {
  background: #23272e;
  color: var(--text-secondary);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 800;
  flex-shrink: 0;
}

.matches-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex-grow: 1;
  gap: 8px;
}

/* Карточки матчей */
.match-card {
  background: #181b20;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  transition: var(--transition);
  position: relative;
}

.match-card:hover {
  border-color: var(--border-hover);
  background: #1e2228;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.match-status-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  background: #101214;
  color: var(--text-muted);
  white-space: nowrap;
}

.match-status-badge.live {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.match-status-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.player-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101215;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-bottom: 3px;
  gap: 6px;
}

.player-slot:last-child {
  margin-bottom: 0;
}

.player-slot.winner {
  background: #15241f;
  border-color: rgba(16, 185, 129, 0.4);
}

.player-slot.winner .player-name {
  color: #34d399;
  font-weight: 800;
}

.player-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
}

.player-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-nick {
  font-size: 9px;
  color: var(--accent-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  min-width: 16px;
  text-align: right;
  flex-shrink: 0;
}

/* Гранд-Финал */
.grand-finals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grand-match-box {
  background: #111316;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
}

.reset-explain-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.bronze-column {
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: rgba(245, 158, 11, 0.02);
}

.bronze-heading {
  background: #1e1a14 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
}

.match-status-badge.bronze-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Пьедестал */
.podium-standings-block {
  margin-top: 10px;
}

.podium-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.podium-card {
  background: #111316;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.podium-card:hover {
  border-color: var(--border-hover);
  background: #181b20;
}

.podium-medal {
  font-size: 26px;
  flex-shrink: 0;
}

.podium-info {
  display: flex;
  flex-direction: column;
}

.podium-rank {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.podium-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.podium-first {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.podium-second {
  border-color: rgba(209, 213, 219, 0.3);
  background: rgba(209, 213, 219, 0.03);
}

.podium-third {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.04);
}

/* ==========================================================================
   УЧАСТНИКИ
   ========================================================================== */
.participants-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--border-hover);
}

.filter-buttons-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #fff;
}

.filter-btn.active {
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
  font-weight: 800;
}

.participants-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.participant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.participant-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.participant-avatar-glyph {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #1e2228;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.participant-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-grow: 1;
}

.p-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.p-nick {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
}

.p-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-badge-confirmed {
  color: var(--accent-green);
  font-weight: 700;
}

.status-badge-pending {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   РЕГЛАМЕНТ
   ========================================================================== */
.rules-paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.rules-header i {
  font-size: 18px;
  color: var(--text-muted);
}

.rules-header h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.rules-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ==========================================================================
   АДМИН-ПАНЕЛЬ (/admin) — СТРУКТУРИРОВАННОЕ УПРАВЛЕНИЕ МАТЧАМИ
   ========================================================================== */
.admin-login-box {
  max-width: 400px;
  margin: 50px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.admin-login-shield {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #1e2228;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.admin-login-box h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.admin-login-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.passcode-input-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.input-with-icon input {
  width: 100%;
  background: #101214;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 15px;
  padding: 11px 14px 11px 38px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-display);
  letter-spacing: 2px;
  text-align: center;
}

.input-with-icon input:focus {
  border-color: var(--border-hover);
}

.auth-error-msg {
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
}

.w-100 {
  width: 100%;
}

.admin-dashboard-box {
  padding: 20px 0 50px;
}

.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-title i {
  font-size: 22px;
  color: var(--text-muted);
}

.dash-title h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.dash-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-quick-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.control-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.control-card h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.control-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Импорт игроков */
.admin-import-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.import-card {
  margin-top: 12px;
}

.import-format-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.import-format-hint i {
  color: var(--accent-primary);
  font-size: 14px;
  flex-shrink: 0;
}

.import-format-hint code {
  background: #23272e;
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.import-textarea {
  width: 100%;
  background: #101214;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-main);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  line-height: 1.6;
  min-height: 140px;
}

.import-textarea:focus {
  border-color: var(--border-hover);
}

.import-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.import-result-msg {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.import-result-msg.success {
  color: var(--accent-green);
}

.import-result-msg.error {
  color: #f87171;
}

/* Раздел матчей в админке: структурирован по сетке */
.admin-matches-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-section-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.badge-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* Фильтры категорий матчей в админке */
.admin-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-filter-pill {
  background: #181b20;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.admin-filter-pill:hover {
  color: #fff;
  border-color: var(--border-hover);
}

.admin-filter-pill.active {
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
  font-weight: 800;
}

/* Блоки категорий сетки в админке */
.admin-bracket-group {
  margin-bottom: 22px;
  background: #111316;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.admin-block-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.group-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.group-title-left h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.text-gold {
  color: var(--accent-primary);
}

.text-red {
  color: var(--accent-red);
}

.admin-block-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: #181b20;
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.admin-matches-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 8px;
}

/* Карточка матча в админке */
.admin-match-row {
  background: #181b20;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-match-row:hover {
  border-color: var(--border-hover);
  background: #20242a;
  transform: translateY(-1px);
}

.admin-match-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
}

.am-id {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent-primary);
  font-size: 12px;
}

.am-stage {
  color: var(--text-secondary);
  font-size: 11px;
}

.am-status {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 2px;
}

.badge-live {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.badge-completed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.badge-pending {
  background: #22262c;
  color: var(--text-muted);
}

.badge-not_needed {
  background: #1c1e22;
  color: var(--text-muted);
}

.admin-match-players-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.am-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101215;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  gap: 6px;
}

.am-player.win {
  background: #15241f;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.am-player.win .am-name {
  color: #34d399;
  font-weight: 800;
}

.am-name {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.am-nick {
  font-size: 10px;
  color: var(--accent-primary);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.admin-match-action-hint {
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #16181c;
  border: 1px solid var(--border-card);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-flex h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.modal-round-tag {
  font-size: 10px;
  color: var(--text-muted);
  background: #22262c;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body-content {
  padding: 18px;
}

.players-editor-grid {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.player-edit-card {
  background: #111316;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-card-tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.form-group label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-control {
  background: #181b20;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-main);
  font-size: 12px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  outline: none;
}

.form-control:focus {
  border-color: var(--border-hover);
}

.vs-center-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--text-muted);
  background: #1e2228;
  border: 1px solid var(--border-subtle);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181b20;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.btn-step {
  width: 22px;
  height: 22px;
  background: #23272e;
  border: none;
  color: #fff;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-step:hover {
  background: #323842;
}

.step-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.btn-win-select {
  background: #22262c;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-win-select:hover {
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
}

.status-select-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111316;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.status-select-bar label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.modal-footer-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #111316;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.site-footer {
  background: #090a0b;
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.footer-inner {
  max-width: 98vw;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-sub {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.hidden {
  display: none !important;
}

/* Режим Сцены (Трансляции / TV Mode) */
body.stage-mode .site-header,
body.stage-mode .site-footer,
body.stage-mode .bracket-info-alert {
  display: none !important;
}

body.stage-mode .tournament-header-banner {
  padding: 10px 0;
  background: transparent;
  border-bottom: none;
}

body.stage-mode .section-container {
  max-width: 100vw;
  padding: 0 10px;
}

.stage-floating-bar {
  display: none;
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 99999;
}

body.stage-mode .stage-floating-bar {
  display: block;
}

.btn-exit-stage {
  background: rgba(20, 22, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  opacity: 0.75;
  transition: all 0.2s ease;
}

.btn-exit-stage:hover {
  opacity: 1;
  background: #ffffff;
  color: #0c0d0e;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   АДАПТИВНОСТЬ: ТЕЛЕВИЗОРЫ, 4K, ДЕСКТОПЫ, ПЛАНШЕТЫ, МОБИЛЬНЫЕ
   ========================================================================== */

/* 1. БОЛЬШИЕ ЭКРАНЫ И ТЕЛЕВИЗОРЫ (4K, 1440p, TV 50"+) */
@media (min-width: 1921px) {
  .section-container {
    max-width: 98vw;
    padding: 0 32px;
  }
  .detail-main-title {
    font-size: 32px;
  }
  .brand-name {
    font-size: 20px;
  }
  .round-heading {
    font-size: 13px;
    padding: 8px 12px;
  }
  .player-name {
    font-size: 13px;
  }
  .player-nick {
    font-size: 11px;
  }
  .player-score {
    font-size: 15px;
    min-width: 22px;
  }
  .match-card {
    padding: 10px 12px;
  }
  .admin-matches-container {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}

/* 2. СРЕДНИЕ ЭКРАНЫ И ПЛАНШЕТЫ (< 1200px) */
@media (max-width: 1199px) {
  .mobile-round-nav {
    display: flex;
  }
  .bracket-scroll-container {
    scroll-snap-type: x mandatory;
  }
  .round-column {
    min-width: 240px;
    scroll-snap-align: start;
  }
  .admin-quick-controls {
    grid-template-columns: 1fr;
  }
}

/* 3. ПЛАНШЕТЫ И СМАРТФОНЫ (< 900px) */
@media (max-width: 900px) {
  .podium-showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grand-finals-grid {
    grid-template-columns: 1fr;
  }
  .admin-matches-container {
    grid-template-columns: 1fr;
  }
  .detail-main-title {
    font-size: 22px;
  }
}

/* 4. МОБИЛЬНЫЕ УСТРОЙСТВА (< 768px) */
@media (max-width: 768px) {
  .players-editor-grid {
    grid-template-columns: 1fr;
  }
  .vs-center-column {
    margin: 4px 0;
  }
  .section-container {
    padding: 0 12px;
  }
  .detail-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-header-actions {
    width: 100%;
  }
  .detail-header-actions a,
  .detail-header-actions button {
    flex: 1;
    font-size: 11px;
    padding: 8px 12px;
  }
  .admin-filter-pills {
    width: 100%;
  }
  .admin-filter-pill {
    flex: 1;
    text-align: center;
  }
}

/* 5. МАЛЕНЬКИЕ ЭКРАНЫ (< 480px) */
@media (max-width: 480px) {
  .podium-showcase-grid {
    grid-template-columns: 1fr;
  }
  .detail-main-title {
    font-size: 19px;
  }
  .round-column {
    min-width: 220px;
  }
}
