/* /league/ — дашборд Figma (сайдбар + сетка) */
:root {
  --lhd-bg: #000000;
  --lhd-panel: #000000;
  --lhd-border: #424242;
  --lhd-text: #BEBEBE;
  --lhd-muted: #6c6c6c;
  --lhd-green: #17e105;
  --lhd-green-border: #02b122;
  --lhd-green-dark: #007315;
  --lhd-sidebar-w: 299px;
  --lhd-ui-scale: 1;
  --lhd-row-mid-h: 300px;
  --lhd-row-bottom-h: 208px;
  --lhd-hero-h: 292px;
  --lhd-hero-pad-top: 12px;
  --lhd-green-bright: #02b122;
  --lhd-frame: 1678px;
  --lhd-hero-tournament-w: 220px;
  --lhd-font: 'Exo 2', sans-serif;
  --lhd-grid-gap: 14px;
  --lhd-avatar-border: 1px;
}

/* Главная: компактнее (~90%), hero ниже от верха */
body.league-body.league-dashboard.league-home {
  --lhd-ui-scale: 0.9;
  --lhd-frame: 1510px;
  --lhd-row-mid-h: 270px;
  --lhd-row-bottom-h: 204px;
  --lhd-hero-h: 400px;
  --lhd-hero-pad-top: 44px;
  --lhd-hero-to-grid-gap: 52px;
  --lhd-hero-type-scale: 1;
  --lhd-hero-tournament-w: 220px;
  --lhd-hero-promo-gap: 36px;
  --lhd-grid-gap: 14px;
}

body.league-body.league-dashboard {
  background: #000000 !important;
  font-family: var(--lhd-font);
  overflow-x: clip;
  overflow-y: visible;
}

body.league-body.league-dashboard.league-home {
  --lh-bg: #000000;
  --lh-panel: #000000;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}

body.league-body.league-dashboard .league-home-bg__vec {
  display: none !important;
  visibility: hidden !important;
}

body.league-body.league-dashboard main.league-dashboard__main {
  padding: 0 !important;
  max-width: none !important;
  min-height: 100vh;
  background: #000000 !important;
}

/* Toast-уведомления (Django messages) — поверх layout, не ломают сетку */
.lhd-toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  right: auto;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  transform: translateX(-50%);
  pointer-events: none;
  box-sizing: border-box;
}

.lhd-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border: 1px solid #424242;
  border-radius: 10px;
  background: rgba(4, 4, 4, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  font-family: var(--lhd-font);
  box-sizing: border-box;
  animation: lhd-toast-in 0.28s ease-out;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lhd-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes lhd-toast-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lhd-toast__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #bebebe;
  letter-spacing: 0.02em;
}

.lhd-toast__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6c6c6c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lhd-toast__close:hover {
  color: #bebebe;
  background: rgba(255, 255, 255, 0.06);
}

.lhd-toast--success {
  border-color: #02b122;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(2, 177, 34, 0.15);
}

.lhd-toast--success .lhd-toast__text {
  color: #bebebe;
}

.lhd-toast--error {
  border-color: #f43f5e;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 63, 94, 0.12);
}

.lhd-toast--warning {
  border-color: #d4a017;
}

.lhd-toast--info {
  border-color: #424242;
}

@media (max-width: 640px) {
  .lhd-toast-stack {
    top: 12px;
    left: 50%;
    width: calc(100vw - 24px);
    max-width: none;
    transform: translateX(-50%);
    align-items: stretch;
  }
}

/* Старый блок messages в потоке — не используем */
body.league-body.league-dashboard .messages.lhd-messages {
  display: none !important;
}

.lhd-page .auth-page {
  min-height: calc(100vh - 40px);
}

.lhd-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  background: #000000;
  padding-left: var(--lhd-sidebar-w);
  box-sizing: border-box;
}

.lhd-main,
.lhd-shell {
  background: #000000;
}

/* —— Sidebar (Figma 2:473) —— */
.lhd-sidebar {
  width: var(--lhd-sidebar-w);
  flex-shrink: 0;
  background: #040404;
  border-right: 1px solid #101010;
  display: flex;
  flex-direction: column;
  padding: 24px 26px 16px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 20;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}

.lhd-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lhd-sidebar__brand {
  display: flex;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  margin-bottom: 22px;
  min-height: 54px;
}

.lhd-sidebar__brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.lhd-sidebar__brand-frame,
.lhd-sidebar__brand-clover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lhd-sidebar__brand-clover {
  left: 31px;
  top: 13px;
  width: 32px;
  height: auto;
  transform: none;
  z-index: 1;
}

.lhd-sidebar__brand-frame {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: contain;
}

.lhd-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  margin-left: 25px;
  padding-top: 3px;
}

.lhd-sidebar__brand-top {
  font-family: var(--lhd-font);
  font-size: 24px;
  font-weight: 700;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lhd-sidebar__brand-bottom {
  font-family: var(--lhd-font);
  font-size: 24px;
  font-weight: 700;
  color: #17e105;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-top: -2px;
}

.lhd-sidebar__quick {
  display: none;
}

.lhd-sidebar__search-wrap {
  position: relative;
  margin-bottom: 18px;
}

.lhd-sidebar__search {
  display: flex;
  align-items: center;
  gap: 0;
  height: 35px;
  padding: 0 12px 0 38px;
  border: 1px solid #424242;
  border-radius: 5px;
  background: transparent;
  margin-bottom: 0;
  box-sizing: border-box;
  position: relative;
}

.lhd-sidebar__search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 1;
}

.lhd-sidebar__search input,
.lhd-sidebar__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--lhd-text);
  font-family: var(--lhd-font);
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.lhd-sidebar__search input::placeholder,
.lhd-sidebar__search-input::placeholder {
  color: #424242;
  opacity: 1;
}

.lhd-search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: 280px;
  overflow-y: auto;
  background: #000000;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.lhd-search-suggest__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: #bebebe;
  font-family: var(--lhd-font);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.lhd-search-suggest__item:hover,
.lhd-search-suggest__item.is-active {
  background: rgba(23, 225, 5, 0.08);
}

.lhd-search-suggest__item mark {
  background: transparent;
  color: #17e105;
  font-weight: 600;
}

.lhd-search-suggest__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #000000;
  border: 1px solid #424242;
}

.lhd-search-suggest__avatar--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #888;
}

.lhd-search-suggest__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lhd-search-suggest__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhd-search-suggest__team {
  font-size: 11px;
  color: #6a6a6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhd-search-suggest__empty {
  padding: 12px 10px;
  font-size: 12px;
  color: #6a6a6a;
  text-align: center;
}

.lhd-sidebar__search svg {
  flex-shrink: 0;
  opacity: 0.45;
  color: var(--lhd-muted);
}

.lhd-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

.lhd-nav__link,
.lhd-nav a,
button.lhd-nav__link--dm {
  --stroke-0: #424242;
  --fill-0: #424242;
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  width: calc(100% + 52px);
  margin-left: -26px;
  margin-right: -26px;
  padding: 0 36px 0 82px;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--lhd-font);
  font-size: 13px;
  font-weight: 600;
  color: #424242;
  text-transform: uppercase;
  transition: color 0.2s ease;
  box-sizing: border-box;
}

.lhd-nav__link:hover:not(.is-active),
.lhd-nav a:hover:not(.is-active) {
  color: #6c6c6c;
}

/* Активный пункт сайдбара — Figma J4SIwLLdTLbajMQxPqN6Wm, node 2678:227 */
.lhd-nav__link.is-active:not(.lhd-nav__link--dm),
.lhd-nav a.is-active {
  --stroke-0: #02b122;
  --fill-0: #02b122;
  color: #ffffff !important;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  isolation: isolate;
  background: linear-gradient(
    90deg,
    rgb(2, 177, 34) 0%,
    rgba(10, 172, 40, 0.09) 1%,
    rgba(35, 159, 58, 0.08) 31.731%,
    rgba(24, 145, 50, 0.085) 58%,
    rgba(18, 125, 42, 0.07) 76%,
    rgba(12, 95, 32, 0.055) 91%,
    rgba(8, 70, 24, 0.04) 99%,
    rgba(7, 7, 7, 0) 100%
  );
}

.lhd-nav__link.is-active:not(.lhd-nav__link--dm) .lhd-nav__icon-wrap,
.lhd-nav a.is-active .lhd-nav__icon-wrap {
  z-index: 2;
}

.lhd-nav__link.is-active::before,
.lhd-nav a.is-active::before,
button.lhd-nav__link--dm.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #02b122;
  z-index: 1;
}

button.lhd-nav__link--dm.is-active {
  color: #424242 !important;
  background: transparent;
  box-shadow: none;
}

button.lhd-nav__link--dm.is-active .lhd-nav__icon-wrap {
  z-index: 2;
}

.lhd-nav__icon-wrap {
  position: absolute;
  left: 31px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.lhd-nav__icon-wrap--home,
.lhd-nav__icon-wrap--play,
.lhd-nav__icon-wrap--team,
.lhd-nav__icon-wrap--friends,
.lhd-nav__icon-wrap--messages,
.lhd-nav__icon-wrap--rating,
.lhd-nav__icon-wrap--season {
  width: 24px;
  height: 24px;
  left: 31px;
}

.lhd-nav__icon-wrap--profile {
  width: 19px;
  height: 24px;
  left: 31px;
}

.lhd-nav__icon-wrap--profile .lhd-nav__icon {
  width: 19px;
  height: 24px;
  max-width: 19px;
  max-height: 24px;
  object-fit: contain;
}

.lhd-nav__icon-wrap--season .lhd-nav__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.lhd-nav__icon-wrap--notify {
  width: 20px;
  height: 20px;
}

.lhd-nav__icon-wrap--about {
  width: 18px;
  height: 18px;
}

.lhd-nav__icon-wrap--rules {
  width: 16px;
  height: 18px;
  left: 33px;
}

.lhd-nav__sep {
  height: 1px;
  margin: 12px 0 10px;
  padding: 0;
  border: none;
  background: none;
}

.lhd-nav__sep img {
  display: block;
  width: 100%;
  max-width: 241px;
  height: 1px;
  object-fit: fill;
}

.lhd-nav__label {
  flex: 1;
  min-width: 0;
  margin-left: 2px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.lhd-nav__link.is-active .lhd-nav__label,
.lhd-nav a.is-active .lhd-nav__label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.lhd-nav__badge {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  z-index: 3;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #17e105;
  color: #060606;
  -webkit-text-fill-color: #060606;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--lhd-font);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  filter: none;
}

.lhd-nav__badge[hidden] {
  display: none !important;
}

/* Счётчик всегда зелёный, даже на активной вкладке */
.lhd-nav__link.is-active .lhd-nav__badge,
.lhd-nav a.is-active .lhd-nav__badge,
button.lhd-nav__link--dm.is-active .lhd-nav__badge {
  background: #17e105;
  color: #060606;
  -webkit-text-fill-color: #060606;
  box-shadow: none;
}

.lhd-nav__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
  opacity: 1;
}

/* Активная иконка — отдельный SVG (nav-*-green.svg), без CSS-filter */
.lhd-nav__link.is-active .lhd-nav__icon,
.lhd-nav a.is-active .lhd-nav__icon {
  filter: none;
}

.lhd-nav__link--meta .lhd-nav__label,
.lhd-nav a.lhd-nav__item--meta .lhd-nav__label {
  font-weight: 600;
}

.lhd-nav__icon-wrap--tech,
.lhd-nav__icon-wrap--admin {
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lhd-nav__icon--svg {
  color: #424242;
  display: block;
}

.lhd-nav__link--tech:hover .lhd-nav__icon--svg,
.lhd-nav__link--tech.is-active .lhd-nav__icon--svg,
.lhd-nav__link--admin:hover .lhd-nav__icon--svg {
  color: #02b122;
}

.lhd-nav__link.is-active.lhd-nav__link--tech .lhd-nav__icon--svg {
  color: #02b122;
}

.lhd-nav a.lhd-nav__item--sub {
  padding-left: 28px;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
}

.lhd-nav a.lhd-nav__item--sub.is-active {
  padding-left: 82px;
}

.lhd-sidebar__spacer {
  flex: 1;
  min-height: 12px;
}

.lhd-sidebar__support,
.lhd-sidebar__logout {
  display: flex;
  align-items: center;
  width: calc(100% + 52px);
  min-height: 46px;
  margin: 8px -26px 0;
  padding: 0 30px 0 31px;
  box-sizing: border-box;
  color: #424242;
  text-decoration: none;
  font-family: var(--lhd-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.lhd-sidebar__support:hover {
  color: #fbbf24;
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.12) 0%,
    rgba(251, 191, 36, 0.045) 45%,
    rgba(7, 7, 7, 0) 100%
  );
}

.lhd-sidebar__logout:hover {
  color: #02b122;
  background: linear-gradient(
    90deg,
    rgba(2, 177, 34, 0.12) 0%,
    rgba(2, 177, 34, 0.045) 45%,
    rgba(7, 7, 7, 0) 100%
  );
}

.lhd-sidebar__support-icon,
.lhd-sidebar__logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 27px;
  color: currentColor;
  flex-shrink: 0;
}

.lhd-sidebar__support-label,
.lhd-sidebar__logout-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lhd-sidebar__clover {
  display: none;
}

.lhd-sidebar__soc {
  display: none;
}

.lhd-sidebar__soc a {
  display: block;
  line-height: 0;
}

.lhd-sidebar__soc img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.lhd-sidebar__soc a:hover img {
  opacity: 0.85;
}

/* —— Main —— */
.lhd-main {
  flex: 1;
  min-width: 0;
  padding: 0 22px;
  background: #000000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: visible;
}

.lhd-page {
  width: 100%;
  max-width: var(--lhd-frame);
  margin: 0 auto;
  padding: calc(20px * var(--lhd-ui-scale)) 0 calc(16px * var(--lhd-ui-scale));
  box-sizing: border-box;
  flex: 1 0 auto;
  overflow: visible;
}

body.league-body.league-home .lhd-page {
  padding-top: 40px;
}

.lhd-shell {
  max-width: var(--lhd-frame);
  margin: 0 auto;
  width: 100%;
  flex: 1 0 auto;
}

/* Hero — welcome | (турнир + сезон) как в Figma */
.lhd-hero-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: calc(28px * var(--lhd-ui-scale));
  min-height: var(--lhd-hero-h);
  margin-bottom: var(--lhd-hero-to-grid-gap, var(--lhd-grid-gap));
  padding: var(--lhd-hero-pad-top) 0 calc(20px * var(--lhd-ui-scale));
  overflow: visible;
  background: #000000;
}

/* Figma: карточка турнира и SUMMER SEASON — один ряд, общий верх */
.lhd-hero-promo {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--lhd-hero-promo-gap, 36px);
  justify-content: flex-start;
  min-width: 0;
}

/* Белый клевер сверху по центру — верхняя половина видна */
.lhd-hero-zone__clover {
  position: absolute;
  left: 50%;
  top: calc(-72px - 11cm);
  width: min(880px, 74vw);
  z-index: 0;
  pointer-events: none;
  transform: translateX(-50%) scaleY(-1);
}

.lhd-hero-zone__clover img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.lhd-welcome {
  position: relative;
  z-index: 2;
  grid-column: 1;
  align-self: center;
  border: none;
  padding: 0 0 0 28px;
  margin: 0;
  overflow: visible;
  min-height: 0;
  background: transparent;
}

.lhd-welcome__kicker {
  position: relative;
  font-family: var(--lhd-font);
  font-size: calc(20px * var(--lhd-hero-type-scale, var(--lhd-ui-scale)));
  font-weight: 700;
  color: var(--lhd-muted);
  margin: 0 0 8px;
}

.lhd-welcome__name {
  position: relative;
  font-family: var(--lhd-font);
  font-size: calc(48px * var(--lhd-hero-type-scale, var(--lhd-ui-scale)));
  font-weight: 700;
  color: var(--lhd-text);
  margin: 0 0 10px;
  line-height: 1.05;
  word-break: break-word;
}

.lhd-welcome__role {
  position: relative;
  font-family: var(--lhd-font);
  font-size: calc(18px * var(--lhd-hero-type-scale, var(--lhd-ui-scale)));
  font-weight: 700;
  margin: 0;
}

.lhd-welcome__role-muted {
  color: var(--lhd-muted);
}

.lhd-welcome__role strong {
  color: var(--lhd-green);
  font-weight: 700;
}

.lhd-hero-tournament {
  position: relative;
  z-index: 2;
  flex: 0 0 var(--lhd-hero-tournament-w);
  width: var(--lhd-hero-tournament-w);
  height: calc(280px * var(--lhd-ui-scale));
  min-height: calc(280px * var(--lhd-ui-scale));
  text-align: left;
  padding: calc(24px * var(--lhd-ui-scale)) calc(20px * var(--lhd-ui-scale)) calc(20px * var(--lhd-ui-scale));
  box-sizing: border-box;
  border: 1px solid #424242;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.lhd-hero-tournament__name {
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  color: #BEBEBE;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lhd-hero-tournament__meta {
  font-family: var(--lhd-font);
  font-size: calc(10.5px * var(--lhd-ui-scale));
  font-weight: 600;
  color: var(--lhd-border);
  margin: 0 0 calc(72px * var(--lhd-ui-scale));
  text-transform: lowercase;
}

.lhd-hero-tournament__countdown-label {
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  color: var(--lhd-border);
  margin: 0 0 6px;
  text-transform: uppercase;
}

.lhd-hero-timer__digits {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-family: var(--lhd-font);
  font-size: calc(25px * var(--lhd-ui-scale));
  font-weight: 600;
  color: #BEBEBE;
  line-height: 1;
  margin-bottom: 4px;
}

.lhd-hero-timer__sep {
  color: var(--lhd-muted);
  font-weight: 600;
}

.lhd-hero-timer__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 200px;
  margin: 0 0 18px;
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  color: var(--lhd-border);
  text-transform: uppercase;
}

.lhd-hero-tournament__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: calc(196px * var(--lhd-ui-scale));
  height: calc(37px * var(--lhd-ui-scale));
  padding: 0 16px;
  border: 1.051px solid var(--lhd-green-bright);
  border-radius: 5.256px;
  background: rgba(2, 177, 34, 0.14);
  color: #BEBEBE;
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lhd-hero-tournament__btn:hover {
  background: rgba(2, 177, 34, 0.24);
  border-color: var(--lhd-green);
  color: #BEBEBE;
}

.lhd-hero-season {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  text-align: left;
  padding: 0;
  max-width: min(409px, 42vw);
  min-width: 0;
}

.lhd-hero-season__title {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 0.9;
}

.lhd-hero-season__line {
  font-family: var(--lhd-font);
  font-size: clamp(2.85rem, 4.8vw, 70px);
  font-weight: 600;
  color: var(--lhd-text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.lhd-hero-season__line--accent {
  color: var(--lhd-green-bright);
  font-size: clamp(3.35rem, 5.4vw, 96px);
  line-height: 0.88;
}

.lhd-hero-season__blurb {
  margin: 0;
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-hero-type-scale, var(--lhd-ui-scale)));
  font-weight: 600;
  line-height: 1.35;
  color: var(--lhd-border);
  text-align: left;
  white-space: pre-line;
  max-width: 409px;
  text-transform: uppercase;
}

/* Cards */
.lhd-card {
  border: 1px solid var(--lhd-border);
  border-radius: calc(12px * var(--lhd-ui-scale));
  background: #000000;
  padding: calc(12px * var(--lhd-ui-scale)) calc(14px * var(--lhd-ui-scale));
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.lhd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.lhd-card__title {
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  color: var(--lhd-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.lhd-card.lhd-hl .lhd-card__title,
.lhd-card--team .lhd-card__title,
.lhd-card--stats .lhd-card__title,
.lhd-card--season .lhd-card__title,
.lhd-card--top-teams .lhd-card__title,
.lhd-card--feed .lhd-card__title {
  color: #424242;
}

.lhd-card__dot {
  width: 5px;
  height: 5px;
  background: var(--lhd-green);
  flex-shrink: 0;
}

.lhd-card__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--lhd-font);
  font-size: calc(10px * var(--lhd-ui-scale));
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--lhd-green);
  text-decoration: none;
  white-space: nowrap;
}

.lhd-card__link .league-link-arrow,
.lhd-card__link-arrow {
  width: calc(6px * var(--lhd-ui-scale));
  height: calc(6px * var(--lhd-ui-scale));
  object-fit: contain;
  transform: rotate(90deg);
}

.lhd-card__link:hover {
  text-decoration: underline;
}

/* Mid row — хайлайты | турнир | команда (Figma ~510 : 290 : 630) */
.lhd-grid-mid {
  display: grid;
  grid-template-columns: minmax(0, 510fr) minmax(0, 290fr) minmax(0, 630fr);
  gap: var(--lhd-grid-gap, 10px);
  margin-bottom: var(--lhd-grid-gap);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.lhd-grid-mid > .lhd-card {
  min-height: var(--lhd-row-mid-h);
  height: var(--lhd-row-mid-h);
  max-height: var(--lhd-row-mid-h);
}

.lhd-grid-bottom {
  display: grid;
  grid-template-columns: minmax(0, 365fr) minmax(0, 506fr) minmax(0, 333fr) minmax(0, 332fr);
  gap: var(--lhd-grid-gap, 10px);
  margin-bottom: var(--lhd-grid-gap);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.lhd-grid-bottom > .lhd-card {
  min-height: var(--lhd-row-bottom-h);
  height: var(--lhd-row-bottom-h);
  max-height: var(--lhd-row-bottom-h);
  padding: 14px 14px 12px;
}

/* Нижний ряд: заголовки на одной линии, типографика Figma */
.lhd-grid-bottom .lhd-card__head {
  align-items: center;
  min-height: 18px;
  margin-bottom: 8px;
}

.lhd-grid-bottom > .lhd-card--feed {
  padding-bottom: 14px;
}

.lhd-grid-bottom .lhd-card__title {
  font-size: 13px;
  line-height: 1.2;
}

.lhd-grid-bottom .lhd-card__link {
  font-size: calc(10px * var(--lhd-ui-scale));
}

.lhd-grid-bottom .lhd-card__link .league-link-arrow,
.lhd-grid-bottom .lhd-card__link-arrow {
  width: 5px;
  height: 5px;
}

.lhd-grid-bottom .lhd-stat__lbl {
  color: #424242;
}

.lhd-grid-bottom .lhd-stat__val {
  color: var(--lhd-text);
}

.lhd-grid-bottom .lhd-quick__label {
  color: #ccc;
}

.lhd-grid-bottom .lhd-quick__icon {
  width: 36px;
  height: 32px;
  object-fit: contain;
}

.lhd-grid-bottom .lhd-quick__label,
.lhd-grid-bottom .lhd-top-row__name,
.lhd-grid-bottom .lhd-top-row__stats,
.lhd-grid-bottom .lhd-feed li a,
.lhd-grid-bottom .lhd-empty-note {
  font-size: 11px;
}

.lhd-grid-bottom .lhd-feed {
  gap: 4px;
  justify-content: flex-start;
}

.lhd-grid-bottom .lhd-feed li a {
  min-height: 0;
  padding: 2px 0;
  line-height: 1.25;
}

@media (max-width: 1200px) {
  .lhd-hero-zone {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 16px 8px;
  }

  .lhd-welcome {
    grid-column: 1;
    padding: 0 0 0 24px;
  }

  .lhd-hero-promo {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  .lhd-hero-tournament,
  .lhd-card--tournament .lhd-mid-tournament.lhd-hero-tournament {
    flex: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .lhd-hero-season {
    max-width: none;
    padding-left: 24px;
  }

  .lhd-hero-season__title {
    align-items: flex-start;
  }

  .lhd-grid-mid {
    grid-template-columns: 1fr;
  }

  .lhd-grid-mid > .lhd-card {
    height: auto;
    max-height: none;
  }

  .lhd-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .lhd-grid-bottom > .lhd-card {
    height: auto;
  }

  .lhd-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lhd-info-col:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .lhd-layout {
    flex-direction: column;
    padding-left: 0;
  }

  .lhd-sidebar {
    width: 100%;
    min-height: 0;
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #101010;
  }

  .lhd-sidebar__clover {
    display: none;
  }

  .lhd-hero-zone {
    grid-template-columns: 1fr;
  }

  .lhd-hero-tournament,
  .lhd-hero-season {
    grid-column: 1;
    text-align: left;
  }

  .lhd-hero-season__title {
    align-items: flex-start;
  }

  .lhd-hero-season__blurb {
    text-align: left;
  }

  .lhd-grid-mid,
  .lhd-grid-bottom,
  .lhd-info-grid {
    grid-template-columns: 1fr;
  }

  .lhd-grid-mid > .lhd-card,
  .lhd-grid-bottom > .lhd-card {
    min-height: 0;
    height: auto;
  }

  .lhd-welcome__name {
    font-size: clamp(1.75rem, 8vw, 48px);
  }
}

/* Season frame — Figma node 2678:103 */
.lhd-card--season {
  display: flex;
  flex-direction: column;
}

.lhd-season-frame {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.lhd-season-frame__art {
  position: relative;
  top: -1mm;
  flex: 0 0 234px;
  width: calc(234px + 1cm);
  margin-right: -1cm;
  height: 128px;
  border-radius: 10px;
  border: 1px solid var(--lhd-border);
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.lhd-season-frame__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 22%;
  image-rendering: auto;
}

.lhd-season-frame__body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.lhd-season-frame__name {
  position: relative;
  top: calc(-6px - 3mm);
  margin: 0 0 0 2cm;
  font-family: 'Exo 2', sans-serif;
  font-size: 17.676px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
}

.lhd-season-frame__name span {
  display: block;
}

.lhd-season-frame__dates {
  margin: 5mm 0 0 2cm;
  font-family: 'Exo 2', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #424242;
  letter-spacing: 0.02em;
}

.lhd-season-frame__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  flex-shrink: 0;
  height: 24px;
  margin-left: 2cm;
  border: 1px solid var(--lhd-border);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lhd-season-frame__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--lhd-text);
  color: var(--lhd-text);
}

@media (max-width: 1200px) {
  .lhd-season-frame {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lhd-season-frame__art {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    margin-right: 0;
    height: 120px;
  }
}

/* Legacy season card (unused on home grid) */
.lhd-season {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: var(--lhd-green-border);
}

.lhd-season__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: var(--lhd-row-top-h);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.lhd-season__bg {
  position: absolute;
  inset: 0;
  background: url('../league/figma/season-bg.png') center / cover no-repeat;
  z-index: 0;
}

.lhd-season__kicker {
  font-family: var(--lhd-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--lhd-text);
  margin: 0 0 6px;
}

.lhd-season__name {
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lhd-green);
  margin: 0 0 2px;
  line-height: 1.1;
  max-width: 70%;
}

.lhd-season__dates {
  font-family: 'Exo 2', sans-serif;
  font-size: 20px;
  color: var(--lhd-border);
  margin: 0 0 12px;
}

.lhd-season__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--lhd-green);
  border-radius: 10px;
  color: var(--lhd-text);
  background: rgba(2, 177, 34, 0.2);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, border-color 0.2s;
}

.lhd-season__btn:hover {
  background: rgba(23, 225, 5, 0.14);
  color: var(--lhd-green);
}

/* Highlights */
.lhd-hl {
  padding: 0;
  overflow: hidden;
}

.lhd-hl .lhd-card__head,
.lhd-hl__head {
  padding: 14px 16px 8px;
  margin-bottom: 0;
  align-items: flex-start;
  justify-content: flex-start;
}

.lhd-hl__stage {
  display: block;
  flex: 1;
  min-height: 0;
  padding: 0 12px 12px;
  box-sizing: border-box;
}

.lhd-hl__carousel {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 0;
}

.lhd-hl__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 0;
}

.lhd-hl__frame .league-home-hl {
  width: 100%;
}

.lhd-hl__frame .league-home-hl__viewport-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  height: auto;
  overflow: visible;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

.lhd-hl__frame .league-home-hl__viewport {
  position: relative;
  width: 100%;
  height: calc(232px * var(--lhd-ui-scale));
  max-height: none;
  overflow: hidden;
  background: #000;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
}

.lhd-hl__frame .league-home-hl__track,
.lhd-hl__frame .league-home-hl__page,
.lhd-hl__frame .league-home-hl__cell,
.lhd-hl__frame .league-home-hl__media {
  height: 100%;
  min-height: 0;
}

.lhd-hl__frame .league-home-hl__pubdates {
  display: none;
}

/* Полоски переключения — Figma Rectangle 510–513 (~33×3px) */
.lhd-hl__frame .lhd-hl__bars.league-home-hl__dots {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  max-width: none;
  margin: 12px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.lhd-hl__frame .lhd-hl__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lhd-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #BEBEBE;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lhd-hl__frame .lhd-hl__sound:hover {
  border-color: var(--lhd-green);
  background: rgba(0, 0, 0, 0.88);
  color: var(--lhd-green);
}

.lhd-hl__frame .lhd-hl__sound:focus-visible {
  outline: 2px solid var(--lhd-green);
  outline-offset: 2px;
}

.lhd-hl__frame .lhd-hl__sound-ico {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.lhd-hl__frame .lhd-hl__sound-ico--on {
  display: none;
}

.lhd-hl__frame .lhd-hl__sound.is-unmuted .lhd-hl__sound-ico--muted {
  display: none;
}

.lhd-hl__frame .lhd-hl__sound.is-unmuted .lhd-hl__sound-ico--on {
  display: block;
}

.lhd-hl__frame .league-home-hl__dot {
  flex: 0 0 33px;
  width: 33px;
  height: 3px;
  min-height: 3px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: var(--lhd-border);
  cursor: pointer;
  transition: background 0.2s;
}

.lhd-hl__frame .league-home-hl__dot.is-active {
  background: var(--lhd-green);
}

.lhd-hl__frame .league-home-hl__dot:hover:not(.is-active) {
  background: #6c6c6c;
}

.lhd-hl__frame .league-home-hl__cap {
  display: none;
}

.lhd-hl__nav-btn {
  flex: 0 0 calc(20px * var(--lhd-ui-scale));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(20px * var(--lhd-ui-scale));
  height: calc(232px * var(--lhd-ui-scale));
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #424242;
  cursor: pointer;
  transition: color 0.2s;
}

.lhd-hl__nav-btn:hover,
.lhd-hl__nav-btn:focus-visible {
  color: var(--lhd-green);
}

.lhd-hl__nav-btn:focus-visible {
  outline: 2px solid var(--lhd-green);
  outline-offset: 2px;
}

.lhd-hl__chev {
  display: block;
  width: 8px;
  height: 8px;
  border: none;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.lhd-hl__chev--prev {
  transform: rotate(-135deg);
}

.lhd-hl__chev--next {
  transform: rotate(45deg);
}

/* Турнир в среднем ряду — Figma card ~260×298 */
.lhd-card.lhd-card--tournament {
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.lhd-card--tournament .lhd-mid-tournament.lhd-hero-tournament {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: calc(18px * var(--lhd-ui-scale)) calc(16px * var(--lhd-ui-scale)) calc(16px * var(--lhd-ui-scale));
  box-sizing: border-box;
}

.lhd-card--tournament .lhd-hero-tournament__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.lhd-card--tournament .lhd-hero-tournament__name {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 6px;
  font-size: clamp(16px, 1.08vw, 19px);
  line-height: 1.05;
  font-weight: 600;
  color: var(--lhd-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0;
  box-sizing: border-box;
}

.lhd-card--tournament .lhd-hero-tournament__meta {
  margin: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: lowercase;
}

.lhd-card--tournament .lhd-hero-tournament__countdown-label {
  margin-top: auto;
  padding-top: calc(12px * var(--lhd-ui-scale));
  align-self: center;
  text-align: center;
}

.lhd-card--tournament .lhd-hero-timer {
  align-self: center;
  width: 100%;
  margin: 0 0 calc(10px * var(--lhd-ui-scale));
}

.lhd-card--tournament .lhd-hero-tournament__btn {
  align-self: center;
  width: calc(182px * var(--lhd-ui-scale));
  max-width: calc(100% - 16px);
  margin-top: 0;
}

.lhd-card--tournament .lhd-hero-timer__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.lhd-card--tournament .lhd-hero-timer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: auto;
}

.lhd-card--tournament .lhd-hero-timer__val {
  font-family: var(--lhd-font);
  font-size: calc(25px * var(--lhd-ui-scale));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--lhd-text);
  text-align: center;
  width: 2.25ch;
  min-width: 2.25ch;
}

.lhd-card--tournament .lhd-hero-timer__unit-lbl {
  font-family: var(--lhd-font);
  font-size: calc(14px * var(--lhd-ui-scale));
  font-weight: 600;
  line-height: 1;
  color: #424242;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.lhd-card--tournament .lhd-hero-timer__sep {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  padding: 0 1px;
  font-family: var(--lhd-font);
  font-size: calc(25px * var(--lhd-ui-scale));
  font-weight: 600;
  line-height: 1;
  color: var(--lhd-text);
}

.lhd-hl__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lhd-muted);
  font-size: 13px;
  padding: 20px;
}

/* Team roster — Figma full-width rows */
.lhd-card--team {
  padding: 0;
  overflow: hidden;
}

.lhd-card--team .lhd-card__head {
  padding: 14px 16px 10px 25px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.lhd-card--team .lhd-team-list {
  flex: 1;
  min-height: 0;
  margin-top: -8px;
  padding-bottom: 3mm;
  box-sizing: border-box;
}

.lhd-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.lhd-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-height: 44px;
  height: auto;
  max-height: 54px;
  padding: 0 14px 0 22px;
  border-radius: 0;
  background: #000000;
  box-sizing: border-box;
}

.lhd-team-row__av {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: var(--lhd-avatar-border) solid #424242 !important;
  background: #141414;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: none !important;
  outline: none !important;
}

body.league-body.league-home .lhd-team-row__av,
body.league-body.league-home img.lhd-team-row__av {
  border-color: #424242 !important;
  border-width: 1px !important;
}

.lhd-team-row__av--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lhd-font);
  font-size: 16px;
  font-weight: 600;
  color: #BEBEBE;
}

.lhd-team-row__name {
  flex: 1;
  min-width: 0;
  font-family: var(--lhd-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--lhd-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhd-team-row__name:hover {
  color: var(--lhd-green);
}

.lhd-team-row__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  height: 26px;
  padding: 0 8px;
  font-family: var(--lhd-font);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 5px;
  border: 1.5px solid transparent;
  background: transparent;
  letter-spacing: 0.04em;
}

.lhd-empty-note {
  font-size: 13px;
  color: var(--lhd-muted);
  margin: 0;
  line-height: 1.5;
}

.lhd-empty-note a {
  color: var(--lhd-green);
}

.lhd-team-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  padding: 16px 25px 22px;
  text-align: center;
  box-sizing: border-box;
}

.lhd-team-empty__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.lhd-team-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.lhd-card--team .lhd-team-empty__actions .league-btn {
  min-width: 148px;
}

/* Stats */
.lhd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  align-content: center;
}

.lhd-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.lhd-stat__lbl {
  font-family: var(--lhd-font);
  font-size: 10px;
  font-weight: 600;
  color: var(--lhd-border);
  margin-bottom: 6px;
}

.lhd-stat__val {
  font-family: var(--lhd-font);
  font-size: calc(20px * var(--lhd-ui-scale));
  font-weight: 600;
  color: var(--lhd-text);
  line-height: 1.1;
  margin-top: 8px;
}

/* Quick access — home-v2/Group 146 */
.lhd-card--quick {
  background: #000000;
}

.lhd-quick {
  display: grid;
  grid-template-columns: repeat(4, 90px);
  gap: 20px;
  flex: 1;
  justify-content: center;
  align-content: center;
  padding: 0 8px;
  box-sizing: border-box;
}

body.league-body.league-home .lhd-quick {
  grid-template-columns: repeat(4, 81px);
  gap: 16px;
}

.lhd-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 90px;
  height: 110px;
  border-radius: 5px;
  text-decoration: none;
  background: #000000;
  border: 1px solid var(--lhd-border);
  color: var(--lhd-text);
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

body.league-body.league-home .lhd-quick a {
  width: 81px;
  height: 99px;
}

.lhd-quick a:hover {
  background: #000000;
  border-color: var(--lhd-green);
}

.lhd-quick__icon-wrap {
  position: relative;
  width: 36px;
  height: 32px;
  flex-shrink: 0;
}

.lhd-quick__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.lhd-quick__icon-wrap--settings {
  display: grid;
  place-items: center;
}

.lhd-quick__icon-wrap--settings .lhd-quick__layer--gear,
.lhd-quick__icon-wrap--settings .lhd-quick__layer--center {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  width: 36px;
  height: 32px;
}

.lhd-quick__icon-wrap--settings .lhd-quick__layer--center {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  transform: translateX(-0.76px);
}

.lhd-quick__icon {
  display: block;
  width: 36px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.lhd-quick__label {
  font-family: var(--lhd-font);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--lhd-text);
  text-transform: uppercase;
}

/* Top teams — home-v2 */
.lhd-card--top-teams {
  background: #000000;
}

.lhd-grid-bottom > .lhd-card:nth-child(3) {
  padding: 14px 10px 12px;
}

.lhd-grid-bottom > .lhd-card:nth-child(3) .lhd-card__head {
  min-height: 18px;
}

.lhd-top-teams {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.lhd-top-row {
  --lhd-top-badge-w: 35px;
  --lhd-top-badge-outset: 3px;
  --lhd-top-frame-left: calc(var(--lhd-top-badge-w) - var(--lhd-top-badge-outset) - 3.4mm);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 35px;
  height: 35px;
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.lhd-top-row::before {
  content: '';
  position: absolute;
  left: var(--lhd-top-frame-left);
  width: calc(100% - var(--lhd-top-frame-left));
  top: 0;
  height: 100%;
  background: #000000;
  border-radius: 0 5px 5px 0;
  z-index: 0;
}

.lhd-top-row::after {
  content: '';
  position: absolute;
  left: var(--lhd-top-frame-left);
  width: calc(100% - var(--lhd-top-frame-left));
  top: 0;
  height: 100%;
  border-style: solid;
  border-width: 1px 1px 1px 0;
  border-color: #eab34f;
  border-radius: 0 5px 5px 0;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 1;
}

.lhd-top-row--rank-1::after {
  border-color: #eab34f;
}

.lhd-top-row--rank-2::after {
  border-color: #b8b8b8;
}

.lhd-top-row--rank-3::after {
  border-color: #c98a4b;
}

.lhd-top-row__badge {
  position: relative;
  left: calc(-1 * var(--lhd-top-badge-outset));
  flex-shrink: 0;
  width: var(--lhd-top-badge-w);
  height: var(--lhd-top-badge-w);
  z-index: 2;
}

.lhd-top-row__disc,
.lhd-top-row__clover,
.lhd-top-row__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lhd-top-row__clover {
  width: 66%;
  height: 66%;
  left: 17%;
  top: 17%;
  image-rendering: auto;
}

.lhd-top-row--rank-1 .lhd-top-row__clover {
  width: 68%;
  height: 68%;
  left: 16%;
  top: 16%;
}

.lhd-top-row__ring {
  width: 82%;
  height: 82%;
  left: 9%;
  top: 9%;
}

.lhd-top-row__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  padding: 0 4px 0 10px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.lhd-top-row__flag {
  width: 12px;
  height: 9px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
}

.lhd-top-row__name {
  font-family: var(--lhd-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--lhd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lhd-top-row__stats {
  display: flex;
  gap: 10px;
  font-family: var(--lhd-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--lhd-text);
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 8px;
  position: relative;
  z-index: 2;
}

.lhd-top-row:hover .lhd-top-row__name {
  color: var(--lhd-green);
}

.lhd-card--feed,
.lhd-card--stats,
.lhd-card--team,
.lhd-card.lhd-hl {
  background: #000000;
}

.lhd-hl__frame,
.lhd-hl__frame .league-home-hl__viewport-wrap {
  background: #000000;
}

/* Feed */
.lhd-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.lhd-feed li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 6px 0;
  border: none;
  text-decoration: none;
  background: transparent;
  color: var(--lhd-text);
  font-family: 'Exo 2', sans-serif;
  font-size: 11px;
  line-height: 1.35;
  box-sizing: border-box;
}

.lhd-feed li a:hover .lhd-feed__text {
  color: #BEBEBE;
}

.lhd-feed__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: #424242;
}

.lhd-feed__icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.lhd-feed__text {
  display: block;
  min-width: 0;
}

/* Info panel — Figma Rectangle 679 */
.lhd-info-panel {
  border: 1px solid var(--lhd-border);
  border-radius: 15px;
  background: #000000;
  margin-bottom: 12px;
  padding: 14px 20px 18px;
  min-height: 376px;
  box-sizing: border-box;
}

.lhd-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
}

.lhd-info-col {
  position: relative;
  padding: 0 20px 0 0;
}

.lhd-info-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 8px;
  width: 2px;
  background: var(--lhd-border);
  opacity: 0.85;
}

.lhd-info-col__title {
  font-family: var(--lhd-font);
  font-size: 18.5px;
  font-weight: 600;
  color: var(--lhd-green-bright);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 14px;
}

.lhd-info-col__text {
  font-family: var(--lhd-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #bebebe;
}

.lhd-info-col__text p {
  margin: 0 0 10px;
}

.lhd-info-col__text ul {
  margin: 0 0 10px;
  padding-left: 22px;
}

.lhd-info-col__text li {
  margin-bottom: 4px;
}

.lhd-stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 38px;
  margin: 0;
}

.lhd-stat__icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lhd-stat:nth-child(1) .lhd-stat__icon img {
  width: 37px;
  height: 38px;
  object-fit: contain;
}

.lhd-stat:nth-child(2) .lhd-stat__icon img {
  width: 37px;
  height: 31px;
}

.lhd-stat:nth-child(3) .lhd-stat__icon img {
  width: 31px;
  height: 35px;
}

.lhd-stat:nth-child(4) .lhd-stat__icon img {
  width: 39px;
  height: 33px;
}

/* Footer */
.lhd-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--lhd-border);
  padding: 14px 0 18px;
  max-width: var(--lhd-frame);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.lhd-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.lhd-footer__logo-mark {
  display: block;
  width: 36px;
  height: 30px;
  object-fit: contain;
}

.lhd-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.lhd-footer__nav a {
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
  color: var(--lhd-border);
  text-decoration: none;
}

.lhd-footer__nav a:hover {
  color: var(--lhd-text);
}

/* Role pill colors — league-role-colors.css */

/* Carousel internals */
.lhd-hl__frame .league-home-hl__track {
  display: flex;
  transition: transform 0.45s ease;
}

.lhd-hl__frame .league-home-hl__page {
  flex: 0 0 100%;
  min-width: 100%;
}

.lhd-hl__frame .league-home-hl__cell {
  position: relative;
  cursor: pointer;
}

.lhd-hl__frame .league-home-hl__media {
  position: relative;
  width: 100%;
}

.lhd-hl__frame .league-home-hl__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
}

.lhd-hl__frame .league-home-hl__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.lhd-hl__frame .league-home-hl__cell.is-playing .league-home-hl__poster {
  opacity: 0;
  pointer-events: none;
}

.lhd-hl__frame .league-home-hl__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lhd-hl__frame .league-home-hl__ph {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.lhd-hl__frame .league-home-hl__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  background: none;
  z-index: 3;
  pointer-events: none;
}

.lhd-hl__frame .league-home-hl__play::after {
  content: '';
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 16px solid transparent;
  border-left: 28px solid #BEBEBE;
}

.lhd-hl__frame .league-home-hl__yt-root {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lhd-hl__frame .league-home-hl__yt-mount {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lhd-hl__frame .league-home-hl__yt-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.lhd-hl__frame .league-home-hl__cell.is-playing .league-home-hl__yt-mount {
  pointer-events: auto;
}

.lhd-hl__frame .league-home-hl__cell.is-playing .league-home-hl__yt-mount iframe {
  pointer-events: auto;
}

/* —— Главная: без лишнего скролла страницы (контент в один экран) —— */
body.league-body.league-dashboard.league-home main.league-dashboard__main {
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.league-body.league-dashboard.league-home .lhd-layout {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  align-items: stretch;
}

body.league-body.league-dashboard.league-home .lhd-sidebar {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.league-body.league-dashboard.league-home .lhd-main {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.league-body.league-dashboard.league-home .lhd-shell {
  min-height: 0;
  max-height: none;
}

body.league-body.league-dashboard.league-home .lhd-hero-zone {
  overflow: visible;
  min-height: max(var(--lhd-hero-h), auto);
}


@media (max-height: 940px) {
  body.league-body.league-dashboard.league-home {
    --lhd-hero-h: 360px;
    --lhd-hero-to-grid-gap: 40px;
    --lhd-row-mid-h: 290px;
    --lhd-row-bottom-h: 216px;
  }

  body.league-body.league-dashboard.league-home .lhd-hero-zone {
    padding-bottom: 16px;
  }
}

@media (max-height: 820px) {
  body.league-body.league-dashboard.league-home {
    --lhd-hero-h: 300px;
    --lhd-hero-pad-top: 28px;
    --lhd-hero-to-grid-gap: 32px;
    --lhd-hero-type-scale: 0.92;
    --lhd-row-mid-h: 250px;
    --lhd-row-bottom-h: 196px;
  }

  body.league-body.league-dashboard.league-home .lhd-welcome__name {
    font-size: calc(40px * var(--lhd-hero-type-scale, 1));
  }
}
