/* SPLIT — основной макет: кланы + сетка + итоги, parallax-арена */
.d-split.page-home,
.d-split.layout-split {
  position: relative;
  height: calc(100vh - var(--header-h, 80px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.d-split {
  position: relative;
  width: 100%;
}

/* ── Parallax arena ── */
.d-split .arena-scene {
  position: fixed;
  inset: 0;
  top: var(--header-h, 72px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.d-split .arena-bg {
  position: absolute;
  left: -5%;
  right: -5%;
  top: -12%;
  bottom: -12%;
  background: url("assets/arena-fight.png") center 40% / cover no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.1);
}

.d-split .arena-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 45%, transparent 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.5) 0%, rgba(5, 8, 12, 0.72) 40%, rgba(5, 8, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 8, 12, 0.65) 0%, transparent 28%, transparent 72%, rgba(5, 8, 12, 0.65) 100%);
}

.d-split .split-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* ── Header (legacy bar — unused on home) ── */
.d-split .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.d-split .bar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: 8px;
}

.d-split .bar-brand .game {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #6b7f96;
}

.d-split .bar-brand .mode {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #00d4ff;
}

.d-split .bar b.title {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.d-split .bar .meta { color: #6b7f96; font-size: 0.8rem; }
.d-split .bar .prize {
  margin-left: auto;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00d4ff;
}

.d-split .bar .status {
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #6b7f96;
}

.d-split .bar .status.live {
  color: #ff3d5a;
  border-color: rgba(255, 61, 90, 0.45);
  background: rgba(255, 61, 90, 0.1);
}

/* ── Layout ── */
.d-split .layout {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.d-split .clan-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(12px);
}

.d-split .pane-title {
  padding: 18px 22px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a7f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.d-split .clan-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.d-split .clan-entry {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.d-split .clan-entry.open {
  background: rgba(0, 0, 0, 0.2);
}

.d-split .clan-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-bottom: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s;
}

.d-split .clan-item:hover { background: rgba(0, 212, 255, 0.05); }

.d-split .clan-item.active {
  background: var(--accent-glow, rgba(0, 212, 255, 0.1));
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.clan-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seed-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.d-split .clan-item b { display: block; font-size: 1.08rem; }
.d-split .clan-item small { color: var(--text-muted, #5a6a7f); font-size: 0.92rem; }
.d-split .clan-item .cnt {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.d-split .clan-detail {
  display: none;
  padding: 0 22px 16px 92px;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
}

.d-split .clan-detail.open {
  display: flex;
}

.d-split .clan-detail span {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-muted, #8b9cb0);
}

/* ── Right pane: всё вместе ── */
.d-split .view-pane {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 28px;
  scroll-behavior: smooth;
}

.d-split .split-sec {
  margin-bottom: 24px;
  scroll-margin-top: 12px;
}

.d-split .split-sec h2 {
  margin: 0 0 16px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9cb0;
}

.d-split .split-sec h2 .slash { color: var(--accent); margin-right: 8px; }

.d-split .panel-glass {
  padding: 20px;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.d-split .tb-tree--labeled {
  align-items: flex-start;
  height: auto;
  min-height: 420px;
  padding-top: 4px;
}

.d-split .tb-round-col {
  display: flex;
  flex-direction: column;
  height: 380px;
}

.d-split .tb-round-col--final {
  height: auto;
  min-height: 380px;
  justify-content: flex-start;
  gap: 20px;
}

.d-split .bronze-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.d-split .round-label--bronze {
  color: #c9a227;
  font-size: 0.78rem;
}

.d-split .tb-round--bronze .tb-match {
  border-color: rgba(201, 162, 39, 0.35);
}

.d-split .round-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a5a6f;
  text-align: center;
  margin-bottom: 8px;
}

.d-split .tb-line-pair::before,
.d-split .tb-line-pair::after,
.d-split .tb-line-pair .tb-vline,
.d-split .tb-line-pair .tb-mid {
  background: #2a4060;
  opacity: 0.75;
}

.d-split .tb-match {
  position: relative;
  background: rgba(5, 8, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: visible;
}

.d-split .tb-match.is-live {
  border-color: rgba(255, 61, 90, 0.5);
  box-shadow: 0 0 16px rgba(255, 61, 90, 0.12);
}

.d-split .live-dot {
  position: absolute;
  top: -7px;
  right: 6px;
  padding: 2px 5px;
  font-size: 0.5rem;
  font-weight: 800;
  color: #fff;
  background: #ff3d5a;
  border-radius: 3px;
  z-index: 2;
}

.d-split .tb-slot {
  height: 48px;
  padding: 0 14px;
  font-size: 1rem;
  color: #9aacbf;
  border-color: rgba(255, 255, 255, 0.06);
  gap: 4px;
}

.d-split .tb-tag { font-weight: 800; color: var(--accent); margin-right: 4px; }
.d-split .tb-slot.win {
  color: #e4eaf2;
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
}

.d-split .tb-slot.win .sc { color: var(--accent); font-size: 1.1rem; }

.d-split .stand-table {
  width: 100%;
  border-collapse: collapse;
}

.d-split .stand-table th,
.d-split .stand-table td {
  padding: 16px 18px;
  font-size: 1.08rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.d-split .stand-table th {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6a7f;
  background: rgba(0, 0, 0, 0.2);
}

.d-split .stand-table tr:hover td { background: rgba(0, 212, 255, 0.04); }
.d-split .stand-table tr.top3 td:first-child { color: var(--accent); font-weight: 800; }

/* Shared bracket — крупнее */
.tb-tree { display: flex; justify-content: center; min-width: 920px; height: 440px; }
.tb-round { width: 240px; }
.tb-slot { height: 46px; font-size: 0.98rem; padding: 0 14px; display: flex; align-items: center; }
.tb-match { width: 240px; }

@media (max-width: 900px) {
  .d-split.page-home { height: auto; min-height: calc(100vh - var(--header-h)); }
  body.page-home { overflow: auto; }
  .d-split .layout { grid-template-columns: 1fr; }
  .d-split .clan-pane { max-height: 280px; }
  .d-split .view-pane { max-height: none; }
}
