/* ============================================================
   Blue Moon 閳?a personal Manchester City hub
   Design language: quiet surfaces, big numbers, City blue.
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-deep: #eceff3;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --surface-3: #e8ecf1;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --chrome-bg: rgba(247, 248, 250, 0.92);
  --tabbar-bg: #f8f9fb;
  --text: #0a0d13;
  --text-2: #5f6672;
  --text-3: #8b929e;
  --text-inverse: #f8fbff;
  --border: rgba(20, 32, 50, 0.085);
  --border-strong: rgba(20, 32, 50, 0.15);
  --blue: #6caddd;
  --blue-strong: #3f93cc;
  --blue-soft: #e6f3fb;
  --blue-deep: #102a4f;
  --navy: #081a33;
  --gold: #c4a15a;
  --win: #187a50;
  --win-soft: #e8f5ee;
  --loss: #b7463f;
  --loss-soft: #fbeceb;
  --draw: #7c8490;
  --shadow-card: 0 1px 2px rgba(13, 28, 48, 0.025), 0 16px 44px rgba(13, 28, 48, 0.045);
  --shadow-float: 0 32px 100px rgba(5, 15, 32, 0.3);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --sidebar-w: 258px;
  --rail-w: 320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a10;
  --bg-deep: #0b1018;
  --surface: #10151e;
  --surface-2: #171d28;
  --surface-3: #202735;
  --surface-glass: rgba(12, 17, 25, 0.74);
  --chrome-bg: rgba(8, 12, 18, 0.93);
  --tabbar-bg: #070a10;
  --text: #f3f6fa;
  --text-2: #a6afbc;
  --text-3: #727c8b;
  --text-inverse: #08111f;
  --border: rgba(218, 231, 248, 0.09);
  --border-strong: rgba(218, 231, 248, 0.16);
  --blue: #76b9e6;
  --blue-strong: #8bc9f0;
  --blue-soft: #10283c;
  --blue-deep: #c9e7fb;
  --gold: #d6b46c;
  --win: #57c18d;
  --win-soft: #102a20;
  --loss: #ef8178;
  --loss-soft: #301715;
  --draw: #98a2b1;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-float: 0 36px 120px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */

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

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.48;
  letter-spacing: -0.012em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: color-mix(in srgb, var(--blue) 42%, transparent);
}

:focus-visible {
  outline: 2px solid var(--blue-strong);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
  border-radius: 10px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 200;
  border-radius: 0 0 12px 12px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  font-weight: 700;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 0;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 300;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 16px;
  text-align: center;
}

/* ------------------------------------------------------------
   Atmosphere
   ------------------------------------------------------------ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.68;
}

.ambient__orb--one {
  top: -26vw;
  left: -14vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(108, 173, 221, 0.24), rgba(108, 173, 221, 0) 68%);
}

.ambient__orb--two {
  top: -22vw;
  right: -26vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle, rgba(196, 161, 90, 0.1), rgba(196, 161, 90, 0) 68%);
}

[data-theme="dark"] .ambient__orb--one {
  background: radial-gradient(circle, rgba(80, 151, 203, 0.17), rgba(80, 151, 203, 0) 68%);
}

[data-theme="dark"] .ambient__orb--two {
  background: radial-gradient(circle, rgba(196, 161, 90, 0.06), rgba(196, 161, 90, 0) 68%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(43, 72, 108, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 72, 108, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 64%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), transparent 64%);
}

[data-theme="dark"] .ambient__grid {
  background-image: linear-gradient(rgba(179, 211, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 211, 239, 0.035) 1px, transparent 1px);
}

/* ------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------ */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  padding: 30px 18px 22px;
  border-right: 1px solid var(--border);
  background: var(--surface-glass);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px;
  border-radius: 14px;
}

.brand__crest {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: none;
  filter: drop-shadow(0 6px 12px rgba(13, 42, 75, 0.14));
}

.brand__crest img {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.brand__text strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.2;
}

.brand__text small {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 30px;
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 13px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.side-nav a .icon {
  width: 19px;
  height: 19px;
  opacity: 0.92;
}

.side-nav a:hover {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--text);
}

.side-nav a.is-active {
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--text);
}

.side-nav a.is-active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 0 4px 4px 0;
  background: var(--blue-strong);
  content: "";
}

.side-nav a.is-active .icon {
  color: var(--blue-strong);
}

.side-next {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 21px;
  background: radial-gradient(120% 130% at 100% 0%, rgba(108, 173, 221, 0.3), transparent 52%),
    linear-gradient(150deg, #0e2849 0%, #07182f 100%);
  color: #fff;
  box-shadow: 0 18px 46px rgba(8, 24, 49, 0.22);
}

.side-next::after {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.025), 0 0 0 42px rgba(255, 255, 255, 0.02);
  content: "";
  pointer-events: none;
}

.side-next__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.micro-label {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.115em;
  text-transform: uppercase;
}

.side-next .micro-label {
  color: rgba(255, 255, 255, 0.56);
}

.side-next__match {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.side-next__badge {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.24));
}

.side-next__match div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-next__match strong {
  font-size: 13.5px;
  font-weight: 700;
}

.side-next__match span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.sidebar__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.sidebar__tools {
  display: flex;
  gap: 7px;
}

.sidebar__note {
  padding: 0 4px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   Mobile chrome
   ------------------------------------------------------------ */

.mobile-header {
  display: none;
}

.mobile-live {
  display: none;
}

.tabbar {
  display: none;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.app-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
  align-items: start;
  gap: 28px;
  width: calc(100% - var(--sidebar-w));
  max-width: calc(1320px + var(--sidebar-w));
  margin-left: var(--sidebar-w);
  padding: 34px 36px 84px;
}

.view {
  min-width: 0;
  outline: none;
}

.rail {
  position: sticky;
  top: 34px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

/* ------------------------------------------------------------
   Type & common atoms
   ------------------------------------------------------------ */

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.145em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kicker::before {
  width: 16px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.6;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-top: 2px;
}

.page-head__main {
  min-width: 0;
}

.page-head h1 {
  margin-top: 8px;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 780;
  letter-spacing: -0.057em;
  line-height: 0.98;
}

.page-lead {
  max-width: 530px;
  margin-top: 11px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

.page-head__side {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.sync-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.sync-note strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-weight: 650;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--text-3);
}

.live-dot.is-live {
  background: #2eaa76;
  box-shadow: 0 0 0 3px rgba(46, 170, 118, 0.14);
  animation: livePulse 2.2s ease-out infinite;
}

.live-dot.is-loading {
  background: var(--blue-strong);
  animation: livePulse 1.1s ease-out infinite;
}

.live-dot.is-stale {
  background: var(--gold);
}

.live-dot.is-offline {
  background: var(--text-3);
}

.refresh-button {
  position: relative;
}

.refresh-button.is-spinning .icon {
  animation: spin 0.9s linear infinite;
}

.refresh-button:disabled {
  opacity: 0.65;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 170, 118, 0.24);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(46, 170, 118, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 170, 118, 0);
  }
}

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card--pad {
  padding: 22px 24px;
}

.section {
  margin-top: 26px;
}

#club-news {
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--blue-strong);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.text-link .icon {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button .icon {
  width: 16px;
  height: 16px;
}

.button--compact {
  min-height: 36px;
  padding: 0 13px;
  font-size: 12px;
}

.button--primary {
  background: #fff;
  color: #0a1a33;
}

.button--primary:hover {
  background: #eaf5fc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.button--tint {
  background: color-mix(in srgb, var(--blue) 17%, var(--surface));
  color: var(--blue-deep);
}

[data-theme="dark"] .button--tint {
  color: var(--text);
}

.button--tint:hover {
  background: color-mix(in srgb, var(--blue) 25%, var(--surface));
}

.button--ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.button--ghost:hover {
  background: var(--surface-2);
}

.side-next .button--tint {
  width: 100%;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.side-next .button--tint:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-button {
  display: inline-grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
    transform 180ms var(--ease);
}

.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button--soft {
  width: 36px;
  height: 36px;
  border-color: transparent;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.theme-icon--dark {
  display: none;
}

[data-theme="dark"] .theme-icon--light {
  display: none;
}

[data-theme="dark"] .theme-icon--dark {
  display: block;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--blue {
  background: color-mix(in srgb, var(--blue) 22%, transparent);
  color: var(--blue-deep);
}

[data-theme="dark"] .tag--blue {
  color: #d8edfc;
}

.side-next .tag--blue {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tag--win {
  background: var(--win-soft);
  color: var(--win);
}

.tag--loss {
  background: var(--loss-soft);
  color: var(--loss);
}

.tag--gold {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: color-mix(in srgb, var(--gold) 75%, var(--text));
}

.tag--live {
  background: rgba(255, 59, 48, 0.13);
  color: #c7352e;
}

[data-theme="dark"] .tag--live {
  background: rgba(255, 91, 80, 0.15);
  color: #ff9d96;
}

.comp-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 680;
  letter-spacing: 0.03em;
}

.comp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--comp-color, var(--blue));
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  padding: 4px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  scrollbar-width: none;
}

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

.segmented button {
  flex: none;
  min-height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 640;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.segmented button[aria-pressed="true"],
.segmented button.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(18, 31, 51, 0.08);
}

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

/* ------------------------------------------------------------
   Hero / next match
   ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 366px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px 30px 24px;
  border-radius: var(--radius-xl);
  background: #07192f;
  box-shadow: 0 30px 84px rgba(7, 22, 46, 0.26);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  filter: saturate(0.9) contrast(1.03) brightness(1.18);
  transform: scale(1.01);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(100deg, rgba(3, 12, 27, 0.97) 0%, rgba(4, 17, 37, 0.87) 43%, rgba(4, 17, 37, 0.26) 100%),
    linear-gradient(0deg, rgba(3, 11, 24, 0.88) 0%, rgba(3, 11, 24, 0.08) 60%),
    radial-gradient(68% 100% at 94% 0%, rgba(108, 173, 221, 0.46), transparent 68%);
  content: "";
}

.hero::after {
  position: absolute;
  top: -120px;
  right: -70px;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.035), 0 0 0 94px rgba(255, 255, 255, 0.023);
  content: "";
  pointer-events: none;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  width: 17px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
}

.hero__round {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.hero__round--live {
  border-color: rgba(255, 116, 106, 0.32);
  background: rgba(255, 59, 48, 0.16);
  color: #ffc0bb;
  letter-spacing: 0.08em;
}

.hero__matchup {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 22px;
  margin: 20px 0 18px;
}

.hero-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

.hero-team__crest {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.34));
}

.hero-team__crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-team h2 {
  overflow: hidden;
  max-width: 100%;
  color: #fff;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-team p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero-center {
  display: flex;
  min-width: 152px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-center__time {
  color: #fff;
  font-size: clamp(44px, 4.7vw, 58px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.24);
}

.hero-center__date {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
}

.hero-center__score {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-center__score b {
  color: #fff;
  font-weight: 760;
}

.hero-center__score em {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.55em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.countdown--live {
  color: #ffc2bd;
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-top: 11px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(4, 16, 34, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(10px);
}

.countdown .icon {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10.5px;
  line-height: 1.5;
}

.hero-venue span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-venue .icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.hero__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
}

.hero__actions .icon-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero__actions .icon-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero__watermark {
  position: absolute;
  top: 50%;
  right: -9%;
  z-index: -1;
  width: 46%;
  max-width: 370px;
  opacity: 0.045;
  pointer-events: none;
  transform: translateY(-50%) rotate(-8deg);
}

/* ------------------------------------------------------------
   Home
   ------------------------------------------------------------ */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(245px, 0.82fr);
  gap: 17px;
  margin-top: 18px;
}

.home-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 17px;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 18px;
}

.result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.result-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-card__status {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

.scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 18px 0 14px;
}

.score-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.score-team img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(20, 42, 69, 0.1));
}

.score-team span {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-team.is-winner span {
  color: var(--text);
  font-weight: 720;
}

.scoreline__score {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scoreline__score em {
  color: var(--text-3);
  font-style: normal;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.75;
}

.scorers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 13px;
  min-height: 18px;
  padding-bottom: 14px;
  color: var(--text-2);
  font-size: 10.5px;
}

.scorer {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.scorer b {
  color: var(--text);
  font-weight: 650;
}

.scorer small {
  color: var(--text-3);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.scorer-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 4px;
}

.stat-row {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 43px;
  align-items: center;
  gap: 9px;
}

.stat-row__num {
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.stat-row__num:last-child {
  text-align: right;
}

.stat-row__label {
  color: var(--text-3);
  font-size: 9.5px;
  text-align: center;
  white-space: nowrap;
}

.stat-row__label b {
  display: block;
  margin-bottom: 5px;
  color: var(--text-3);
  font-weight: 560;
}

.stat-track {
  display: flex;
  height: 5px;
  gap: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.stat-track span {
  height: 100%;
  border-radius: 999px;
  background: var(--blue-strong);
}

.stat-track span:last-child {
  background: color-mix(in srgb, var(--text-3) 32%, var(--surface-2));
}

.result-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.result-card__foot span {
  color: var(--text-3);
  font-size: 10px;
}

.result-card__foot .text-link {
  font-size: 11.5px;
}

/* season / form card */

.form-card {
  padding: 20px 21px 19px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--blue) 12%, var(--surface)) 0%, var(--surface) 51%);
}

.form-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.position-number {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  color: var(--blue-deep);
  font-size: 70px;
  font-weight: 780;
  letter-spacing: -0.09em;
  line-height: 0.78;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .position-number {
  color: var(--blue);
}

.position-number sup {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0.55;
}

.position-copy {
  padding-top: 3px;
  text-align: right;
}

.position-copy strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
}

.position-copy span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 9.5px;
}

.form-card .mini-label {
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-pips {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
}

.pip {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  font-size: 9.5px;
  font-weight: 780;
}

.pip--w {
  background: var(--win-soft);
  color: var(--win);
}

.pip--d {
  background: var(--surface-2);
  color: var(--draw);
}

.pip--l {
  background: var(--loss-soft);
  color: var(--loss);
}

.form-pips small {
  margin-left: 3px;
  color: var(--text-3);
  font-size: 9.5px;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.stat-tile {
  min-width: 0;
}

.stat-tile b {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-tile span {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 9px;
  white-space: nowrap;
}

.goal-card {
  padding: 19px 21px 17px;
}

.goal-card .section-head {
  margin-bottom: 15px;
}

.goal-card .section-head h2 {
  font-size: 14.5px;
  font-weight: 700;
}

.goal-card .section-head p {
  font-size: 10px;
}

.goal-stack {
  display: flex;
  height: 10px;
  gap: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.goal-stack span {
  height: 100%;
  min-width: 3px;
  border-radius: 2px;
}

.goal-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.goal-legend li {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 10px;
}

.goal-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.goal-legend b {
  color: var(--text);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* player spotlights */

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

.spotlight {
  position: relative;
  display: flex;
  min-height: 154px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), border-color 180ms ease;
}

.spotlight:hover {
  border-color: color-mix(in srgb, var(--blue) 42%, var(--border));
  transform: translateY(-2px);
}

.spotlight__art {
  position: absolute;
  top: -6px;
  right: 2px;
  color: var(--blue);
  font-size: 78px;
  font-weight: 800;
  letter-spacing: -0.11em;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}

.spotlight__art::after {
  position: absolute;
  right: 24px;
  bottom: -2px;
  width: 86px;
  height: 86px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.4;
}

.spotlight__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spotlight__pos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.spotlight__pos::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pos-color, var(--blue));
  content: "";
}

.fav-mark {
  color: var(--gold);
  font-size: 11px;
}

.fav-mark .icon {
  width: 13px;
  height: 13px;
}

.spotlight__name {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 25px;
}

.spotlight__name strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight__name span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 9.5px;
}

.spotlight__stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.spotlight__stats b {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spotlight__stats span {
  color: var(--text-3);
  font-size: 9px;
}

.spotlight__stats small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

/* news */

.news-lead {
  position: relative;
  display: block;
  width: 100%;
  min-height: 245px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.news-lead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  transition: transform 600ms var(--ease);
}

.news-lead:hover img {
  transform: scale(1.025);
}

.news-lead::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 25, 0.94) 0%, rgba(4, 12, 25, 0.42) 48%, rgba(4, 12, 25, 0.04) 100%);
  content: "";
}

.news-lead__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 22px;
}

.news-lead__content .tag {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.news-lead__content h3 {
  max-width: 620px;
  margin-top: 10px;
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 740;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.news-lead__content p {
  max-width: 580px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11.5px;
  line-height: 1.55;
}

.news-lead__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
}

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

.news-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  text-align: left;
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row:hover .news-row__title {
  color: var(--blue-strong);
}

.news-row__thumb {
  width: 82px;
  height: 62px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}

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

.news-row__body {
  min-width: 0;
}

.news-row__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.news-row__meta span:first-child {
  color: var(--text-2);
}

.news-row__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 160ms ease;
}

.news-row__arrow {
  color: var(--text-3);
}

.news-row__arrow .icon {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------
   Rail
   ------------------------------------------------------------ */

.rail-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.rail-head h3 {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.rail-head .text-link {
  font-size: 10.5px;
}

.rail-sub {
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 600;
}

.mini-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 23px;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 6px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 10.5px;
}

.mini-row img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.mini-row__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.mini-row__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-row b {
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mini-row.is-city {
  background: color-mix(in srgb, var(--blue) 15%, transparent);
  color: var(--text);
  font-weight: 650;
}

.mini-row.is-city b {
  color: var(--blue-deep);
}

[data-theme="dark"] .mini-row.is-city b {
  color: var(--blue);
}

.rail-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.5;
}

.rail-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
}

.upnext-list {
  display: flex;
  flex-direction: column;
}

.upnext {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  text-align: left;
}

.upnext:last-child {
  border-bottom: 0;
}

.upnext img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.upnext__body {
  min-width: 0;
}

.upnext__body strong {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upnext__body span {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 9px;
}

.upnext__date {
  color: var(--text-2);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.upnext__date small {
  display: block;
  margin-top: 1px;
  color: var(--text-3);
  font-size: 8.5px;
}

.rail-personal {
  position: relative;
  overflow: hidden;
  padding: 19px;
  border-radius: 22px;
  background: linear-gradient(155deg, #12365d 0%, #071a32 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(7, 24, 48, 0.18);
}

.rail-personal::after {
  position: absolute;
  right: -45px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.035);
  content: "";
}

.rail-personal h3 {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.rail-personal p {
  position: relative;
  z-index: 1;
  max-width: 230px;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.55;
}

.rail-personal__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.rail-personal .button {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.rail-personal .button:hover {
  background: rgba(255, 255, 255, 0.21);
}

.rail-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.rail-stat:last-child {
  border-bottom: 0;
}

.rail-stat span {
  color: var(--text-3);
  font-size: 10px;
}

.rail-stat b {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 0 2px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
}

.rail-link:last-child {
  border-bottom: 0;
}

.rail-link .icon {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.rail-link .icon:last-child {
  margin-left: auto;
}

/* ------------------------------------------------------------
   Matches
   ------------------------------------------------------------ */

.matches-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.match-count {
  color: var(--text-3);
  font-size: 10.5px;
  white-space: nowrap;
}

.match-view-tabs {
  display: flex;
  gap: 20px;
  margin: 0 2px 22px;
  border-bottom: 1px solid var(--border);
}

.match-view-tabs button {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 1px 10px;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 650;
}

.match-view-tabs button span {
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-view-tabs button.is-active {
  color: var(--text);
}

.match-view-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-strong);
  content: "";
}

.match-view-tabs button:hover {
  color: var(--text);
}

.next-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 25px;
  background: radial-gradient(100% 160% at 100% 0%, rgba(108, 173, 221, 0.34), transparent 57%),
    linear-gradient(140deg, #0d2a4c, #07192f);
  color: #fff;
  box-shadow: 0 22px 54px rgba(8, 24, 48, 0.2);
}

.next-feature::after {
  position: absolute;
  top: -75px;
  right: -55px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.026);
  content: "";
}

.next-feature__main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.next-feature__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-feature__teams {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.next-feature__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.next-feature__team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
}

.next-feature__team strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-feature__vs {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 750;
}

.next-feature__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
}

.next-feature__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.next-feature__meta .icon {
  width: 12px;
  height: 12px;
}

.next-feature__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
}

.next-feature__date {
  text-align: right;
}

.next-feature__date strong {
  display: block;
  font-size: 21px;
  font-weight: 730;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.next-feature__date span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.next-feature__actions {
  display: flex;
  gap: 7px;
}

.next-feature .icon-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.next-feature .icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.month-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 27px 2px 9px;
}

.month-head h2 {
  font-size: 14px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.month-head span {
  color: var(--text-3);
  font-size: 9.5px;
}

.fixture-list {
  overflow: hidden;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.fixture {
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) 25px 61px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 78px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text);
  text-align: left;
  transition: background 160ms ease;
}

.fixture:last-child {
  border-bottom: 0;
}

.fixture:hover {
  background: color-mix(in srgb, var(--text) 2.2%, transparent);
}

.fixture__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  align-self: stretch;
  border-right: 1px solid var(--border);
  color: var(--text-3);
  text-align: center;
}

.fixture__date span {
  font-size: 8.5px;
  font-weight: 680;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fixture__date strong {
  color: var(--text);
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.fixture__date small {
  font-size: 8px;
}

.fixture__main {
  min-width: 0;
}

.fixture__comp {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.fixture__comp .tag {
  min-height: 17px;
  padding: 0 5px;
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.fixture__team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 23px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.2;
}

.fixture__team img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.fixture__team.is-city {
  color: var(--text);
  font-weight: 680;
}

.fixture__team .venue-flag {
  margin-left: 3px;
  color: var(--text-3);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fixture__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.fixture__score b {
  display: flex;
  height: 23px;
  align-items: center;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fixture__score b.is-dim {
  color: var(--text-3);
  font-weight: 560;
}

.fixture__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  color: var(--text-3);
}

.fixture__side time {
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.fixture__side small {
  font-size: 8.5px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.status-dot--w {
  background: var(--win-soft);
  color: var(--win);
}

.status-dot--l {
  background: var(--loss-soft);
  color: var(--loss);
}

.status-dot--d {
  background: var(--surface-2);
  color: var(--draw);
}

.status-dot--next {
  background: color-mix(in srgb, var(--blue) 17%, transparent);
  color: var(--blue-deep);
}

.status-dot--live {
  background: rgba(255, 59, 48, 0.13);
  color: #c7352e;
}

[data-theme="dark"] .status-dot--live {
  color: #ff9d96;
}

[data-theme="dark"] .status-dot--next {
  color: var(--blue);
}

.fixture__chev {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--text-3);
}

.fixture__chev .icon {
  width: 14px;
  height: 14px;
}

.fixture-empty {
  padding: 46px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-3);
  text-align: center;
  font-size: 12px;
}

.fixtures-footnote {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 4px 0;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.55;
}

.fixtures-footnote .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
}

/* ------------------------------------------------------------
   Table
   ------------------------------------------------------------ */

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}

.table-card__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.table-card__head h2 img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.table-card__head p {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 9.5px;
}

.table-card__head .tag {
  flex: none;
}

.standings {
  width: 100%;
  padding-bottom: 5px;
}

.standings__row {
  display: grid;
  grid-template-columns: 28px minmax(108px, 1fr) 27px 27px 27px 27px 30px 30px 34px 40px;
  align-items: center;
  min-height: 47px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.standings__row:last-child {
  border-bottom: 0;
}

.standings__row--head {
  min-height: 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standings__row--head span {
  text-align: center;
}

.standings__row--head span:nth-child(2) {
  text-align: left;
}

.standings__row:not(.standings__row--head) {
  position: relative;
  transition: background 150ms ease;
}

.standings__row:not(.standings__row--head):hover {
  background: color-mix(in srgb, var(--text) 2.2%, transparent);
}

.standings__pos {
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 650;
  text-align: center;
}

.standings__team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding-left: 5px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 590;
}

.standings__team img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

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

.standings__row:not(.standings__row--head) span:not(.standings__team):not(.standings__pos):not(.zone) {
  text-align: center;
}

.standings__pts {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 740;
}

.standings__row.is-city {
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.standings__row.is-city .standings__team {
  font-weight: 720;
}

.standings__row.is-city .standings__pts {
  color: var(--blue-deep);
}

[data-theme="dark"] .standings__row.is-city .standings__pts {
  color: var(--blue);
}

.zone {
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
}

.is-ucl .zone {
  background: var(--blue-strong);
}

.is-uel .zone {
  background: var(--gold);
}

.is-rel .zone {
  background: var(--loss);
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  padding: 13px 20px 17px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 8.5px;
}

.table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.table-legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.legend-ucl {
  background: var(--blue-strong);
}

.legend-uel {
  background: var(--gold);
}

.legend-rel {
  background: var(--loss);
}

.table-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  padding: 0 4px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.55;
}

.table-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  flex: none;
}

.table-insight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 10px;
  margin-top: 17px;
}

.insight-card {
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.insight-card span {
  display: block;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin-top: 7px;
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.04em;
}

.insight-card p {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.5;
}

.insight-card--accent {
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue) 17%, var(--surface)), var(--surface));
}

/* stats tab */

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

.stat-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.stat-card b {
  display: block;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  margin-top: 6px;
  color: var(--text-3);
  font-size: 9px;
}

.stat-card small {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 8.5px;
}

.stat-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 14px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

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

.panel__head h3 {
  font-size: 14px;
  font-weight: 710;
  letter-spacing: -0.025em;
}

.panel__head span {
  color: var(--text-3);
  font-size: 9px;
}

.split-venue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.split-item {
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-2);
}

.split-item > span {
  display: block;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.split-item strong {
  display: block;
  margin-top: 6px;
  font-size: 23px;
  font-weight: 740;
  letter-spacing: -0.05em;
  line-height: 1;
}

.split-item p {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}

.competition-records {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comp-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 2px;
  border-bottom: 1px solid var(--border);
}

.comp-record:last-child {
  border-bottom: 0;
}

.comp-record__name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 620;
}

.comp-record__name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.comp-record__value {
  text-align: right;
  color: var(--text-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.comp-record__value b {
  color: var(--text);
  font-size: 11px;
}

/* ------------------------------------------------------------
   Squad
   ------------------------------------------------------------ */

.coach-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.coach-card__photo {
  width: 94px;
  height: 94px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface-2);
}

.coach-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.coach-card__body {
  min-width: 0;
}

.coach-card__body .micro-label {
  margin-bottom: 4px;
}

.coach-card__body h2 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.coach-card__body p {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 10.5px;
  line-height: 1.5;
}

.coach-record {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.coach-record b {
  color: var(--blue-deep);
  font-size: 28px;
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .coach-record b {
  color: var(--blue);
}

.coach-record span {
  color: var(--text-3);
  font-size: 8.5px;
}

.captain-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.captain-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 9px;
}

.captain-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.squad-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 19px 0 13px;
}

.search-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: color-mix(in srgb, var(--blue) 60%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
}

.search-field .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.search-field input::placeholder {
  color: var(--text-3);
}

.sort-toggle {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.sort-toggle button {
  min-height: 33px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 650;
}

.sort-toggle button.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.pos-filter {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  overflow: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

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

.filter-chip {
  flex: none;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 640;
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-chip.is-active {
  border-color: transparent;
  background: var(--text);
  color: var(--bg);
}

.fav-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 11px 13px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 7%, var(--surface));
  scrollbar-width: none;
}

.fav-strip::-webkit-scrollbar {
  display: none;
}

.fav-strip > span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: color-mix(in srgb, var(--gold) 74%, var(--text));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fav-strip .icon {
  width: 12px;
  height: 12px;
}

.fav-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 9.5px;
}

.fav-chip b {
  color: var(--text);
  font-weight: 700;
}

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

.player-card {
  position: relative;
  display: flex;
  min-height: 212px;
  flex-direction: column;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 220ms var(--ease);
}

.player-card:hover {
  border-color: color-mix(in srgb, var(--pos-color) 50%, var(--border));
  transform: translateY(-2px);
}

.player-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pos-color) 14%, var(--surface));
  color: color-mix(in srgb, var(--pos-color) 64%, var(--text));
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.06em;
}

[data-theme="dark"] .pos-pill {
  color: color-mix(in srgb, var(--pos-color) 78%, #fff);
}

.player-fav {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--text-3);
}

.player-fav .icon {
  width: 13px;
  height: 13px;
}

.player-fav.is-fav {
  color: var(--gold);
}

.player-card__art {
  position: relative;
  z-index: 1;
  display: block;
  height: 82px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pos-color) 14%, transparent);
  border-radius: 13px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pos-color) 24%, transparent), transparent 64%),
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--pos-color) 5%, transparent) 11px 12px),
    color-mix(in srgb, var(--pos-color) 5%, var(--surface));
  pointer-events: none;
}

.player-card__art::before {
  position: absolute;
  top: -32px;
  right: -15px;
  width: 120px;
  height: 120px;
  border: 1px solid color-mix(in srgb, var(--pos-color) 24%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 19px color-mix(in srgb, var(--pos-color) 4%, transparent);
  content: "";
}

.player-card__art::after {
  position: absolute;
  top: 12px;
  left: 13px;
  color: color-mix(in srgb, var(--pos-color) 52%, var(--text-3));
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.2em;
  content: "MCFC";
  opacity: 0.75;
}

.player-card__num {
  position: absolute;
  right: 10px;
  bottom: -13px;
  color: color-mix(in srgb, var(--pos-color) 78%, var(--text));
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.player-card__crest {
  position: absolute;
  bottom: 9px;
  left: 12px;
  width: 23px;
  height: 23px;
  opacity: 0.18;
  filter: grayscale(1);
}

.player-card__identity {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 11px;
}

.player-card__identity h3 {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card__identity p {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 9px;
}

.player-card__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.player-card__stats b {
  display: block;
  font-size: 13.5px;
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.player-card__stats span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 7.5px;
}

.empty-state {
  padding: 48px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-3);
  text-align: center;
  font-size: 12px;
}

.squad-foot {
  margin-top: 18px;
  padding: 0 4px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.55;
}

/* ------------------------------------------------------------
   Club
   ------------------------------------------------------------ */

.club-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 315px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 26px 28px;
  border-radius: var(--radius-xl);
  background: #07192f;
  color: #fff;
  box-shadow: 0 28px 70px rgba(8, 24, 47, 0.22);
}

.club-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.club-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.club-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(3, 12, 27, 0.94), rgba(4, 18, 39, 0.68) 52%, rgba(4, 18, 39, 0.16)),
    linear-gradient(0deg, rgba(3, 12, 27, 0.88), transparent 58%);
  content: "";
}

.club-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.club-hero__body {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.club-hero__crest {
  width: 55px;
  height: 55px;
  margin-bottom: 14px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.3));
}

.club-hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 770;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.club-hero p {
  max-width: 390px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.6;
}

.club-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.club-hero__badges .tag {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

.club-hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.club-hero__foot span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.fact {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.fact span {
  display: block;
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.35;
}

.fact small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 8.5px;
}

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

.review-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
}

.review-card::after {
  position: absolute;
  top: -24px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 1px solid color-mix(in srgb, var(--gold) 18%, transparent);
  border-radius: 50%;
  content: "";
}

.review-card span {
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-card strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.045em;
}

.review-card p {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 9px;
}

.review-card[data-tone="gold"] strong {
  color: color-mix(in srgb, var(--gold) 77%, var(--text));
}

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

.honour {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.honour .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.honour b {
  display: block;
  margin-top: 10px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.honour span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 9px;
  line-height: 1.3;
}

.honour small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 7.5px;
}

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

.news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), border-color 180ms ease;
}

.news-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.news-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.news-card:hover .news-card__image img {
  transform: scale(1.025);
}

.news-card__body {
  padding: 13px 14px 15px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 8.5px;
}

.news-card__body h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.injury-list {
  display: flex;
  flex-direction: column;
}

.injury {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.injury:last-child {
  border-bottom: 0;
}

.injury__player {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 650;
}

.injury__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.injury[data-tone="warn"] .injury__dot {
  background: var(--gold);
}

.injury p {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.5;
}

.injury time {
  color: var(--text-3);
  font-size: 8.5px;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.external-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 620;
  transition: border-color 160ms ease, background 160ms ease;
}

.external-link:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.external-link .icon:first-child {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.external-link .icon:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--text-3);
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row__body {
  min-width: 0;
}

.setting-row__body strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.setting-row__body span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 9.5px;
  line-height: 1.45;
}

.setting-row .button {
  flex: none;
}

.club-footer {
  margin: 26px 4px 0;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.club-footer b {
  color: var(--text-2);
  font-weight: 650;
}

/* ------------------------------------------------------------
   Sheets & dialogs
   ------------------------------------------------------------ */

#sheet-root {
  position: relative;
  z-index: 120;
}

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 9, 18, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 220ms ease both;
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 27px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  animation: sheetIn 420ms var(--ease) both;
  overscroll-behavior: contain;
}

.sheet:focus {
  outline: none;
}

.sheet--wide {
  width: min(660px, 100%);
}

.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(6, 18, 34, 0.36);
  color: #fff;
  backdrop-filter: blur(10px);
}

.sheet__close:hover {
  background: rgba(6, 18, 34, 0.56);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.sheet__body {
  padding: 22px 23px 24px;
}

.match-sheet__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 23px 21px 20px;
  background: radial-gradient(100% 150% at 100% 0%, rgba(108, 173, 221, 0.35), transparent 60%),
    linear-gradient(145deg, #102f53 0%, #06172d 100%);
  color: #fff;
}

.match-sheet__hero::after {
  position: absolute;
  top: -85px;
  right: -55px;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.03);
  content: "";
}

.match-sheet__comp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-right: 44px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.match-sheet__score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.match-sheet__team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.match-sheet__team img {
  width: 53px;
  height: 53px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
}

.match-sheet__team strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-sheet__nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
}

.match-sheet__nums em {
  color: rgba(255, 255, 255, 0.38);
  font-size: 21px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}

.match-sheet__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.match-sheet__time b {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.match-sheet__time span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}

.match-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 13px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
}

.match-sheet__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.match-sheet__meta .icon {
  width: 12px;
  height: 12px;
}

.sheet-section {
  margin-top: 22px;
}

.sheet-section:first-child {
  margin-top: 0;
}

.sheet-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.sheet-section__head h2 {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.sheet-section__head span {
  color: var(--text-3);
  font-size: 8.5px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.timeline::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 35px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--text-2);
  font-size: 10.5px;
}

.timeline__minute {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 8.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline__item.is-city .timeline__minute {
  background: color-mix(in srgb, var(--blue) 17%, transparent);
  color: var(--blue-deep);
}

[data-theme="dark"] .timeline__item.is-city .timeline__minute {
  color: var(--blue);
}

.timeline__player {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-weight: 610;
}

.timeline__player .icon {
  width: 12px;
  height: 12px;
  color: var(--text-3);
}

.timeline__side {
  color: var(--text-3);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-stats {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sheet-stat {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 9px;
}

.sheet-stat__num {
  color: var(--text-2);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.sheet-stat__num:last-child {
  text-align: right;
}

.sheet-stat__label {
  color: var(--text-3);
  font-size: 9px;
  text-align: center;
}

.sheet-stat__label b {
  display: block;
  margin-bottom: 5px;
  font-weight: 550;
}

.sheet-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.sheet-actions .button {
  flex: 1;
}

.sheet-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.55;
}

.sheet-note .icon {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: none;
}

.player-sheet__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px 23px 22px;
  background: radial-gradient(110% 150% at 90% 0%, color-mix(in srgb, var(--pos-color) 55%, transparent), transparent 60%),
    linear-gradient(150deg, #112e4e 0%, #07172d 100%);
  color: #fff;
}

.player-sheet__hero::after {
  position: absolute;
  right: -28px;
  bottom: -58px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.07);
  font-size: 190px;
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 0.8;
  content: attr(data-no);
}

.player-sheet__pos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-sheet__pos::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pos-color);
  content: "";
}

.player-sheet__name {
  margin-top: 11px;
  font-size: 31px;
  font-weight: 770;
  letter-spacing: -0.055em;
  line-height: 1;
}

.player-sheet__latin {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.player-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.player-sheet__chips span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.67);
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.player-sheet__no {
  position: absolute;
  top: 27px;
  right: 51px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  font-size: 100px;
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 1;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.player-stat {
  padding: 13px;
  border-radius: 14px;
  background: var(--surface-2);
}

.player-stat b {
  display: block;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.player-stat span {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 8.5px;
}

.player-bio {
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.65;
}

.fav-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
}

.fav-button.is-fav {
  border-color: color-mix(in srgb, var(--gold) 40%, var(--border));
  background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  color: color-mix(in srgb, var(--gold) 78%, var(--text));
}

.news-sheet__image {
  position: relative;
  aspect-ratio: 1.9 / 1;
  max-height: 280px;
  overflow: hidden;
  background: var(--surface-2);
}

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

.news-sheet__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 24, 0.5), transparent 52%);
  content: "";
}

.news-sheet__body {
  padding: 23px;
}

.news-sheet__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 9px;
}

.news-sheet h2 {
  margin-top: 9px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.news-sheet__lead {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.65;
}

.news-sheet__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.7;
}

.news-sheet__copy p {
  margin: 0;
}

.news-sheet .button {
  width: 100%;
  margin-top: 20px;
}

/* settings sheet */

.settings-sheet {
  padding: 25px 23px;
}

.settings-sheet__head {
  padding-right: 45px;
}

.settings-sheet__head .kicker {
  margin-bottom: 8px;
}

.settings-sheet h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.settings-sheet > p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.6;
}

.settings-group {
  margin-top: 22px;
  padding-top: 2px;
}

.settings-group > h3 {
  margin-bottom: 3px;
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-list {
  display: flex;
  flex-direction: column;
}

.source-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 600;
}

.source-list a:last-child {
  border-bottom: 0;
}

.source-list .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.source-list .icon:last-child {
  margin-left: auto;
}

.source-list small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 8px;
}

/* search */

#search-root {
  position: relative;
  z-index: 140;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10vh 20px 20px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 9, 18, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 180ms ease both;
}

.search-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(620px, 100%);
  max-height: min(72vh, 650px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  animation: searchIn 320ms var(--ease) both;
}

.search-panel__head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.search-panel__head .icon {
  width: 19px;
  height: 19px;
  color: var(--text-3);
}

.search-panel__head input {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-panel__head input::placeholder {
  color: var(--text-3);
}

.search-panel__head kbd {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--text-3);
  font-family: inherit;
  font-size: 9px;
}

.search-results {
  min-height: 100px;
  overflow: auto;
  padding: 8px;
}

.search-group__label {
  padding: 9px 10px 5px;
  color: var(--text-3);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.search-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  padding: 6px 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}

.search-item:hover,
.search-item:focus-visible {
  background: var(--surface-2);
  outline: 0;
}

.search-item__icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
}

.search-item__icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.search-item__icon .icon {
  width: 16px;
  height: 16px;
}

.search-item__body {
  min-width: 0;
}

.search-item__body strong {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item__body span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--text-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--text-3);
  font-size: 8.5px;
  white-space: nowrap;
}

.search-item__meta .icon {
  width: 13px;
  height: 13px;
}

button:disabled {
  cursor: not-allowed;
}

.search-empty {
  padding: 42px 20px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

.search-hint {
  display: flex;
  gap: 12px;
  padding: 10px 15px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 8.5px;
}

.search-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-hint kbd {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 8px;
}

/* toast */

.toast-root {
  position: fixed;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 180;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 380px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(7, 18, 34, 0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 560;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  animation: toastIn 320ms var(--ease) both;
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: #83c7ef;
}

.toast.is-leaving {
  animation: toastOut 220ms ease both;
}

/* ------------------------------------------------------------
   Motion
   ------------------------------------------------------------ */

.view > * {
  animation: riseIn 520ms var(--ease) both;
}

.view > *:nth-child(2) {
  animation-delay: 40ms;
}

.view > *:nth-child(3) {
  animation-delay: 80ms;
}

.view > *:nth-child(4) {
  animation-delay: 110ms;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes searchIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1320px) {
  :root {
    --rail-w: 290px;
  }

  .app-frame {
    gap: 22px;
    padding: 28px 28px 76px;
  }

  .standings__row {
    grid-template-columns: 26px minmax(100px, 1fr) 25px 25px 25px 25px 28px 28px 32px 38px;
    padding: 0 13px;
  }
}

@media (max-width: 1230px) {
  .app-frame {
    grid-template-columns: minmax(0, 1fr);
    max-width: calc(940px + var(--sidebar-w));
  }

  .rail {
    display: none;
  }

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

@media (max-width: 1100px) {
  :root {
    --sidebar-w: 0px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: calc(8px + env(safe-area-inset-top)) 18px 8px;
    border-bottom: 1px solid var(--border);
    background: var(--chrome-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }

  .mobile-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
  }

  .mobile-brand img {
    width: 29px;
    height: 29px;
    flex: none;
  }

  .mobile-brand > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0;
  }

  .mobile-brand strong {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
  }

  .mobile-brand small {
    color: var(--text-3);
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
  }

  .mobile-header__tools {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .mobile-live {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    margin-right: 2px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-3);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-header .icon-button {
    width: 36px;
    height: 36px;
    border-color: transparent;
    background: color-mix(in srgb, var(--text) 4%, transparent);
  }

  .app-frame {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 20px 34px;
  }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--tabbar-bg);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
  }

  .tabbar a {
    position: relative;
    display: flex;
    min-height: 49px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    color: var(--text-3);
    font-size: 8.5px;
    font-weight: 620;
    letter-spacing: 0.01em;
  }

  .tabbar a .icon {
    width: 20px;
    height: 20px;
  }

  .tabbar a.is-active {
    color: var(--blue-strong);
  }

  .tabbar a.is-active::before {
    position: absolute;
    top: 0;
    width: 18px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: var(--blue-strong);
    content: "";
  }

  #club-news {
    scroll-margin-top: 78px;
  }

  .page-head {
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-head h1 {
    font-size: clamp(30px, 7vw, 38px);
  }

  .page-head__side .icon-button {
    width: 36px;
    height: 36px;
  }

  .sync-note {
    display: none;
  }

  .hero {
    min-height: 338px;
    padding: 22px 23px;
    border-radius: 26px;
  }

  .hero-team__crest {
    width: 66px;
    height: 66px;
  }

  .hero-center__time {
    font-size: 48px;
  }

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

  .home-stack {
    display: contents;
  }

  .form-card {
    order: 3;
  }

  .goal-card {
    order: 4;
  }

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

  .toast-root {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .sheet-layer {
    align-items: flex-end;
    padding: 0;
  }

  .sheet {
    width: 100%;
    max-height: 91dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 27px 27px 0 0;
    animation: sheetUp 420ms var(--ease) both;
  }

  .sheet__body {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .news-sheet__body {
    padding-bottom: calc(27px + env(safe-area-inset-bottom));
  }

  .settings-sheet {
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
  }

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

@media (max-width: 1100px) {
  .app-frame {
    padding: 18px 16px 30px;
  }

  .page-head {
    gap: 12px;
  }

  .page-lead {
    max-width: 420px;
    font-size: 12.5px;
  }

  .hero {
    min-height: 322px;
    padding: 19px 19px 18px;
  }

  .hero__matchup {
    gap: 12px;
    margin: 17px 0 15px;
  }

  .hero-team {
    gap: 7px;
  }

  .hero-team__crest {
    width: 56px;
    height: 56px;
  }

  .hero-team h2 {
    font-size: 15px;
  }

  .hero-team p {
    font-size: 8px;
  }

  .hero-center {
    min-width: 128px;
  }

  .hero-center__time {
    font-size: 42px;
  }

  .hero-center__date {
    margin-top: 7px;
    font-size: 10.5px;
  }

  .countdown {
    margin-top: 8px;
    font-size: 9px;
  }

  .hero__bottom {
    align-items: center;
    padding-top: 12px;
  }

  .hero-venue {
    max-width: 54%;
    gap: 4px 9px;
    font-size: 9px;
  }

  .hero__actions .button {
    min-height: 37px;
    padding: 0 13px;
    font-size: 11.5px;
  }

  .hero__actions .icon-button {
    width: 37px;
    height: 37px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .result-card {
    padding: 16px 16px 15px;
  }

  .scoreline {
    padding: 15px 0 12px;
  }

  .scoreline__score {
    font-size: 34px;
  }

  .score-team img {
    width: 40px;
    height: 40px;
  }

  .scorers {
    gap: 6px 10px;
    font-size: 9.5px;
  }

  .stat-row {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .stat-row__label {
    font-size: 8.5px;
  }

  .spotlight-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 56%);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .spotlight-grid::-webkit-scrollbar {
    display: none;
  }

  .spotlight {
    min-height: 142px;
    scroll-snap-align: start;
  }

  .news-lead {
    min-height: 215px;
  }

  .news-lead__content {
    padding: 17px;
  }

  .news-lead__content h3 {
    font-size: 20px;
  }

  .news-lead__content p {
    display: none;
  }

  .news-row {
    grid-template-columns: 68px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 10px 0;
  }

  .news-row__thumb {
    width: 68px;
    height: 54px;
  }

  .news-row__title {
    font-size: 11.5px;
  }

  .matches-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .match-count {
    padding-left: 2px;
  }

  .next-feature {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 18px;
  }

  .next-feature__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .next-feature__date {
    text-align: left;
  }

  .next-feature__date strong {
    font-size: 17px;
  }

  .fixture-list {
    padding: 0 11px;
    border-radius: 20px;
  }

  .fixture {
    grid-template-columns: 43px minmax(0, 1fr) 22px 51px;
    gap: 8px;
    min-height: 73px;
    padding: 11px 0;
  }

  .fixture__date strong {
    font-size: 19px;
  }

  .fixture__team {
    font-size: 11.5px;
  }

  .fixture__team img {
    width: 18px;
    height: 18px;
  }

  .fixture__side {
    gap: 3px;
  }

  .standings__row {
    grid-template-columns: 24px minmax(90px, 1fr) 26px 32px 35px;
    min-height: 45px;
    padding: 0 11px;
    font-size: 9.5px;
  }

  .standings__row .col-w,
  .standings__row .col-d,
  .standings__row .col-l,
  .standings__row .col-gf,
  .standings__row .col-ga {
    display: none;
  }

  .standings__row--head {
    min-height: 28px;
  }

  .standings__team {
    font-size: 10.5px;
  }

  .standings__pts {
    font-size: 11.5px;
  }

  .table-card__head {
    padding: 15px 14px 11px;
  }

  .table-card__head h2 {
    font-size: 14px;
  }

  .table-legend {
    padding: 11px 14px 14px;
  }

  .table-insight {
    grid-template-columns: 1fr 1fr;
  }

  .table-insight .insight-card:first-child {
    grid-column: 1 / -1;
  }

  .stat-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-panels {
    grid-template-columns: 1fr;
  }

  .coach-card {
    grid-template-columns: 73px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .coach-card__photo {
    width: 73px;
    height: 73px;
    border-radius: 15px;
  }

  .coach-card__body h2 {
    font-size: 19px;
  }

  .coach-record {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-top: 9px;
    border-top: 1px solid var(--border);
  }

  .coach-record b {
    font-size: 21px;
  }

  .squad-toolbar {
    flex-wrap: wrap;
  }

  .search-field {
    order: 1;
    flex: 1 1 100%;
  }

  .sort-toggle {
    order: 2;
  }

  .pos-filter {
    order: 3;
    flex: 1;
    margin-bottom: 0;
    padding-left: 1px;
  }

  .squad-toolbar + .pos-filter {
    margin-bottom: 13px;
  }

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

  .player-card {
    min-height: 204px;
  }

  .player-card__art {
    height: 74px;
  }

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

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

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

  .news-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .news-card__image {
    height: 100%;
    aspect-ratio: auto;
  }

  .news-card__body {
    padding: 12px 13px;
  }

  .club-hero {
    min-height: 285px;
    padding: 21px 20px;
    border-radius: 26px;
  }

  .club-hero h1 {
    font-size: 34px;
  }

  .club-hero__crest {
    width: 45px;
    height: 45px;
  }

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

  .review-grid .review-card:first-child {
    grid-column: 1 / -1;
  }

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

  .search-layer {
    padding: 0;
  }

  .search-panel {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .search-panel__head {
    padding-top: env(safe-area-inset-top);
    min-height: calc(60px + env(safe-area-inset-top));
  }

  .search-results {
    flex: 1;
    padding-bottom: 30px;
  }

  .search-hint {
    display: none;
  }

  .sheet-layer {
    padding: 0;
  }

  .match-sheet__score {
    margin-top: 15px;
  }

  .match-sheet__team img {
    width: 47px;
    height: 47px;
  }

  .match-sheet__nums {
    font-size: 31px;
  }
}

@media (max-width: 460px) {
  .page-head h1 {
    font-size: 31px;
  }

  .hero {
    min-height: 311px;
    padding: 17px 15px 16px;
    border-radius: 24px;
  }

  .hero__eyebrow {
    font-size: 8.5px;
  }

  .hero__matchup {
    gap: 8px;
  }

  .hero-team__crest {
    width: 49px;
    height: 49px;
  }

  .hero-team h2 {
    font-size: 13.5px;
  }

  .hero-center {
    min-width: 116px;
  }

  .hero-center__time {
    font-size: 38px;
  }

  .hero-center__date {
    font-size: 9.5px;
  }

  .countdown {
    padding: 0 7px;
    font-size: 8px;
  }

  .countdown .icon {
    display: none;
  }

  .hero__bottom {
    gap: 8px;
  }

  .hero-venue {
    max-width: 50%;
    font-size: 8px;
  }

  .hero-venue span:nth-child(2) {
    display: none;
  }

  .hero__actions .button {
    padding: 0 11px;
    font-size: 10.5px;
  }

  .hero__actions .icon-button {
    width: 34px;
    height: 34px;
  }

  .scoreline {
    gap: 5px;
  }

  .score-team img {
    width: 35px;
    height: 35px;
  }

  .score-team span {
    font-size: 10px;
  }

  .scoreline__score {
    gap: 5px;
    font-size: 30px;
  }

  .scoreline__score em {
    font-size: 18px;
  }

  .position-number {
    font-size: 57px;
  }

  .stat-tiles {
    gap: 3px;
  }

  .stat-tile b {
    font-size: 15px;
  }

  .stat-tile span {
    font-size: 8px;
  }

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

  .fixture__comp {
    font-size: 7.5px;
  }

  .fixture__team {
    gap: 6px;
    font-size: 10.5px;
  }

  .fixture__team img {
    width: 16px;
    height: 16px;
  }

  .fixture__team .venue-flag {
    display: none;
  }

  .fixture__side time {
    font-size: 9.5px;
  }

  .standings__row {
    grid-template-columns: 21px minmax(85px, 1fr) 23px 29px 33px;
    padding: 0 9px;
  }

  .standings__team {
    gap: 6px;
    font-size: 9.5px;
  }

  .standings__team img {
    width: 18px;
    height: 18px;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .table-insight {
    grid-template-columns: 1fr;
  }

  .table-insight .insight-card:first-child {
    grid-column: auto;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card b {
    font-size: 27px;
  }

  .player-grid {
    gap: 7px;
  }

  .player-card {
    min-height: 190px;
    padding: 11px;
    border-radius: 17px;
  }

  .player-card__num {
    font-size: 58px;
  }

  .player-card__art {
    height: 66px;
    margin-top: 7px;
  }

  .player-card__identity {
    padding-top: 8px;
  }

  .player-card__identity h3 {
    font-size: 13px;
  }

  .player-card__stats b {
    font-size: 12px;
  }

  .player-card__stats span {
    font-size: 7px;
  }

  .pos-pill {
    min-height: 18px;
    padding: 0 6px;
    font-size: 7px;
  }

  .facts-grid {
    gap: 7px;
  }

  .fact {
    padding: 12px;
  }

  .fact strong {
    font-size: 11.5px;
  }

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

  .review-grid .review-card:first-child {
    grid-column: auto;
  }

  .honours-grid {
    gap: 7px;
  }

  .honour {
    padding: 12px;
  }

  .honour b {
    font-size: 22px;
  }

  .news-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .news-card__body h3 {
    font-size: 11.5px;
  }

  .news-card__body p {
    display: none;
  }

  .player-sheet__name {
    font-size: 27px;
  }

  .sheet__body {
    padding: 19px 17px 22px;
  }

  .match-sheet__hero {
    padding: 20px 16px 18px;
  }

  .settings-sheet {
    padding: 22px 17px 28px;
  }

  .sheet-actions {
    flex-wrap: wrap;
  }

  .sheet-actions .button {
    flex: 1 1 auto;
  }
}

/* ------------------------------------------------------------
   Mobile app refinement
   Larger reading sizes, tighter rhythm, and a floating Android/iOS
   style tab dock instead of a website-style bottom strip.
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    overscroll-behavior-y: none;
  }

  button,
  a {
    touch-action: manipulation;
  }

  .mobile-header {
    min-height: 56px;
    padding: calc(6px + env(safe-area-inset-top)) 14px 6px;
    border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
  }

  .mobile-brand {
    gap: 8px;
  }

  .mobile-brand img {
    width: 30px;
    height: 30px;
  }

  .mobile-brand strong {
    font-size: 11.5px;
  }

  .mobile-brand small {
    font-size: 9px;
  }

  .mobile-live {
    min-height: 25px;
    padding: 0 8px;
    font-size: 8.5px;
  }

  .mobile-header .icon-button {
    width: 38px;
    height: 38px;
  }

  .tabbar {
    top: auto;
    right: 12px;
    bottom: calc(9px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 5px;
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    background: var(--tabbar-bg);
    box-shadow: 0 18px 44px rgba(7, 21, 42, 0.18), 0 3px 10px rgba(7, 21, 42, 0.08);
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
  }

  [data-theme="dark"] .tabbar {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.3);
  }

  .tabbar a {
    min-height: 56px;
    gap: 2px;
    padding: 3px 1px;
    border-radius: 20px;
    color: var(--text-3);
    font-size: 10px;
    font-weight: 650;
    transition: color 160ms ease, background 160ms ease, transform 150ms ease;
  }

  .tabbar a .icon {
    width: 21px;
    height: 21px;
    padding: 5px;
    box-sizing: content-box;
    border-radius: 12px;
    transition: background 180ms var(--ease), color 180ms ease, transform 180ms var(--ease),
      box-shadow 180ms ease;
  }

  .tabbar a.is-active {
    background: color-mix(in srgb, var(--blue) 12%, transparent);
    color: var(--text);
  }

  .tabbar a.is-active .icon {
    background: var(--blue-strong);
    color: #fff;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--blue-strong) 35%, transparent);
    transform: translateY(-1px);
  }

  .tabbar a.is-active::before {
    display: none;
  }

  .tabbar a:active {
    transform: scale(0.94);
  }

  .toast-root {
    bottom: calc(98px + env(safe-area-inset-bottom));
  }

  .fixture:active,
  .news-row:active,
  .news-card:active,
  .player-card:active,
  .spotlight:active,
  .upnext:active,
  .mini-row:active,
  .search-item:active,
  .external-link:active,
  .setting-row:active {
    background: var(--surface-2);
  }

  .button:active,
  .icon-button:active,
  .filter-chip:active,
  .segmented button:active,
  .sort-toggle button:active,
  .tabbar a:active {
    transform: scale(0.96);
  }
}

@media (max-width: 1100px) {
  body {
    font-size: 16px;
  }

  .app-frame {
    padding: 12px 14px 108px;
  }

  .page-head {
    gap: 8px;
    margin-bottom: 12px;
    padding-top: 0;
  }

  .page-head h1 {
    margin-top: 5px;
    font-size: clamp(30px, 8vw, 34px);
    letter-spacing: -0.055em;
  }

  .page-lead {
    max-width: 100%;
    margin-top: 7px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .kicker {
    gap: 6px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .page-head__side {
    gap: 6px;
  }

  .page-head__side .icon-button,
  .icon-button {
    width: 38px;
    height: 38px;
  }

  .section {
    margin-top: 20px;
  }

  .section-head {
    margin-bottom: 9px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .section-head p {
    margin-top: 2px;
    font-size: 12px;
  }

  .text-link {
    gap: 2px;
    font-size: 12.5px;
  }

  /* Hero */
  .hero {
    min-height: 282px;
    padding: 14px 15px 13px;
    border-radius: 24px;
  }

  .hero__top {
    gap: 7px;
  }

  .hero__eyebrow {
    gap: 6px;
    font-size: 9.5px;
    letter-spacing: 0.11em;
  }

  .hero__round {
    min-height: 23px;
    padding: 0 9px;
    font-size: 9px;
  }

  .hero__matchup {
    gap: 7px;
    margin: 12px 0 10px;
  }

  .hero-team {
    gap: 5px;
  }

  .hero-team__crest {
    width: 48px;
    height: 48px;
  }

  .hero-team h2 {
    font-size: 15px;
  }

  .hero-team p {
    font-size: 8.5px;
    letter-spacing: 0.075em;
  }

  .hero-center {
    min-width: 108px;
  }

  .hero-center__time {
    font-size: 42px;
  }

  .hero-center__date {
    margin-top: 6px;
    font-size: 10.5px;
  }

  .countdown {
    min-height: 24px;
    margin-top: 7px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .hero__bottom {
    gap: 8px;
    padding-top: 10px;
  }

  .hero-venue {
    max-width: 51%;
    gap: 3px 8px;
    font-size: 9.5px;
  }

  .hero-venue .icon {
    width: 12px;
    height: 12px;
  }

  .hero__actions {
    gap: 6px;
  }

  .hero__actions .button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  .hero__actions .icon-button {
    width: 40px;
    height: 40px;
  }

  /* Home cards */
  .home-grid {
    gap: 12px;
    margin-top: 13px;
  }

  .home-stack {
    gap: 12px;
  }

  .result-card {
    padding: 14px 14px 12px;
    border-radius: 22px;
  }

  .result-card__head {
    padding-bottom: 10px;
  }

  .comp-label {
    font-size: 11px;
  }

  .result-card__status {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .tag {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .scoreline {
    gap: 5px;
    padding: 12px 0 10px;
  }

  .score-team {
    gap: 5px;
  }

  .score-team img {
    width: 42px;
    height: 42px;
  }

  .score-team span {
    font-size: 12px;
  }

  .scoreline__score {
    gap: 6px;
    font-size: 36px;
  }

  .scoreline__score em {
    font-size: 20px;
  }

  .scorers {
    gap: 5px 9px;
    padding-bottom: 10px;
    font-size: 11px;
  }

  .scorer small {
    font-size: 10px;
  }

  .result-stats {
    gap: 8px;
  }

  .stat-row {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .stat-row__num {
    font-size: 11px;
  }

  .stat-row__label {
    font-size: 9.5px;
  }

  .result-card__foot {
    margin-top: 11px;
    padding-top: 10px;
  }

  .result-card__foot span {
    font-size: 10.5px;
  }

  .result-card__foot .text-link {
    font-size: 12.5px;
  }

  /* Form and goals */
  .form-card {
    padding: 16px 17px 15px;
  }

  .position-number {
    font-size: 62px;
  }

  .position-number sup {
    margin-top: 5px;
    font-size: 16px;
  }

  .position-copy strong {
    font-size: 12.5px;
  }

  .position-copy span {
    font-size: 10px;
  }

  .form-card .mini-label {
    font-size: 10px;
  }

  .form-pips {
    gap: 4px;
    margin-top: 14px;
  }

  .pip {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .form-pips small {
    font-size: 10px;
  }

  .stat-tiles {
    margin-top: 13px;
    padding-top: 12px;
  }

  .stat-tile b {
    font-size: 18px;
  }

  .stat-tile span {
    font-size: 9.5px;
  }

  .goal-card {
    padding: 16px 17px 15px;
  }

  .goal-card .section-head h2 {
    font-size: 16px;
  }

  .goal-card .section-head p {
    font-size: 11px;
  }

  .goal-legend li {
    font-size: 11.5px;
  }

  .goal-card .tag {
    font-size: 10px;
  }

  .spotlight {
    min-height: 142px;
    padding: 13px;
  }

  .spotlight__pos {
    font-size: 9px;
  }

  .spotlight__name {
    margin-top: 22px;
  }

  .spotlight__name strong {
    font-size: 16.5px;
  }

  .spotlight__name span {
    font-size: 10px;
  }

  .spotlight__stats {
    margin-top: 11px;
    padding-top: 9px;
  }

  .spotlight__stats b {
    font-size: 24px;
  }

  .spotlight__stats span,
  .spotlight__stats small {
    font-size: 9.5px;
  }

  /* News */
  .news-lead {
    min-height: 188px;
    border-radius: 22px;
  }

  .news-lead__content {
    padding: 15px;
  }

  .news-lead__content h3 {
    margin-top: 8px;
    font-size: 21px;
  }

  .news-lead__meta {
    margin-top: 9px;
    font-size: 10px;
  }

  .news-row {
    grid-template-columns: 78px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 10px 0;
  }

  .news-row__thumb {
    width: 78px;
    height: 62px;
    border-radius: 13px;
  }

  .news-row__meta {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .news-row__title {
    font-size: 13px;
    line-height: 1.38;
  }

  /* Matches */
  .matches-toolbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .segmented {
    padding: 3px;
  }

  .segmented button {
    min-height: 35px;
    padding: 0 13px;
    font-size: 12px;
  }

  .match-count {
    font-size: 10.5px;
  }

  .match-view-tabs {
    gap: 18px;
    margin-bottom: 17px;
  }

  .match-view-tabs button {
    gap: 5px;
    padding-bottom: 9px;
    font-size: 12px;
  }

  .match-view-tabs button span {
    font-size: 9px;
  }

  .next-feature {
    gap: 12px;
    padding: 15px;
    border-radius: 22px;
  }

  .next-feature__eyebrow {
    font-size: 9.5px;
  }

  .next-feature__teams {
    gap: 9px;
    margin-top: 9px;
  }

  .next-feature__team img {
    width: 35px;
    height: 35px;
  }

  .next-feature__team strong {
    font-size: 17px;
  }

  .next-feature__meta {
    margin-top: 9px;
    font-size: 10.5px;
  }

  .next-feature__date strong {
    font-size: 19px;
  }

  .next-feature__date span {
    font-size: 10.5px;
  }

  .next-feature__actions .button {
    min-height: 38px;
    font-size: 12px;
  }

  .month-head {
    margin: 21px 2px 8px;
  }

  .month-head h2 {
    font-size: 15px;
  }

  .month-head span {
    font-size: 10.5px;
  }

  .fixture-list {
    padding: 0 12px;
    border-radius: 21px;
  }

  .fixture {
    grid-template-columns: 44px minmax(0, 1fr) 22px 51px;
    gap: 8px;
    min-height: 82px;
    padding: 12px 0;
  }

  .fixture__date span {
    font-size: 9px;
  }

  .fixture__date strong {
    font-size: 20px;
  }

  .fixture__date small {
    font-size: 9px;
  }

  .fixture__comp {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .fixture__team {
    gap: 6px;
    min-height: 25px;
    font-size: 13px;
  }

  .fixture__team img {
    width: 21px;
    height: 21px;
  }

  .fixture__team .venue-flag {
    font-size: 8px;
  }

  .fixture__score b {
    height: 25px;
    font-size: 16px;
  }

  .fixture__side {
    gap: 3px;
  }

  .fixture__side time {
    font-size: 11px;
  }

  .fixture__side small {
    font-size: 9.5px;
  }

  .fixture__chev .icon {
    width: 13px;
    height: 13px;
  }

  .fixtures-footnote {
    margin-top: 11px;
    font-size: 10px;
  }

  /* Table */
  .table-toolbar {
    margin-bottom: 12px;
  }

  .table-toolbar .match-count {
    font-size: 10.5px;
  }

  .table-card {
    border-radius: 22px;
  }

  .table-card__head {
    padding: 14px 13px 11px;
  }

  .table-card__head h2 {
    font-size: 16px;
  }

  .table-card__head p {
    font-size: 10px;
  }

  .standings__row {
    grid-template-columns: 23px minmax(90px, 1fr) 27px 31px 36px;
    min-height: 52px;
    padding: 0 10px;
    font-size: 11px;
  }

  .standings__row--head {
    min-height: 30px;
    font-size: 9.5px;
  }

  .standings__team {
    gap: 7px;
    padding-left: 4px;
    font-size: 11.5px;
  }

  .standings__team img {
    width: 22px;
    height: 22px;
  }

  .standings__pos {
    font-size: 10.5px;
  }

  .standings__pts {
    font-size: 13px;
  }

  .table-legend {
    gap: 8px 13px;
    padding: 11px 13px 14px;
    font-size: 9.5px;
  }

  .table-insight {
    gap: 8px;
    margin-top: 13px;
  }

  .insight-card {
    padding: 13px 14px;
  }

  .insight-card span {
    font-size: 9.5px;
  }

  .insight-card strong {
    margin-top: 5px;
    font-size: 18px;
  }

  .insight-card p {
    font-size: 10.5px;
  }

  .table-note {
    margin-top: 10px;
    font-size: 10px;
  }

  /* Season stats */
  .stat-hero-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
    border-radius: 17px;
  }

  .stat-card b {
    font-size: 30px;
  }

  .stat-card span {
    margin-top: 5px;
    font-size: 10px;
  }

  .stat-card small {
    font-size: 9.5px;
  }

  .stat-panels {
    gap: 10px;
    margin-top: 10px;
  }

  .panel {
    padding: 16px;
    border-radius: 20px;
  }

  .panel__head {
    margin-bottom: 13px;
  }

  .panel__head h3 {
    font-size: 15.5px;
  }

  .panel__head span {
    font-size: 9.5px;
  }

  .split-item {
    padding: 11px;
  }

  .split-item > span {
    font-size: 9.5px;
  }

  .split-item strong {
    margin-top: 4px;
    font-size: 25px;
  }

  .split-item p {
    font-size: 9.5px;
  }

  .comp-record {
    min-height: 46px;
  }

  .comp-record__name {
    font-size: 12px;
  }

  .comp-record__value {
    font-size: 10.5px;
  }

  .comp-record__value b {
    font-size: 12px;
  }

  /* Squad */
  .coach-card {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
    border-radius: 21px;
  }

  .coach-card__photo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
  }

  .coach-card__body h2 {
    font-size: 21px;
  }

  .coach-card__body p {
    font-size: 11px;
  }

  .coach-card__body .micro-label {
    font-size: 9px;
  }

  .captain-row {
    gap: 5px;
    margin-top: 8px;
  }

  .captain-chip {
    min-height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .coach-record {
    padding-top: 8px;
  }

  .coach-record b {
    font-size: 24px;
  }

  .coach-record span {
    font-size: 9px;
  }

  .squad-toolbar {
    margin: 14px 0 10px;
    gap: 8px;
  }

  .search-field {
    height: 46px;
    padding: 0 13px;
  }

  .search-field .icon {
    width: 18px;
    height: 18px;
  }

  .search-field input {
    font-size: 14px;
  }

  .sort-toggle button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .pos-filter {
    gap: 5px;
    margin-bottom: 12px;
  }

  .filter-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
  }

  .fav-strip {
    gap: 7px;
    margin-bottom: 12px;
    padding: 9px 11px;
  }

  .fav-strip > span {
    font-size: 9.5px;
  }

  .fav-chip {
    min-height: 28px;
    font-size: 10.5px;
  }

  .player-grid {
    gap: 8px;
  }

  .player-card {
    min-height: 208px;
    padding: 12px;
    border-radius: 19px;
  }

  .player-card__art {
    height: 72px;
    margin-top: 7px;
  }

  .player-card__identity {
    padding-top: 8px;
  }

  .player-card__identity h3 {
    font-size: 15px;
  }

  .player-card__identity p {
    margin-top: 2px;
    font-size: 10px;
  }

  .player-card__stats {
    margin-top: 8px;
    padding-top: 8px;
  }

  .player-card__stats b {
    font-size: 14px;
  }

  .player-card__stats span {
    font-size: 9.5px;
  }

  .pos-pill {
    min-height: 21px;
    padding: 0 7px;
    font-size: 9px;
  }

  .squad-foot {
    margin-top: 13px;
    font-size: 10px;
  }

  /* Club */
  .club-hero {
    min-height: 270px;
    padding: 17px;
    border-radius: 24px;
  }

  .club-hero__top .hero__eyebrow {
    font-size: 9px;
  }

  .club-hero h1 {
    font-size: 34px;
  }

  .club-hero p {
    margin-top: 7px;
    font-size: 12.5px;
  }

  .club-hero__crest {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
  }

  .club-hero__badges {
    margin-top: 11px;
  }

  .club-hero__badges .tag {
    font-size: 9.5px;
  }

  .club-hero__foot {
    margin-top: 14px;
    padding-top: 11px;
  }

  .club-hero__foot span {
    font-size: 9.5px;
  }

  .facts-grid {
    gap: 7px;
    margin-top: 10px;
  }

  .fact {
    padding: 11px 12px;
    border-radius: 15px;
  }

  .fact span {
    font-size: 9px;
  }

  .fact strong {
    margin-top: 4px;
    font-size: 13px;
  }

  .fact small {
    font-size: 9px;
  }

  .review-grid {
    gap: 7px;
  }

  .review-card {
    padding: 14px;
  }

  .review-card span {
    font-size: 9px;
  }

  .review-card strong {
    font-size: 21px;
  }

  .review-card p {
    font-size: 9.5px;
  }

  .news-grid {
    gap: 9px;
  }

  .news-card__body {
    padding: 12px 13px;
  }

  .news-card__meta {
    font-size: 9.5px;
  }

  .news-card__body h3 {
    font-size: 13px;
  }

  .news-card__body p {
    font-size: 10.5px;
  }

  .honours-grid {
    gap: 7px;
  }

  .honour {
    padding: 12px;
  }

  .honour b {
    font-size: 23px;
  }

  .honour span {
    font-size: 10px;
  }

  .honour small {
    font-size: 8.5px;
  }

  .injury {
    padding: 11px 0;
  }

  .injury__player {
    font-size: 12.5px;
  }

  .injury p {
    font-size: 10.5px;
  }

  .injury time {
    font-size: 9.5px;
  }

  .external-link {
    min-height: 52px;
    font-size: 11.5px;
  }

  .setting-row {
    min-height: 58px;
  }

  .setting-row__body strong {
    font-size: 13px;
  }

  .setting-row__body span {
    font-size: 10px;
  }

  /* Sheets and controls */
  .sheet {
    border-radius: 26px 26px 0 0;
  }

  .sheet__body {
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .match-sheet__hero {
    padding: 20px 16px 17px;
  }

  .match-sheet__comp {
    font-size: 9.5px;
  }

  .match-sheet__team strong {
    font-size: 12.5px;
  }

  .match-sheet__meta {
    font-size: 9.5px;
  }

  .sheet-section__head h2 {
    font-size: 15px;
  }

  .sheet-section__head span {
    font-size: 9.5px;
  }

  .timeline__item {
    min-height: 40px;
    font-size: 11.5px;
  }

  .timeline__minute {
    font-size: 9.5px;
  }

  .timeline__side {
    font-size: 8.5px;
  }

  .sheet-stat__num {
    font-size: 11px;
  }

  .sheet-stat__label {
    font-size: 9.5px;
  }

  .sheet-actions .button {
    min-height: 44px;
    font-size: 12.5px;
  }

  .sheet-note {
    font-size: 9.5px;
  }

  .player-sheet__name {
    font-size: 28px;
  }

  .player-bio {
    font-size: 12px;
  }

  .source-list a {
    min-height: 46px;
    font-size: 11px;
  }
}

@media (max-width: 1100px) {
  .page-head {
    margin-bottom: 9px;
  }

  .page-head__side > .tag {
    display: none;
  }

  .matches-toolbar .match-count,
  .table-toolbar .match-count {
    display: none;
  }

  .matches-toolbar {
    margin-bottom: 8px;
  }

  .match-view-tabs {
    margin-bottom: 10px;
  }

  .fixtures-section .month-head:first-child {
    margin-top: 12px;
  }

  .hero {
    min-height: 236px;
  }

  .view > * {
    animation-duration: 320ms;
  }

  /* Keep the coach card compact; four captain chips scroll in one line. */
  .coach-card {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 11px;
  }

  .coach-card__photo {
    width: 66px;
    height: 66px;
  }

  .coach-card__body h2 {
    font-size: 20px;
  }

  .coach-card__body p {
    max-width: 100%;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .coach-card .captain-row {
    flex-wrap: nowrap;
    margin-top: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .coach-card .captain-row::-webkit-scrollbar {
    display: none;
  }

  .coach-card .captain-chip {
    flex: none;
    min-height: 24px;
    font-size: 9.5px;
  }

  .coach-record {
    grid-column: auto;
    align-self: start;
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }

  .coach-record b {
    font-size: 20px;
  }

  .coach-record span {
    font-size: 8.5px;
  }

  /* Search and sort share one row on a phone. */
  .squad-toolbar {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 12px 0 9px;
  }

  .search-field {
    flex: 1 1 auto;
    order: 0;
    height: 44px;
    padding: 0 12px;
  }

  .search-field input {
    font-size: 13.5px;
  }

  .sort-toggle {
    flex: none;
    order: 0;
  }

  .sort-toggle button {
    min-height: 34px;
    padding: 0 10px;
  }

  .pos-filter {
    margin-bottom: 10px;
  }

  .fixtures-section {
    margin-top: 14px;
  }
}

@media (max-width: 1100px) {
  .tabbar {
    padding: 5px 4px;
    border-radius: 24px;
  }

  .tabbar a {
    min-height: 52px;
    font-size: 11px;
  }

  .tabbar a .icon {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 10px;
  }
}

@media (max-width: 390px) {
  .mobile-live {
    padding: 0 6px;
    font-size: 8px;
  }

  .mobile-header .icon-button {
    width: 35px;
    height: 35px;
  }

  .mobile-brand strong {
    font-size: 10.5px;
  }

  .mobile-brand small {
    font-size: 8.5px;
  }

  .hero {
    min-height: 232px;
  }

  .hero-team__crest {
    width: 44px;
    height: 44px;
  }

  .hero-team h2 {
    font-size: 14px;
  }

  .hero-center {
    min-width: 102px;
  }

  .hero-center__time {
    font-size: 40px;
  }

  .hero-venue {
    max-width: 47%;
    font-size: 9px;
  }

  .hero__actions .button {
    padding: 0 12px;
  }

  .news-lead__content h3 {
    font-size: 19px;
  }

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

  .fixture__team {
    font-size: 12px;
  }

  .player-card {
    min-height: 200px;
    padding: 11px;
  }

  .player-card__identity h3 {
    font-size: 14px;
  }

  .tabbar {
    right: 9px;
    left: 9px;
    border-radius: 24px;
  }

  .tabbar a {
    font-size: 10px;
  }
}

/* Foldables and small tablets: keep a phone-sized reading column instead of
   stretching cards across the inner display. */
@media (max-width: 1100px) {
  .app-frame {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 14px 108px;
  }

  .mobile-header {
    padding-left: max(14px, calc((100vw - 560px) / 2 + 14px));
    padding-right: max(14px, calc((100vw - 560px) / 2 + 14px));
  }

  .tabbar {
    right: auto;
    left: 50%;
    width: min(520px, calc(100% - 18px));
    transform: translateX(-50%);
  }
}

/* Unfolded foldables are almost square. Keep a narrower phone-like column
   instead of only capping at 560px. */
@media (min-width: 600px) and (max-width: 1100px) and (max-aspect-ratio: 1.35) {
  .app-frame {
    max-width: 520px;
  }

  .mobile-header {
    padding-left: max(14px, calc((100vw - 520px) / 2 + 14px));
    padding-right: max(14px, calc((100vw - 520px) / 2 + 14px));
  }

  .tabbar {
    width: min(490px, calc(100% - 18px));
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .hero {
    min-height: 270px;
  }

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

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

  .spotlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }
}

/* Phones: full-width app layout. The earlier narrow fixed columns made
   cards feel cramped on wide cover screens, so keep the original width. */
@media (max-width: 600px) {
  .app-frame {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .mobile-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tabbar {
    width: calc(100% - 18px);
    max-width: none;
  }

  .hero {
    min-height: 236px;
  }

  .hero__matchup {
    grid-template-columns: minmax(68px, 1fr) auto minmax(68px, 1fr);
    gap: 4px;
  }

  .hero-center {
    min-width: 126px;
  }

  .hero-center__date,
  .countdown {
    white-space: nowrap;
  }

  .hero-center__date {
    font-size: 10px;
  }

  .countdown {
    font-size: 9px;
  }
}

/* Wide but handheld: never spread the phone layout horizontally. Keep a
   narrow, tall column and stack cards vertically instead. */
@media (min-width: 601px) and (max-width: 1100px) {
  .app-frame {
    max-width: 400px;
    margin: 0 auto;
    padding: 12px 14px 108px;
  }

  .mobile-header {
    padding-left: max(14px, calc((100vw - 400px) / 2 + 14px));
    padding-right: max(14px, calc((100vw - 400px) / 2 + 14px));
  }

  .tabbar {
    right: auto;
    left: 50%;
    width: min(380px, calc(100% - 18px));
    transform: translateX(-50%);
  }

  .hero {
    min-height: 310px;
  }

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

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

  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }

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

  .news-card {
    display: flex;
    flex-direction: column;
  }

  .news-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Curated inline video feed */
.video-section {
  margin-top: 22px;
}

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #05080d;
  box-shadow: 0 12px 28px rgba(7, 20, 40, 0.14);
}

.video-player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* B站外链播放器会在顶部放一个“进入哔哩哔哩”的跳转提示。
   这里只遮住顶部条，保留播放器底部控制栏，避免误触离开 App。 */
.video-player__shield {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 46px;
  cursor: default;
}

.video-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
}

.video-caption__copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.video-caption__copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-caption__copy span {
  overflow: hidden;
  color: var(--text-3);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-caption__hint {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.video-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 1px 1px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.video-strip::-webkit-scrollbar {
  display: none;
}

.video-card {
  display: flex;
  flex: 0 0 148px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.video-card.is-active {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 14%, transparent);
}

.video-card:active {
  transform: scale(0.97);
}

.video-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0b223d, #163c61);
}

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

.video-card__source {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(4, 10, 18, 0.72);
  color: #fff;
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.video-card__duration {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(4, 10, 18, 0.8);
  color: #fff;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 10, 18, 0.48);
  transform: translate(-50%, -50%);
}

.video-card__play .icon {
  display: none;
}

.video-card__play::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
  content: '';
}

.video-card__body {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 7px 8px 8px;
}

.video-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card__body small {
  overflow: hidden;
  color: var(--text-3);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .video-card {
    flex-basis: 170px;
  }

  .video-caption__copy strong {
    font-size: 15px;
  }
}

.video-note {
  margin: 6px 1px 0;
  color: var(--text-3);
  font-size: 8.5px;
  line-height: 1.45;
}

/* In-app browser-style zoom control */
.setting-row--scale {
  align-items: center;
}

.scale-options {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.scale-option {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.scale-option.is-active {
  background: var(--blue-strong);
  color: #fff;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--blue-strong) 28%, transparent);
}

.scale-option:active {
  transform: scale(0.95);
}

@media (max-width: 1100px) {
  .setting-row--scale {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .scale-options {
    margin-left: auto;
  }
}

@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;
  }
}




