/* ============================================================
   lfld-v2.css — дополнения к style.css (v3.7)
   Полный файл со всеми накопленными блоками.
   Изменения v3.7:
     - Удалён блок «КЛУБЫ ФЕДЕРАЦИИ» (.clubs-grid, .club-mini,
       .sidebar-clubs-footer). Сайдбар теперь содержит только
       навигацию и список турниров.
   ============================================================ */

/* ============================================================
   0. САЙДБАР — единый блок без «КЛУБОВ ФЕДЕРАЦИИ»
   ============================================================ */
.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  padding: 20px 14px;
  flex-shrink: 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

.sidebar-tourneys {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ============================================================
   1. ЛОГОТИПЫ — БАЗОВЫЕ ПРАВИЛА (прозрачный фон)
   ============================================================ */
.logo-plashka {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: none;
  line-height: 0;
  box-sizing: border-box;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}
.logo-plashka > img,
.logo-plashka > span {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
  background: transparent;
}
.logo-plashka.size-xs  { width: 24px;  height: 24px;  padding: 0; }
.logo-plashka.size-sm  { width: 32px;  height: 32px;  padding: 0; }
.logo-plashka.size-md  { width: 48px;  height: 48px;  padding: 0; }
.logo-plashka.size-lg  { width: 64px;  height: 64px;  padding: 0; }
.logo-plashka.size-xl  { width: 80px;  height: 80px;  padding: 0; }
.logo-plashka.size-2xl { width: 104px; height: 104px; padding: 0; }

/* ============================================================
   2. СТРОГИЕ РАЗМЕРЫ ЭМБЛЕМ
   ============================================================ */
table img,
table .badge-icon,
table .logo-plashka,
table .logo-plashka img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 6px 0 0 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)) !important;
}
table .logo-plashka {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  box-shadow: none !important;
}
@media (min-width: 640px) {
  table img,
  table .badge-icon,
  table .logo-plashka,
  table .logo-plashka img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }
}

.club-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.club-link strong,
.club-link .club-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0 !important;
}

.lfld-card-team-logo {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
}
.lfld-card-team-logo img,
.lfld-card-team-logo .logo-plashka,
.lfld-card-team-logo .logo-plashka img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
@media (min-width: 640px) {
  .lfld-card-team-logo {
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; max-width: 40px !important;
    min-height: 40px !important; max-height: 40px !important;
  }
}

.home-match-card .hm-team-logo,
.home-match-card .hm-team-logo img,
.home-match-card .hm-team-logo .logo-plashka {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (min-width: 640px) {
  .home-match-card .hm-team-logo,
  .home-match-card .hm-team-logo img,
  .home-match-card .hm-team-logo .logo-plashka {
    width: 40px !important; height: 40px !important;
    min-width: 40px !important; max-width: 40px !important;
    min-height: 40px !important; max-height: 40px !important;
  }
}

.poster-team .logo-plashka,
.poster-team .logo-plashka img,
.poster-team img.badge-large {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (min-width: 640px) {
  .poster-team .logo-plashka,
  .poster-team .logo-plashka img,
  .poster-team img.badge-large {
    width: 80px !important; height: 80px !important;
    min-width: 80px !important; max-width: 80px !important;
    min-height: 80px !important; max-height: 80px !important;
  }
}

.award-pill img,
.award-pill .badge-icon,
.award-pill .logo-plashka,
.award-pill .logo-plashka img,
.assist-table-row-club img,
.assist-table-row-club .logo-plashka,
.assist-table-row-club .logo-plashka img {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.pc-photo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

#fedLogoDisplay .badge-icon,
#fedLogoDisplay img,
#fedLogoDisplay span {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ============================================================
   3. СИМВОЛИЧЕСКАЯ СБОРНАЯ ТУРА
   ============================================================ */
.sp-player {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, z-index 0.2s;
  z-index: 3;
  user-select: none;
}
.sp-player:hover {
  transform: translate(-50%, -50%) scale(1.08);
  z-index: 6;
}
.sp-shirt {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin: 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
  transition: filter 0.2s, transform 0.2s;
}
.sp-player:hover .sp-shirt {
  filter: drop-shadow(0 6px 16px rgba(245, 166, 35, 0.7))
          drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
  transform: scale(1.1);
}
.sp-shirt > img,
.sp-shirt .logo-plashka,
.sp-shirt .logo-plashka > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  filter: none !important;
}
.sp-shirt-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Russo One', var(--font-accent, sans-serif);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}
.sp-name {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  color: #fbbf24 !important;
  font-family: 'Russo One', var(--font-accent, sans-serif);
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(11, 17, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  display: inline-block;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95),
               0 0 8px rgba(0, 0, 0, 0.7);
}
.sp-pos {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #f5a623;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}
@media (min-width: 640px) {
  .sp-shirt {
    width: 56px; height: 56px;
    min-width: 56px; max-width: 56px;
    min-height: 56px; max-height: 56px;
  }
  .sp-name { font-size: 12px; padding: 4px 10px; margin-top: 6px; }
  .sp-pos { font-size: 10px; }
}

.symbolic-pitch-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
  width: 100%;
  overflow: hidden;
}
.symbolic-pitch {
  position: relative;
  width: 100%;
  max-width: min(460px, 100%);
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 40px, transparent 40px, transparent 80px),
    linear-gradient(180deg, #0e3d23 0%, #0b4d2a 50%, #0e3d23 100%);
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 0 80px rgba(0,0,0,0.4);
  touch-action: manipulation;
}

.symbolic-hint {
  margin: 0 0 16px;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ============================================================
   4. МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .sidebar-tourneys { overflow: visible; max-height: none; }
}

@media (max-width: 768px) {
  .welcome-hero {
    height: 260px !important;
    max-height: 280px !important;
    margin-bottom: 20px !important;
  }
  .welcome-arrow { width: 38px; height: 38px; font-size: 20px; }
  .welcome-arrow-prev { left: 8px; }
  .welcome-arrow-next { right: 8px; }
  .welcome-logo { width: 52px; height: 52px; margin-bottom: 12px; }
  .welcome-title { font-size: 18px !important; }
  .welcome-title span { font-size: 0.85em; }
  .welcome-subtitle { font-size: 10px !important; letter-spacing: 0.06em; }

  .home-content { padding: 0 12px 40px !important; }
  .home-section { margin-bottom: 26px; }
  .home-section-title { font-size: 13px; }
  .home-matches-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-match-card { padding: 12px 14px; }
  .home-match-card .hm-team-logo {
    width: 32px !important; height: 32px !important;
    min-width: 32px !important; max-width: 32px !important;
    min-height: 32px !important; max-height: 32px !important;
  }
  .home-match-card .hm-vs { font-size: 13px; padding: 3px 8px; }

  .symbolic-pitch {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
  }
  .symbolic-pitch-wrap { padding: 6px 0 18px; }
  .sp-shirt {
    width: 40px; height: 40px;
    min-width: 40px; max-width: 40px;
    min-height: 40px; max-height: 40px;
  }
  .sp-name { font-size: 10px; padding: 2px 7px; margin-top: 3px; }
  .sp-pos { font-size: 8px; margin-top: 2px; }
  .symbolic-hint { font-size: 10px; }

  .lfld-card-team-logo {
    width: 32px !important; height: 32px !important;
    min-width: 32px !important; max-width: 32px !important;
    min-height: 32px !important; max-height: 32px !important;
  }
  .lfld-card-team-name { font-size: 12px; }
  .lfld-card-score { font-size: 16px; padding: 5px 12px; min-width: 60px; }
  .lfld-match-card { padding: 12px 14px; }

  .poster-team .logo-plashka,
  .poster-team .logo-plashka img,
  .poster-team img.badge-large {
    width: 52px !important; height: 52px !important;
    min-width: 52px !important; max-width: 52px !important;
    min-height: 52px !important; max-height: 52px !important;
  }
  .poster-pill { padding: 12px 14px !important; gap: 8px !important; }
  .poster-team-name { font-size: 11px; }
  .poster-score { font-size: 20px; padding: 8px 16px; }

  table { display: block; overflow-x: auto; white-space: nowrap; }
  table thead, table tbody { display: table; width: 100%; }
  table thead { width: 100%; }

  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal-content {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px;
  }
  .pc-header { flex-direction: column; align-items: center; text-align: center; }
  .pc-photo { width: 110px; height: 145px; }
  .pc-stats { grid-template-columns: repeat(3, 1fr); }
  .mr-meta-row { grid-template-columns: 1fr; }
  .attendance-grid { grid-template-columns: 1fr; }
  .club-stats-bar { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  .welcome-hero { height: 220px !important; max-height: 240px !important; }
  .welcome-logo { width: 44px; height: 44px; margin-bottom: 10px; }
  .welcome-title { font-size: 15px !important; }
  .welcome-subtitle { font-size: 9px !important; }
  .welcome-arrow { width: 32px; height: 32px; font-size: 16px; }
  .sp-shirt {
    width: 34px; height: 34px;
    min-width: 34px; max-width: 34px;
    min-height: 34px; max-height: 34px;
  }
  .sp-name { font-size: 9px; padding: 2px 6px; }
  .sp-pos { font-size: 7px; }
}

/* ============================================================
   5. АССИСТЫ В ПРОТОКОЛАХ МАТЧЕЙ
   ============================================================ */
.protocol-line.assist {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
  padding-left: 14px;
  margin-top: -2px;
  opacity: 0.92;
}
.protocol-line.assist .p-assist { color: #34d399; }
.lfld-card-goal-assist {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.lfld-card-goal-assist::before {
  content: "👟 ";
  font-size: 9px;
}
.assist-table-row-club {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.assist-cell {
  color: #34d399 !important;
  font-weight: 800;
}

/* ============================================================
   6. КОНСТРУКТОР СБОРНОЙ В АДМИНКЕ
   ============================================================ */
.totw-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}
@media (max-width: 700px) { .totw-admin-grid { grid-template-columns: 1fr; } }
.totw-slot {
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}
.totw-slot.filled { border-color: rgba(245,166,35,.45); background: rgba(245,166,35,.06); }
.totw-slot-pos {
  font-family: var(--font-accent);
  font-size: 10px; font-weight: 900;
  color: var(--gold, #f5a623); text-align: center;
  letter-spacing: .05em;
  padding: 6px 4px;
  background: rgba(0,0,0,.35);
  border-radius: 6px;
}
.totw-slot-body { position: relative; min-width: 0; }

.lfld-ac { position: relative; }
.lfld-ac-input {
  width: 100%;
  padding: 8px 34px 8px 12px !important;
  font-size: 13px !important;
  background: var(--bg-input, #070c18) !important;
  color: var(--text-light, #f1f5f9) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 8px !important;
}
.lfld-ac-clear {
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  padding: 0 !important;
  background: transparent !important;
  color: var(--text-muted, #94a3b8) !important;
  border: none !important;
  font-size: 14px;
  cursor: pointer;
}
.lfld-ac-drop {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 4px;
  max-height: 260px; overflow-y: auto;
  background: #0d1527;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  z-index: 50;
  display: none;
}
.lfld-ac-drop.open { display: block; }
.lfld-ac-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
  color: var(--text-light, #f1f5f9);
}
.lfld-ac-item:last-child { border-bottom: none; }
.lfld-ac-item:hover { background: rgba(245,166,35,.15); }
.lfld-ac-item .ac-name strong { color: var(--text-light, #f1f5f9); }
.lfld-ac-item .ac-club {
  font-size: 10px; color: var(--gold, #f5a623);
  font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.lfld-ac-item .ac-club img {
  width: 18px !important; height: 18px !important;
  object-fit: contain !important;
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.lfld-ac-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.lfld-ac-empty {
  padding: 12px; color: var(--text-muted, #94a3b8);
  font-size: 12px; text-align: center; font-style: italic;
}
.totw-chosen {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 8px;
}
.totw-chosen-kit {
  width: 34px; height: 34px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  overflow: visible;
  padding: 0;
  box-sizing: border-box;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
}
.totw-chosen-kit img {
  width: 100% !important; height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  filter: none !important;
}
.totw-chosen-kit span {
  font-family: var(--font-accent);
  font-size: 10px; font-weight: 900;
  color: #070c18;
  padding: 2px 6px;
  border-radius: 4px;
}
.totw-chosen-info { flex: 1; min-width: 0; }
.totw-chosen-name {
  font-weight: 700; font-size: 13px;
  color: var(--text-light, #f1f5f9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.totw-chosen-club {
  font-size: 10px; color: var(--gold, #f5a623);
  text-transform: uppercase; font-weight: 800;
  letter-spacing: .04em;
}

/* ============================================================
   7. АФИША ТУРНИРОВ
   ============================================================ */
.affiche-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) { .affiche-tour-grid { grid-template-columns: 1fr; } }
.affiche-tour-card {
  background: rgba(13,21,39,.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.affiche-tour-card:hover {
  border-color: rgba(245,166,35,.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}
.affiche-tour-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  overflow: hidden;
}
.affiche-tour-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.affiche-tour-poster-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(148,163,184,.35);
  font-size: 40px;
}
.affiche-tour-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-accent);
  font-size: 9px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
}
.affiche-tour-badge.live         { background: #dc2626; border-color: #dc2626; }
.affiche-tour-badge.soon         { background: #f59e0b; border-color: #f59e0b; color: #070c18; }
.affiche-tour-badge.registration { background: #10b981; border-color: #10b981; color: #070c18; }
.affiche-tour-badge.finished     { background: rgba(100,116,139,.85); border-color: rgba(148,163,184,.4); }
.affiche-tour-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.affiche-tour-name {
  font-family: var(--font-accent);
  font-size: 14px; font-weight: 800;
  color: var(--text-light, #f1f5f9);
  margin-bottom: 8px; line-height: 1.25;
}
.affiche-tour-meta {
  font-size: 12px; color: var(--text-muted, #94a3b8);
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 12px;
}
.affiche-tour-meta span { display: inline-flex; align-items: center; gap: 4px; }
.affiche-tour-btn {
  margin-top: auto;
  background: var(--amber, #f59e0b) !important;
  color: #070c18 !important;
  border: none !important;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .05em;
  padding: 9px 14px !important;
  text-transform: uppercase;
  border-radius: 8px !important;
  cursor: pointer;
}
.affiche-tour-btn:hover { background: #d97706 !important; }
.affiche-tour-empty {
  grid-column: 1 / -1;
  padding: 30px; text-align: center;
  color: var(--text-muted, #94a3b8); font-style: italic;
  background: rgba(13,21,39,.5);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 12px;
  font-size: 13px;
}

/* ============================================================
   8. АДМИН: афиша + расписание
   ============================================================ */
.affiche-admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.affiche-admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px; align-items: center;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
}
.affiche-admin-item img,
.affiche-admin-item .no-poster {
  width: 120px; height: 68px;
  object-fit: cover; border-radius: 6px; display: block;
  background: #1e293b;
}
.affiche-admin-item .no-poster {
  display: flex; align-items: center; justify-content: center;
  color: rgba(148,163,184,.4); font-size: 22px;
}
.affiche-admin-meta { min-width: 0; }
.affiche-admin-name { font-weight: 700; color: var(--text-light, #f1f5f9); font-size: 13px; margin-bottom: 3px; }
.affiche-admin-sub { font-size: 11px; color: var(--text-muted, #94a3b8); }
.affiche-admin-actions { display: flex; gap: 6px; }

.me-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(13,21,39,.7);
  border-radius: 10px; overflow: hidden;
  margin-top: 10px;
  font-size: 12px;
}
.me-table th {
  background: rgba(7,12,24,.85);
  color: var(--text-muted, #94a3b8);
  font-size: 10px; text-transform: uppercase; font-weight: 800;
  letter-spacing: .06em; padding: 8px 6px;
}
.me-table td { padding: 6px 6px; border-bottom: 1px solid rgba(255,255,255,.04); text-align: center; }
.me-table tr:hover td { background: rgba(245,158,11,.05); }
.me-table input[type="date"],
.me-table input[type="time"],
.me-table input[type="text"],
.me-table select {
  width: 100%;
  padding: 6px 8px !important;
  font-size: 12px !important;
  background: var(--bg-input, #070c18) !important;
  color: var(--text-light, #f1f5f9) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 6px !important;
}
.me-save-btn {
  background: rgba(16,185,129,.2) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16,185,129,.4) !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  font-weight: 700;
}

/* ============================================================
   9. ФОН САЙТА — фиксированный слой (паттерн)
   ============================================================ */
#site-bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #0b132b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease, background-image 0.5s ease;
}
body {
  background-color: #0b132b !important;
}
body.has-custom-bg {
  background-image: none !important;
}

/* ============================================================
   10. ФИКС КЛИКАБЕЛЬНОСТИ
   ============================================================ */
.modal-overlay:not([style*="display: flex"]):not([style*="display:flex"]):not([style*="display: block"]):not([style*="display:block"]) {
  pointer-events: none !important;
}
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"] {
  pointer-events: auto !important;
}
.welcome-overlay,
.hero-carousel::after,
body::before,
.logo-plashka::before,
.logo-plashka::after {
  pointer-events: none !important;
}
.lfld-match-card.pointer,
.tab-btn,
.menu-btn,
.round-tab,
.club-link,
.player-name-clickable {
  pointer-events: auto;
}

/* ============================================================
   11. ДОСЬЕ — 3 ячейки статистики
   ============================================================ */
.pc-stats.pc-stats-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ============================================================
   12. КУБОК МЕТАЛЛИСТА 2026 — ОБЩИЙ КАРКАС
   ============================================================ */
.cup-hero {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(13,21,39,0.9) 55%);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.cup-hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245,166,35,0.28), transparent 65%);
  pointer-events: none;
}
.cup-hero-title {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.cup-hero-sub {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 6px;
  font-weight: 600;
}
.cup-hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.5);
  color: #f5a623;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 8px 0 0;
}

.cup-tabs {
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cup-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .cup-group-grid { grid-template-columns: 1fr; gap: 16px; }
}

.cup-group-card {
  background: rgba(13,21,39,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.cup-group-title {
  font-family: var(--font-accent);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(245,166,35,0.25);
}
.cup-group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  margin-bottom: 0 !important;
}
.cup-group-table th {
  background: rgba(7,12,24,0.55) !important;
  color: #94a3b8 !important;
  padding: 8px 6px !important;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.cup-group-table td {
  padding: 9px 6px !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  color: #f1f5f9;
}
.cup-group-table tr:hover td {
  background: rgba(245,158,11,0.06) !important;
}
.cup-group-table td:first-child {
  font-weight: 800;
  color: #f5a623;
  width: 32px;
  text-align: center;
}
.cup-group-table td:last-child strong {
  color: #f5a623;
  font-size: 14px;
}

.cup-section-title {
  font-family: var(--font-accent);
  font-size: 13px;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  margin: 24px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cup-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.cup-match-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(13,21,39,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 13px;
  color: #f1f5f9;
  transition: border-color 0.15s, background 0.15s;
}
.cup-match-chip:hover {
  border-color: rgba(245,166,35,0.4);
  background: rgba(20,28,48,0.95);
}
.cup-match-time {
  font-family: var(--font-accent);
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  min-width: 52px;
  flex-shrink: 0;
}
.cup-match-t1, .cup-match-t2 {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cup-match-vs {
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
}

.cup-po-block {
  margin-bottom: 24px;
}
.cup-po-title {
  font-family: var(--font-accent);
  font-size: 14px;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cup-po-stage {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(13,21,39,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.cup-po-stage:hover {
  border-color: rgba(245,166,35,0.45);
  transform: translateX(3px);
}
.cup-po-stage.final {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(245,166,35,0.03));
  border: 2px solid rgba(245,166,35,0.55);
  box-shadow: 0 6px 20px rgba(245,166,35,0.15);
}
.cup-po-time {
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.cup-po-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 4px;
}
.cup-po-teams {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.cup-award-plate {
  background: linear-gradient(135deg, rgba(245,166,35,0.22), rgba(245,166,35,0.06));
  border: 2px solid rgba(245,166,35,0.6);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 900;
  color: #f5a623;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
  font-size: 14px;
  margin-top: 22px;
  box-shadow: 0 8px 24px rgba(245,166,35,0.12);
}

.cup-info-card {
  background: rgba(13,21,39,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.cup-info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: baseline;
}
.cup-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.cup-info-label {
  color: #94a3b8;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cup-info-value {
  color: #f1f5f9;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .cup-info-row { grid-template-columns: 1fr; gap: 4px; }
}

.cup-admin-roster {
  margin: 12px 0;
  padding: 12px;
  background: rgba(7,12,24,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  max-height: 480px;
  overflow-y: auto;
}
.cup-admin-roster-row {
  display: grid;
  grid-template-columns: 34px 60px 1fr 100px 36px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cup-admin-roster-row:last-child { border-bottom: none; }
.cup-admin-num {
  font-weight: 800;
  color: #f5a623;
  font-family: var(--font-accent);
  font-size: 12px;
  text-align: center;
}
.cup-admin-roster-row input,
.cup-admin-roster-row select {
  padding: 7px 10px !important;
  font-size: 13px !important;
}
.cup-admin-del {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}
.cup-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cup-admin-empty {
  color: #64748b;
  font-style: italic;
  font-size: 13px;
  padding: 20px 8px;
  text-align: center;
  margin: 0;
}
@media (max-width: 700px) {
  .cup-admin-roster-row {
    grid-template-columns: 30px 1fr 36px;
    grid-template-areas:
      "num name del"
      ".   num2 ."
      ".   pos  .";
  }
  .cup-admin-roster-row input[data-cup-field="num"]  { grid-area: num2; width: 100% !important; }
  .cup-admin-roster-row input[data-cup-field="name"] { grid-area: name; }
  .cup-admin-roster-row select                        { grid-area: pos; }
  .cup-admin-num                                      { grid-area: num; }
  .cup-admin-del                                      { grid-area: del; }
}

/* ============================================================
   13. КОМАНДНОЕ ФОТО — РАСШИРЕННЫЙ КОНТЕЙНЕР
   ============================================================ */
.club-hero-photo {
  width: 100% !important;
  max-width: 64rem !important;
  margin: 0 auto 1.5rem !important;
  height: 20rem !important;
  border-radius: 1.5rem !important;
  overflow: hidden !important;
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.55) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.club-hero-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top !important;
  transition: transform .3s ease !important;
}
.club-hero-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; font-style: italic;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
@media (min-width: 640px) {
  .club-hero-photo { height: 24rem !important; }
}
@media (min-width: 768px) {
  .club-hero-photo { height: 27.5rem !important; }
}
@media (max-width: 480px) {
  .club-hero-photo { height: 16rem !important; border-radius: 1rem !important; }
}

/* ============================================================
   14. РАЗМЫТЫЙ ФОН САЙТА
   ============================================================ */
#site-blur-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #0b132b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter .5s ease, opacity .5s ease, background-image .5s ease;
  transform: scale(1.05);
  display: none;
}
body.has-blur-bg #site-blur-bg { display: block; }
body.has-blur-bg #site-bg-layer { display: none !important; }

/* ============================================================
   15. АФИША МАТЧЕЙ
   ============================================================ */
.affiche-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .affiche-matches-grid { grid-template-columns: 1fr; gap: 10px; }
}

.affiche-match-card {
  background: rgba(13, 21, 39, .88);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 14px 16px 16px;
  color: #f1f5f9;
  backdrop-filter: blur(10px);
  transition: border-color .18s, transform .18s;
  position: relative;
}
.affiche-match-card:hover {
  border-color: rgba(245,166,35,.45);
  transform: translateY(-2px);
}
.affiche-match-card.is-cup {
  border-color: rgba(245,166,35,.4);
  background: linear-gradient(135deg, rgba(245,166,35,.10), rgba(13,21,39,.9));
}
.affiche-match-card .amc-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.affiche-match-card .amc-tour-badge {
  font-family: var(--font-accent);
  font-size: 9px; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: #f5a623;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.4);
  padding: 3px 9px; border-radius: 999px;
}
.affiche-match-card .amc-announce-badge {
  font-family: var(--font-accent);
  font-size: 9px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: #070c18;
  background: linear-gradient(135deg, #f5a623, #d97706);
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(245,166,35,.35);
}
.affiche-match-card .amc-date {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  display: inline-flex; align-items: center; gap: 5px;
}
.affiche-match-card .amc-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 10px; align-items: center; margin-bottom: 10px;
}
.affiche-match-card .amc-team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
}
.affiche-match-card .amc-team:hover .amc-team-name { color: #f5a623; }
.affiche-match-card .amc-team-logo {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.affiche-match-card .amc-team-name {
  font-family: var(--font-accent);
  font-size: 13px; font-weight: 800;
  color: #f1f5f9; line-height: 1.2;
  transition: color .15s;
}
.affiche-match-card .amc-vs {
  font-family: var(--font-accent);
  font-size: 15px; font-weight: 900;
  color: #94a3b8;
  padding: 5px 12px;
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.affiche-match-card .amc-meta {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px dashed rgba(255,255,255,.08);
  font-size: 11px; color: #94a3b8; font-weight: 600;
}
.affiche-match-card .amc-meta span { display: inline-flex; align-items: center; gap: 5px; }

.affiche-matches-empty {
  grid-column: 1 / -1;
  padding: 30px; text-align: center;
  color: #94a3b8; font-style: italic; font-size: 13px;
  background: rgba(13,21,39,.5);
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
}

/* ============================================================
   16. УМНЫЙ МОДУЛЬ ЗАЯВОК (Кубок Металлиста)
   ============================================================ */
.cup-admin-smart {
  background: rgba(13,21,39,.7);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.cup-admin-smart .cas-search-row {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .cup-admin-smart .cas-search-row { grid-template-columns: 1fr; }
}
.cup-admin-smart .cas-search-wrap { position: relative; }
.cup-admin-smart .cas-search-input {
  width: 100% !important;
  padding: 10px 38px 10px 14px !important;
  font-size: 13px !important;
  background: #070c18 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
}
.cup-admin-smart .cas-search-clear {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 14px; cursor: pointer;
}
.cup-admin-smart .cas-drop {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 4px;
  max-height: 280px; overflow-y: auto;
  background: #0d1527;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  z-index: 60;
  display: none;
}
.cup-admin-smart .cas-drop.open { display: block; }
.cup-admin-smart .cas-item {
  padding: 9px 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 13px;
  color: #f1f5f9;
  align-items: center;
}
.cup-admin-smart .cas-item:last-child { border-bottom: none; }
.cup-admin-smart .cas-item:hover { background: rgba(245,166,35,.12); }
.cup-admin-smart .cas-item.disabled {
  opacity: .4; cursor: not-allowed; text-decoration: line-through;
}
.cup-admin-smart .cas-item .cas-pos {
  font-size: 10px; font-weight: 800;
  color: #f5a623; letter-spacing: .04em;
}
.cup-admin-smart .cas-empty {
  padding: 14px; text-align: center;
  font-size: 12px; color: #94a3b8; font-style: italic;
}
.cup-admin-smart .cas-create-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px;
  background: rgba(245,166,35,.06);
  border: 1px dashed rgba(245,166,35,.35);
  border-radius: 10px;
  margin-top: 10px;
}
.cup-admin-smart .cas-create-row input,
.cup-admin-smart .cas-create-row select {
  padding: 8px 10px !important;
  font-size: 12px !important;
  background: #070c18 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 6px !important;
}

.cup-roster-list {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px 0 10px;
  max-height: 480px; overflow-y: auto;
  padding-right: 4px;
}
.cup-roster-row {
  display: grid;
  grid-template-columns: 34px 60px 1fr 90px 34px;
  gap: 8px; align-items: center;
  padding: 8px 10px;
  background: rgba(7,12,24,.5);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  font-size: 13px;
}
.cup-roster-row .cr-num {
  font-family: var(--font-accent);
  font-size: 12px; color: #f5a623; font-weight: 800;
  text-align: center;
}
.cup-roster-row .cr-name {
  color: #f1f5f9; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cup-roster-row .cr-pos {
  font-size: 10px; font-weight: 800; text-align: center;
  color: #94a3b8; letter-spacing: .04em;
  padding: 3px 6px; border-radius: 5px;
  background: rgba(255,255,255,.05);
}
.cup-roster-row .cr-del {
  width: 28px; height: 28px;
  padding: 0 !important;
  background: #b91c1c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  cursor: pointer;
}
@media (max-width: 640px) {
  .cup-roster-row { grid-template-columns: 30px 50px 1fr 34px; }
  .cup-roster-row .cr-pos { display: none; }
}

.cas-export-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(11,19,41,.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.cas-export-modal .cas-export-content {
  background: #0d1527;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 20px;
  max-width: 780px; width: 100%;
  max-height: 85vh;
  display: flex; flex-direction: column; gap: 12px;
}
.cas-export-modal h3 { margin: 0; color: #f1f5f9; font-family: var(--font-accent); }
.cas-export-modal textarea {
  width: 100% !important;
  flex: 1;
  min-height: 320px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
  font-size: 12px !important;
  background: #070c18 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  resize: vertical;
}
.cas-export-modal .cas-export-actions { display: flex; gap: 8px; }

/* ============================================================
   17. СВОРАЧИВАЕМЫЙ СОСТАВ КОМАНДЫ (базовые)
   ============================================================ */
.club-roster-table {
  margin-bottom: 0 !important;
}
.club-roster-table tr.roster-hidden,
#clubRosterBody tr.roster-hidden {
  display: none !important;
}

/* ============================================================
   18. ЛОКАЦИЯ «ФОК ЛЕГЕНДА»
   ============================================================ */
.cup-hero-venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 999px;
  font-size: 12.5px;
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cup-hero-venue strong {
  color: #f5a623;
  font-weight: 800;
}

.cup-venue-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(245,166,35,.12), rgba(245,166,35,.04));
  border: 1px solid rgba(245,166,35,.35);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 13px;
}
.cup-venue-banner strong { color: #f5a623; }

.cup-venue-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin: 0 0 18px;
  background: linear-gradient(135deg, rgba(245,166,35,.18), rgba(245,166,35,.05));
  border: 2px solid rgba(245,166,35,.5);
  border-radius: 12px;
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(245,166,35,.12);
}
.cup-venue-highlight strong { color: #f5a623; font-weight: 800; }

.cup-match-chip {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  align-items: stretch !important;
}
.cup-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cup-match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.cup-match-venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  background: rgba(245,166,35,.14);
  border: 1px solid rgba(245,166,35,.42);
  color: #f5a623;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
}

.cup-po-venue-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.4);
  color: #f5a623;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-transform: uppercase;
}

.affiche-match-card .amc-venue {
  color: #f5a623 !important;
  font-weight: 700 !important;
}
.affiche-match-card.is-cup .amc-venue {
  color: #fbbf24 !important;
}

@media (max-width: 640px) {
  .cup-hero-venue { font-size: 11.5px; padding: 5px 11px; }
  .cup-venue-highlight { font-size: 12.5px; padding: 10px 12px; }
  .cup-match-venue-badge { font-size: 9.5px; padding: 2px 7px; }
}

/* ============================================================
   19. СПОЙЛЕР СОСТАВА — ФИНАЛЬНЫЕ СТИЛИ
   ============================================================ */
#clubRosterBody tr.roster-extra-row,
.club-roster-table tr.roster-extra-row {
  display: none !important;
}

.team-roster-container {
  position: relative;
}

#toggle-roster-btn {
  display: none;
  width: 100%;
  padding: 11px 16px;
  margin: 14px 0 20px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  color: #fbbf24;
  font-family: var(--font-accent, 'Russo One', sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #334155;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#toggle-roster-btn.visible { display: flex !important; }
#toggle-roster-btn:hover {
  background: #334155;
  border-color: #f59e0b;
  color: #fde68a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}
#toggle-roster-btn:active { transform: translateY(0); }
#toggle-roster-btn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.8);
}
@media (max-width: 640px) {
  #toggle-roster-btn {
    font-size: 11.5px;
    padding: 10px 12px;
    margin: 12px 0 16px;
  }
}

/* ============================================================
   20. АВТОКОМПЛИТ TOTW — дополнения
   ============================================================ */
.lfld-ac-item .ac-club {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.32);
  border-radius: 999px;
  color: #f5a623;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.lfld-ac-item .ac-club img,
.lfld-ac-item .ac-club .logo-plashka,
.lfld-ac-item .ac-club .logo-plashka img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

/* ============================================================
   21. CROPPER.JS — стили модалки и превью
   ============================================================ */
.cropper-modal-content {
  max-width: 880px !important;
  width: 95% !important;
  padding: 20px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
}

.cropper-stage {
  width: 100% !important;
  background: #0b111e !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 260px;
}
.cropper-stage img {
  max-width: 100% !important;
  display: block !important;
}

.cropper-preview-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0 8px;
  display: block;
}
.preview-box {
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #f59e0b;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  width: 100%;
  max-width: 32rem;
  height: 10rem;
  margin: 0 auto 16px;
  background: #0b111e;
}
@media (max-width: 640px) {
  .preview-box { height: 8rem; }
}

.cropper-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 8px;
}

.cropper-modal-content .cropper-container { border-radius: 12px; }
.cropper-modal-content .cropper-view-box,
.cropper-modal-content .cropper-face { border-radius: 0; }

.cropper-modal-content .cropper-modal {
  background-color: rgba(7, 12, 24, 0.72) !important;
  opacity: 1 !important;
}
.cropper-modal-content .cropper-line,
.cropper-modal-content .cropper-point {
  background-color: #f59e0b !important;
}
.cropper-modal-content .cropper-view-box {
  outline: 2px solid #f59e0b !important;
  outline-color: #f59e0b !important;
}
.cropper-modal-content .cropper-dashed { border-color: rgba(245,158,11,0.5) !important; }
.cropper-modal-content .cropper-center::before,
.cropper-modal-content .cropper-center::after { background-color: #f59e0b !important; }
.cropper-modal-content .cropper-point.point-se { width: 10px !important; height: 10px !important; }

/* ============================================================
   22. GITHUB SYNC — блок синхронизации с репозиторием
   ============================================================ */
.gh-sync-section code {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
}

.gh-sync-section input[type="password"] {
  width: 100%;
  padding: 11px 14px !important;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px !important;
  background: #070c18 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 8px !important;
  letter-spacing: 0.05em;
}
.gh-sync-section input[type="password"]:focus {
  border-color: #f59e0b !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.gh-publish-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 20px !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: var(--font-accent, 'Russo One', sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16,185,129,0.32);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.gh-publish-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(16,185,129,0.45);
  filter: brightness(1.05);
}
.gh-publish-btn:active:not(:disabled) { transform: translateY(0); }
.gh-publish-btn:disabled,
.gh-publish-btn.busy {
  cursor: wait;
  filter: grayscale(0.4) brightness(0.85);
  box-shadow: 0 4px 12px rgba(16,185,129,0.2);
}

.gh-sync-status {
  display: block;
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1.5;
  transition: all .2s ease;
}
.gh-sync-status.hidden { display: none !important; }
.gh-sync-status.info {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
}
.gh-sync-status.ok {
  background: rgba(16,185,129,0.14);
  border: 1px solid rgba(16,185,129,0.45);
  color: #6ee7b7;
}
.gh-sync-status.err {
  background: rgba(239,68,68,0.14);
  border: 1px solid rgba(239,68,68,0.45);
  color: #fca5a5;
}

.gh-sync-help {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.gh-sync-help > div {
  font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.gh-sync-help ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.gh-sync-help li { color: #94a3b8; } /* ============================================================
   23. CACHE RESET — блок «Управление кэшем устройства»
   ============================================================ */

.cache-reset-section {
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(13, 21, 39, 0.85)) !important;
}

.cache-reset-section h3 {
  color: #fca5a5 !important;
}

.cache-reset-section p {
  color: #cbd5e1 !important;
  line-height: 1.55;
}

#reset-cache-btn {
  transition: all 0.18s ease;
  box-shadow: 0 8px 22px rgba(239, 68, 68, 0.28);
}
#reset-cache-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.45);
  filter: brightness(1.06);
}
#reset-cache-btn:disabled {
  cursor: wait;
  filter: grayscale(0.35) brightness(0.85);
}

#cache-reset-status {
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   24. ГАРАНТИЯ ОТОБРАЖЕНИЯ ФОТО КОМАНД И ИГРОКОВ
   ============================================================ */

.club-hero-photo img,
.club-hero-photo-photo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
}

/* Фото игрока в списках — базовый fallback */
img[src=""],
img:not([src]) {
  visibility: hidden;
}

/* Универсальный placeholder для фото игрока */
.roster-mini-photo,
.roster-mini-photo-placeholder {
  width: 36px !important;
  height: 44px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  display: inline-block !important;
  vertical-align: middle;
}
.roster-mini-photo-placeholder {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  font-size: 18px;
  opacity: 0.5;
} /* ============ Кликабельные плашки клубов в досье ============ */
.pc-club-tag-clickable {
  transition: all 0.15s ease;
  cursor: pointer;
}
.pc-club-tag-clickable:hover {
  background: rgba(59, 130, 246, 0.35) !important;
  border-color: #3b82f6 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.pc-club-link:hover {
  color: #60a5fa !important;
  text-decoration: underline !important;
}
/* Кликабельные логотипы клубов — курсор */
.club-link,
.lfld-card-team-logo,
.lfld-card-team-name,
.hm-team,
.amc-team,
.award-pill,
.assist-table-row-club {
  cursor: pointer;
}
.club-link:hover,
.hm-team:hover .hm-team-name,
.amc-team:hover .amc-team-name {
  opacity: 0.85;
  transition: opacity 0.15s;
}