:root {
  --bg: #050302;
  --bg-soft: #0c0804;
  --panel: #090503;
  --line: #4c2a05;
  --line-soft: #2f1a04;
  --amber: #ff9a1f;
  --amber-soft: #c87713;
  --text: #ffa52f;
  --text-soft: #a76519;
  --danger: #ff4a4a;
  --success: #78d47f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  min-height: 100vh;
  font-family: "VT323", monospace;
  font-size: 1.08rem;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 150, 40, 0.03) 0,
      rgba(255, 150, 40, 0.03) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(circle at 15% 12%, rgba(255, 160, 40, 0.07), transparent 38%),
    radial-gradient(circle at 86% 88%, rgba(255, 130, 22, 0.06), transparent 34%),
    var(--bg);
}

.app-shell {
  width: min(1180px, 100% - 1.4rem);
  margin: 1rem auto;
}

img {
  max-width: 100%;
}

.hero-bar,
.panel,
.favorite-banner,
.footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 153, 0, 0.04), transparent 34%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 152, 17, 0.08);
  min-width: 0;
}

.hero-bar {
  border-radius: 1.05rem;
  padding: 1rem 1rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.game-day-message {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 153, 32, 0.08);
  color: #ffbf74;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-day-message.gameday {
  color: #ffd3d3;
  border-color: #c83a2e;
  background: rgba(255, 72, 72, 0.25);
  animation: pulse 0.95s infinite steps(2, end);
}

.game-day-message.countdown {
  color: #ffbe6d;
  border-color: #8d5512;
  background: rgba(255, 153, 32, 0.14);
}

.game-day-message.neutral {
  color: var(--text-soft);
  border-color: var(--line-soft);
  background: rgba(255, 153, 32, 0.05);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "VT323", monospace;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn,
.kickoff-time,
.match-state,
.status-pill,
.score-sep {
  font-family: "VT323", monospace;
}

h1 {
  font-size: clamp(1.7rem, 5.4vw, 2.8rem);
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 151, 24, 0.22);
}

.btn,
.date-picker,
.favorite-picker-btn {
  background: #0a0603;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font: inherit;
  min-height: 2.1rem;
}

.btn {
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn:hover {
  border-color: var(--amber-soft);
  color: #ffb251;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, #ff9a1f, #c36b11);
  border-color: #a95e11;
  color: #150c02;
  font-weight: 700;
}

.favorite-banner {
  --fav-rgb: 255, 154, 31;
  --fav-border: var(--line);
  position: sticky;
  top: 0.4rem;
  z-index: 10;
  border-radius: 1.05rem;
  padding: 0.85rem;
  margin-bottom: 0.9rem;
  border-color: var(--fav-border);
  background:
    linear-gradient(180deg, rgba(var(--fav-rgb), 0.11), rgba(0, 0, 0, 0) 32%),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(var(--fav-rgb), 0.18),
    0 0 24px rgba(var(--fav-rgb), 0.08);
}

.favorite-empty {
  text-align: center;
  color: var(--text-soft);
}

.favorite-content {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 2fr;
  gap: 0.7rem;
  align-items: center;
}

.favorite-team-block {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.favorite-team-meta h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1;
  margin: 0 0 0.25rem;
}

.favorite-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #120a04;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.2rem;
}

.label,
.muted,
.fixture-detail {
  color: var(--text-soft);
}

.favorite-fixture-block {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--fav-rgb), 0.4);
  border-radius: 0.75rem;
  padding: 0.55rem;
  background: rgba(0, 0, 0, 0.28);
}

.favorite-goal-cinematic {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 22% 50%, rgba(120, 255, 196, 0.28), transparent 52%),
    radial-gradient(circle at 80% 48%, rgba(120, 255, 196, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(0, 17, 10, 0.92), rgba(0, 8, 4, 0.97)),
    repeating-linear-gradient(
      0deg,
      rgba(130, 255, 195, 0.08) 0,
      rgba(130, 255, 195, 0.08) 1px,
      transparent 1px,
      transparent 4px
    );
  box-shadow:
    inset 0 0 0 1px rgba(140, 255, 202, 0.25),
    0 0 22px rgba(80, 255, 170, 0.25);
}

.favorite-goal-cinematic.active {
  animation: favorite-goal-overlay 7.4s ease-out both;
}

.favorite-goal-stage {
  position: absolute;
  width: calc(100% - 1.1rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0;
}

.favorite-goal-word {
  font-size: clamp(2.6rem, 9vw, 4.1rem);
  color: #c6ffea;
  text-shadow:
    0 0 8px rgba(133, 255, 201, 0.85),
    0 0 22px rgba(78, 255, 173, 0.7),
    0 0 44px rgba(33, 204, 128, 0.45);
  animation: favorite-goal-stage-a 2.5s steps(12, end) both;
}

.favorite-goal-team {
  font-size: clamp(1.9rem, 5.8vw, 2.8rem);
  color: #a6ffd8;
  text-shadow: 0 0 14px rgba(95, 255, 175, 0.65);
  animation: favorite-goal-stage-b 2.35s 2.35s steps(10, end) both;
}

.favorite-goal-score {
  font-size: clamp(1.6rem, 5vw, 2.25rem);
  color: #e6fff3;
  text-shadow: 0 0 12px rgba(125, 255, 195, 0.65);
  animation: favorite-goal-stage-c 2.15s 4.8s steps(10, end) both;
}

.status-pill {
  margin: 0 0 0.35rem;
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid #684312;
  color: #ffbf72;
  background: rgba(255, 153, 32, 0.11);
}

.status-pill.live {
  color: #ffd8d8;
  border-color: #d23b2f;
  background: rgba(255, 72, 72, 0.3);
  animation: pulse 0.95s infinite steps(2, end);
}

.status-pill.gameday {
  background: rgba(255, 160, 25, 0.22);
  border-color: #9a5e15;
  animation: pulse 1.05s infinite steps(2, end);
}

.status-pill.final {
  color: #d5ffd8;
  border-color: #2f8f44;
  background: rgba(60, 140, 76, 0.28);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}

@keyframes favorite-goal-overlay {
  0% { opacity: 0; }
  5% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes favorite-goal-stage-a {
  0% { opacity: 0; transform: scale(0.9); filter: blur(1px); }
  16% { opacity: 1; transform: scale(1.02); filter: blur(0); }
  74% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

@keyframes favorite-goal-stage-b {
  0% { opacity: 0; transform: translateY(12px); }
  16% { opacity: 1; transform: translateY(0); }
  74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}

@keyframes favorite-goal-stage-c {
  0% { opacity: 0; transform: translateY(12px); }
  20% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-3px); }
}

.fixture-line,
.fixture-detail {
  margin: 0.15rem 0;
  font-size: 0.93rem;
}

.live-strip {
  margin-top: 0.45rem;
  border-top: 1px dashed var(--line-soft);
  padding-top: 0.35rem;
  color: var(--amber);
  font-size: 0.86rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-slide 18s linear infinite;
}

.live-strip.ticker-static {
  white-space: normal;
  overflow: visible;
}

.live-strip.ticker-static .ticker-content {
  display: block;
  padding-left: 0;
  animation: none;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.favorite-picker-btn,
.date-picker {
  padding: 0.35rem 0.5rem;
}

.date-picker {
  min-width: 150px;
  max-width: 100%;
}

.favorite-picker {
  position: relative;
}

.favorite-picker-btn {
  width: 100%;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
}

.picker-fab {
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0;
  justify-content: center;
}

.picker-fab .picker-selected {
  width: 100%;
  justify-content: center;
}

.picker-fab .picker-logo {
  width: 22px;
  height: 22px;
}

.picker-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
}

.picker-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: #120a04;
  object-fit: contain;
  flex-shrink: 0;
}

.picker-chevron {
  color: var(--text-soft);
  line-height: 1;
}

.favorite-picker-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  width: min(360px, calc(100vw - 1.2rem));
  min-width: 280px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #090503;
  z-index: 30;
  box-shadow: inset 0 0 0 1px rgba(255, 152, 17, 0.08);
}

.header-picker {
  z-index: 40;
}

.favorite-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.52rem 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font: inherit;
  font-size: 1.06rem;
  line-height: 1.1;
  transition: background-color 140ms ease;
}

.favorite-option:last-child {
  border-bottom: 0;
}

.favorite-option:hover {
  background: rgba(255, 152, 17, 0.08);
}

.option-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  object-fit: contain;
  background: #120a04;
  flex-shrink: 0;
}

.option-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.08rem;
}

.option-team {
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.option-league {
  color: var(--text-soft);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.clear-option .option-league {
  color: #9a6a2d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.controls-panel,
.grid-layout {
  margin-bottom: 0.9rem;
}

.panel {
  border-radius: 1.05rem;
  padding: 0.7rem;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.filter-group {
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.5rem;
  background: rgba(255, 149, 18, 0.03);
}

.filter-label {
  margin: 0 0 0.38rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.league-controls,
.date-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.date-controls {
  margin-top: 0;
}

.date-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.date-arrow-btn {
  min-width: 2.1rem;
  width: 2.1rem;
  padding: 0;
  line-height: 1;
  font-size: 0.95rem;
  border-color: #9a5d14;
}

.date-arrow-btn:hover {
  border-color: #c87917;
}

.league-btn.active,
.date-quick-btn.active {
  border-color: #b56510;
  color: #ffb452;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.panel-head {
  margin-bottom: 0.55rem;
}

.list {
  display: grid;
  gap: 0.55rem;
}

.fixture-item {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #080502;
  transition: border-color 140ms ease, transform 140ms ease;
}

.fixture-item:hover {
  border-color: #8f5411;
  transform: translateY(-1px);
}

.fixture-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem;
  position: relative;
  overflow: hidden;
}

.fixture-item summary::-webkit-details-marker {
  display: none;
}

.summary-main {
  display: grid;
  gap: 0.5rem;
}

.fixture-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.kickoff-time,
.match-state {
  font-size: 0.72rem;
  white-space: nowrap;
  border-radius: 999px;
  line-height: 1;
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line);
  color: #f5ac4e;
  background: #120902;
}

.match-state.live {
  border-color: #c8372b;
  color: #ffcbcb;
  background: #42100d;
}

.match-state.final {
  border-color: #2d8040;
  color: #ccf4d1;
  background: #10311a;
}

.teams {
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.teams.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.goal-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background:
    radial-gradient(circle at center, rgba(66, 219, 148, 0.12), rgba(0, 0, 0, 0.9) 55%),
    repeating-linear-gradient(
      0deg,
      rgba(112, 255, 170, 0.07) 0,
      rgba(112, 255, 170, 0.07) 1px,
      transparent 1px,
      transparent 5px
    ),
    rgba(2, 15, 8, 0.92);
}

.goal-flash.active {
  animation: goal-overlay 6.6s ease-out both;
}

.goal-stage {
  position: absolute;
  width: calc(100% - 1rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0;
}

.goal-word {
  font-size: clamp(2rem, 7vw, 3.1rem);
  color: #baffd8;
  text-shadow:
    0 0 6px rgba(112, 255, 170, 0.9),
    0 0 16px rgba(79, 231, 150, 0.7);
  animation: goal-stage-a 2.2s steps(10, end) both;
}

.goal-team-name {
  font-size: clamp(1.5rem, 5vw, 2.15rem);
  color: #9fffcf;
  text-shadow: 0 0 10px rgba(86, 255, 164, 0.6);
  animation: goal-stage-b 2.2s 2.1s steps(8, end) both;
}

.goal-scoreline {
  font-size: clamp(1.35rem, 4.6vw, 1.95rem);
  color: #d8ffe8;
  text-shadow: 0 0 8px rgba(99, 247, 164, 0.6);
  animation: goal-stage-c 2.1s 4.3s steps(8, end) both;
}

@keyframes goal-overlay {
  0% { opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes goal-stage-a {
  0% { opacity: 0; transform: scale(0.92); }
  18% { opacity: 1; transform: scale(1); }
  74% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.03); }
}

@keyframes goal-stage-b {
  0% { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; transform: translateY(0); }
  74% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2px); }
}

@keyframes goal-stage-c {
  0% { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; transform: translateY(0); }
  76% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-2px); }
}

.team-col {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.home-col {
  justify-content: flex-end;
  text-align: right;
}

.away-col {
  justify-content: flex-start;
  text-align: left;
}

.home-team,
.away-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-center {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  min-width: 130px;
  max-width: 100%;
}

.team-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: #120a04;
  border: 1px solid var(--line-soft);
}

.team-score {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #7a4810;
  color: var(--amber);
  background: #170c03;
  font-weight: 700;
}

.team-score-inline {
  display: none;
}

.team-score.leading {
  border: 2px solid #ffc05f;
  box-shadow: 0 0 0 1px rgba(255, 192, 95, 0.25);
}

.score-sep {
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.fixture-details {
  padding: 0 0.55rem 0.6rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.tables-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.table-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.5rem;
  background: #080502;
  transition: border-color 140ms ease;
}

.table-card:hover {
  border-color: #8f5411;
}

.table-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.league-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.table-card h4 {
  color: #ffb452;
  margin: 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 450px;
}

th,
td {
  padding: 0.34rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th {
  color: var(--text-soft);
  font-weight: 600;
}

.footer {
  border-radius: 1.05rem;
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.debug-btn {
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.92rem;
  border-color: #6a4010;
  color: #e9a44a;
}

.debug-btn:hover {
  border-color: #b36a17;
  color: #ffc166;
}

.hidden {
  display: none !important;
}

.empty,
.error {
  color: var(--text-soft);
  border: 1px dashed var(--line);
  border-radius: 0.8rem;
  padding: 0.6rem;
}

.error {
  color: #ff7f7f;
}

@media (max-width: 1000px) {
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .favorite-content {
    grid-template-columns: 1fr;
  }

  .tables-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
  }

  .game-day-message {
    width: 100%;
    text-align: center;
  }

  .header-picker {
    width: 100%;
    display: flex;
    justify-content: stretch;
    min-width: 0;
  }

  .header-picker .picker-fab {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 2.6rem;
    margin-left: 0;
    border-radius: 0.8rem;
    padding: 0.38rem 0.65rem;
    justify-content: space-between;
  }

  .header-picker .picker-fab .picker-selected {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .header-picker .picker-fab .picker-logo {
    width: 20px;
    height: 20px;
  }

  #favorite-picker-text.sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
  }

  .header-picker .favorite-picker-menu {
    left: 0;
    right: 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    top: calc(100% + 0.3rem);
    max-height: min(56vh, 360px);
  }

  .favorite-option {
    padding: 0.62rem 0.65rem;
    gap: 0.6rem;
    font-size: 1.12rem;
  }

  .option-logo {
    width: 26px;
    height: 26px;
  }

  .app-shell {
    width: calc(100% - 1rem);
    margin: 0.6rem auto;
  }

  .filter-group,
  .favorite-picker-menu,
  .fixture-item,
  .favorite-fixture-block,
  .table-card {
    max-width: 100%;
  }

  .date-controls .btn,
  .league-controls .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .date-picker {
    width: 100%;
    min-width: 0;
  }

  .date-nav {
    width: 100%;
  }

  .date-arrow-btn {
    flex: 0 0 2.1rem;
  }

  .home-team,
  .away-team,
  #favorite-name,
  #favorite-picker-text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .teams.scoreline {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .home-col,
  .away-col {
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }

  .score-center {
    display: none;
  }

  .team-score-inline {
    display: inline-flex;
  }

  .home-col .home-team,
  .away-col .away-team {
    flex: 1;
    min-width: 0;
  }

  .home-col .home-team {
    margin-right: 0.35rem;
  }

  .away-col .away-team {
    order: 2;
    margin: 0 0.35rem 0 0.35rem;
  }

  .away-col .away-badge {
    order: 1;
  }

  .away-col .away-inline-score {
    order: 3;
  }

  .fixture-line,
  .fixture-detail,
  .teams {
    font-size: 0.88rem;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }

  #table-panel .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #table-panel table {
    min-width: 0;
  }

  #table-panel th,
  #table-panel td {
    padding: 0.28rem 0.24rem;
    font-size: 0.9rem;
  }

  /* Keep the table readable on iPhone by hiding secondary columns */
  #table-panel th:nth-child(4),
  #table-panel td:nth-child(4),
  #table-panel th:nth-child(5),
  #table-panel td:nth-child(5),
  #table-panel th:nth-child(6),
  #table-panel td:nth-child(6) {
    display: none;
  }
}
