/* Bratu Marian — pagina principală și identitatea SuperLiga */

.hub-brand--with-mark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}

.hub-brand--with-mark > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hub-brand__mark {
  display: block;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(17, 223, 245, 0.22));
}

.hub-footer .hub-brand__mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.hero-orbit img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.home-tv-panel {
  display: flex;
  flex-direction: column;
}

.home-tv-panel__competition {
  display: block;
  width: 90px;
  height: 28px;
  object-fit: contain;
}

.home-tv-panel__intro {
  display: grid;
  gap: 8px;
  padding: 18px 16px 12px;
}

.home-tv-panel__intro strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-tv-panel__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.home-tv-panel__channels {
  display: grid;
  flex: 1;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  padding: 8px 14px 12px;
}

.home-tv-panel__channels button {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 1px solid rgba(26, 73, 104, 0.95);
  border-radius: 5px;
  background: linear-gradient(120deg, rgba(17, 223, 245, 0.08), transparent 55%),
    rgba(10, 33, 58, 0.9);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.home-tv-panel__channels button:hover,
.home-tv-panel__channels button:focus-visible {
  border-color: var(--cyan);
  background-color: rgba(13, 41, 69, 0.98);
  transform: translateY(-2px);
}

.home-tv-panel__channels button > span {
  display: grid;
  place-items: center;
  align-self: stretch;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.home-tv-panel__channels img {
  display: block;
  width: 88%;
  max-height: 54px;
  object-fit: contain;
}

.home-tv-panel__channels button > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-tv-panel__channels strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-tv-panel__channels small {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-tv-panel__channels button > i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(17, 223, 245, 0.45);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 9px;
  font-style: normal;
}

.home-tv-panel > .home-tv-panel__link {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-top: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

/* Cele 16 cluburi rămân pe un singur rând, fără eticheta numerică. */
.hub-club-rail {
  grid-template-columns: minmax(0, 1fr);
}

.hub-club-rail > span {
  display: none;
}

.hub-club-rail > div {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  overflow: hidden;
}

.hub-club-rail a {
  min-width: 0;
  min-height: 82px;
  padding: 7px 2px;
}

.hub-club-rail .hub-team-logo {
  width: clamp(25px, 3vw, 43px);
  height: clamp(25px, 3vw, 43px);
}

.hub-club-rail a > b {
  padding: 0 2px;
  font-size: clamp(6px, 0.65vw, 9px);
}

/* Clasamentul de pe prima pagină este complet, nu o versiune compactă. */
.home-table-card--full .hub-table-wrap,
.home-table-card--full .hub-standings {
  width: 100%;
  min-width: 0;
}

.home-table-card--full .hub-standings {
  table-layout: fixed;
}

.home-table-card--full .hub-standings th:nth-child(2),
.home-table-card--full .hub-standings td:nth-child(2) {
  width: 24%;
}

.home-table-card--full .hub-standings td {
  height: 55px;
}

.home-latest-news__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-latest-news__grid > a {
  display: grid;
  grid-template-columns: 34px 112px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 124px;
  padding: 10px 14px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(
      110deg,
      rgba(17, 223, 245, 0.055),
      transparent 44%
    ),
    rgba(7, 26, 48, 0.78);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.home-latest-news__grid > a:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.home-latest-news__index {
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 10px;
}

.home-latest-news__media {
  display: block;
  width: 112px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}

.home-latest-news__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-latest-news__media img[src*="superliga-mark"] {
  padding: 18px;
  object-fit: contain;
}

.home-latest-news__copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.home-latest-news__copy small {
  overflow: hidden;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-latest-news__copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-latest-news__copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--quiet);
  font-size: 9px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-latest-news__grid > a > i {
  color: var(--cyan);
  font-style: normal;
}

@media (max-width: 980px) {
  .home-latest-news__grid {
    grid-template-columns: 1fr;
  }

  .hub-club-rail a {
    min-height: 70px;
  }

  .hub-club-rail a > b {
    display: none;
  }
}

@media (max-width: 720px) {
  .hub-brand__mark {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .home-tv-panel__intro {
    padding-top: 14px;
  }

  .home-tv-panel__channels button {
    grid-template-columns: 86px minmax(0, 1fr) 25px;
    gap: 8px;
    padding: 8px;
  }

  .home-tv-panel__channels strong {
    font-size: 17px;
  }

  .hub-club-rail > div {
    grid-template-columns: repeat(16, minmax(0, 1fr));
  }

  .hub-club-rail a {
    min-height: 49px;
    padding: 4px 1px;
    border-right-width: 0;
  }

  .hub-club-rail .hub-team-logo {
    width: clamp(16px, 5vw, 25px);
    height: clamp(16px, 5vw, 25px);
  }

  .home-latest-news__grid > a {
    grid-template-columns: 28px 86px minmax(0, 1fr) 18px;
    gap: 8px;
    min-height: 104px;
    padding: 8px;
  }

  .home-latest-news__media {
    width: 86px;
  }

  .home-latest-news__copy p {
    display: none;
  }

  .home-latest-news__copy strong {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .hub-brand--with-mark {
    gap: 7px;
  }

  .hub-brand__mark {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .hub-brand--with-mark strong {
    font-size: 21px;
  }

  .hub-brand--with-mark span {
    letter-spacing: 0.13em;
  }

  .home-tv-panel__competition {
    width: 72px;
  }

  .home-tv-panel__channels {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .home-tv-panel__channels button {
    grid-template-columns: 72px minmax(0, 1fr) 22px;
  }

  .home-tv-panel__channels small {
    font-size: 6px;
  }

  .hub-club-rail .hub-team-logo {
    width: 18px;
    height: 18px;
  }

  .home-latest-news__grid > a {
    grid-template-columns: 24px 72px minmax(0, 1fr);
  }

  .home-latest-news__grid > a > i {
    display: none;
  }

  .home-latest-news__media {
    width: 72px;
  }
}
