:root {
  --bg: #f0ebe3;
  --panel: #fffdf9;
  --text: #1a1814;
  --muted: #6b6560;
  --border: #ddd5c8;
  --pitch: #0f4d32;
  --pitch-light: #1a6b47;
  --gold: #b8860b;
  --gold-light: #f5e6b8;
  --live: #c41e3a;
  --accent: #d4540a;
  --shadow: 0 18px 50px rgba(26, 24, 20, 0.08);
  --radius: 4px;
  --font-display: "Archivo Black", sans-serif;
  --font-body: "Literata", Georgia, serif;
  --font-mono: "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.pitch-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(15, 77, 50, 0.03) 48px,
      rgba(15, 77, 50, 0.03) 96px
    ),
    radial-gradient(ellipse 80% 50% at 90% 0%, rgba(184, 134, 11, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(15, 77, 50, 0.08), transparent 50%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  border-bottom: 3px solid var(--pitch);
}

.masthead__edition {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--pitch);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

.masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.masthead h1 em {
  font-style: normal;
  color: var(--pitch);
  display: inline;
  font-size: 0.72em;
  margin-left: 0.12em;
}

.masthead__sub {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.refresh-badge--busy .pulse-dot {
  animation: pulse 0.6s ease-in-out infinite, spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.refresh-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pitch-light);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.refresh-control {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.refresh-control select {
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0.35rem 0.5rem;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--ghost:hover {
  border-color: var(--pitch);
  color: var(--pitch);
}

.btn--primary {
  background: var(--pitch);
  color: #fff;
}

.btn--primary:hover {
  background: var(--pitch-light);
}

.btn--accent {
  background: var(--gold);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin: 0 clamp(1.25rem, 4vw, 3rem);
  padding: 2rem 2.5rem;
  background: var(--pitch);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: heroIn 0.8s ease both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 50%;
  height: 160%;
  background: linear-gradient(135deg, transparent 40%, rgba(184, 134, 11, 0.25));
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero__timer {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0.25rem 0 0.75rem;
}

.hero__match {
  font-size: 1.1rem;
  opacity: 0.9;
}

.hero__flags {
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 1;
}

.hero__flags img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero__flags img:last-child {
  margin-left: -20px;
}

.hero__flags .vs {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0 0.5rem;
}

.tabs {
  display: flex;
  gap: 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--border);
}

.tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: var(--muted);
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover { color: var(--text); }

.tab--active {
  color: var(--pitch);
  border-bottom-color: var(--pitch);
  font-weight: 500;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.panel { display: none; }
.panel--active { display: block; animation: fadeUp 0.4s ease; }

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

.filter-panel {
  margin-bottom: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.filter-bar .filter-summary {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.filter-more > summary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  cursor: pointer;
  padding: 0.15rem 0;
  list-style: none;
}

.filter-more > summary::-webkit-details-marker {
  display: none;
}

.filter-more > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s;
}

.filter-more[open] > summary::before {
  transform: rotate(90deg);
}

.filter-more[open] > summary {
  margin-bottom: 0.45rem;
}

.filter-bar__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}

.filter-advanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.45rem 0.55rem;
  align-items: end;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-field select {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.filter-field select:focus {
  outline: none;
  border-color: var(--pitch);
}

.filter-summary strong {
  color: var(--pitch);
  font-weight: 500;
}

.btn--sm {
  padding: 0.45rem 0.75rem;
  align-self: end;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--pitch); }

.chip--active {
  background: var(--pitch);
  color: #fff;
  border-color: var(--pitch);
}

.chip--star {
  border-color: var(--gold);
  color: #8a6508;
}

.chip--star.chip--active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.filter-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.preset-select {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 160px;
}

.match-card--recommended {
  border-left: 3px solid var(--gold);
}

.match-card__tip {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.match-card__tip--star {
  color: #7a5a0a;
}

.tools-menu {
  position: relative;
}

.tools-menu > summary {
  list-style: none;
  cursor: pointer;
}

.tools-menu > summary::-webkit-details-marker {
  display: none;
}

.tools-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 168px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
}

.tools-menu__panel button,
.tools-menu__panel a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.tools-menu__panel button:hover,
.tools-menu__panel a:hover {
  background: #f0faf5;
  color: var(--pitch);
}

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.toast--ok { border-left: 3px solid var(--pitch); }
.toast--err { border-left: 3px solid var(--live); }

.footer-github {
  color: var(--pitch);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-github:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.star-prompt {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 90;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.1rem 1.25rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(1.25rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.star-prompt--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.star-prompt__close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.star-prompt__close:hover {
  color: var(--text);
}

.star-prompt__title {
  margin: 0 1.5rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.star-prompt__body {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.star-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.match-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  animation: cardIn 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.match-card--live {
  border-left: 4px solid var(--live);
}

.match-card__live-pill {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--live);
  letter-spacing: 0.06em;
  animation: blink 1.2s step-end infinite;
}

.match-card__minute {
  color: var(--live);
  font-weight: 600;
}

.hero__timer--live {
  color: var(--live);
  letter-spacing: 0.04em;
}

.match-card--live::before {
  content: none;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.match-card__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 5rem;
}

.match-card__time strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.match-card__teams {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}

.team--away { flex-direction: row-reverse; text-align: right; }

.team__flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: #fff;
}

.team__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.team__score {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--pitch);
  min-width: 1.5rem;
  text-align: center;
}

.match-card__vs {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.match-card__venue {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.match-card__venue svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.match-card__odds {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.odds-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
  color: var(--text);
}

.odds-pill span { color: var(--muted); }

.match-card__status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.match-card__range {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--pitch);
  margin-top: 0.2rem;
  font-weight: 500;
}

.lang-control select,
.tz-control select {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  max-width: 11rem;
}

.tz-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
}

.tz-control__label {
  white-space: nowrap;
}

.demo-banner {
  margin: 0;
  padding: 0.45rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--gold-light);
  color: #7a5a0a;
  border-bottom: 1px solid var(--gold);
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.group-table {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.group-table h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--pitch);
  color: #fff;
  letter-spacing: 0.05em;
}

.group-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.group-table th,
.group-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.group-table th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

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

.group-table .team-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.group-table .team-cell img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  animation: cardIn 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.news-item:hover {
  border-color: var(--pitch);
  transform: translateX(4px);
}

.news-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  background: var(--border);
}

.news-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.news-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.news-item time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
}

.notify-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.notify-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--pitch);
}

.notify-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.notify-card code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--gold-light);
  padding: 0.1rem 0.3rem;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.notify-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

.notify-form input[type="email"],
.notify-form input[type="number"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.checkbox-row label {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-family: var(--font-body);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.notify-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 1.2em;
}

.notify-status--ok { color: var(--pitch); }
.notify-status--err { color: var(--live); }

.notify-card--sub {
  margin-top: 1.25rem;
  max-width: 520px;
}

.subscribed-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.subscribed-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.subscribed-list li:last-child { border-bottom: none; }

.subscribed-list .sub-teams {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.subscribed-list img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.btn-subscribe {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--pitch);
  background: transparent;
  color: var(--pitch);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-subscribe:hover {
  background: var(--pitch);
  color: #fff;
}

.btn-subscribe--active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn-subscribe--active:hover {
  background: #9a6f09;
  border-color: #9a6f09;
}

.match-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.sidebar__block {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sidebar__block h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
  color: var(--pitch);
  letter-spacing: 0.05em;
}

.sidebar__block--accent {
  background: linear-gradient(145deg, var(--gold-light), var(--panel));
  border-color: var(--gold);
}

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phase-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}

.phase-list li:last-child { border-bottom: none; }

.phase-list span:last-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.legend__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  background: var(--pitch);
  color: #fff;
  padding: 0.15rem 0.35rem;
  min-width: 2rem;
  text-align: center;
}

.sidebar__note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem 2rem;
    gap: 1.25rem;
  }

  .sidebar {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__flags {
    justify-content: center;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .match-card__odds {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .filter-more > summary {
    display: list-item;
  }
}

@media (min-width: 961px) {
  .filter-more > summary {
    display: none;
  }

  .filter-more > .filter-advanced,
  .filter-more > .filter-presets {
    display: block;
  }

  .filter-more > .filter-advanced {
    display: grid;
  }
}

@media (max-width: 600px) {
  .masthead {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem 1rem 1rem;
  }

  .masthead h1 {
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .masthead__sub {
    font-size: 0.82rem;
    margin-top: 0.5rem;
  }

  .masthead__meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .refresh-control {
    flex: 1 1 100%;
    font-size: 0.8rem;
  }

  .tools-menu {
    flex: 1;
  }

  .tabs {
    padding: 0.75rem 1rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    padding: 0.6rem 0.85rem;
    font-size: 0.68rem;
  }

  .hero {
    padding: 1.25rem 1rem;
  }

  .hero__timer {
    font-size: 2rem;
  }

  .sidebar { grid-template-columns: 1fr; }

  .filter-bar .filter-summary {
    flex: 1 1 100%;
    margin-left: 0;
    text-align: right;
  }

  .filter-advanced {
    grid-template-columns: 1fr 1fr;
  }

  .match-card__teams {
    flex-direction: column;
    gap: 0.5rem;
  }

  .team--away { flex-direction: row; text-align: left; }

  .match-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
  }
}
