/* SportsStats · UI de abonați (/app). Pornit din docs/ui_mockup.html.
   Întâi mobil (o coloană, tab bar jos), de la 768px navigația sus și grilele. */

:root {
  --bg: #0b1020; --panel: #121a2e; --panel2: #18223b; --line: #243152;
  --tx: #e8edf7; --mu: #8e9bb8;
  --g1: #22c55e; --g2: #4ade80; --b1: #3b82f6; --b2: #6366f1;
  --o1: #f59e0b; --o2: #ea580c; --p1: #9333ea; --p2: #db2777; --r1: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--tx);
  font-family: "DejaVu Sans", "Liberation Sans", system-ui, Arial, sans-serif;
  font-size: 15px; line-height: 1.4; padding-bottom: 84px;
  overflow-x: hidden;
}
/* Nimic nu iese din lățimea ecranului: cardurile și tabelele se strâng,
   tabelele late derulează în cardul lor (.tabel-card), nu pagina. */
.card, .row, .hero, .kpi, .tile { min-width: 0; max-width: 100%; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 800; }
small { font-size: 12px; color: var(--mu); }
.sub { color: var(--mu); margin-top: 6px; font-size: 14px; }
.note { font-size: 12px; color: var(--mu); margin-top: 10px; line-height: 1.5; }
.note.explic { margin: 14px 0 6px; }
.link { color: #60a5fa; }
.mut { color: var(--mu); }
.verde { color: var(--g2); }
.atentie { color: #fbbf24; }
.spatiu { margin-top: 22px; }
.crumb { color: var(--mu); font-size: 14px; margin-bottom: 14px; }

/* antet */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: sticky; top: 0; z-index: 5;
}
.inapoi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--panel2); border: 1px solid var(--line); color: var(--tx); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-right: auto; min-width: 0; }
.top { flex-wrap: nowrap; }
.nume-brand { display: flex; flex-direction: column; line-height: 1.1; }
/* Autoexcludere: buton roșu, nu item de meniu; pe mobil rămâne în antet. */
.autoexcludere { background: #dc2626; color: #fff; font-weight: 800; font-size: 12px; padding: 0 10px; height: 32px; line-height: 32px; border-radius: 8px; white-space: nowrap; flex: none; }
.autoexcludere:hover { background: #b91c1c; }
.nume-brand .tagline { display: none; font-size: 10px; font-weight: 600; color: var(--mu); letter-spacing: .2px; }
@media (min-width: 768px) { .nume-brand .tagline { display: block; } }
.subsol a { color: #60a5fa; }
.text-legal h2 { font-size: 22px; margin-top: 8px; }
.text-legal h3 { font-size: 17px; margin-top: 22px; }
.text-legal h4 { font-size: 15px; margin-top: 16px; }
.text-legal p, .text-legal li { margin-top: 10px; line-height: 1.6; max-width: 760px; }
.text-legal ul { padding-left: 20px; }
.text-legal blockquote { border-left: 3px solid var(--line); padding-left: 14px; margin-top: 10px; color: var(--tx); }
.brand .dot {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g1), var(--b1)); font-size: 16px;
}
.nav { display: none; gap: 6px; }
.nav a { padding: 9px 14px; border-radius: 10px; color: var(--mu); font-size: 14px; }
.nav a.on { background: var(--panel2); color: var(--tx); }
.badge {
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: rgba(245, 158, 11, .15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, .35);
}
.wrap { padding: 20px 16px; max-width: 1400px; margin: 0 auto; }
.subsol { margin-top: 40px; font-size: 12px; color: var(--mu); line-height: 1.5; }
.subsol .legal { margin-top: 8px; font-weight: 700; }

/* tab bar (mobil) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 68px;
  background: var(--panel); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding-top: 8px;
  font-size: 11px; color: var(--mu); z-index: 5;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; }
.tabbar a.on { color: var(--g2); }
.tabbar b { font-size: 20px; }
.tabbar details { position: relative; }
.tabbar summary { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; list-style: none; cursor: pointer; }
.tabbar summary::-webkit-details-marker { display: none; }
.tabbar summary.on { color: var(--g2); }
.tabbar .meniu { position: absolute; bottom: 60px; right: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tabbar .meniu a { padding: 10px 12px; font-size: 14px; color: var(--tx); border-radius: 10px; }
.tabbar .meniu a.on { background: var(--panel2); color: var(--g2); }
.nav a.secundar { font-size: 13px; opacity: .8; }

/* bara de zile */
.zile { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.zile-lista { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px 0; }
.zile-lista::-webkit-scrollbar { display: none; }
.zi { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--tx); white-space: nowrap; }
.zi small { font-size: 10px; color: var(--mu); font-weight: 600; text-transform: uppercase; }
.zi.azi { border-color: #3b82f6; }
.zi.on { background: #1e3a8a; border-color: #3b82f6; color: #fff; }
.zi.on small { color: #bfdbfe; }
.zi.off { opacity: .4; }
a.zi.off:hover { opacity: .7; }
.grup-titlu { display: flex; align-items: center; gap: 8px; margin: 22px 0 6px; font-weight: 800; }
.grup-titlu small { font-weight: 600; }
.grup-titlu img { width: 20px; height: 20px; object-fit: contain; }
.card.pred .status { font-size: 12px; color: var(--mu); }
.necerut { color: var(--mu); font-size: 13px; margin-top: 12px; padding: 10px 12px; background: var(--panel2); border-radius: 12px; text-align: center; }
.sageata { width: 34px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--tx); flex: none; }
.sageata.off { opacity: .3; pointer-events: none; }
.calendar { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; flex: none; overflow: hidden; }
.calendar input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* tile-urile de acasă */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 18px; }
.tile {
  border-radius: 16px; padding: 16px; min-height: 140px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); color: #fff;
}
.tile .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 20px; }
.tile .t { display: block; font-size: 16px; font-weight: 800; }
.tile .d { display: block; font-size: 12px; opacity: .9; margin-top: 3px; }
.tile .n { position: absolute; right: 14px; top: 12px; font-size: 32px; font-weight: 900; }
.tile .n.mic { font-size: 17px; top: 16px; max-width: 58%; text-align: right; line-height: 1.1; }
.tile:after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.progres { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .25); overflow: hidden; margin-top: 8px; }
.progres i { display: block; height: 100%; background: #fff; border-radius: 6px; }
.progres.lat { background: #243152; margin-top: 10px; height: 8px; }
.progres.lat i { background: linear-gradient(90deg, #9333ea, #db2777); }
.tg { background: linear-gradient(135deg, #16a34a, #0d9488); }
.tb { background: linear-gradient(135deg, #2563eb, #6366f1); }
.to { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.tp { background: linear-gradient(135deg, #9333ea, #db2777); }
.tc { background: linear-gradient(135deg, #0d9488, #0891b2); }

.cautare { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cautare label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mu); }
.cautare input { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel2); color: var(--tx); font-size: 15px; }
.cautare .btn { align-self: end; border: 0; cursor: pointer; }
.sec { display: flex; justify-content: space-between; align-items: end; margin: 28px 0 12px; }
.sec a { color: #60a5fa; font-size: 14px; }

/* carduri */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: block; }
.card.gol { color: var(--mu); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.lg { display: flex; justify-content: space-between; gap: 8px; color: var(--mu); font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.teams { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.tm { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 42%; font-weight: 700; font-size: 14px; text-align: center; }
.vs { color: var(--mu); font-size: 13px; text-align: center; }
.vs b { display: block; color: var(--tx); font-size: 18px; }
/* Rândul unei tendințe: pastila + procent + bară pe același rând (pastila se
   scurtează cu „…"), eșantionul și rezultatul pe rândul de sub - nimic nu iese
   din card, la nicio lățime. */
.sig { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; background: var(--panel2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; min-width: 0; }
.sig .pill { flex: 1 1 160px; min-width: 0; white-space: normal; }
.sig .conf { flex: 0 0 auto; }
.bloc-brut { display: block; background: var(--panel2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; min-width: 0; }
.bloc-brut .cap { display: block; font-size: 12px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc-brut .media { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #fbbf24; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sep-linie details.info { display: inline-block; }
.sep-linie details.info > summary { font-size: 12px; padding: 0 2px; }
.chips-valori { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.chip-v { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; font-size: 12px; font-style: normal; font-weight: 800; background: #243152; color: var(--mu); }
.chip-v.da { background: rgba(34, 197, 94, .22); color: #4ade80; }
.sep-linie { border-left: 2px dashed var(--line); padding-left: 8px; margin-left: 4px; font-size: 11px; color: var(--mu); white-space: nowrap; }
.bloc-brut .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mu); margin-top: 6px; }
.sig .meta { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mu); min-width: 0; }
.sig .meta .rez { white-space: normal; }
.card.meci, .card.semnal { overflow: hidden; }
.sig.slab { border: 1px solid rgba(245, 158, 11, .35); }
.card.meci .mt { margin: 12px 0 4px; }
.tlist .conf { flex-wrap: nowrap; }
.tlist .bar { width: 56px; }                 /* mai mult loc pastilei în card */
.tlist .pill { font-size: 12px; }
details.restul .grid3 { margin-top: 12px; }
details.subprag { margin-top: 8px; }
details.subprag > summary { cursor: pointer; font-size: 12px; color: var(--mu); padding: 6px 4px; list-style: none; }
details.subprag > summary::-webkit-details-marker { display: none; }
details.subprag > summary::before { content: "▸ "; }
details.subprag[open] > summary::before { content: "▾ "; }
.chips.ordonare { margin-top: 10px; }
.pill { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 9px; display: inline-flex; flex-direction: column; gap: 1px; line-height: 1.25; text-align: left; max-width: 100%; }
.pill b { font-weight: 800; }
.pill span { font-weight: 600; opacity: .9; }
.esm { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--mu); white-space: nowrap; }
.esm details.info > summary { font-size: 12px; }
.pc { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.ps { background: rgba(59, 130, 246, .16); color: #60a5fa; }
.conf { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mu); white-space: nowrap; }
.conf b { color: var(--tx); }
.bar { width: 90px; height: 8px; border-radius: 9px; background: #243152; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 9px; }
.hi { background: linear-gradient(90deg, #22c55e, #4ade80); }
.md { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--mu); }
.esantion .slab { color: #fbbf24; font-weight: 700; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-top: 8px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi .k { font-size: 12px; color: var(--mu); }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 4px; }
.kpi .s { font-size: 12px; margin-top: 2px; color: var(--g2); }

/* sigle și formă */
.sigla { border-radius: 6px; object-fit: contain; }
.forma { display: inline-flex; gap: 3px; }
.forma.goala { font-size: 11px; color: var(--mu); }
.forma i, .scor i {
  width: 16px; height: 16px; border-radius: 4px; font-size: 9px; font-style: normal;
  display: inline-grid; place-items: center; font-weight: 800; color: #0b1020;
}
.fV { background: #4ade80; } .fE { background: #94a3b8; } .fÎ { background: #f87171; }

/* lista de semnale */
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--mu); }
.chip.on { background: #1e3a8a; border-color: #3b82f6; color: #fff; }
.sep { width: 100%; height: 0; }
.row {
  display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 12px;
}
.row.slab { border-color: rgba(245, 158, 11, .35); }
.row.meci-zi { grid-template-columns: 1fr; }
.cifre { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mu); }
.cifre b { color: var(--tx); }
.scor-final { font-size: 20px; font-weight: 800; }
.tendinte-nr { font-size: 12px; color: var(--g2); font-weight: 700; }
.time { font-size: 20px; font-weight: 800; }
.time small { display: block; font-size: 11px; color: var(--mu); font-weight: 600; margin-top: 2px; }
.mt { display: flex; flex-direction: column; gap: 8px; }
.mt div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.mt .nume { flex: 1; }
.est { font-size: 13px; color: var(--mu); }
.est b { display: block; font-size: 22px; color: var(--tx); }
.rez { font-size: 15px; font-weight: 800; color: var(--mu); white-space: nowrap; }
.rez small { font-weight: 600; }
.st-iesit.rez { color: var(--g2); } .st-neiesit.rez { color: #f87171; }
.est .bar { display: block; margin: 6px 0; }
.btn {
  padding: 11px 16px; border-radius: 11px; color: #fff; font-weight: 700; font-size: 13px; text-align: center;
  background: linear-gradient(135deg, #2563eb, #6366f1); display: block;
}
.btn.secundar { background: var(--panel); border: 1px solid var(--line); color: var(--mu); cursor: pointer; margin-top: 12px; list-style: none; }
.btn.secundar::-webkit-details-marker { display: none; }
details.restul[open] > summary { color: var(--tx); }

/* pagina meciului */
.hero {
  background: radial-gradient(circle at 20% 0, rgba(59, 130, 246, .35), transparent 50%),
              radial-gradient(circle at 80% 0, rgba(239, 68, 68, .3), transparent 50%), var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; gap: 8px;
}
.hero .tm { width: auto; font-size: 15px; }
.hero .vs b { font-size: 26px; margin: 6px 0; }
.hero .liga { font-size: 10px; letter-spacing: 1px; display: block; }
.hero .liga img { vertical-align: middle; }
.tabs { display: flex; gap: 8px; margin: 18px 0 14px; overflow-x: auto; }
.tab { padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--mu); white-space: nowrap; }
.tab.on { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; border-color: transparent; }
.panou { display: none; }
.panou.on { display: block; }
.two { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cmp { display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; margin: 14px 0; font-size: 14px; }
.cmp .l { text-align: right; font-weight: 800; }
.cmp .r { font-weight: 800; }
.cmp small { display: block; font-weight: 400; }
.cmp .lab { text-align: center; font-size: 12px; color: var(--mu); margin-bottom: 5px; }
.dual { display: flex; height: 10px; border-radius: 9px; overflow: hidden; background: #243152; }
.dual .a { background: #3b82f6; }
.dual .b { background: #ef4444; margin-left: auto; }
.chart { display: flex; align-items: end; gap: 6px; height: 150px; margin-top: 14px; border-bottom: 1px dashed var(--line); position: relative; }
.chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #fbbf24, #ea580c); position: relative; min-height: 2px; }
.chart i.sub { background: #334155; }
.chart i span { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 10px; font-style: normal; color: var(--mu); }
.chart .linie { position: absolute; left: 0; right: 0; border-top: 2px dashed #4ade80; z-index: 1; }
.card.chenar { border-color: #3b82f6; background: linear-gradient(160deg, #10203a, #121a2e 60%); }
.fraza { font-size: 16px; font-weight: 700; line-height: 1.5; }
.semnal-mare { background: linear-gradient(160deg, #10321f, #121a2e 60%); border-color: #166534; }
.semnal-mare.nu { background: linear-gradient(160deg, #3a1515, #121a2e 60%); border-color: #7f1d1d; }
.titlu-semnal { font-size: 20px; font-weight: 800; margin-top: 12px; }
.mare-linie { display: flex; align-items: end; gap: 14px; margin-top: 8px; }
.big { font-size: 40px; font-weight: 900; line-height: 1; background: linear-gradient(90deg, #4ade80, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.semnal-mare.nu .big { background: linear-gradient(90deg, #f87171, #fbbf24); -webkit-background-clip: text; background-clip: text; }
.explic { color: var(--mu); font-size: 13px; padding-bottom: 6px; }
.semnal-mare .bar { margin-top: 10px; height: 10px; }
.rezultat { font-size: 14px; color: var(--tx); font-weight: 700; }
.tabel { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.tabel td, .tabel th { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tabel th { color: var(--mu); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; border-top: 0; }
.tabel .num { text-align: right; }
.tabel th a { color: inherit; }
.tabel th.activ a { color: var(--g2); }
.tabel tr.referinta td { font-weight: 700; background: var(--panel2); }
.tabel td.gri, .tabel tr.gri td { color: var(--mu); }
.tabel td.echipa { white-space: nowrap; font-weight: 700; }
.doar-mobil { display: block; }
/* Clasamentul real: tabel compact, ca un clasament standard. Celulele rămân
   table-cell (niciodată block/flex pe td/th - strică rândul); coloanele
   opționale se ascund cu display:none și revin ca table-cell. */
.card.clasament-card { max-width: 960px; margin-left: auto; margin-right: auto; }
.tabel.real { table-layout: fixed; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.tabel.real th, .tabel.real td { height: 40px; padding: 0 6px; white-space: nowrap; vertical-align: middle; }
.tabel.real th.num, .tabel.real td.num { text-align: right; }
.tabel.real col.c-loc { width: 36px; }
.tabel.real col.c-num { width: 42px; }
.tabel.real col.c-gol { width: 64px; }
.tabel.real col.c-forma { width: 118px; }
.tabel.real td.loc { color: var(--mu); text-align: center; padding-left: 9px; }
.tabel.real td.echipa { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.tabel.real td.echipa .ech { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; vertical-align: middle; }
.tabel.real td.echipa .ech span { overflow: hidden; text-overflow: ellipsis; }
.tabel.real td.echipa .sigla { width: 20px; height: 20px; flex: none; }
.tabel.real tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.tabel.real tbody tr:hover td { background: rgba(255, 255, 255, .06); }
.tabel.real tr.z-europa td.loc { box-shadow: inset 3px 0 0 #3b82f6; }
.tabel.real tr.z-baraj td.loc { box-shadow: inset 3px 0 0 #f59e0b; }
.tabel.real tr.z-retrogradare td.loc { box-shadow: inset 3px 0 0 #ef4444; }
.tabel.real td.puncte { font-weight: 800; }
.tabel.real .forma i { width: 18px; height: 18px; font-size: 10px; }
@media (max-width: 767px) {
  .tabel.real.compact .col-sec { display: none; }
  .tabel.real.compact col.col-sec { width: 0; }  /* coloana ascunsă nu mai ține loc */
  .tabel.real.compact col.c-num { width: 32px; }
  .tabel.real.compact col.c-forma { width: 84px; }
  .tabel.real.compact .forma i { width: 14px; height: 14px; font-size: 9px; }
  .tabel.real.compact th, .tabel.real.compact td { padding: 0 4px; }
  .tabel.real.toate { min-width: 720px; }        /* derulează doar în cardul lui */
}
.legenda-zone { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mu); margin-top: 8px; }
.legenda-zone i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
@media (max-width: 767px) { .tabel.clasament.compact .col-sec { display: none; } }
@media (min-width: 768px) { .doar-mobil { display: none; } }
.tabel td.medie { white-space: nowrap; }
.tabel td.medie.gri { color: var(--mu); opacity: .8; }
details.info { display: inline-block; position: relative; vertical-align: middle; }
details.info > summary { list-style: none; cursor: pointer; color: var(--mu); font-size: 13px; padding: 0 2px; }
details.info > summary::-webkit-details-marker { display: none; }
details.info > span { position: absolute; left: 0; top: 20px; z-index: 6; min-width: 220px; max-width: 320px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--mu); line-height: 1.4; white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tabel td.medie small { display: inline; margin-left: 4px; }
details.meci-medii { margin-top: 12px; }
details.meci-medii > summary { list-style: none; cursor: pointer; }
details.meci-medii > summary::-webkit-details-marker { display: none; }
.medii-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-top: 10px; }
.tabel.fisa th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; }
.tabel.fisa tr.prag td { color: var(--mu); }
.prag-cel { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--tx); }
.bar.mica { width: 44px; height: 6px; }
.tabel .scor { white-space: nowrap; font-weight: 700; }
.tabel td small { display: block; }
.tabel-card { padding: 6px 12px; overflow-x: auto; }
.istoric .rez b { font-size: 16px; }
.istoric .motiv { color: var(--mu); }
.st-iesit .rez b { color: var(--g2); }
.st-neiesit .rez b { color: #f87171; }
.unux2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; text-align: center; }
.unux2 .k { display: block; font-size: 12px; color: var(--mu); }
.unux2 b { font-size: 22px; }
.unux2.mic b { font-size: 16px; }
.trei { display: flex; height: 10px; border-radius: 9px; overflow: hidden; background: #243152; margin-top: 8px; }
.trei .a { background: #3b82f6; } .trei .x { background: #94a3b8; } .trei .b { background: #ef4444; }
.kv { margin-top: 14px; display: grid; gap: 8px; }
.kv .k { display: block; font-size: 12px; color: var(--mu); }

/* desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 15px; }
  h1 { font-size: 30px; }
  .top { padding: 16px 32px; }
  .brand { font-size: 22px; }
  .nav { display: flex; }
  .autoexcludere { height: 36px; line-height: 36px; font-size: 13px; padding: 0 14px; margin-right: 6px; }
  .tabbar { display: none; }
  .wrap { padding: 32px 32px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .tile { padding: 24px; min-height: 180px; }
  .tile .n { font-size: 44px; right: 22px; top: 18px; }
  .tile .n.mic { font-size: 30px; }
  .tile .t { font-size: 20px; } .tile .d { font-size: 13px; }
  .grid3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
  .strip { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
  .row { grid-template-columns: 90px 1fr 260px 190px 150px; align-items: center; gap: 18px; padding: 16px 20px; }
  .row.meci-zi { grid-template-columns: 90px 1fr 1.2fr 150px; }
  .hero { padding: 30px; grid-template-columns: 1fr 240px 1fr; }
  .hero .tm { font-size: 22px; }
  .hero .vs b { font-size: 40px; }
  .hero .liga { font-size: 12px; }
  .two { grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .cautare { grid-template-columns: 1fr 1fr 160px; align-items: end; }
  .two.egal { grid-template-columns: 1fr 1fr; }
  .chart { height: 180px; gap: 8px; }
  .big { font-size: 44px; }
  .sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
}

/* ---- hosting: pagina „în curând", login, ieșire din cont ---- */
.curand-wrap { max-width: 640px; padding-top: 48px; }
.curand-brand { font-size: 24px; margin: 0 0 24px; }
.curand-brand a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.curand h1 { font-size: 32px; margin: 0 0 12px; }
.curand .lead { font-size: 17px; line-height: 1.5; color: var(--muted, #9aa4b2); margin: 0 0 12px; }
.curand-actiuni { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0 40px; }
.curand .autoexcludere { display: inline-block; }
.buton { display: inline-block; background: var(--accent, #2563eb); color: #fff; font-weight: 800; padding: 0 18px; height: 40px; line-height: 40px; border-radius: 10px; border: 0; cursor: pointer; font-size: 15px; text-decoration: none; }
.buton:hover { filter: brightness(1.1); }
.login { display: grid; gap: 14px; max-width: 360px; margin: 20px 0 32px; }
.login label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.login input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #334155); background: var(--panel, #111827); color: inherit; }
.eroare { background: #7f1d1d; color: #fee2e2; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.logout { margin: 6px 0 0; font-size: 12px; color: var(--muted, #9aa4b2); }
.link-buton { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
/* pagini legale publice (/termeni, /confidentialitate, /cookies) */
.legal-wrap { max-width: 820px; padding-bottom: 40px; }
.legal-wrap .curand-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-wrap h1 { font-size: 28px; }

/* Tendințe: butonul „Tendințe peste 70%" */
.buton-prag { display: inline-block; padding: 9px 16px; border-radius: 99px; font-size: 14px; font-weight: 800; text-decoration: none; color: #1c1103; background: #f59e0b; border: 1px solid #f59e0b; }
.buton-prag:hover { background: #fbbf24; }
.buton-prag.on { background: #ea580c; border-color: #fdba74; color: #fff; box-shadow: 0 0 0 2px rgba(251, 146, 60, .35); }
.chips .link { align-self: center; font-size: 13px; }

/* Cornere pe reprize (fișa meciului, tab-ul Cornere). Comutatorul de ferestre
   e CSS-only: trei radio ascunse, etichetele lor ca pastile, panoul ferestrei
   bifate se arată prin ~. Pe telefon fiecare rând e un card cu cele trei
   perioade una sub alta; de la 768px rândurile devin un tabel pe grilă
   (fără <table>, deci fără derulare orizontală). */
.reprize { position: relative; }
.reprize > input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.rep-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rep-switch label { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--mu); font-size: 13px; font-weight: 600; cursor: pointer; }
.reprize .rep-fereastra { display: none; }
#rep-sezon_curent:checked ~ .rep-fereastra[data-f="sezon_curent"],
#rep-ultimele_2:checked ~ .rep-fereastra[data-f="ultimele_2"],
#rep-tot:checked ~ .rep-fereastra[data-f="tot"] { display: block; }
#rep-sezon_curent:checked ~ .rep-switch label[for="rep-sezon_curent"],
#rep-ultimele_2:checked ~ .rep-switch label[for="rep-ultimele_2"],
#rep-tot:checked ~ .rep-switch label[for="rep-tot"] { background: var(--panel2); color: var(--tx); border-color: #60a5fa; }
.rep-grid { display: grid; gap: 4px; }
.rep-cap { display: none; }
.rep-rand { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.rep-cap + .rep-rand { border-top: 0; padding-top: 4px; }
.rep-nume { min-width: 0; }
.rep-nume b { display: block; font-size: 15px; font-weight: 800; }
.rep-nume small { display: block; color: var(--mu); font-size: 12px; }
.rep-cel { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.rep-per { display: block; font-size: 11px; color: var(--mu); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-bottom: 4px; }
.rep-val { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; text-align: center; }
.rep-val b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.rep-val small { display: block; font-size: 11px; color: var(--mu); }
.rep-cel.gri .rep-val b { color: var(--mu); opacity: .8; }
.rep-n { display: block; margin-top: 6px; font-size: 12px; color: var(--mu); text-align: center; }
.rep-rand.adunat .rep-cel { background: linear-gradient(160deg, #10321f, var(--panel2) 70%); border-color: #166534; }
.rep-rand.adunat .rep-cel.gri { background: var(--panel2); border-color: var(--line); }
.sec h2 details.info { margin-left: 4px; }
.sec h2 details.info > span { font-weight: 400; font-size: 12px; }
@media (min-width: 768px) {
  .rep-cap { display: grid; grid-template-columns: 170px 1fr 1fr 1fr; gap: 10px; padding: 0 0 6px; font-size: 12px; color: var(--mu); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
  .rep-cap span:not(:first-child) { text-align: center; }
  .rep-rand { grid-template-columns: 170px 1fr 1fr 1fr; gap: 10px; align-items: stretch; }
  .rep-nume { align-self: center; }
  .rep-per { display: none; }
}
