/* Football Tracker 2026 — re-created app mockups
   Faithful-but-modernized versions of the Fire TV app screens. */

/* ---------- App window frame (hero centerpiece) ---------- */
.appframe {
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-2xl);
  overflow: hidden; box-shadow: var(--shadow-3); transform-style: preserve-3d;
}
.appframe__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.appframe__bar .d { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.appframe__bar .t { margin-left: 12px; font-family: var(--font-mono); font-size: .74rem; color: var(--text-3); letter-spacing: .04em; }
.appframe__body { display: flex; min-height: 320px; }

.mini-nav { width: 64px; flex: none; background: var(--bg); border-right: 1px solid var(--line); padding: 18px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mini-nav .logo { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.mini-nav .ni { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.mini-nav .ni svg { width: 19px; height: 19px; }
.mini-nav .ni.active { background: var(--surface-2); color: var(--text); }

.app-main { flex: 1; padding: 18px; min-width: 0; }
.app-main .ftitle { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 16px 2px 12px; letter-spacing: -.01em; }

/* ---------- Featured-match hero card (dark) ---------- */
.feat-hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 20px 22px;
  background:
    radial-gradient(90% 120% at 78% 30%, rgba(47,158,79,.28), transparent 55%),
    linear-gradient(120deg, #0c1f17, #0a1320 60%, #0a0f1c);
  border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.feat-hero__status { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.feat-hero__teams { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; margin-top: 6px; letter-spacing: -.01em; }
.feat-hero__date { color: var(--text-3); font-family: var(--font-mono); font-size: .72rem; margin-top: 4px; }
.feat-hero__chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: rgba(255,255,255,.92); color: #15181e; font-weight: 700; font-size: .78rem; padding: 8px 13px; border-radius: 10px; }
.feat-hero__chip svg { width: 15px; height: 15px; }
.feat-hero__score { display: flex; align-items: center; gap: 14px; }
.vsblock { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 64px; }
.vsblock .fb { width: 46px; height: 46px; }
.vsblock .nm { font-size: .62rem; color: var(--text-2); text-align: center; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.scorenum { font-family: var(--font-mono); font-weight: 700; font-size: 1.7rem; white-space: nowrap; }

/* dots paging */
.pager { display: flex; gap: 6px; }
.pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.pager i.on { background: var(--text-2); width: 18px; border-radius: 4px; }

/* ---------- Green featured-match cards ---------- */
.feat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 12px; margin-top: 12px; }
.match-card {
  border-radius: var(--r-md); padding: 18px 16px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, var(--green-card-1), var(--green-card-2));
  border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden;
}
.match-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(255,255,255,.10)); }
.match-card .fb { width: 40px; height: 40px; flex: none; }
.match-card .mid { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.match-card .mid.sm { font-size: .95rem; }

.fb { border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.4); position: relative; }

/* ---------- Standings table ---------- */
.standings { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.standings__grp { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-family: var(--font-display); font-weight: 800; color: var(--accent-bright); font-size: 1.05rem; }
.standings__grp::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--accent); }
.stable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.stable thead th { background: var(--surface); color: var(--text-3); font-family: var(--font-mono); font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 9px 10px; text-align: center; }
.stable thead th.l { text-align: left; }
.stable td { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); color: var(--text-2); font-variant-numeric: tabular-nums; }
.stable td.team { text-align: left; color: var(--text); font-weight: 600; }
.stable td.rank { color: var(--accent-bright); font-weight: 700; font-family: var(--font-mono); width: 30px; }
.stable td.pts { color: var(--accent-bright); font-weight: 800; font-family: var(--font-mono); }
.stable .tcell { display: flex; align-items: center; gap: 11px; }
.stable .tcell .fb { width: 24px; height: 24px; }

/* ---------- Top scorers ---------- */
.scorers { display: flex; flex-direction: column; gap: 4px; }
.scorer { display: grid; grid-template-columns: auto auto 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); }
.scorer.lead { border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1); }
.scorer__rk { font-family: var(--font-mono); font-weight: 800; font-size: 1.1rem; color: var(--text-2); width: 34px; }
.scorer.lead .scorer__rk { color: var(--gold); }
.scorer:nth-child(3) .scorer__rk { color: #c9cdd6; }
.scorer:nth-child(4) .scorer__rk { color: #cd7f43; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(150deg, var(--accent-deep), var(--accent)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.avatar .pgraph { width: 100%; height: 100%; display: block; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.scorer.lead .avatar { box-shadow: 0 0 0 2px var(--gold), inset 0 0 0 1px rgba(255,255,255,.16); }
.scorer__nm { font-weight: 600; min-width: 0; white-space: nowrap; }
.scorer__nm small { display: block; color: var(--text-3); font-size: .76rem; font-weight: 500; }
.scorer__g { text-align: right; }
.scorer__g b { font-family: var(--font-mono); font-weight: 800; font-size: 1.25rem; }
.scorer.lead .scorer__g b { color: var(--gold); }
.scorer__g span { color: var(--text-3); font-size: .74rem; margin-left: 4px; }

/* ---------- Results list ---------- */
.results { display: flex; flex-direction: column; }
.result { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); transition: background var(--dur-fast); }
.result:hover { background: var(--surface); }
.result.lead { border: 1px solid var(--line-2); background: var(--surface); }
.result .side { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.result .side.r { justify-content: flex-end; }
.result .side .fb { width: 30px; height: 30px; }
.result .sc { font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem; text-align: center; min-width: 64px; }
.result .sc small { display: block; color: var(--accent-bright); font-size: .68rem; font-weight: 600; margin-top: 2px; }

/* ---------- Teams grid ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.team-cell { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; border-radius: var(--r-md); border: 1px solid transparent; transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.team-cell:hover { background: var(--surface); border-color: var(--line-2); transform: translateY(-3px); }
.team-cell .fb { width: 46px; height: 36px; border-radius: 8px; }
.team-cell b { font-size: .82rem; font-weight: 600; }
.team-cell small { font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); letter-spacing: .08em; }
@media (max-width: 600px) { .teams-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Venues ---------- */
.venues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.venue { position: relative; aspect-ratio: 1/1.06; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.venue::before { content: ""; position: absolute; inset: 0; background: var(--vbg, linear-gradient(160deg,#2a3344,#11161f)); }
.venue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 14%, rgba(0,0,0,.6) 52%, rgba(0,0,0,.94)); }
.venue .vart { position: absolute; left: 50%; top: 26%; transform: translate(-50%,-50%); width: 72%; height: auto; opacity: .8; }
.venue__txt { position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 1; }
.venue__txt b { font-family: var(--font-display); font-weight: 700; font-size: .86rem; display: block; line-height: 1.1; }
.venue__txt small { display: block; margin-top: 5px; color: var(--text-2); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .venues-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero ticker cards (direction: ticker) ---------- */
.tcard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--dur) var(--ease), border-color var(--dur); }
.tcard:hover { transform: translateX(6px); border-color: var(--line-2); }
.tcard .side { display: flex; align-items: center; gap: 11px; font-weight: 600; min-width: 0; }
.tcard .side.r { justify-content: flex-end; }
.tcard .side .fb { width: 34px; height: 34px; }
.tcard .side .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .ce { text-align: center; }
.tcard .ce .sc { font-family: var(--font-mono); font-weight: 800; font-size: 1.3rem; }
.tcard .ce .live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--red); text-transform: uppercase; }
.tcard .ce .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.4s var(--ease) infinite; }
.tcard .ce .ko { font-family: var(--font-mono); font-size: .66rem; color: var(--text-3); }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tcard .ce .live i { animation: none; } }
