:root {
  --bg: #05070b;
  --surface: #0b1018;
  --surface-2: #111722;
  --surface-3: #171b21;
  --ink: #f8fafc;
  --muted: #a6afbd;
  --line: #232b38;
  --brand: #e10600;
  --brand-2: #ff2a23;
  --accent: #f4c542;
  --danger: #ff3b35;
  --ok: #27d17f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(225, 6, 0, 0.16), transparent 28rem),
    linear-gradient(180deg, #090d13 0%, var(--bg) 38%, #030406 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

form {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(5, 7, 11, 0.94);
  border-bottom: 1px solid rgba(225, 6, 0, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(520px, 52vw);
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 20px rgba(225, 6, 0, 0.32);
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 20px rgba(225, 6, 0, 0.32);
}

.top-actions,
.tabs,
.row,
.filters,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-field {
  min-width: 120px;
}

.compact-field select {
  min-height: 40px;
}

.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-actions {
  justify-content: flex-end;
  flex: 1;
}

.language-select {
  margin-left: auto;
  flex: 0 0 auto;
}

.language-switch {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.language-switch a.active,
.language-switch a:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.28);
}

.language-switch span {
  font-size: 1.05rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
  color: var(--muted);
  font-size: 0.92rem;
}

.mail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.72), rgba(8, 12, 18, 0.92));
  color: #fff;
  font-weight: 950;
}

.avatar.tiny {
  width: 26px;
  height: 26px;
}

.avatar.small {
  width: 42px;
  height: 42px;
}

.avatar.medium {
  width: 56px;
  height: 56px;
}

.avatar.xl {
  width: 92px;
  height: 92px;
  font-size: 2rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.identity-line,
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shell-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(420px, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 116px);
  padding: clamp(34px, 6vw, 86px) 0 42px;
}

.landing-hero {
  align-items: start;
  padding-top: clamp(64px, 11vh, 148px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(2.45rem, 4.2vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 10, 15, 0.82), rgba(225, 6, 0, 0.48)),
    url("https://images.unsplash.com/photo-1508614999368-9260051292e5?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.landing-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  width: 100%;
  min-width: 0;
}

.landing-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.landing-tab-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.landing-tab-switch label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

#landing-disciplines:checked ~ .landing-tab-switch label[for="landing-disciplines"],
#landing-events:checked ~ .landing-tab-switch label[for="landing-events"] {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.38);
}

.landing-tab-content {
  display: none;
  gap: 12px;
}

#landing-disciplines:checked ~ .landing-disciplines,
#landing-events:checked ~ .landing-events {
  display: grid;
}

.landing-list {
  display: grid;
  gap: 10px;
}

.landing-disciplines,
.landing-events {
  gap: 10px;
}

.landing-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.landing-sport-row,
.landing-event-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.landing-sport-row {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
}

.landing-sport-image,
.landing-event-image {
  width: 140px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.44), rgba(7, 10, 15, 0.82)),
    #111821;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-event-row {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
}

.landing-event-row:not(:has(.landing-event-image)) {
  grid-template-columns: minmax(0, 1fr);
}

.landing-sport-row > div:last-child,
.landing-event-row {
  min-width: 0;
}

.landing-sport-row strong,
.landing-event-row strong {
  display: block;
  margin-bottom: 5px;
}

.landing-sport-row span,
.landing-event-row span,
.landing-event-row small {
  color: var(--muted);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
}

.landing-stats strong {
  color: var(--brand-2);
}

.scoreboard {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(8, 12, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.score-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.score-line span:nth-child(2) {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.panel,
.card,
.auth-box,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.auth-box {
  padding: clamp(16px, 2.4vw, 24px);
}

.card {
  padding: 16px;
}

.auth-box {
  display: grid;
  gap: 16px;
}

.tabs {
  margin-bottom: 18px;
}

.view-switcher {
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.13), rgba(8, 12, 18, 0.94));
  box-shadow: var(--shadow);
}

.view-switcher .tabs {
  margin-bottom: 0;
}

.tab,
.btn,
.icon-btn {
  min-height: 40px;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.tab {
  padding: 10px 13px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: #d7dce5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tab.active,
.tab:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.38);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(225, 6, 0, 0.22);
}

.btn.secondary {
  background: var(--surface-3);
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--brand-2);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.danger {
  background: var(--danger);
}

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

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  background: var(--surface-3);
  color: var(--ink);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title.compact-title {
  margin-bottom: 0;
}

.section-title h2,
.dashboard-block > h2,
.card h3,
.panel h2 {
  margin: 0;
}

.section-title p,
.muted,
.small {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
}

.stat-number {
  margin: 10px 0 0;
  color: var(--brand-2);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(225, 6, 0, 0.26);
  border-color: var(--brand);
}

.stack {
  display: grid;
  gap: 14px;
}

.list {
  display: grid;
  gap: 12px;
}

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

.event-match-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.cup-match-card {
  width: 100%;
}

.event-card {
  display: grid;
  gap: 14px;
}

.event-meta,
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: #eef2f7;
  font-size: 0.82rem;
  font-weight: 800;
}

.pill.warn {
  background: rgba(244, 197, 66, 0.14);
  color: #ffd866;
}

.pill.ok {
  background: rgba(39, 209, 127, 0.13);
  color: #7cf2b4;
}

.pill.cup-early,
.cup-slot.cup-early {
  color: #72d6ff;
  border-color: rgba(114, 214, 255, 0.45);
}

.pill.cup-mid,
.cup-slot.cup-mid {
  color: #9af27a;
  border-color: rgba(154, 242, 122, 0.45);
}

.pill.cup-late,
.cup-slot.cup-late {
  color: #ffd866;
  border-color: rgba(255, 216, 102, 0.48);
}

.pill.cup-quarter,
.cup-slot.cup-quarter {
  color: #ff9f43;
  border-color: rgba(255, 159, 67, 0.5);
}

.pill.cup-semi,
.cup-slot.cup-semi {
  color: #ff6bcb;
  border-color: rgba(255, 107, 203, 0.5);
}

.pill.cup-final,
.cup-slot.cup-final {
  color: #ffdd55;
  border-color: rgba(255, 221, 85, 0.9);
}

.pill.cup-early,
.pill.cup-mid,
.pill.cup-late,
.pill.cup-quarter,
.pill.cup-semi,
.pill.cup-final {
  background: rgba(255, 255, 255, 0.06);
}

.pill.cup-final {
  background: linear-gradient(135deg, rgba(255, 221, 85, 0.2), rgba(225, 6, 0, 0.32));
  color: #ffe982;
  box-shadow: 0 0 18px rgba(255, 221, 85, 0.18);
}

.cup-slot.cup-final {
  background: linear-gradient(135deg, rgba(255, 221, 85, 0.11), rgba(225, 6, 0, 0.18));
}

.toggle-btn {
  background: var(--brand);
  color: #fff;
}

.toggle-btn.is-open {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.4);
}

.toggle-panel {
  max-height: 1600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.22s ease, transform 0.22s ease;
  transform: translateY(0);
}

.toggle-panel.is-collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
}

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

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 72px 72px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.prediction-row.locked {
  opacity: 0.68;
  background: #070a0f;
}

.prediction-row.locked input,
.prediction-row.locked select {
  cursor: not-allowed;
}

.prediction-row strong {
  display: block;
}

.match-name strong,
.match-name .small {
  display: block;
}

.match-name .small {
  margin-top: 5px;
}

.notice {
  padding: 12px 14px;
  border-left: 4px solid var(--brand);
  color: var(--muted);
}

.notice.error {
  border-left-color: var(--danger);
}

.notice.success {
  border-left-color: var(--ok);
}

.language-select {
  max-width: 96px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
}

.admin-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #080c12;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-tile,
.admin-home-card,
.sport-card,
.check-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-tile {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-tile:hover,
.admin-tile.active {
  border-color: var(--brand);
  box-shadow: 0 0 22px rgba(225, 6, 0, 0.24);
  transform: translateY(-1px);
}

.admin-tile span,
.admin-home-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-section {
  min-height: 520px;
}

.admin-home-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.admin-list-row h3 {
  margin: 0;
}

.admin-list-row p {
  margin: 5px 0 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  width: min(620px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-panel.wide {
  width: min(920px, 100%);
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sport-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.sport-choice {
  min-height: 300px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sport-choice:hover,
.sport-choice.active {
  border-color: var(--brand);
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.24);
  transform: translateY(-1px);
}

.dashboard-block {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.08), rgba(8, 12, 18, 0.96));
  box-shadow: var(--shadow);
}

.sport-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sport-actions .btn,
.sport-actions form {
  width: 100%;
}

.sport-image {
  min-height: 210px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.35), rgba(8, 12, 18, 0.86)),
    var(--surface-3);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.event-thumb {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.35), rgba(8, 12, 18, 0.86)),
    var(--surface-3);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.event-list-thumb {
  width: 78px;
  aspect-ratio: 16 / 10;
  flex: 0 0 78px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.35), rgba(8, 12, 18, 0.86)),
    var(--surface-3);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.event-hero {
  min-height: clamp(180px, 24vw, 320px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(225, 6, 0, 0.35), rgba(8, 12, 18, 0.86)),
    var(--surface-3);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-cell {
  font-size: 1.25rem;
  width: 58px;
}

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

.check-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
}

.check-card input {
  accent-color: var(--brand);
}

.group-assign-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 140px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.cup-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cup-round {
  display: grid;
  align-content: start;
  gap: 8px;
}

.cup-round h4 {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-3);
  text-align: center;
}

.cup-slot {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
  color: var(--muted);
}

.cup-slot.filled {
  border-color: rgba(225, 6, 0, 0.55);
  background: rgba(225, 6, 0, 0.08);
  color: var(--ink);
}

.cup-slot .pill {
  justify-self: start;
}

.cup-slot select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
  color: var(--ink);
}

.admin-match-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.admin-match-edit {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.match-admin {
  display: grid;
  grid-template-columns: 1fr 72px 72px auto;
  gap: 10px;
  align-items: end;
}

.result-admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 150px) minmax(120px, 150px);
  gap: 18px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c12;
}

.footer-space {
  height: 22px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .grid.two,
  .grid.three,
  .admin-tiles,
  .sports-grid,
  .event-match-grid,
  .check-grid,
  .admin-list-row,
  .landing-stats {
    grid-template-columns: 1fr;
  }

  .prediction-row,
  .match-admin,
  .admin-match-card,
  .admin-match-edit,
  .result-admin-row {
    grid-template-columns: 1fr 1fr;
  }

  .prediction-row .match-name,
  .match-admin .match-name,
  .result-admin-row .match-name {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    max-width: 100%;
  }

  .landing-sport-row,
  .landing-event-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .landing-sport-image,
  .landing-event-image {
    width: 84px;
  }

  .language-switch {
    margin-left: 0;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions > *,
  .tabs > *,
  .btn {
    flex: 1 1 auto;
  }

  .shell-main {
    padding: 14px;
  }

  .section-title {
    display: grid;
  }

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