:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #a9c4db;
  --navy: #001426;
  --panel: #06243d;
  --panel-strong: #031a2f;
  --blue: #149ee9;
  --cyan: #37c9ff;
  --line: rgba(46, 197, 255, 0.62);
  --danger: #ff3b4f;
  --success: #20d58b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #000b15;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(25, 126, 190, 0.22), transparent 36rem),
    #000b15;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  font: inherit;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

a {
  color: inherit;
}

.home-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: start center;
}

.master-stage {
  position: relative;
  container-type: inline-size;
  width: min(100%, 1024px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  isolation: isolate;
  background: #001426;
  box-shadow: var(--shadow);
}

.master-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: transparent;
  cursor: pointer;
  text-decoration: none;
}

.hotspot:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -5px;
  box-shadow: 0 0 0 8px rgba(22, 173, 238, 0.8) inset;
}

.hotspot:active {
  background: rgba(49, 192, 255, 0.12);
}

.member-home-cta {
  position: absolute;
  z-index: 5;
  left: 5%;
  top: 63.28%;
  width: 17.3%;
  height: 2.8%;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.85cqw, 9px);
  padding: 0 clamp(4px, 0.65cqw, 7px);
  border: clamp(1px, 0.14cqw, 2px) solid rgba(23, 187, 247, 0.96);
  border-radius: clamp(3px, 0.82cqw, 9px);
  background: linear-gradient(180deg, rgba(1, 42, 72, 0.96), rgba(0, 19, 41, 0.97));
  color: #fff;
  font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(8px, 1.85vw, 19px);
  font-size: 1.85cqw;
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 9px rgba(0, 5, 18, 0.5), inset 0 1px rgba(255, 255, 255, 0.05);
}

.member-home-cta::before {
  content: "";
  flex: 0 0 auto;
  width: 2.2cqw;
  height: 1.55cqw;
  border: clamp(1px, 0.13cqw, 2px) solid #0eb8fa;
  border-radius: clamp(1px, 0.18cqw, 2px);
  background:
    radial-gradient(circle at 25% 44%, #0eb8fa 0 11%, transparent 12%),
    linear-gradient(#0eb8fa, #0eb8fa) 73% 32% / 32% 10% no-repeat,
    linear-gradient(#0eb8fa, #0eb8fa) 73% 64% / 32% 10% no-repeat;
}

.member-home-cta::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: max(44px, 100%);
  transform: translateY(-50%);
}

.member-home-cta:focus-visible,
.member-home-cta:hover {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.member-home-cta:active {
  background: linear-gradient(180deg, rgba(3, 57, 94, 0.98), rgba(0, 25, 51, 0.99));
}

.match-card {
  position: absolute;
  z-index: 4;
  left: 3.22%;
  top: 22.85%;
  width: 95.5%;
  height: 21.95%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 19%);
  gap: clamp(7px, 1.35vw, 17px);
  padding: clamp(10px, 2.3vw, 30px);
  overflow: hidden;
  isolation: isolate;
  border: clamp(1px, 0.14vw, 2px) solid #25c2ff;
  border-radius: clamp(10px, 2vw, 23px);
  background:
    linear-gradient(135deg, #00162c, #00345a 58%, #00182d);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.36),
    inset 0 0 40px rgba(20, 146, 213, 0.18);
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 10, 27, 0.6) 0%, rgba(0, 27, 53, 0.31) 54%, rgba(0, 13, 31, 0.43) 100%),
    linear-gradient(180deg, rgba(2, 84, 128, 0), rgba(0, 8, 20, 0.18));
}

.match-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 32px rgba(35, 186, 255, 0.18),
    inset 0 -22px 40px rgba(0, 5, 14, 0.36);
}

.stadium-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.23) contrast(1.06) brightness(1.08);
}

.stadium-credit {
  position: absolute;
  z-index: 3;
  right: clamp(6px, 1vw, 12px);
  bottom: clamp(2px, 0.35vw, 5px);
  max-width: 52%;
  overflow: hidden;
  color: rgba(225, 242, 252, 0.64);
  font-size: clamp(4px, 0.65vw, 8px);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.match-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(5px, 1vw, 12px);
  margin-bottom: clamp(3px, 0.7vw, 9px);
}

.match-topline .match-kicker {
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-chip {
  min-width: 0;
  max-width: 48%;
  overflow: hidden;
  padding: 0.38em 0.68em;
  border: 1px solid rgba(114, 220, 255, 0.78);
  border-radius: 999px;
  background: rgba(0, 22, 42, 0.76);
  color: #e8f8ff;
  font-size: clamp(7px, 1.05vw, 13px);
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(7px);
}

.match-kicker {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: clamp(3px, 0.7vw, 9px);
  color: var(--cyan);
  font-size: clamp(9px, 1.75vw, 22px);
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.live-kicker {
  color: #fff;
}

.live-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 59, 79, 0.7);
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 0.55em rgba(255, 59, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 79, 0); }
}

.match-teams {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(5px, 1vw, 13px);
  padding: clamp(4px, 0.65vw, 8px) clamp(5px, 0.9vw, 11px);
  border: 1px solid rgba(113, 218, 255, 0.38);
  border-radius: clamp(7px, 1vw, 12px);
  background: rgba(0, 16, 34, 0.43);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
}

.match-card.is-live .match-teams {
  border-color: rgba(255, 93, 107, 0.72);
  box-shadow: 0 7px 22px rgba(82, 0, 12, 0.3), inset 0 0 18px rgba(255, 47, 70, 0.08);
}

.team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 10px);
}

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

.team-name {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(17px, 4.15vw, 51px);
  line-height: 0.96;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.team-badge {
  flex: 0 0 auto;
  width: clamp(31px, 5.6vw, 68px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  padding: 0.08em;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), rgba(216, 238, 250, 0.94) 56%, rgba(82, 163, 205, 0.92));
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(11px, 2.4vw, 27px);
  font-weight: 900;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.42),
    0 0 0 3px rgba(25, 171, 235, 0.28),
    0 0 20px rgba(49, 194, 255, 0.22);
}

.team-badge img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.score-box {
  min-width: clamp(43px, 8vw, 94px);
  padding: 0.1em 0.28em;
  border: 1px solid rgba(53, 197, 255, 0.75);
  border-radius: 0.23em;
  background: rgba(2, 33, 59, 0.92);
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(15px, 3.7vw, 45px);
  line-height: 1;
  text-align: center;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(7px);
}

.match-card.is-live .score-box {
  border-color: rgba(255, 102, 116, 0.88);
  background: rgba(75, 8, 22, 0.9);
  box-shadow: 0 7px 20px rgba(61, 0, 10, 0.36), 0 0 16px rgba(255, 58, 79, 0.16);
}

.score-box.versus {
  min-width: auto;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font-size: clamp(12px, 2.45vw, 29px);
  font-style: italic;
}

.live-scorers,
.fixture-scorers {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: #fff;
}

.live-scorers {
  width: 100%;
  margin-top: clamp(3px, 0.55vw, 7px);
  padding: 0.3em 0.55em;
  border: 1px solid rgba(255, 98, 113, 0.5);
  border-radius: 999px;
  background: rgba(56, 4, 17, 0.66);
  font-size: clamp(7px, 1.05vw, 13px);
  line-height: 1.1;
  backdrop-filter: blur(5px);
}

.scorers-ball {
  flex: 0 0 auto;
}

.live-scorers-list {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45em;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.live-scorers-list::-webkit-scrollbar {
  display: none;
}

.live-scorer {
  flex: 0 0 auto;
  font-weight: 800;
}

.live-scorer.pending {
  color: #ffd5da;
  font-weight: 700;
}

.scorer-separator {
  color: #ff8e9a;
}

.match-details {
  width: 100%;
  display: flex;
  gap: clamp(6px, 1.5vw, 18px);
  margin-top: clamp(3px, 0.7vw, 9px);
  overflow: hidden;
  color: #d8e9f5;
  font-size: clamp(8px, 1.35vw, 16px);
  line-height: 1.2;
}

.match-details span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-cta {
  position: relative;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(3px, 0.75vw, 9px);
  padding: clamp(3px, 0.55vw, 7px) clamp(9px, 1.35vw, 17px);
  border: 1px solid #53d3ff;
  border-radius: clamp(5px, 0.8vw, 9px);
  background: linear-gradient(180deg, #1eaff4, #087ac0);
  color: #fff;
  font-size: clamp(8px, 1.18vw, 14px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 7px 20px rgba(0, 123, 190, 0.25);
}

.calendar-cta::after {
  content: "";
  position: absolute;
  inset: -5px;
}

.calendar-cta:focus-visible,
.calendar-cta:hover {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.last-result {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  min-width: 0;
  width: min(100%, 148px);
  margin-bottom: clamp(6px, 0.75vw, 9px);
  padding: clamp(4px, 0.7vw, 8px);
  border: 1px solid rgba(63, 199, 255, 0.56);
  border-radius: clamp(7px, 1.1vw, 13px);
  background:
    linear-gradient(145deg, rgba(0, 24, 50, 0.88), rgba(0, 9, 23, 0.77));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.last-label {
  color: var(--cyan);
  font-size: clamp(6px, 0.72vw, 9px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.last-score {
  margin: 0.22em 0 0.12em;
  overflow: hidden;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(10px, 1.45vw, 18px);
  line-height: 1.05;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  white-space: normal;
}

.last-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(6px, 0.7vw, 9px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(calc(100% - 32px), 560px);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(1, 25, 45, 0.97);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.calendar-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 13, 27, 0.91), rgba(0, 10, 20, 0.97)),
    url("/assets/home-master-approved.webp") center top / min(100vw, 1024px) auto no-repeat fixed,
    #000b15;
}

.calendar-shell {
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 0 14px max(48px, env(safe-area-inset-bottom));
}

.calendar-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: max(8px, env(safe-area-inset-top)) 0 8px;
  border-bottom: 1px solid rgba(43, 191, 255, 0.35);
  background: rgba(0, 14, 28, 0.94);
  backdrop-filter: blur(16px);
}

.back-link,
.refresh-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(6, 43, 72, 0.88);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.back-link:focus-visible,
.refresh-button:focus-visible,
.tab-button:focus-visible,
.standings-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.mini-logo {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background-image: url("/assets/home-master-approved.webp");
  background-repeat: no-repeat;
  background-size: 233px 350px;
  background-position: -4px -4px;
  box-shadow: 0 0 16px rgba(36, 174, 241, 0.2);
}

.calendar-title-wrap {
  min-width: 0;
  flex: 1;
}

.calendar-title-wrap p {
  margin: 0 0 2px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-title-wrap h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: clamp(20px, 5vw, 34px);
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.status-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(52, 193, 252, 0.42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(42, 178, 237, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(5, 49, 80, 0.96), rgba(1, 25, 45, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.status-card.live {
  border-color: rgba(255, 72, 90, 0.8);
}

.status-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-crests {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #bfeaff;
  font-size: 9px;
  font-weight: 950;
}

.status-logo,
.fixture-logo,
.standing-logo {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: rgba(238, 248, 253, 0.94);
  color: #06426b;
  font-weight: 950;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.24);
}

.status-logo {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.status-logo img,
.fixture-logo img,
.standing-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.status-card.live .status-label {
  color: #ff7f8b;
}

.status-value {
  margin-top: 5px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 4.6vw, 23px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-meta {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(42, 177, 236, 0.34);
  border-radius: 16px;
  background: rgba(1, 23, 41, 0.94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 5vw, 28px);
  text-transform: uppercase;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.tabs,
.standings-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -2px 14px;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab-button,
.standings-button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(64, 184, 234, 0.38);
  border-radius: 999px;
  background: #06243d;
  color: #c3d8e8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.tab-button.active,
.standings-button.active {
  border-color: #4fd3ff;
  background: linear-gradient(180deg, #179fde, #096ca7);
  color: #fff;
}

.match-group + .match-group {
  margin-top: 20px;
}

.match-group-title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fixture-list {
  display: grid;
  gap: 8px;
}

.fixture {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  overflow: hidden;
  isolation: isolate;
  padding: 10px;
  border: 1px solid rgba(62, 164, 207, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(7, 50, 82, 0.94), rgba(2, 27, 48, 0.94));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.14);
}

.fixture.has-stadium-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 27, 49, 0.82), rgba(2, 29, 50, 0.58) 55%, rgba(0, 17, 32, 0.72)),
    linear-gradient(180deg, transparent, rgba(0, 10, 22, 0.28));
}

.fixture-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.76;
  filter: saturate(1.08) contrast(1.08) brightness(0.92);
}

.fixture > :not(.fixture-backdrop) {
  position: relative;
  z-index: 2;
}

.fixture.live {
  border-color: rgba(255, 70, 88, 0.7);
  background: rgba(55, 18, 28, 0.64);
}

.fixture-date {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.fixture-date strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.fixture-body {
  min-width: 0;
}

.fixture-competition {
  overflow: hidden;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.fixture-teams {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-team {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fixture-team > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-logo {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.fixture-separator {
  flex: 0 0 auto;
  color: var(--cyan);
  font-weight: 950;
}

.fixture-venue {
  margin-top: 2px;
  overflow: hidden;
  color: #8eafc7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-scorers {
  margin-top: 4px;
  overflow: hidden;
  color: #ffd7dc;
  font-size: 9px;
}

.fixture-scorers .live-scorers-list {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-result {
  min-width: 58px;
  text-align: right;
}

.fixture-score {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  white-space: nowrap;
}

.fixture-state {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(38, 166, 225, 0.19);
  color: #9fddf8;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.fixture.live .fixture-state {
  background: rgba(255, 55, 76, 0.2);
  color: #ff9aa4;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid rgba(58, 166, 210, 0.24);
  border-radius: 12px;
}

.standings-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 12px;
}

.standings-table th,
.standings-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(72, 150, 184, 0.18);
  text-align: center;
}

.standings-table th {
  position: sticky;
  top: 0;
  background: #06243d;
  color: #8fcce8;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  text-align: left;
}

.standings-table tr.napoli {
  background: rgba(21, 159, 224, 0.22);
  color: #fff;
  font-weight: 900;
}

.standing-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.standing-logo {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.empty-state {
  padding: 28px 16px;
  border: 1px dashed rgba(61, 188, 239, 0.4);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.data-note {
  margin: 18px 2px 0;
  color: #789bb5;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.media-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 10px;
  margin: 7px auto 0;
  max-width: 900px;
  color: #668aa3;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.media-credits span {
  color: #88abc1;
  font-weight: 800;
}

.media-credits a {
  color: #75badb;
  text-underline-offset: 2px;
}

@media (min-width: 700px) {
  .sports-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-shell {
    padding-inline: 22px;
  }

  .section-panel {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .match-card {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 20%);
    gap: 5px;
    padding: 7px 8px;
  }

  .match-details .match-venue {
    display: none;
  }

  .match-details {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .match-card.is-live .match-details {
    display: none;
  }

  .last-result {
    width: 70px;
    margin-bottom: 7px;
    padding: 4px;
  }

  .last-label {
    font-size: 5.5px;
    letter-spacing: 0.05em;
  }

  .last-score {
    margin-bottom: 0;
    font-size: 10px;
  }

  .last-meta {
    display: none;
  }

  .fixture {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 7px;
  }
}

/*
 * La Home master nasce in formato 2:3. Sugli iPhone moderni il viewport e'
 * piu' alto e il rapporto fisso lasciava una fascia vuota sotto la barra di
 * navigazione. In verticale la stage segue quindi l'altezza realmente
 * visibile; immagine, overlay e hotspot continuano a condividere lo stesso
 * sistema percentuale e restano perfettamente allineati.
 */
@media (max-width: 699px) and (orientation: portrait) {
  body:has(.home-page) {
    overflow: hidden;
  }

  .home-page {
    min-height: 100vh;
    height: 100vh;
    min-height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }

  .master-stage {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .master-image {
    object-fit: fill;
  }
}

.qa-mobile #app {
  width: 390px;
  margin: 0 auto;
}

.qa-mobile .master-stage,
.qa-mobile .calendar-page {
  width: 390px;
}

.qa-mobile .match-card {
  grid-template-columns: minmax(0, 1fr) minmax(70px, 20%);
  gap: 5px;
  padding: 7px 8px;
}

.qa-mobile .match-details .match-venue {
  display: none;
}

.qa-mobile .match-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.qa-mobile .match-card.is-live .match-details {
  display: none;
}

.qa-mobile .match-kicker {
  font-size: 9px;
}

.qa-mobile .venue-chip {
  font-size: 7px;
}

.qa-mobile .match-teams {
  gap: 5px;
  padding: 4px 5px;
  border-radius: 7px;
}

.qa-mobile .team {
  gap: 4px;
}

.qa-mobile .team-name {
  font-size: 17px;
}

.qa-mobile .team-badge {
  width: 31px;
  font-size: 11px;
}

.qa-mobile .score-box {
  min-width: 43px;
  font-size: 15px;
}

.qa-mobile .score-box.versus {
  min-width: auto;
  font-size: 12px;
}

.qa-mobile .match-details {
  gap: 6px;
  margin-top: 3px;
  font-size: 8px;
}

.qa-mobile .live-scorers {
  margin-top: 3px;
  font-size: 7px;
}

.qa-mobile .calendar-cta {
  min-height: 34px;
  margin-top: 3px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 8px;
}

.qa-mobile .last-label {
  font-size: 5.5px;
  letter-spacing: 0.05em;
}

.qa-mobile .last-score {
  margin-bottom: 0;
  font-size: 10px;
}

.qa-mobile .last-meta {
  display: none;
}

.qa-mobile .last-result {
  width: 70px;
  margin-bottom: 7px;
  padding: 4px;
}

.qa-mobile .fixture {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 7px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
