:root {
  --bg: #0b1020;
  --surface: #141c2f;
  --surface-2: #1b2841;
  --surface-3: #22304d;
  --primary: #7c3aed;
  --accent: #a855f7;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --cyan: #22d3ee;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(20, 28, 47, 0.78);
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  color-scheme: dark;
  font-family: "Tajawal", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 78% 0%, rgba(124, 58, 237, 0.18), transparent 28%),
    linear-gradient(180deg, #10162a 0%, var(--bg) 42%, #070b16 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

noscript {
  display: block;
  padding: 16px;
  background: var(--danger);
  color: white;
  text-align: center;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px calc(98px + env(safe-area-inset-bottom));
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-lockup small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark,
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
}

.brand-mark {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 16px 28px rgba(124, 58, 237, 0.28);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.icon-button.subtle {
  color: var(--muted);
}

.main-content {
  position: relative;
}

.view {
  display: none;
  animation: viewIn 240ms ease both;
}

.view.active {
  display: block;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.18;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.install-button,
.link-button,
.chip,
.player-actions button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.install-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
  font-weight: 800;
}

.featured-match {
  min-height: 214px;
  margin-bottom: 14px;
}

.match-hero {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.76), rgba(34, 211, 238, 0.17)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    var(--surface);
  box-shadow: var(--shadow);
}

.match-hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -45% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.24), transparent 66%);
}

.worldcup-countdown {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px 18px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 92%, rgba(124, 58, 237, 0.18), transparent 36%),
    radial-gradient(circle at 86% 4%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(20, 28, 47, 0.96), rgba(11, 16, 32, 0.92));
  box-shadow: var(--shadow);
  text-align: center;
}

.worldcup-countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.worldcup-countdown > * {
  position: relative;
  z-index: 1;
}

.countdown-date {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.worldcup-countdown h2 {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc, #22d3ee, #10b981);
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 8vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.worldcup-countdown p {
  max-width: 560px;
  margin: 0;
  color: rgba(248, 250, 252, 0.7);
  font-size: 15px;
  line-height: 1.8;
}

.countdown-grid {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.countdown-unit {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.countdown-unit strong {
  color: #22d3ee;
  direction: ltr;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.countdown-unit span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-head,
.hero-actions,
.section-title,
.card-head,
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-head {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.live {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.badge.success {
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.16);
}

.badge.muted {
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.17);
}

.stage-name {
  color: rgba(248, 250, 252, 0.76);
  font-size: 12px;
}

.versus {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.team-side {
  min-width: 0;
}

.team-logo,
.channel-logo,
.stadium-image,
.team-avatar {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.team-logo {
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  overflow: hidden;
  border-radius: 20px;
  font-size: 26px;
}

.team-logo img,
.mini-flag img,
.team-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.team-side strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-side small {
  color: rgba(248, 250, 252, 0.76);
}

.score-box {
  min-height: 60px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(11, 16, 32, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 21px;
  font-weight: 900;
  direction: ltr;
  line-height: 1;
  white-space: nowrap;
}

.hero-actions {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.primary-action {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 17px;
  color: #042f2e;
  background: linear-gradient(135deg, var(--success), #14b8a6);
  box-shadow: 0 16px 26px rgba(16, 185, 129, 0.22);
  font-weight: 900;
}

.global-search {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.065);
}

.global-search svg {
  color: var(--muted);
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.global-search input::placeholder {
  color: var(--muted);
}

.search-results {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 32, 0.7);
}

.content-section {
  margin-top: 18px;
}

.section-title {
  margin-bottom: 10px;
}

.link-button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.horizontal-list,
.stack-list,
.standings-wrap,
.stadium-grid,
.team-grid {
  display: grid;
  gap: 10px;
}

.horizontal-list {
  direction: rtl;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 82%);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.horizontal-list::-webkit-scrollbar {
  display: none;
}

.horizontal-list > * {
  direction: rtl;
  scroll-snap-align: start;
}

.match-card,
.channel-card,
.team-card,
.stadium-card,
.news-card,
.settings-panel,
.standing-table,
.empty-state,
.search-item {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.match-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
}

.fixture-card {
  position: relative;
  min-height: 318px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 18, 33, 0.84);
}

.fixture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(124, 58, 237, 0.16), transparent 42%);
  pointer-events: none;
}

.fixture-card > * {
  position: relative;
  z-index: 1;
}

.match-card-head,
.match-card-footer,
.match-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-group-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #facc15;
  background: rgba(239, 68, 68, 0.14);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.matchday-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.match-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.match-card-team {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.match-card-team strong {
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card-team small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.match-card-flag {
  width: 48px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.match-card-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.match-vs {
  color: rgba(248, 250, 252, 0.68);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.match-card-score {
  grid-column: 1 / -1;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fb923c;
  direction: ltr;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.match-card-score::before,
.match-card-score::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.78);
}

.match-card-footer {
  min-height: 42px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.match-card-footer span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card-actions {
  position: absolute;
  inset-inline: 18px;
  bottom: 58px;
  pointer-events: none;
}

.match-card-actions > * {
  pointer-events: auto;
}

.match-date-section {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.match-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
}

.match-date-head strong {
  color: var(--text);
  font-size: 16px;
}

.timeline-match-list {
  display: grid;
  gap: 12px;
}

.timeline-match-card {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 16% 50%, rgba(34, 211, 238, 0.12), transparent 36%),
    radial-gradient(circle at 84% 50%, rgba(124, 58, 237, 0.16), transparent 36%),
    var(--glass);
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.timeline-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.07), transparent 42%);
  pointer-events: none;
}

.timeline-team,
.timeline-score {
  position: relative;
  z-index: 1;
}

.timeline-team {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.timeline-team strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-flag {
  width: 58px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 211, 238, 0.08)),
    rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.08);
}

.timeline-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.timeline-score {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.score-dash {
  color: var(--cyan);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.22);
}

.timeline-watch {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 2;
}

.mini-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mini-flag {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.card-main {
  min-width: 0;
}

.card-main strong {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-main small,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.card-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.watch-mini {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #042f2e;
  background: var(--success);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.channel-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-card {
  min-height: 122px;
  display: grid;
  align-content: space-between;
  justify-items: stretch;
  gap: 10px;
  padding: 13px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.channel-card .card-head {
  justify-content: center;
  min-height: 54px;
}

.channel-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.92), rgba(245, 158, 11, 0.82));
}

.bein-logo {
  width: 86px;
  height: 50px;
  align-content: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 9px;
  border-color: rgba(34, 211, 238, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(34, 211, 238, 0.72)),
    var(--surface);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 22px rgba(34, 211, 238, 0.14);
}

.bein-word,
.bein-sport {
  display: block;
  line-height: 1;
  letter-spacing: 0;
}

.bein-word {
  font-size: 16px;
  font-weight: 900;
}

.bein-sport {
  margin-top: 2px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 9px;
  font-weight: 800;
}

.channel-card strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card .watch-mini {
  width: 100%;
}

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

.quick-action {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
}

.news-card,
.settings-panel {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.news-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 6px 0 14px;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.chip.active {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--text);
  background: rgba(34, 211, 238, 0.12);
}

.standing-table {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.standing-title {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.standing-row {
  display: grid;
  grid-template-columns: 32px minmax(92px, 1fr) repeat(4, 32px) 52px 34px;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.standing-row.header {
  color: var(--muted);
  font-weight: 800;
}

.stadium-grid,
.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stadium-card,
.team-card {
  min-height: 142px;
  padding: 13px;
  border-radius: var(--radius-lg);
}

.team-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
}

.team-card strong,
.team-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.stadium-image {
  height: 92px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.18)),
    rgba(255, 255, 255, 0.06);
}

.stadium-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stadium-meta {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.team-avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 4px;
  overflow: hidden;
  border-radius: 22px;
  font-size: 28px;
}

.team-group {
  margin-top: -2px;
}

.settings-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.settings-panel select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
}

.bottom-nav {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 24px), 500px);
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  align-items: center;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(12, 18, 33, 0.91);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.nav-item {
  min-width: 0;
  height: 60px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  display: block;
}

.quick-action svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-item.active {
  color: var(--text);
  background: rgba(124, 58, 237, 0.24);
}

.empty-state {
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.search-item {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--text);
  text-align: start;
}

.search-item:last-child {
  margin-bottom: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 50;
  max-width: min(90vw, 430px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(11, 16, 32, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.skeleton {
  min-height: 92px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}
