/* ===============================
   СПОРТЫ
================================ */
.sports-topbar-wrap {
    position: relative;
    margin-bottom: 14px;
    overflow: hidden;
}
.sports-topbar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.sports-topbar::-webkit-scrollbar {
    display: none;
}

/* ===============================
   TILE
================================ */
.sports-topbar__item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border-radius: 12px;
    background: #f1f5f9;

    text-decoration: none;
    color: #334155;
    font-size: 12px;
    font-weight: 500;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


.sports-topbar__item i {
    font-size: 30px;
    line-height: 1;
}

.sports-topbar__item span {
    max-width: 75px;
    display: block;

    font-size: 14px;
    line-height: 1.1;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sports-topbar__item.is-active {
    background: #171733;
    color: #fff;
    font-weight: 600;
}
.sports-topbar__item.is-active:hover {
    background: #171733;
    color: #fff;
    font-weight: 600;
}

@media (hover: hover) {
    .sports-topbar__item:hover {
        background: #e0e7ff;
        transform: translateY(-1px);
    }
}

/* ===============================
   SCROLL BUTTONS 
================================ */
.sports-topbar__btn {
    all: unset; 

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: #fff;

    cursor: pointer;
    z-index: 5;

    transition:
        background .15s ease,
        opacity .15s ease;
}

/* hover — чуть светлее */
@media (hover: hover) {
    .sports-topbar__btn:hover {
        background: rgba(0, 0, 0, 0.75);
    }
}

/* скрытие */
.sports-topbar__btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* позиции */
.sports-topbar__btn--left  { left: 6px; }
.sports-topbar__btn--right { right: 6px; }


/* ===============================
   MOBILE — ONLY SWIPE
================================ */
@media (max-width: 768px) {

    .sports-topbar {
        padding: 6px 6px;
    }

    .sports-topbar__btn {
        display: none;
    }

    .sports-topbar__item {
        width: 58px;
        height: 58px;
    }

    .sports-topbar__item i {
        font-size: 16px;
    }

    .sports-topbar__item span {
        font-size: 10px;
    }
}


.tournaments-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.tournaments-sidebar {
    background: var(--card, #fff);
    border-radius: 12px;
    padding: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.country-search {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}
.tournaments-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
}

.tournaments-sidebar a:hover {
    background: #eef2ff;
}

.tournaments-sidebar a.is-active {
    background: #e0e7ff;
    font-weight: 700;
    color: #1e3a8a;
}
.tournaments-content {
    background: var(--card, #fff);
    border-radius: 12px;
    padding: 14px;
}
.tournaments-content {
    min-width: 0;    
    overflow: hidden;  
}
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tournaments-country {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tournaments-country:last-child {
    border-bottom: 0;
}

.tournaments-country__title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #334155;
}
.tournament-card {
    background: #f1f3f8;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.tournament-card__name {
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}
.tournament-card__stages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tournament-stage {
    font-size: 13px;
    padding: 4px 10px;
    background: #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    transition: background .15s ease;
}

.tournament-stage:hover {
    background: #c7d2fe;
}
.no-events {
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    color: #64748b;
}
/* ==================================================
   EVENTS PAGE SIDEBAR (LIGHT STYLE)
   Wrapper: <aside class="sports-block">{sidebar}</aside>
================================================== */

.events-page__sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==================================================
   SPORTS LIST
================================================== */

.events-page__sports {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.events-page__sport {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    transition: background .15s ease;
}

.events-page__sport i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.events-page__sport:hover {
    background: #f1f5f9;
}

.events-page__sport.is-active {
    background: #e0ecff;
    font-weight: 600;
}

/* ==================================================
   COUNTERS
================================================== */

.events-page__count {
    margin-left: auto;
    min-width: 32px;
    padding: 2px 6px;
    font-size: 12px;
    text-align: center;
    border-radius:6px;
    background:#e2e6ee;
    color:#64748b;
    font-weight: 600;
}

.events-page__count-live {
    margin-left: auto;
    min-width: 32px;
    padding: 2px 6px;
    font-size: 12px;
    text-align: center;
    border-radius:6px;
    background:#fb6565;
    color:#fff;
    font-weight: 600;
}

.events-page__count-live-lig {
    margin-left: auto;
    min-width: 32px;
    padding: 2px 6px;
    font-size: 12px;
    text-align: center;
    border-radius:6px;
    background:#ffd6d6;
    color:#ff3d3d;
    font-weight: 600;
}

/* ==================================================
   ACCORDION
================================================== */

.events-page__accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ==================================================
   COUNTRY
================================================== */

.events-page__country {
    border-radius: 8px;
    overflow: hidden;
}

.events-page__country summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.events-page__country summary::-webkit-details-marker {
    display: none;
}

.events-page__country summary:hover {
    background: #f8fafc;
}

.events-page__country .flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    object-fit: cover;
}

/* arrow */
.events-page__country summary::after {
    content: "▸";
    margin-left: auto;
    font-size: 12px;
    color: #64748b;
    transition: transform .15s ease;
}

.events-page__country[open] summary::after {
    transform: rotate(90deg);
}
/* ===============================
   SPORT BLOCK
================================ */

.events-page__sport-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.events-page__sport.js-toggle-sport {
    cursor: pointer;
}

/* ===============================
   COUNTRY
================================ */

.events-page__country-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

.events-page__country-head:hover {
    background: #f8fafc;
}

.events-page__country .events-page__leagues {
    display: none;
}

.events-page__country.is-open .events-page__leagues {
    display: block;
}

/* ==================================================
   LEAGUES
================================================== */

.events-page__leagues {
    list-style: none;
    margin: 0;
    padding: 2px 0 6px;
}

.events-page__league a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 4px 30px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s ease;
}

.events-page__league a:hover {
    background: #f1f5f9;
}

.events-page__league .events-page__count {
    background: #eef4ff;
    color: #1d4ed8;
}

/* ==================================================
   CUSTOM ACCORDION (NO DETAILS, NO ARROWS)
================================================== */

.events-page__sport-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.events-page__country-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    border-radius: 8px;
}

.events-page__country-head:hover {
    background: #f8fafc;
}

/* closed by default */
.events-page__country .events-page__leagues {
    display: none;
}

/* open state */
.events-page__country.is-open .events-page__leagues {
    display: block;
}
/* ===============================
   VISIBILITY STATES
================================ */

/* accordion closed by default */
.events-page__accordion {
    display: none;
}

/* open sport */
.events-page__sport-block.is-open .events-page__accordion {
    display: flex;
}

/* countries closed by default */
.events-page__country .events-page__leagues {
    display: none;
}

/* open country */
.events-page__country.is-open .events-page__leagues {
    display: block;
}
/* ===============================
   SPORT TOGGLE ICON
================================ */

.events-page__sport-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.events-page__toggle-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    cursor: pointer;
    transition: 
        background .2s ease,
        transform .25s ease;
}

.events-page__toggle-btn i {
    font-size: 12px;
    transition: transform .25s ease;
}
.events-page__sport-block.is-open
.events-page__toggle-btn i {
    transform: rotate(180deg);
}
.events-page__sport:hover .events-page__toggle-btn {
    background: #e0e7ff;
}
/* ===============================
   SPORT ROW LAYOUT FIX
================================ */

.events-page__sport {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* название спорта */
.events-page__sport span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* стрелка — прижата вправо */
.events-page__toggle-icon {
    margin-left: auto;              /* 🔑 ПРИЖИМАЕМ ВПРАВО */
    font-size: 13px;
    color: #64748b;
    transition: transform .25s ease, color .2s ease;
}


.events-page__sport > .events-page__count,
.events-page__sport > .events-page__count-live {
    margin-left: auto;
}


.events-page__sport > .events-page__toggle-icon + .events-page__count,
.events-page__sport > .events-page__toggle-icon + .events-page__count-live {
    margin-left: 6px;
}

/* вращение при открытом блоке */
.events-page__sport-block.is-open
.events-page__toggle-icon {
    transform: rotate(90deg);       /* ▶ → ▼ */
    color: #2563eb;
}

/* лёгкий hover */
.events-page__sport:hover
.events-page__toggle-icon {
    color: #1d4ed8;
}
.events-page__sport.is-active {
    cursor: pointer;
}

.tourn-head{
  background: #f9fafb; 
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.tourn-head__inner{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}
.tourn-head__logo{
  border-radius: 10px;
  background:#fff;
  border:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tourn-head__logo img{
  width:100px;
  height:auto;
  padding:6px;
}

.tourn-head__info{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.tourn-h-country{
  font-size:12px;
  font-weight:600;
  color:#6b7280;
  text-transform: uppercase;
  letter-spacing:.04em;
}

.tourn-h-title{
  font-size:30px;
  font-weight:800;
  color:#111827;
  line-height:1.1;
}

.tourn-h-dates{
  margin-top:2px;
  font-size:12px;
  color:#6b7280;
}
.tourn-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 10px 0 12px;
}

.tourn-tab{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  border-radius:10px;
  padding:8px 12px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
}

.tourn-tab.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}
.draw-wrap{ overflow-x:auto; padding:16px 0; }
.draw-scroll{ display:block; overflow-x:auto; }
.draw-board{
  position:relative;
  display:flex;
  gap:32px;
  min-width:max-content;
  padding:0 6px;
}

/* SVG линии поверх */
.draw-lines{
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:visible;
}

/* линии */
.draw-line{
  fill:none;
  stroke:#d1d5db;
  stroke-width:2;
  opacity:.9;
}
.draw-line.is-active{
  stroke:#6366f1;
}

/* колонка */
.draw-col{ min-width:260px; display:flex; flex-direction:column; gap:12px; }
.draw-col-title{ font-weight:800; font-size:14px; text-align:center; }

.draw-col-body{
  position:relative;
  min-height:200px;
}

/* контейнер позиции — НЕ красим его вообще */
.draw-match{
  position:absolute;
  left:0; right:0;
  height:var(--mh, 68px);
  box-sizing:border-box;
}

/* ВОТ ЭТО КАРТОЧКА — ЕЁ ФОН ПОДСВЕЧИВАЕМ */
.draw-card{
  height:100%;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:8px 10px;

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;

  transition: background-color .12s ease;
}

/* подсветка ветки — ТОЛЬКО ФОН */
.draw-match.is-active .draw-card{
  background:#eef2ff;
}
.draw-team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.draw-team-link:hover span {
  text-decoration: underline;
}
/* команды */
.draw-team{ display:flex; align-items:center; gap:8px; font-size:13px; line-height:1.15; }
.draw-team img{ width:18px; height:18px; object-fit:contain; flex:0 0 auto; }
.draw-team span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.draw-team b{ margin-left:auto; font-weight:800; }
/* ===============================
   TOURNAMENT TABLE (FLEX)
================================ */
.tourn-table{margin:10px 0;}
.tourn-table-head,
.tourn-table-row {
  display: flex;
  align-items: center;
}

/* ---------- head ---------- */

.tourn-table-head {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

/* ---------- rows ---------- */

.tourn-table-row {
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.tourn-table-row:hover {
  background: #f9fafb;
}

/* ---------- cells ---------- */

.col-rank {
  min-width: 25px;
  height: 25px;
  line-height: 26px;
  text-align: center;
  font-weight: 600;
  border-radius: 6px;
  margin: 0 6px;
  background: #e5e7eb;
  color: #374151;
}

.col-team {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  min-width: 0;
}

.col-team img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.col-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-team a.team-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.col-team a.team-link:hover span {
  text-decoration: underline;
}

.col-dynamic {
  width: 52px;
  min-width: 52px;
  text-align: center;
  padding: 6px 4px;
  font-variant-numeric: tabular-nums;
}
.tourn-group-title {
  font-weight: 600;
  font-size: 15px;
  padding: 6px 10px;
  color: #1f2937;
  background: #f1f5f9;
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
}
.tourn-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.tourn-actions .btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    line-height: 1.2;
    transition:
        background .12s ease,
        border-color .12s ease,
        color .12s ease;
}


.tourn-actions .btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}


.tourn-actions .btn.is-active {
    background: #ffffff;
    color: #111827;
    border-color: #111827; 
    font-weight: 600;
    pointer-events: none;
}

/* ===============================
   EVENTS PAGINATION
================================ */

.events-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    margin: 0 0 20px;
    gap: 12px;
}

/* ===============================
   PAGINATION BUTTON
================================ */

.events-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 16px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    border-radius: 8px;

    /* ВАЖНО: нормальная обводка */
    border: 1px solid rgba(0, 0, 0, .18);
    background: #fff;

    color: #111;
    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .12s ease;
}

/* LEFT / RIGHT */
.events-pagination .events-page-btn:first-child {
    margin-right: auto;
}
.events-pagination .events-page-btn:last-child {
    margin-left: auto;
}

/* ===============================
   HOVER
================================ */

.events-page-btn:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, .35);
    transform: translateY(-1px);
}

/* ===============================
   ACTIVE
================================ */

.events-page-btn:active {
    transform: translateY(0);
    background: #eee;
}

/* ===============================
   DISABLED (ТОЛЬКО ЧЕРЕЗ КЛАСС)
================================ */

.events-page-btn.is-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;

    background: #fafafa;
    border-color: rgba(0, 0, 0, .1);
    color: #888;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 480px) {
    .events-page-btn {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* GRID */
.tournaments-tiles{
  display:grid;
  grid-template-columns:repeat(auto-fill,160px);
  gap:5px;
}

/* CARD */
.tournament-tile{
  width:160px;
  display:flex;
  flex-direction:column;

  background:#fff;
  border:1px solid #d7d7d7;
  border-radius:14px;

  padding:10px;
  text-decoration:none;
  color:#111;

  box-shadow:0 1px 0 rgba(0,0,0,.03);
  transition:box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.tournament-tile:hover{
  border-color:#cfcfcf;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transform:translateY(-2px);
}


.tournament-tile__top{
  height:20px;

  display:flex;
  align-items:center;
  gap:6px;

  font-size:11px;
  color:#6f6f6f;

  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tournament-tile__top .flag{
  width:16px;
  height:12px;
  border-radius:2px;
  object-fit:cover;
  flex-shrink:0;
}
.tournament-tile__top .country{
  overflow:hidden;
  text-overflow:ellipsis;
}


.tournament-tile__image{
  height:100px;         
  margin-top:10px;
  margin-bottom:10px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#f6f6f6;        
  border-radius:12px;
  border:1px solid #ededed;
}
.tournament-tile__image img{
  width:100px;
  height:100px;
  object-fit:contain;
}

.tournament-tile__placeholder{
  width:100px;
  height:100px;
  border-radius:12px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.06), rgba(0,0,0,.02));
  border:1px dashed rgba(0,0,0,.10);
}

/* NAME (фикс зона) */
.tournament-tile__name{;               
  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;
  font-size:14px;
  font-weight:700;
  line-height:18px;
  color:#111;

  padding:0 6px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}



@keyframes skeletonPulse {
  0%   { opacity: 1; }
  50%  { opacity: .45; }
  100% { opacity: 1; }
}

.skeleton{
  background: #e5e7eb;
  border-radius: 6px;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-dates{
  width:160px;
  height:12px;
}
/* =======================
   ОБЁРТКА СТРАНИЦЫ КОМАНДЫ
======================= */

.team-page {
  padding-bottom: 60px;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  border-radius: 12px;
  padding: 15px;
}

/* =======================
   КАРТОЧКА
======================= */

.team-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* =======================
   HEADER
======================= */

.team-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.team-logo-wrap {
  flex-shrink: 0;
}

.team-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.team-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-name {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
}

.team-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

.team-name-eng {
  font-size: 14px;
  color: #6b7280;
}

.team-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  font-size: 14px;
  color: #374151;
  margin-top: 6px;
}

.team-extra div {
  white-space: nowrap;
}

/* MOBILE */

@media (max-width: 768px) {

  .team-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-logo {
    width: 80px;
    height: 80px;
  }

  .team-name {
    font-size: 22px;
  }

  .team-extra {
    flex-direction: column;
    gap: 6px;
  }
}
.team_page_turnament {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.team_page_turnament span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams_page_tourn_img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.events-pagination--top {
    margin-bottom: 15px;
}

.team-events-title {
    font-size: 18px;
    font-weight: 700;
    margin: 15px;
}
.team-squad-group {
    margin-bottom: 35px;
}

.team-squad-title {
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9e9e9;
}

/* ===== СТРОКА ИГРОКА ===== */

.team-player-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f1f1f1;
    text-decoration: none;
    transition: background 0.15s ease;
}

.team-player-row:hover {
    background: #f7f8fa;
}

/* ===== НОМЕР ===== */

.player-number-box {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #555;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== АВАТАР ===== */

.player-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.player-avatar.placeholder {
    background: #e5e5e5;
}

/* ===== ИМЯ + ФЛАГ ===== */

.player-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name {
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.player-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}
.team-transfers {
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    border:1px solid #eee;
}

/* FILTER */

.transfer-filter {
    display:flex;
    gap:10px;
    padding:14px;
}

.transfer-filter-btn {
    padding:6px 14px;
    border-radius:8px;
    border:none;
    background:#f2f2f2;
  
    font-size:13px;
    cursor:pointer;
    color:#000;
}
.transfer-filter-btn:hover {
    background:#f2f2f2;
}
.transfer-filter-btn.is-active {
    background:#ff2b4d;
    color:#fff;
}

/* HEAD */

.transfer-table-head {
    display:grid;
    grid-template-columns: 120px 1fr 1fr 140px;
    padding:10px 16px;
    font-size:12px;
    font-weight:700;
    color:#777;
    background:#fafafa;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

/* ROW */

.transfer-row {
    display:grid;
    grid-template-columns: 120px 1fr 1fr 140px;
    padding:14px 16px;
    align-items:center;
    font-size:14px;
    border-bottom:1px solid #f2f2f2;
    transition:0.15s ease;
}

.transfer-row:hover {
    background:#f9f9f9;
}

.transfer-date {
    color:#666;
}

/* PLAYER */

.transfer-player {
    display:flex;
    align-items:center;
    gap:10px;
}

.transfer-player-name {
    font-weight:600;
    text-decoration:none;
    color:#111;
}

.transfer-player-name:hover {
    color:#ff2b4d;
}

.transfer-flag {
    width:18px;
    height:12px;
    object-fit:cover;
    border-radius:2px;
}

/* CLUBS */

.transfer-clubs {
    display:flex;
    align-items:center;
    gap:10px;
}

.transfer-arrow {
    font-size:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:50%;
}

.transfer-arrow.in {
    background:#e9f9f1;
    color:#19c37d;
}

.transfer-arrow.out {
    background:#fff1f0;
    color:#ff4d4f;
}


/* PRICE */

.transfer-price {
    font-weight:600;
}

.text-right {
    text-align:right;
}
.transfer-pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:25px;
    padding:0 5px;
}

.transfer-page-btn {
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    color:#111;
    cursor:pointer;
    transition:all .2s ease;
}

.transfer-page-btn i {
    font-size:12px;
}

/* Hover */
.transfer-page-btn:hover:not(.is-disabled) {
    background:#f8fafc;
    border-color:#d1d5db;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    transform:translateY(-2px);
}

/* Active click */
.transfer-page-btn:active:not(.is-disabled) {
    transform:translateY(0);
    box-shadow:none;
}

/* Disabled */
.transfer-page-btn.is-disabled {
    opacity:.4;
    cursor:default;
    pointer-events:none;
}
.player-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
}

.player-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 24px;
  box-shadow: 0 6px 18px rgba(18,32,54,.06);
}

.player-photo {
  width: 180px;
  height: auto;
  border-radius: 12px;
}

.player-name-page {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 4px;
}

.player-short {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player-meta-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.player-meta-row .label {
  color: #6b7280;
  min-width: 150px;
}

.player-meta-row .value {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag {
  width: 20px;
  height: auto;
}

.team-logo-page {
  width: 22px;
  height: auto;
}

.player-events-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
}

.player-events-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: #111827;
}

.player-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pl-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  text-decoration: none;
  transition: background .2s;
}

.pl-event:hover {
  background: #eef2ff;
}

.pl-event-date {
  font-size: 12px;
  color: #6b7280;
  width: 70px;
  flex-shrink: 0;
}

.pl-event-teams {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.pl-event-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.pl-event-rating {
  background: #111827;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
}