/* ============================================
   ACS Inter Bănești — Pagina de start („showcase")
   Componentele paginii de start: hero cu fotografie, pași, ferestre cu
   date live, tab-uri, carduri, știri, banda „Susține". Tema (Inter,
   paleta, colțurile rotunjite) e cea globală din styles.css; aici sunt
   doar componentele care există numai pe Acasă (body.home).
   ============================================ */

body.home {
  --h-bg: #0a0a0a;
  --h-surface: rgba(255, 255, 255, 0.025);
  --h-surface-2: rgba(255, 255, 255, 0.05);
  --h-line: rgba(255, 255, 255, 0.08);
  --h-line-strong: rgba(255, 255, 255, 0.16);
  --h-text: #fafafa;
  --h-text-2: #d4d4d8;
  --h-text-3: #a1a1aa;
  --h-text-4: #71717a;
  --h-red: #c62828;
  --h-red-soft: rgba(198, 40, 40, 0.16);
  --h-green: #4ade80;
  --h-radius: 16px;
  --h-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --h-ease: 0.2s ease;

  font-family: var(--h-font);
  background: var(--h-bg);
  color: var(--h-text);
  -webkit-font-smoothing: antialiased;
}

/* Titlurile paginii — litere normale, spațiere negativă (nu Oswald uppercase).
   Se aplică doar în <main>: modalul foii de meci e adăugat în <body> și
   își păstrează stilul din restul site-ului. */
body.home main :is(h1, h2, h3, h4) {
  font-family: var(--h-font);
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--h-text);
}

/* Linkurile simple din text (fără clasă) — cele cu clasă își aduc propria culoare */
body.home main a:not([class]) {
  color: var(--h-text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.home main a:not([class]):hover {
  color: var(--h-text);
}

body.home .container {
  padding: 0 24px;
}

/* Ancorele din pagină se opresc sub header-ul lipicios */
body.home main section[id],
body.home #standings-win,
body.home #meciuri-tabs {
  scroll-margin-top: calc(var(--ticker-h) + var(--header-h) + 8px);
}

/* ============================================
   HEADER — mai transparent decât pe restul site-ului, ca fotografia
   din hero să se vadă prin el (restul header-ului vine din styles.css)
   ============================================ */
body.home .site-header {
  background: rgba(10, 10, 10, 0.55);
}

/* ============================================
   BUTOANE & LINKURI
   ============================================ */
.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--h-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--h-ease), border-color var(--h-ease), color var(--h-ease), transform var(--h-ease);
}

.btn-x-primary {
  background: var(--h-text);
  color: #0a0a0a;
}

.btn-x-primary:hover {
  background: #e4e4e7;
  color: #0a0a0a;
}

.btn-x-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--h-text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-x-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--h-text);
}

.btn-x-sm {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-x .arrow {
  transition: transform var(--h-ease);
}

.btn-x:hover .arrow {
  transform: translateX(3px);
}

.link-x {
  font-family: var(--h-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-text);
  white-space: nowrap;
  transition: color var(--h-ease);
}

body.home main .link-x:hover {
  color: var(--h-text-3);
}

.muted {
  color: var(--h-text-4);
}

/* ============================================
   HERO — fotografie pe tot ecranul, text stânga
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  /* Se trage sub header-ul transparent, ca fotografia să înceapă de sus */
  margin-top: calc(-1 * (var(--ticker-h) + var(--header-h)));
  padding: calc(var(--ticker-h) + var(--header-h) + 88px) 0 56px;
  min-height: min(880px, 94vh);
  display: flex;
  align-items: flex-end;
  background: var(--h-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0b0d12;
  /* Dacă hero.jpg lipsește, rămâne un fundal cu lumină caldă la orizont */
  background-image:
    radial-gradient(ellipse 60% 45% at 68% 58%, rgba(214, 140, 84, 0.22), transparent 70%),
    url('../images/hero.jpg');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
}

/* Voal spre stânga (lizibilitate) și fade spre pagina neagră, jos */
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.94) 0%,
    rgba(10, 10, 10, 0.78) 28%,
    rgba(10, 10, 10, 0.34) 58%,
    rgba(10, 10, 10, 0.12) 100%
  );
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.62) 0%,
    rgba(10, 10, 10, 0.05) 26%,
    rgba(10, 10, 10, 0) 55%,
    rgba(10, 10, 10, 0.86) 88%,
    #0a0a0a 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-text-2);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
}

body.home .hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-lead {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: #c9c9ce;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Banda „următorul meci" — sticlă, în locul rândului de logouri din referință */
.hero-match {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 18px 22px;
  max-width: 1040px;
  border-radius: var(--h-radius);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(14, 14, 16, 0.58);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-match .loader-container {
  padding: 8px;
  margin: 0 auto;
}

.hm-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-text-3);
}

.hm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.hm-dot-done {
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.2);
}

.hm-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hm-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crest {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f1f23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--h-text-3);
}

.crest-lg {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.hm-vs {
  font-size: 13px;
  font-weight: 500;
  color: var(--h-text-4);
  padding: 0 2px;
}

.hm-score {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--h-text);
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hm-meta {
  font-size: 13px;
  color: var(--h-text-3);
}

.hm-cd {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.hm-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Countdown-ul din app.js (cd-box), reîmbrăcat */
body.home .cd-box {
  min-width: 60px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .cd-num {
  font-family: var(--h-font);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--h-text);
}

body.home .cd-box-min .cd-num {
  color: var(--h-text);
}

body.home .cd-label {
  font-family: var(--h-font);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--h-text-4);
  margin-top: 2px;
}

body.home .cd-live {
  font-family: var(--h-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #e53935;
}

/* ============================================
   SECȚIUNI — antete
   ============================================ */
body.home .sec {
  padding: 104px 0;
}

body.home .sec + .sec {
  padding-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 500;
  color: var(--h-text-2);
  margin-bottom: 20px;
}

body.home main h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sec-lead {
  max-width: 480px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--h-text-3);
}

/* Antet pe două coloane: titlu stânga, text dreapta (ca în referință) */
.sec-head-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.sec-head-2col .sec-lead {
  margin-top: 0;
  justify-self: end;
  max-width: 420px;
}

/* Antet pe un rând: titlu + acțiune dreapta */
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sec-head-row .sec-lead {
  margin-top: 10px;
}

/* ============================================
   PAȘI + FEREASTRA CU CLASAMENT (secțiunea 2)
   ============================================ */
.sec-split {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

body.home main .sec-split h2 {
  font-size: clamp(30px, 2.8vw, 38px);
}

.steps {
  list-style: none;
  position: relative;
  margin: 36px 0 0;
  padding: 0;
}

.steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--h-line);
}

.step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}

.step:last-child {
  padding-bottom: 0;
}

.step-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #141416;
  border: 1px solid var(--h-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--h-text-2);
}

.step-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-body {
  padding-top: 8px;
}

.step-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--h-text-4);
  font-variant-numeric: tabular-nums;
}

body.home main .step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  max-width: 340px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--h-text-3);
}

/* Fereastra-„mockup" — folosită și pentru tab-uri */
.win {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #131315 0%, #0e0e10 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--h-line);
}

.win-dots {
  display: inline-flex;
  gap: 6px;
}

.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.win-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-title img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.win-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--h-line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 500;
  color: var(--h-text-3);
  white-space: nowrap;
}

.win-badge .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.win-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px;
}

.win-main {
  min-width: 0;
  overflow-x: auto;
}

.win-side {
  border-left: 1px solid var(--h-line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.win-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--h-line);
  font-size: 12px;
  color: var(--h-text-4);
}

.win-foot a:not(.link-x) {
  color: var(--h-text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.win-empty {
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--h-text-4);
}

/* Tabele din ferestre */
.tbl {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Lățimi de coloane (layout fix: coloana fără lățime ia restul) */
.tbl th.w-idx { width: 40px; }
.tbl th.w-m { width: 44px; }
.tbl th.w-gol { width: 62px; }
.tbl th.w-pts { width: 56px; }
.tbl th.w-when { width: 166px; }
.tbl th.w-teren { width: 140px; }
.tbl th.w-loc { width: 92px; }
.tbl th.w-arrow { width: 30px; }
.tbl th.w-post { width: 110px; }
.tbl th.w-age { width: 74px; }

.tbl th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--h-text-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.tbl td {
  padding: 9px 14px;
  color: var(--h-text-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl .c {
  text-align: center;
}

.tbl .r {
  text-align: right;
}

.tbl .num {
  text-align: center;
  color: var(--h-text-3);
}

.tbl .pts {
  text-align: right;
  font-weight: 600;
  color: var(--h-text);
}

.tbl tr.us td {
  background: var(--h-red-soft);
  color: var(--h-text);
}

.tbl tr.us td:first-child {
  box-shadow: inset 3px 0 0 var(--h-red);
}

.tbl tr.dots td {
  padding: 3px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #52525b;
}

.tbl tr.row-click {
  cursor: pointer;
  transition: background var(--h-ease);
}

.tbl tr.row-click:hover,
.tbl tr.row-click:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.tbl .team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tbl .team-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .when b {
  display: block;
  font-weight: 600;
  color: var(--h-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .when small {
  display: block;
  font-size: 11px;
  color: var(--h-text-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .fixture {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tbl .fixture .side {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .fixture .side.home {
  text-align: right;
}

.tbl .fixture .side.us {
  color: var(--h-text);
  font-weight: 600;
}

.score {
  flex-shrink: 0;
  min-width: 46px;
  padding: 3px 8px;
  border-radius: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.08);
  color: var(--h-text);
}

.score.v { background: rgba(34, 197, 94, 0.16); color: var(--h-green); }
.score.i { background: rgba(229, 57, 53, 0.18); color: #f87171; }
.score.e { background: rgba(255, 255, 255, 0.1); color: var(--h-text-2); }
.score.t { background: rgba(255, 255, 255, 0.06); color: var(--h-text-3); font-weight: 500; }

.tbl .arrow {
  width: 20px;
  text-align: right;
  color: var(--h-text-4);
  font-size: 16px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f1f23;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 600;
  color: var(--h-text-2);
}

.avatar-lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.tbl .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tbl .who > span {
  min-width: 0;
}

.tbl .who b {
  display: block;
  font-weight: 500;
  color: var(--h-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbl .who small {
  display: block;
  font-size: 11px;
  color: var(--h-text-4);
}

/* Panoul lateral: cifre, formă, detalii */
.kpi-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-text-4);
  margin-bottom: 8px;
}

.kpi-pos {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.kpi-pos b {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--h-text);
  font-variant-numeric: tabular-nums;
}

.kpi-pos span {
  font-size: 12px;
  color: var(--h-text-3);
  line-height: 1.35;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.kpi-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.kpi-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.detail-when {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--h-text);
}

.kpi-cell {
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi-cell b {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--h-text);
  font-variant-numeric: tabular-nums;
}

.kpi-cell span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-text-4);
}

.form {
  display: flex;
  gap: 6px;
}

.form i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.form .v { background: rgba(34, 197, 94, 0.16); color: var(--h-green); }
.form .e { background: rgba(255, 255, 255, 0.1); color: var(--h-text-2); }
.form .i { background: rgba(229, 57, 53, 0.18); color: #f87171; }

.detail-score-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-score {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--h-text);
  font-variant-numeric: tabular-nums;
}

.detail-score.v { color: var(--h-green); }
.detail-score.i { color: #f87171; }

.detail-teams {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--h-text);
}

.detail-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--h-text-4);
  line-height: 1.5;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Rând: avatar (pe două rânduri) + nume + detaliu dedesubt */
.detail-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--h-text-2);
}

.detail-item .avatar {
  grid-row: 1 / span 2;
}

.detail-item .di-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--h-text);
}

.detail-item small {
  grid-column: 2;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--h-text-4);
}

.detail-item small:empty {
  display: none;
}

.detail-item .di-only {
  grid-column: 1 / -1;
  color: var(--h-text-3);
}

.side-cta {
  margin-top: auto;
}

/* ============================================
   TAB-URI (secțiunea 3)
   ============================================ */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 44px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--h-line);
  font-family: var(--h-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-text-3);
  text-align: left;
  cursor: pointer;
  transition: background var(--h-ease), color var(--h-ease);
}

.tab:last-child {
  border-right: none;
}

.tab .n {
  color: #52525b;
  font-variant-numeric: tabular-nums;
  transition: color var(--h-ease);
}

.tab:hover {
  color: var(--h-text);
  background: rgba(255, 255, 255, 0.03);
}

.tab.active {
  color: var(--h-text);
  background: rgba(255, 255, 255, 0.07);
}

.tab.active .n {
  color: #ef5350;
}

.tab-panel .win-body {
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 380px;
}

/* ============================================
   CARDURI (secțiunea 4)
   ============================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--h-radius);
  border: 1px solid var(--h-line);
  background: var(--h-surface);
  color: inherit;
  overflow: hidden;
  transition: border-color var(--h-ease), background var(--h-ease), transform var(--h-ease);
}

a.feat:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transform: translateY(-2px);
}

.feat-visual {
  position: relative;
  height: 172px;
  padding: 18px 18px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.feat-visual::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(14, 14, 16, 0), rgba(14, 14, 16, 0.9));
  pointer-events: none;
}

.feat-body {
  padding: 18px 20px 22px;
}

body.home main .feat h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feat p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--h-text-3);
}

/* Mini-vizualuri din carduri */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--h-text-2);
}

.mini-row .grow {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-row small {
  color: var(--h-text-4);
  white-space: nowrap;
}

.mini-row .avatar {
  width: 22px;
  height: 22px;
  font-size: 8px;
}

.mini-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mini-big b {
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--h-text);
  font-variant-numeric: tabular-nums;
}

.mini-big span {
  font-size: 13px;
  color: var(--h-text-3);
  line-height: 1.4;
  max-width: 150px;
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 500;
  color: var(--h-text-2);
  white-space: nowrap;
}

.chip b {
  color: var(--h-text);
}

.mini-avatars {
  display: flex;
  align-items: center;
}

.mini-avatars .avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
  margin-right: -10px;
  border: 2px solid #111113;
}

.mini-avatars .more {
  margin-left: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h-text-3);
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 92px;
  margin-top: 8px;
}

.mini-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.mini-bar i {
  display: block;
  width: 100%;
  max-width: 34px;
  border-radius: 6px 6px 3px 3px;
  background: rgba(255, 255, 255, 0.16);
}

.mini-bar i.us {
  background: #ef5350;
}

.mini-bar small {
  font-size: 10px;
  color: var(--h-text-4);
  white-space: nowrap;
}

.mini-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================
   ȘTIRI (secțiunea 5)
   ============================================ */
.news-x {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.news-x-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 22px 24px;
  border-radius: var(--h-radius);
  border: 1px solid var(--h-line);
  background: var(--h-surface);
  color: inherit;
  transition: border-color var(--h-ease), background var(--h-ease), transform var(--h-ease);
}

a.news-x-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transform: translateY(-2px);
}

.news-x-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-text-4);
}

.news-x-date i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53935;
}

body.home main .news-x-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.news-x-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--h-text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-x-card .link-x {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12px;
  color: var(--h-text-3);
}

.news-x .win-empty {
  grid-column: 1 / -1;
}

/* ============================================
   BANDA „SUSȚINE" (final)
   ============================================ */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 44px 48px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(ellipse 50% 100% at 12% 0%, rgba(198, 40, 40, 0.4), transparent 60%),
    linear-gradient(180deg, #161618, #0f0f11);
}

body.home main .cta-band h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.cta-band p {
  max-width: 520px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--h-text-3);
}

.cta-band .btn-x {
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1040px) {
  .sec-split {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .sec-split .sec-copy {
    max-width: 560px;
  }

  .win-body,
  .tab-panel .win-body {
    grid-template-columns: 1fr;
  }

  .win-side {
    border-left: none;
    border-top: 1px solid var(--h-line);
  }

  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sec-head-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sec-head-2col .sec-lead {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  body.home .sec {
    padding: 72px 0;
  }

  .hero {
    min-height: 0;
    padding-top: calc(var(--ticker-h) + var(--header-h) + 64px);
    padding-bottom: 40px;
  }

  .hero-media {
    background-position: 62% 40%;
  }

  .hero-inner {
    gap: 36px;
  }

  .hero-match {
    padding: 16px 18px;
    gap: 16px 24px;
  }

  .hm-cd {
    margin-left: 0;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab:nth-child(2) {
    border-right: none;
  }

  .tab:nth-child(-n + 2) {
    border-bottom: 1px solid var(--h-line);
  }

  .tbl .hide-sm {
    display: none;
  }

  .tbl th.w-when {
    width: 108px;
  }

  .tbl .when small {
    white-space: normal;
    line-height: 1.3;
  }

  /* Pe telefon, echipele una sub alta, scorul/ora în dreapta, pe ambele rânduri */
  .tbl .fixture {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
  }

  .tbl .fixture .side,
  .tbl .fixture .side.home {
    grid-column: 1;
    text-align: left;
  }

  .tbl .fixture .score {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .news-x,
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 32px 26px;
  }

}

@media (max-width: 480px) {
  body.home .container {
    padding: 0 18px;
  }

  body.home .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-cta .btn-x {
    flex: 1;
  }

  .hm-teams {
    font-size: 15px;
  }

  body.home .cd-box {
    min-width: 52px;
    padding: 7px 8px;
  }

  body.home .cd-num {
    font-size: 17px;
  }

  .tabs {
    margin-top: 28px;
  }

  .tab {
    padding: 13px 14px;
    font-size: 12px;
  }

  .tbl td,
  .tbl th {
    padding-left: 12px;
    padding-right: 12px;
  }

  .win-side {
    padding: 16px;
  }

  .win-badge {
    display: none;
  }

  .tbl th.w-idx { width: 36px; }
  .tbl th.w-pts { width: 52px; }
  .tbl th.w-m { width: 40px; }
  .tbl th.w-post { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-x,
  .feat,
  .news-x-card {
    transition: none;
  }
}
