:root {
  --green-900: #0d2818;
  --green-800: #1a4d2e;
  --green-700: #2b6b3a;
  --green-600: #3d8b45;
  --green-500: #52a85a;
  --green-200: #9fd4a0;
  --green-100: #d4edd5;
  --green-50: #edf8ed;
  --outfield-a: #3f9a48;
  --outfield-b: #358a3d;
  --outfield-c: #2d7a35;
  --outfield-d: #266b2e;
  --pitch-light: #4a9a52;
  --pitch-mid: #367a32;
  --pitch-dark: #1e4f1c;
  --wicket-tan: #c4a66a;
  --wicket-worn: #b89458;
  --wicket-dark: #9a7d45;
  --crease-white: rgba(255, 255, 255, 0.92);
  --crease-hero-image: url("../assets/cricket-crease-hero.jpg");
  --boundary-rope: #d4b87a;
  --ball-red: #a52f24;
  --ball-highlight: #d45645;
  --shadow-md: 0 4px 18px rgba(13, 40, 24, 0.22);
  --shadow-lg: 0 10px 28px rgba(13, 40, 24, 0.28);
  --cream: #fffdf7;
  --white: #ffffff;
  --gold: #c9954a;
  --gold-light: #f0d9b5;
  --red: #b42318;
  --text: #243328;
  --text-muted: #5c6d62;
  --border: rgba(255, 255, 255, 0.55);
  --card-border: rgba(26, 77, 46, 0.16);
  --shadow: 0 3px 14px rgba(13, 40, 24, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-height: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --touch: 52px;
  --grass-bg:
    radial-gradient(ellipse 130% 70% at 50% -8%, rgba(255, 255, 255, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(0, 0, 0, 0.18) 0%, transparent 70%),
    repeating-linear-gradient(
      180deg,
      var(--outfield-a) 0,
      var(--outfield-a) 32px,
      var(--outfield-b) 32px,
      var(--outfield-b) 64px,
      var(--outfield-c) 64px,
      var(--outfield-c) 96px,
      var(--outfield-d) 96px,
      var(--outfield-d) 128px
    ),
    linear-gradient(180deg, #4fa858 0%, #1f5422 100%);
  --pitch-lane:
    linear-gradient(
      90deg,
      transparent 0%,
      transparent 14%,
      rgba(196, 166, 106, 0.1) 14%,
      rgba(196, 166, 106, 0.22) 50%,
      rgba(196, 166, 106, 0.1) 86%,
      transparent 86%,
      transparent 100%
    );
  --card-bg: rgba(255, 253, 247, 0.48);
  --glass-blur: 24px;
  --glass-blur-soft: 18px;
  --glass-border-light: rgba(255, 255, 255, 0.84);
  --glass-border-mid: rgba(255, 255, 255, 0.52);
  --glass-shine: rgba(255, 255, 255, 0.58);
  --glass-surface:
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.68) 0%,
      rgba(255, 253, 247, 0.44) 48%,
      rgba(212, 237, 213, 0.3) 100%
    );
  --glass-shadow-light:
    0 12px 36px rgba(13, 40, 24, 0.14),
    0 3px 10px rgba(13, 40, 24, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22);
  --glass-shadow-dark:
    0 14px 34px rgba(13, 40, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --cricket-ball-icon: url("../assets/cricket-local-logo.jpg?v=live-47");
}

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

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--grass-bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body.is-loading,
body.auth-modal-open,
body.help-modal-open {
  overflow: hidden;
}

.app {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(148, 163, 184, 0.38);
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, transparent 6%, transparent 94%, rgba(0, 0, 0, 0.08) 100%),
    var(--pitch-lane);
}

.app > * {
  position: relative;
  z-index: 1;
}

/* Cricket ball icon utility */
.cricket-ball-icon,
.nav-icon--ball,
.empty-state-icon img,
.finder-club-card-icon img,
.finder-club-card-icon .cricket-stumps-icon,
.team-type-chip-icon img,
.live-bulletin-icon img,
.live-hero-pulse img {
  display: block;
  object-fit: contain;
}

.cricket-ball-icon--pulse,
.live-hero-pulse.active .live-hero-ball {
  filter: drop-shadow(0 0 4px rgba(212, 86, 69, 0.65));
  animation: ball-live-pulse 1.6s ease-in-out infinite;
}

.finder-team-card-type img {
  width: 14px;
  height: 14px;
}

.cricket-ball-icon,
.home-brand-logo,
.home-brand-showcase__logo,
.pv3-welcome-brand__logo {
  object-fit: contain;
}

.cricket-ball-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
}

.cricket-ball-icon--xs {
  width: 0.75rem;
  height: 0.75rem;
}

.cricket-ball-icon--sm {
  width: 1rem;
  height: 1rem;
}

.cricket-ball-icon--md {
  width: 1.5rem;
  height: 1.5rem;
}

.cricket-ball-icon--lg {
  width: 2.5rem;
  height: 2.5rem;
}

.cricket-stumps-icon {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(13, 40, 24, 0.18));
}

.cricket-stumps-icon--sm {
  width: 1.1rem;
  height: 1.1rem;
}

.cricket-stumps-icon--md {
  width: 1.35rem;
  height: 1.35rem;
}

.cricket-stumps-icon--lg {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-icon--ball {
  width: 1.45rem;
  height: 1.45rem;
  background: var(--cricket-ball-icon) center / contain no-repeat;
}

.nav-item[data-view="live"] .nav-icon--ball {
  filter: drop-shadow(0 0 4px rgba(212, 86, 69, 0.65));
  animation: ball-live-pulse 1.6s ease-in-out infinite;
}

.nav-icon--star {
  color: var(--gold);
  font-size: 1.45rem;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.nav-item[data-view="favourites"].active .nav-icon--star {
  text-shadow: 0 0 10px rgba(201, 149, 74, 0.75);
}

.nav-icon--club {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(13, 40, 24, 0.18));
}

.nav-item[data-view="club-home"].active .nav-icon--club {
  filter: drop-shadow(0 0 8px rgba(82, 168, 90, 0.55));
}

@keyframes ball-live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

/* Header */
.header {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(18, 58, 34, 0.72) 0%, rgba(12, 42, 24, 0.88) 100%),
    url("../assets/cricket-crease-hero.jpg") center 38% / cover no-repeat;
  backdrop-filter: blur(10px) saturate(1.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.12);
  color: white;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.header-back,
.header-refresh,
.header-help,
.header-account {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-back,
.header-refresh,
.header-help {
  width: var(--touch);
  height: var(--touch);
  border-radius: 50%;
  font-size: 1.25rem;
}

.header-help {
  font-weight: 800;
}

.header-account {
  min-height: var(--touch);
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 5.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-back {
  display: none;
}

.header-back.visible {
  display: flex;
}

.header-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-content.is-changeable {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.12s ease;
}

.header-content.is-changeable:active {
  background: rgba(255, 255, 255, 0.14);
}

.header-app-logo,
.header-club-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-app-logo {
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.header-club-logo {
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.header-app-logo[hidden],
.header-club-logo[hidden] {
  display: none;
}

.header-text {
  min-width: 0;
  flex: 1;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-title {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.app-beta-badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.header-subtitle {
  font-size: 0.85rem;
  opacity: 1;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Loading & status */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 104px;
  background: rgba(30, 79, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.loading-overlay[hidden] {
  display: none !important;
}

.loading-overlay-card {
  width: min(100%, 300px);
  padding: 32px 28px 28px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.loading-overlay-visual {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
}

.loading-overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-overlay-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(165, 47, 36, 0.18);
  border-top-color: var(--ball-highlight);
  border-right-color: var(--green-600);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loading-overlay-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-800);
}

.loading-overlay-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted, #5c6b63);
}

body.is-loading .main {
  pointer-events: none;
}

body.is-loading .bottom-nav {
  pointer-events: auto;
  z-index: 260;
}

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

@keyframes loading-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.88; }
}

.status-bar {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.status-bar.live {
  background: rgba(232, 245, 233, 0.94);
  color: var(--green-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.status-bar.error {
  background: #fdecea;
  color: var(--red);
}

/* Main — single scroll surface for native mobile feel */
.main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  padding: 16px;
  padding-bottom: calc(20px + var(--safe-bottom));
  touch-action: pan-y;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 118px,
      rgba(255, 255, 255, 0.07) 118px,
      rgba(255, 255, 255, 0.07) 120px
    ),
    var(--pitch-lane);
  background-attachment: local;
}

body.is-loading .main {
  overflow: hidden;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

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

/* Selectors */
.selectors-panel {
  background: var(--glass-surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.35);
  z-index: 50;
  overflow: visible;
}

.selectors-panel:not(.is-collapsed) {
  position: sticky;
  top: 0;
  z-index: 40;
}

body.club-first-mode .selectors-panel {
  position: static;
  top: auto;
}

.selectors-panel.has-club-selected #finder-club-phase,
.selectors-panel.has-club-selected #finder-hero {
  display: none !important;
}

.selectors-panel.is-collapsed {
  position: static;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.selectors-panel.is-fully-hidden {
  display: none !important;
  margin: 0;
  padding: 0;
}

body.picker-hidden .main > .view.active {
  padding-top: 0;
}

.selectors-compact {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 18px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.selectors-panel.is-collapsed .selectors-compact {
  display: flex;
}

.selectors-search {
  margin-bottom: 0;
}

.selectors-panel.is-collapsed .selectors-body {
  display: none;
}

.selectors-panel.is-collapsed .selectors-search {
  margin-bottom: 10px;
}

.selectors-panel.is-collapsed .club-team-picker {
  margin-bottom: 10px;
}

.club-team-picker.needs-selection {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  border: 2px solid var(--green-500);
}

.club-team-picker.needs-selection .select-label {
  color: var(--green-900);
}

body.club-first-mode .selectors-body,
body.club-first-mode .search-minimise {
  display: none !important;
}

body.club-first-mode .selectors-panel.is-collapsed {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.club-first-mode .selectors-panel.is-collapsed .finder-hero,
body.club-first-mode .selectors-panel.is-collapsed .finder-phase {
  display: none !important;
}

body.club-first-mode .selectors-panel.is-collapsed .selectors-compact {
  display: flex;
}

body.club-first-mode .selectors-panel:not(.is-collapsed) .selectors-compact {
  display: none !important;
}

body.club-first-mode .selectors-compact {
  width: 100%;
  margin-bottom: 12px;
}

#view-home:not(.has-club) .quick-stats,
#view-home:not(.has-club) .section-header,
#view-home:not(.has-club) #home-table-preview,
#view-home:not(.has-club) #home-fixtures-preview,
#view-home:not(.has-club) #home-results-preview {
  display: none;
}

#view-home:not(.has-club) .dashboard-hero {
  margin-top: 8px;
  text-align: center;
}

#view-home:not(.has-club) .dashboard-hero h2 {
  font-size: 1.65rem;
}

#view-home:not(.has-club) .dashboard-hero p {
  font-size: 1.05rem;
  color: rgba(255, 248, 239, 0.94);
}

.club-team-buttons:not(.team-picker-list) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.club-team-buttons--home {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: none;
  overflow: visible;
}

.club-team-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 58px;
  padding: 16px 16px 16px 20px;
  border: 2px solid var(--border);
  background: var(--white);
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.club-team-buttons--home .club-team-btn {
  min-height: 64px;
  padding: 20px 22px;
}

.club-team-btn-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.club-team-buttons--home .club-team-btn-name {
  font-size: 1.3rem;
}

.club-team-btn-meta {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.club-team-btn.is-active .club-team-btn-name {
  color: var(--green-900);
}

.club-team-section-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-900);
}

.club-team-empty {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted);
}

.picker-panel,
.team-finder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Team finder — unified club + team search */
.finder-hero {
  position: relative;
  text-align: center;
  padding: 18px 14px 20px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff8ef;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 239, 0.18) 0%,
      rgba(13, 40, 24, 0.12) 42%,
      rgba(13, 40, 24, 0.48) 100%
    ),
    linear-gradient(
      90deg,
      rgba(38, 107, 46, 0.94) 0%,
      rgba(38, 107, 46, 0.9) 9%,
      rgba(27, 67, 50, 0.55) 11%,
      rgba(27, 67, 50, 0.42) 50%,
      rgba(27, 67, 50, 0.55) 89%,
      rgba(38, 107, 46, 0.9) 91%,
      rgba(38, 107, 46, 0.94) 100%
    ),
    var(--crease-hero-image) center 58% / cover no-repeat;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.finder-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.06) 38%,
    rgba(13, 40, 24, 0.18) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.finder-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 0;
}

.finder-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff8ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.finder-sub {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 248, 239, 0.92);
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.finder-phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finder-search-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green-700);
}

.finder-search {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px 14px 44px;
  border: 1px solid var(--glass-border-light);
  border-radius: 14px;
  background:
    rgba(255, 255, 255, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%231b4332' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 14px center no-repeat;
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.finder-search:focus {
  border-color: rgba(82, 168, 90, 0.65);
  outline: none;
  box-shadow:
    0 0 0 4px rgba(212, 237, 213, 0.55),
    var(--glass-shadow-light);
  background-color: rgba(255, 255, 255, 0.78);
}

.finder-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.finder-empty {
  margin: 8px 0;
  padding: 20px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--green-50);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.finder-home-club {
  margin-top: 2px;
}

.finder-home-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(82, 168, 90, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(212, 237, 213, 0.72), rgba(255, 253, 247, 0.58));
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
}

.finder-home-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
}

.finder-home-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-900);
}

.finder-club-scroll {
  --finder-club-visible: 4;
  --finder-club-card-height: 4.75rem;
  --finder-club-gap: 0.5rem;
  max-height: calc(
    var(--finder-club-visible) * var(--finder-club-card-height) +
      (var(--finder-club-visible) - 1) * var(--finder-club-gap) + 0.5rem
  );
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid var(--glass-border-mid);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.28);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.2);
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--green-500) transparent;
}

.finder-club-scroll::-webkit-scrollbar {
  width: 6px;
}

.finder-club-scroll::-webkit-scrollbar-thumb {
  background: var(--green-400);
  border-radius: 999px;
}

.finder-club-list {
  display: flex;
  flex-direction: column;
  gap: var(--finder-club-gap, 0.5rem);
  padding: 2px;
}

.finder-club-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--glass-border-light);
  border-radius: 12px;
  background: var(--glass-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.3);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}

.finder-club-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--glass-shine) 0%, transparent 46%);
  pointer-events: none;
}

.finder-club-card > * {
  position: relative;
  z-index: 1;
}

.finder-club-card:hover,
.finder-club-card:focus-visible {
  border-color: rgba(82, 168, 90, 0.62);
  box-shadow:
    0 14px 32px rgba(13, 40, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
  outline: none;
}

.finder-club-card:active {
  transform: translateY(0);
}

.finder-club-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.92), rgba(240, 217, 181, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 2px 8px rgba(13, 40, 24, 0.1);
}

.finder-club-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.finder-club-card-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}

.finder-club-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212, 237, 213, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.finder-club-card-chevron {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
}

.finder-club-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 237, 213, 0.72), rgba(255, 253, 247, 0.68));
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.finder-club-bar-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}

.finder-club-bar-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.35;
}

.finder-club-bar-pick {
  display: none;
  margin-top: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.3;
}

.finder-club-bar-pick:not([hidden]) {
  display: block;
}

body.has-team-selected #finder-club-leagues {
  display: none !important;
}

.finder-change-btn {
  flex-shrink: 0;
  border: 0;
  background: var(--white);
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--green-300);
  cursor: pointer;
}

.team-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.team-type-chip.is-active {
  border-color: var(--green-600);
  background: var(--green-100);
  color: var(--green-900);
}

.team-type-chip-count {
  min-width: 1.4rem;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(27, 67, 50, 0.1);
  font-size: 0.72rem;
}

.team-type-chip.is-active .team-type-chip-count {
  background: var(--green-700);
  color: white;
}

.team-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-quick-pick {
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--green-400);
  background: var(--white);
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.team-quick-pick:hover,
.team-quick-pick:focus-visible {
  background: var(--green-800);
  color: white;
  border-color: var(--green-800);
  outline: none;
}

/* Team picker — single-column list */
.team-picker-list,
#club-team-buttons {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border-light);
  border-radius: 14px;
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  overflow: hidden;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.team-picker-list--fav {
  margin-top: 4px;
}

.team-picker-row {
  display: flex;
  align-items: stretch;
  min-height: 58px;
  border-bottom: 1px solid rgba(26, 77, 46, 0.08);
  transition: background 0.12s ease;
}

.team-picker-row:last-child {
  border-bottom: none;
}

.team-picker-row:hover,
.team-picker-row:focus-within {
  background: rgba(64, 145, 108, 0.05);
}

.team-picker-row.is-active {
  background: linear-gradient(90deg, var(--green-50), rgba(255, 253, 247, 0.98));
  box-shadow: inset 3px 0 0 var(--green-600);
}

.team-picker-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.team-picker-main:focus-visible {
  outline: none;
  background: rgba(64, 145, 108, 0.08);
}

.team-picker-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid rgba(26, 77, 46, 0.12);
}

.team-picker-row--junior .team-picker-badge {
  background: #e3f2fd;
  color: #1565a8;
  border-color: rgba(21, 101, 168, 0.18);
}

.team-picker-row--ladies .team-picker-badge {
  background: #fce8f2;
  color: #9a2460;
  border-color: rgba(154, 36, 96, 0.18);
}

.team-picker-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-picker-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-picker-league {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-picker-row .fav-btn--picker {
  width: 54px;
  min-width: 54px;
  align-self: stretch;
  min-height: 58px;
  padding: 4px 2px;
  gap: 3px;
  border: none;
  border-left: 2px solid rgba(26, 77, 46, 0.22);
  border-radius: 0;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(26, 77, 46, 0.08);
}

.team-picker-row .fav-btn--picker .fav-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.team-picker-row .fav-btn--picker .fav-icon--outline {
  color: #b45309;
  -webkit-text-stroke: 0.75px #78350f;
  text-shadow: 0 1px 0 #ffffff, 0 0 2px rgba(120, 53, 15, 0.35);
}

.team-picker-row .fav-btn--picker .fav-icon--filled {
  color: #78350f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.team-picker-row .fav-btn--picker.active {
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
  border-left-color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.25);
}

.fav-picker-tag {
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #92400e;
}

.fav-btn--picker.active .fav-picker-tag {
  color: #451a03;
}

.picker-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.picker-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.picker-step-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-800);
}

.picker-change-btn {
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}

.picker-change-btn:hover,
.picker-change-btn:focus-visible {
  text-decoration: underline;
  outline: none;
}

.club-filter-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.club-filter-input:focus {
  border-color: var(--green-600);
  outline: none;
  box-shadow: 0 0 0 4px var(--green-100), var(--shadow-md);
}

.picker-hint {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.club-selected-bar {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-100) 0%, var(--white) 100%);
  border: 2px solid var(--green-500);
  box-shadow: var(--shadow-md);
}

.club-selected-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-900);
}

.club-selected-leagues {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--green-800);
}

.club-btn-meta {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-muted);
}

.club-btn-leagues-wrap {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 67, 50, 0.1);
}

.club-btn-leagues-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.club-btn-leagues {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.league-badge--pick {
  display: block;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 10px 12px;
  text-align: left;
  border-radius: 8px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-900);
}

.club-league-info {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted, #f4f6f5);
  border: 1px solid var(--border);
}

.club-league-info-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.club-league-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.picker-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 4px 2px 8px;
  scrollbar-gutter: stable;
}

.club-buttons {
  gap: 14px;
}

.club-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: auto;
  padding: 18px 18px 16px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.club-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 5px;
  border-radius: 0 4px 4px 0;
  background: var(--green-600);
}

.club-btn-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.club-btn-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--green-100);
  font-size: 1.35rem;
  line-height: 1;
}

.club-btn-name {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--green-900);
}

.club-btn:hover,
.club-btn:focus-visible {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  outline: none;
}

.club-btn.is-active {
  border-color: var(--green-600);
  background: linear-gradient(135deg, var(--green-100) 0%, var(--white) 70%);
  box-shadow: 0 0 0 3px var(--green-200), var(--shadow-md);
}

.club-btn.is-active::before {
  background: var(--green-800);
}

.club-team-btn {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.club-team-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--green-500);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.club-team-btn:hover,
.club-team-btn:focus-visible {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  outline: none;
}

.club-team-btn:hover::before,
.club-team-btn:focus-visible::before,
.club-team-btn.is-active::before {
  opacity: 1;
}

.club-team-btn.is-active {
  border-color: var(--green-600);
  background: linear-gradient(135deg, var(--green-100) 0%, var(--white) 80%);
  box-shadow: 0 0 0 3px var(--green-200), var(--shadow-md);
}

#team-picker-step .club-team-buttons {
  max-height: min(52vh, 440px);
}

#team-picker-step .club-team-btn {
  min-height: 60px;
  padding: 18px 20px;
}

#team-picker-step .club-team-btn-name {
  font-size: 1.2rem;
}

#view-home:not(.has-team) .quick-stats,
#view-home:not(.has-team) .section-header,
#view-home:not(.has-team) #home-table-preview,
#view-home:not(.has-team) #home-fixtures-preview,
#view-home:not(.has-team) #home-results-preview {
  display: none;
}

#view-home:not(.has-team) .dashboard-hero {
  margin-top: 8px;
  text-align: center;
}

.selectors-summary {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selectors-change {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-700);
}

.select-group + .select-group {
  margin-top: 12px;
}

.select-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.select-input {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.select-input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.25);
}

.select-input.is-selected,
.search-input.is-selected {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
}

.select-group.is-selected .select-label {
  color: var(--green-800);
}

.comp-filter-bar.has-selection {
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
}

.selectors-compact.is-selected {
  border-color: var(--green-600);
  background: var(--green-100);
}

/* Hero & stats */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 239, 0.18) 0%,
      rgba(13, 40, 24, 0.12) 42%,
      rgba(13, 40, 24, 0.48) 100%
    ),
    linear-gradient(
      90deg,
      rgba(38, 107, 46, 0.94) 0%,
      rgba(38, 107, 46, 0.9) 8%,
      rgba(27, 67, 50, 0.55) 10%,
      rgba(27, 67, 50, 0.42) 50%,
      rgba(27, 67, 50, 0.55) 90%,
      rgba(38, 107, 46, 0.9) 92%,
      rgba(38, 107, 46, 0.94) 100%
    ),
    var(--crease-hero-image) center 58% / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  padding: 22px 18px 30px;
  color: #fff8ef;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.06) 38%,
    rgba(13, 40, 24, 0.18) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 0;
}

.dashboard-hero h2 {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.dashboard-hero p {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  opacity: 0.94;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.dashboard-hero.has-ground-photo {
  background:
    linear-gradient(180deg, rgba(13, 40, 24, 0.45) 0%, rgba(13, 40, 24, 0.78) 100%),
    var(--club-ground-image) center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.42);
}

.dashboard-hero.has-ground-photo::before,
.dashboard-hero.has-ground-photo::after {
  opacity: 0.28;
}

.dashboard-hero.has-ground-photo h2,
.dashboard-hero.has-ground-photo p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.finder-club-bar.has-ground-photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 40, 24, 0.72) 0%, rgba(26, 77, 46, 0.58) 100%),
    var(--club-ground-image) center / cover no-repeat;
  border-color: rgba(255, 255, 255, 0.35);
}

.finder-club-bar.has-ground-photo .finder-club-bar-name,
.finder-club-bar.has-ground-photo .finder-club-bar-meta {
  color: #fff8ef;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.finder-club-bar.has-ground-photo .finder-change-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.55);
}

.club-about {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.club-about-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
}

.club-about-name {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}

.club-about-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.finder-club-about {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid rgba(26, 77, 46, 0.12);
}

.finder-club-about-welcome {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-800);
}

.finder-club-about-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.club-about-address,
.finder-club-about-address {
  margin: 10px 0 0;
}

.club-address-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.club-address-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.club-address-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--green-600);
  background: white;
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.club-address-btn:hover,
.club-address-btn:focus-visible {
  background: var(--green-800);
  color: white;
  outline: none;
}

.club-address-btn:active {
  transform: scale(0.98);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.quick-stat {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
}

.quick-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}

.quick-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 4px;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #e4ede7;
  border: 1px solid rgba(13, 40, 24, 0.14);
  box-shadow: 0 1px 3px rgba(13, 40, 24, 0.08);
}

.section-title {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d2818;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.link-btn {
  background: none;
  border: none;
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-height: var(--touch);
  padding: 0 4px;
}

/* Standings cards — mobile-friendly table replacement */
.standings-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.standing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
}

.standing-pos {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-800);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.standing-card:nth-child(1) .standing-pos {
  background: var(--gold);
  color: var(--green-900);
}

.standing-body {
  flex: 1;
  min-width: 0;
}

.standing-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.standing-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.standing-pts {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-800);
  text-align: right;
  line-height: 1;
}

.standing-pts span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.standing-card.is-highlighted {
  border-color: rgba(61, 139, 69, 0.55);
  background: rgba(237, 248, 237, 0.78);
  box-shadow:
    0 0 0 1px rgba(61, 139, 69, 0.22),
    var(--glass-shadow-light);
}

.standing-zone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.standing-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0.58rem;
  line-height: 1;
  font-weight: 900;
}

.standing-zone--up {
  color: #1f7a34;
}

.standing-zone--down {
  color: #b42318;
}

.standing-card--promotion {
  border-color: rgba(31, 122, 52, 0.28);
}

.standing-card--relegation {
  border-color: rgba(180, 35, 24, 0.24);
}

.team-league-record {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(237, 248, 237, 0.62);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.team-league-record-div {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.35;
}

.fixtures-league-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.fixtures-league-block {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(237, 248, 237, 0.45);
  border: 1px solid var(--glass-border-light);
}

.fixtures-league-heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-900);
}

.fixtures-league-block .team-league-record {
  margin-bottom: 10px;
}

.fixtures-league-block .standings-cards {
  margin-top: 4px;
}

.team-detail-record--inline {
  margin: 0;
}

.team-detail-stat--pts strong {
  color: var(--green-800);
}

/* Competition type filter */
.comp-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.comp-filter-bar::-webkit-scrollbar {
  display: none;
}

.comp-chip {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 22px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.comp-chip.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: white;
}

/* Filters */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.filter-chip {
  flex-shrink: 0;
  min-height: var(--touch);
  padding: 0 18px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.active {
  background: var(--green-800);
  border-color: var(--green-800);
  color: white;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  min-height: var(--touch);
}

.selection-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch {
  width: 48px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  transition: background 0.2s;
}

.toggle-switch.on {
  background: var(--green-600);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.on::after {
  transform: translateX(20px);
}

.hint-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.search-wrap {
  position: relative;
  z-index: 2;
}

.search-input {
  width: 100%;
  min-height: var(--touch);
  padding: 12px 48px 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.25);
}

.search-input.has-filter,
.search-input--club.has-filter,
.search-input--club.is-selected {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
}

.search-input--club {
  min-height: 72px;
  height: 72px;
  padding: 0 64px 0 20px;
  border-radius: var(--radius);
  border: 2px solid var(--green-600);
  background: var(--green-100);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

.search-input--club::placeholder {
  color: var(--green-800);
  opacity: 0.55;
  font-weight: 600;
  font-size: 1.25rem;
}

.search-input--club:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(64, 145, 108, 0.22);
}

.search-wrap--club .search-minimise {
  width: 48px;
  height: 48px;
  right: 12px;
  font-size: 1.75rem;
}

.search-wrap--club .search-results {
  top: calc(100% + 8px);
  max-height: 320px;
}

.search-wrap--club .search-result {
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 700;
}

.search-minimise {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--green-800);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-minimise:hover,
.search-minimise:focus {
  background: var(--green-700);
  outline: none;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 300;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 280px;
  overflow-y: auto;
}

.search-result--club {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.search-result-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.search-result-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.search-result:hover .search-result-meta,
.search-result:focus .search-result-meta,
.search-result.is-picked .search-result-meta {
  color: rgba(255, 255, 255, 0.85);
}

.search-result {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result:focus,
.search-result.is-picked {
  background: var(--green-100);
  color: var(--green-900);
}

.search-result.muted {
  color: var(--text-muted);
  font-weight: 600;
  cursor: default;
}

.search-result.muted:hover {
  background: var(--white);
}

.search-result.error {
  color: var(--red);
}

.team-division {
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 2px;
}

.match-division {
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 600;
  padding: 0 14px 8px;
}

.match-card .match-division {
  padding-top: 0;
  margin-top: -4px;
}

.player-card .player-division {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  padding: 0;
}

/* Team cards */
.team-list,
.player-list,
.match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-card,
.player-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
  min-height: var(--touch);
}

.team-card {
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.team-card:active {
  transform: scale(0.99);
}

.team-tap-hint {
  margin: 0 0 10px;
}

.team-detail-hero--compact {
  padding: 12px 14px;
  margin-bottom: 10px;
}

.team-detail-league-wrap {
  margin-bottom: 12px;
}

.team-detail-league-wrap .standings-cards {
  margin-top: 0;
}

.team-detail-league-wrap[hidden] {
  display: none;
}

.team-results-summary {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.team-detail-hero {
  position: relative;
  overflow: hidden;
  background: rgba(255, 253, 247, 0.58);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.team-detail-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(180deg, var(--glass-shine) 0%, transparent 100%);
  pointer-events: none;
}

.team-detail-hero > * {
  position: relative;
  z-index: 1;
}

.team-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.team-detail-title {
  flex: 1;
  min-width: 0;
}

.team-detail-hero h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}

.team-detail-hero .team-detail-league {
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.team-detail-actions {
  margin-top: 10px;
}

.team-detail-hero .team-league-table-btn {
  margin-top: 0;
}

.match-date-bar__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.match-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--green-200);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.match-points-badge__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #c9a227;
}

.match-points-badge__icon svg {
  width: 14px;
  height: 14px;
}

.match-points-badge__value {
  font-size: 0.82rem;
}

.match-points-badge__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.match-points-badge--pending {
  opacity: 0.55;
  border-style: dashed;
}

.match-points-badge--pending .match-points-badge__icon {
  color: var(--green-600);
}

.match-points-badge--inline {
  padding: 2px 6px 2px 4px;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.match-points-badge--inline .match-points-badge__icon {
  width: 12px;
  height: 12px;
}

.match-points-badge--inline .match-points-badge__icon svg {
  width: 12px;
  height: 12px;
}

.match-points-badge--inline .match-points-badge__value {
  font-size: 0.74rem;
}

.match-points-badge--inline .match-points-badge__label {
  font-size: 0.58rem;
}

.team-points-rules {
  margin-top: 10px;
  border: 1px solid var(--green-200);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.team-points-rules__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-800);
  list-style: none;
}

.team-points-rules__summary::-webkit-details-marker {
  display: none;
}

.team-points-rules__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--green-700);
}

.team-points-rules__icon svg {
  width: 16px;
  height: 16px;
}

.team-points-rules__body {
  padding: 0 12px 12px;
}

.team-points-rules__legend {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.team-points-rules__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-points-rules__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.78rem;
}

.team-points-rules__label {
  color: var(--green-800);
  font-weight: 600;
}

.team-points-rules__value {
  color: var(--green-900);
  font-weight: 700;
  text-align: right;
}

.team-points-rules__note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Form guide — Play-Cricket-style recent results strip */
.form-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.form-guide--compact {
  justify-content: inherit;
  margin-top: 6px;
}

.form-guide__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.form-guide__legend {
  margin: 0 0 6px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.form-guide__list {
  display: inline-flex;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-guide__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.form-guide__item--win {
  background: #3d8b3d;
}

.form-guide__item--loss {
  background: #d9534f;
}

.form-guide__item--draw {
  background: #6c757d;
}

.form-guide__item--neutral {
  background: #95a5a6;
}

.match-team .form-guide--compact {
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.match-team.home .form-guide--compact {
  align-items: flex-end;
}

.match-team.away .form-guide--compact {
  align-items: flex-start;
}

.match-team .form-guide--compact .form-guide__list {
  flex-wrap: wrap;
  max-width: 100%;
}

/* Team stats header — Play-Cricket-style league record table */
.team-stats-header {
  position: relative;
  margin-top: 12px;
}

.team-stats-header__form {
  margin-bottom: 10px;
}

.team-stats-header__form .form-guide {
  margin-top: 0;
}

.team-stats-header__form .form-guide__item {
  min-width: 28px;
  height: 28px;
  font-size: 0.8rem;
  border-radius: 2px;
}

.team-stats-header--has-high-score,
.team-stats-header--high-score-only {
  padding-left: 88px;
  min-height: 78px;
}

.team-stats-header--high-score-only {
  padding-top: 4px;
  padding-bottom: 4px;
}

.team-league-record .team-stats-header {
  margin-top: 0;
}

.team-stats-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d5dde5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  table-layout: fixed;
}

.team-stats-table thead th {
  padding: 8px 3px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  background: #1b4332;
  border-bottom: 1px solid #0d2818;
  line-height: 1.2;
}

.team-stats-table tbody td {
  padding: 10px 3px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.2;
  background: var(--white);
}

.team-stats-table__position {
  font-size: 0.88rem !important;
  white-space: nowrap;
}

.team-stats-table__pts {
  color: var(--green-800);
}

.team-stats-table--compact thead th {
  width: 33.33%;
}

.team-stats-table__pts {
  font-size: 1.08rem !important;
}

.team-stats-header .team-high-score-badge {
  left: 0;
  bottom: 0;
}

.team-stats-header .team-league-table-btn {
  margin-top: 10px;
}

.team-detail-hero .team-detail-record {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  position: relative;
}

.team-detail-record--has-high-score {
  position: relative;
  padding-left: 88px;
  padding-bottom: 6px;
  min-height: 78px;
}

.team-detail-record--high-score-only {
  min-height: 78px;
  padding-left: 88px;
}

.team-league-table-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--green-300);
  border-radius: 999px;
  background: white;
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.team-league-table-btn:hover,
.team-league-table-btn:focus-visible {
  background: var(--green-50);
  border-color: var(--green-500);
  outline: none;
}

.team-league-record .team-league-table-btn {
  margin-top: 10px;
}

.team-detail-stat {
  text-align: center;
  min-width: 50px;
}

.team-detail-stat--position {
  min-width: 64px;
}

.team-detail-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--green-800);
  line-height: 1;
}

.team-detail-stat--position strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.team-detail-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.team-high-score-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: radial-gradient(circle at 35% 28%, #fffdf6 0%, #fce8b8 42%, #e8c06a 100%);
  border: 2.5px solid var(--gold);
  box-shadow:
    0 4px 14px rgba(139, 90, 20, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: help;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-high-score-badge:hover,
.team-high-score-badge:focus-visible {
  transform: scale(1.04);
  box-shadow:
    0 6px 18px rgba(139, 90, 20, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: none;
}

.team-high-score-badge__trophy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.26;
  pointer-events: none;
}

.team-high-score-badge__trophy svg {
  width: 46px;
  height: 46px;
  fill: #a66f1f;
  transform: translateY(2px);
}

.team-high-score-badge__value {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  font-weight: 900;
  color: #7a4f12;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.team-high-score-badge__label {
  position: relative;
  z-index: 1;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9a6418;
}

.team-league-record .team-detail-record--has-high-score {
  margin-top: 4px;
}

@media (max-width: 380px) {
  .team-detail-record--has-high-score,
  .team-detail-record--high-score-only,
  .team-stats-header--has-high-score,
  .team-stats-header--high-score-only {
    padding-left: 72px;
    min-height: 68px;
  }

  .team-stats-table thead th {
    font-size: 0.52rem;
    padding: 7px 2px;
  }

  .team-stats-table tbody td {
    font-size: 0.9rem;
    padding: 8px 2px;
  }

  .team-stats-table__position {
    font-size: 0.78rem !important;
  }

  .team-high-score-badge {
    width: 64px;
    height: 64px;
  }

  .team-high-score-badge__trophy svg {
    width: 38px;
    height: 38px;
  }

  .team-high-score-badge__value {
    font-size: 1.2rem;
  }
}

.team-detail-tabs {
  margin-bottom: 14px;
}

.team-card.selected {
  border: 2px solid var(--green-600);
  background: var(--green-100);
  box-shadow: 0 0 0 2px rgba(64, 145, 108, 0.2);
}

.team-badge,
.player-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.team-badge {
  background: var(--cricket-ball-icon) center / cover no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65), 0 0 6px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
}

.player-avatar {
  background: var(--green-700);
}

.team-info,
.player-info {
  flex: 1;
  min-width: 0;
}

.team-name,
.player-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.team-meta,
.player-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.team-stats-mini,
.player-quick-stats {
  text-align: right;
  flex-shrink: 0;
}

.team-points,
.player-runs {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}

.team-record {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fav-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1.5px solid var(--green-200);
  background: var(--green-50);
  color: var(--green-700);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

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

.fav-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.fav-icon.cricket-ball-icon {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
}

.fav-icon--outline.cricket-ball-icon {
  opacity: 0.48;
  filter: grayscale(0.35) saturate(0.6);
}

.fav-icon--filled.cricket-ball-icon {
  opacity: 1;
  filter: drop-shadow(0 1px 3px rgba(13, 40, 24, 0.22));
}

.fav-btn.active .fav-icon--filled.cricket-ball-icon {
  filter: drop-shadow(0 2px 6px rgba(180, 83, 9, 0.38));
}

.fav-icon--inline {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 3px;
}

.fav-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  max-width: 4.5rem;
  text-align: center;
}

.fav-btn--card {
  min-width: 52px;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 12px;
}

.fav-btn--hero {
  flex-direction: row;
  gap: 6px;
  min-height: var(--touch);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--white);
}

.fav-btn--hero .fav-icon {
  font-size: 1.1rem;
}

.fav-btn--hero .fav-label {
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  max-width: none;
  white-space: nowrap;
}

.fav-btn.active {
  border-color: var(--gold);
  background: var(--gold-light);
  color: #8a5a12;
}

.fav-btn.active .fav-icon--filled {
  color: #b45309;
}

.fav-btn.active .fav-icon--outline {
  color: var(--gold);
}

.fav-btn:not(.active) .fav-icon--outline {
  color: #b45309;
}

.fav-btn--picker {
  width: 52px;
  min-width: 52px;
  align-self: stretch;
  min-height: 60px;
  padding: 0;
  border-radius: 0;
}

.fav-btn--picker .fav-icon {
  font-size: 1.2rem;
}

.fav-btn--row {
  min-width: 68px;
  min-height: var(--touch);
  padding: 8px 10px;
  border-radius: 12px;
}

.home-fav-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.home-fav-header {
  margin-bottom: 6px;
}

.home-fav-hint {
  margin: 0 0 12px;
}

.home-fav-list.fav-list {
  gap: 8px;
}

.home-fav-list .fav-team-card-main {
  padding: 12px;
}

/* Club Home view */
.club-home-hero-icon {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 6px;
}

.club-home-current {
  margin-bottom: 14px;
}

.club-home-current .finder-home-card {
  cursor: default;
}

.club-home-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.club-home-signin {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(212, 237, 213, 0.45);
  border: 1px dashed rgba(82, 168, 90, 0.45);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.club-home-scroll {
  margin-bottom: 12px;
}

#club-home-setup[hidden],
#club-home-dashboard[hidden] {
  display: none !important;
}

.finder-club-card.is-picked {
  border-color: rgba(82, 168, 90, 0.75);
  background:
    linear-gradient(135deg, rgba(212, 237, 213, 0.82), rgba(255, 253, 247, 0.72));
  box-shadow:
    0 0 0 2px rgba(82, 168, 90, 0.22),
    var(--glass-shadow-light);
}

.finder-club-card.is-home-club:not(.is-picked) {
  border-color: rgba(201, 149, 74, 0.55);
}

.club-home-team-section {
  margin-top: 4px;
  padding-top: 4px;
}

.club-home-team-hint {
  margin: 0 0 10px;
}

.club-home-team-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.club-home-team-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.club-home-team-option.is-selected {
  border-color: rgba(82, 168, 90, 0.65);
  background: linear-gradient(135deg, rgba(212, 237, 213, 0.72), rgba(255, 253, 247, 0.58));
}

.club-home-team-option-name {
  flex: 1;
  font-weight: 700;
  color: var(--green-900);
}

.club-home-team-option-check {
  font-size: 1.1rem;
  color: var(--green-700);
  opacity: 0;
}

.club-home-team-option.is-selected .club-home-team-option-check {
  opacity: 1;
}

.club-home-save-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.28);
}

.club-home-save-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.club-home-dashboard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  min-height: 100%;
}

.club-home-dashboard.has-club-logo-bg::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  background-image: var(--club-home-logo-bg);
  background-size: min(78vw, 340px);
  background-position: center 22%;
  background-repeat: no-repeat;
  opacity: 0.14;
  filter: saturate(0.85);
  pointer-events: none;
  z-index: 0;
}

.club-home-dashboard.has-club-logo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 253, 247, 0.92) 0%,
      rgba(255, 253, 247, 0.78) 38%,
      rgba(237, 248, 237, 0.82) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.club-home-dashboard > * {
  position: relative;
  z-index: 1;
}

.club-home-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.club-home-change-btn {
  padding: 8px 14px;
  border: 1px solid rgba(82, 168, 90, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-800);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.club-home-change-btn:active {
  transform: scale(0.98);
}

.club-home-about {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.club-home-about-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.club-home-hero-banner {
  width: 100%;
  min-height: 148px;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background-color: rgba(237, 248, 237, 0.65);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  box-shadow: var(--glass-shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.club-home-hero-banner--placeholder {
  background-image:
    linear-gradient(135deg, rgba(27, 67, 50, 0.18) 0%, rgba(45, 106, 79, 0.08) 45%, rgba(237, 248, 237, 0.9) 100%),
    radial-gradient(circle at 18% 24%, rgba(82, 168, 90, 0.22), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(27, 67, 50, 0.14), transparent 36%);
}

.club-home-dashboard--loading .club-home-dashboard-hero-logo,
.club-home-dashboard--loading .club-home-hero-banner:not([style*="background-image"]) {
  opacity: 0.92;
}

.club-home-dashboard--loading .quick-stat-value {
  opacity: 0.72;
}

.club-home-sponsors {
  margin: 0 0 14px;
  padding: 14px 12px 12px;
  border-radius: var(--radius);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.club-home-sponsors-kicker {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
}

.club-home-sponsors-board {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.club-home-sponsor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  max-width: 132px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(82, 168, 90, 0.16);
}

.club-home-sponsor-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.club-home-dashboard-hero {
  text-align: left;
  padding: 18px 16px 16px;
  margin-bottom: 14px;
}

.club-home-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.club-home-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.club-home-hero-copy {
  flex: 1;
  min-width: 0;
}

.club-home-hero-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-700);
}

.club-home-dashboard-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(13, 40, 24, 0.18));
}

.club-home-dashboard-hero .club-home-hero-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 2rem;
}

.club-home-dashboard-hero .fav-hero-title {
  font-size: 1.28rem;
  line-height: 1.2;
}

.club-home-dashboard-hero .fav-hero-sub {
  margin-top: 4px;
}

.club-home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.club-home-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(82, 168, 90, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.3;
}

.club-home-meta-chip--address {
  flex: 1 1 100%;
  align-items: flex-start;
  line-height: 1.4;
}

.club-home-meta-link,
.club-home-meta-text {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.club-home-meta-link:active {
  opacity: 0.8;
}

.club-home-quick-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.club-home-quick-stats .quick-stat {
  padding: 12px 6px;
}

.club-home-quick-stats .quick-stat-value {
  font-size: 1.35rem;
}

.club-home-quick-stats .quick-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.club-home-panel {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 12px 14px 16px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.club-home-tabs {
  margin-bottom: 12px;
}

.club-home-content {
  min-height: 120px;
}

.club-home-scope-note {
  margin: 0 0 10px;
}

.club-home-matches-tabs {
  margin-bottom: 10px;
}

.club-home-team-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.club-home-team-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: transform 0.12s ease;
}

.club-home-team-card:active {
  transform: scale(0.995);
}

.club-home-team-card-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.club-home-team-card-badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid rgba(26, 77, 46, 0.12);
}

.club-home-team-card--junior .club-home-team-card-badge {
  background: #e3f2fd;
  color: #1565a8;
  border-color: rgba(21, 101, 168, 0.18);
}

.club-home-team-card--ladies .club-home-team-card-badge {
  background: #fce8f2;
  color: #9a2460;
  border-color: rgba(154, 36, 96, 0.18);
}

.club-home-team-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.club-home-team-card-name {
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-home-team-card-league {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 380px) {
  .club-home-quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-home-hero-brand {
    align-items: flex-start;
  }
}

/* FAV Teams view */
.fav-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(240, 217, 181, 0.42) 0%, rgba(255, 253, 247, 0.68) 42%, rgba(237, 248, 237, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  padding: 20px 16px 18px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.fav-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, transparent 52%);
  pointer-events: none;
}

.fav-hero > * {
  position: relative;
  z-index: 1;
}

.fav-hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.fav-hero-icon .cricket-ball-icon {
  filter: drop-shadow(0 4px 12px rgba(13, 40, 24, 0.28));
}

.fav-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.2;
}

.fav-hero-sub {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.fav-hero-count {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-800);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.fav-empty {
  padding: 8px 0 4px;
}

.fav-add-header {
  margin-top: 4px;
}

.fav-add-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fav-team-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  overflow: hidden;
}

.fav-team-card-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 12px 14px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.12s ease;
}

.fav-team-card-main:active {
  background: var(--green-50);
}

.fav-team-card-star {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.fav-team-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fav-team-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
  word-break: break-word;
}

.fav-team-card-club {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fav-team-card-league {
  font-size: 0.75rem;
  color: var(--green-700);
  font-weight: 700;
}

.fav-team-card-action {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-700);
  white-space: nowrap;
}

.fav-team-card .fav-btn--row {
  margin: 8px 8px 8px 0;
  align-self: center;
}

.fav-add-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fav-add-card-info {
  flex: 1;
  min-width: 0;
}

.fav-add-card-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
  word-break: break-word;
}

.fav-add-card-meta {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Match cards */
.match-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.3);
  overflow: hidden;
}

.match-card--clickable {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.match-card--clickable:not(:disabled):hover,
.match-card--clickable:not(:disabled):focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27, 67, 50, 0.16);
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.match-card--clickable:disabled {
  cursor: default;
}

.match-card-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-700);
  text-align: center;
}

.match-date-bar {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%),
    linear-gradient(90deg, rgba(26, 77, 46, 0.88) 0%, rgba(54, 122, 50, 0.82) 100%);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: white;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.match-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
  flex-shrink: 0;
}

.match-status.upcoming {
  background: rgba(255, 255, 255, 0.2);
}

.match-status.completed {
  background: var(--gold);
  color: var(--green-900);
}

.match-body {
  padding: 16px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-team {
  flex: 1;
  min-width: 0;
}

.match-team.home {
  text-align: right;
}

.match-team.away {
  text-align: left;
}

.match-team-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.match-team-head--home {
  justify-content: flex-end;
}

.match-team-head--away {
  justify-content: flex-start;
}

.match-team-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(13, 40, 24, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.match-team-logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 245, 233, 0.95);
}

.match-team-logo--fallback .cricket-ball-icon {
  width: 22px;
  height: 22px;
}

/* Hero strip on fixture/result cards — team + division */
.match-card-hero {
  position: relative;
  height: 76px;
  margin: 0 0 0;
  background:
    linear-gradient(180deg, rgba(5, 20, 12, 0.15) 0%, rgba(5, 20, 12, 0.82) 100%),
    url("../assets/heroes/cricket-batsman-drive-card.jpg") center 30% / cover no-repeat;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.match-card-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px 12px 12px;
}

.match-card-hero__team,
.match-card-hero__div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.25;
  color: #f0fdf4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.match-card-hero__team strong,
.match-card-hero__div strong {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card-hero__team {
  font-size: 0.95rem;
}

.match-card-hero__div {
  font-size: 0.78rem;
  color: #fde68a;
}

.match-card-hero__ico {
  flex-shrink: 0;
  font-style: normal;
}

.cricket-result-board__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cricket-result-board__team--home .cricket-result-board__name-row {
  justify-content: flex-end;
}

.cricket-result-board__team--away .cricket-result-board__name-row {
  justify-content: flex-start;
}

.cricket-result-board__name-row .match-team-logo {
  width: 28px;
  height: 28px;
}

.team-short-name {
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Full club + team (fixtures / results / live) — smaller so long names fit */
.match-team-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
  text-align: inherit;
}

.match-team-label__club {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

.match-team-label__side {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.match-team.home .match-team-label,
.cricket-result-board__team--home .match-team-label,
.live-match-side:not(.away) .match-team-label,
.live-studio__side--home .match-team-label {
  align-items: flex-end;
  text-align: right;
}

.match-team.away .match-team-label,
.cricket-result-board__team--away .match-team-label,
.live-match-side.away .match-team-label,
.live-studio__side--away .match-team-label {
  align-items: flex-start;
  text-align: left;
}

.match-team-name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}

.match-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-800);
  margin-top: 4px;
}

.match-score.tbd {
  color: var(--text-muted);
  font-weight: 600;
}

.match-vs {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

.match-result-text {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-700);
  text-align: center;
  line-height: 1.35;
}

/* Cricket LED result scoreboard */
.match-card--result .match-body--result {
  padding: 14px 12px 16px;
}

.cricket-result-board {
  width: 100%;
}

.cricket-result-board__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.cricket-result-board__team {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cricket-result-board__team--home {
  text-align: left;
}

.cricket-result-board__team--away {
  text-align: right;
}

.cricket-result-board__side {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cricket-result-board__name {
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--green-800);
  overflow-wrap: anywhere;
  word-break: normal;
}

.cricket-result-board__name .match-team-label__club {
  font-size: 0.76rem;
}

.cricket-result-board__name .match-team-label__side {
  font-size: 0.66rem;
  font-weight: 650;
  color: inherit;
  opacity: 0.88;
}

.cricket-result-board__team--winner .cricket-result-board__name {
  color: var(--green-900);
}

.cricket-result-board__team--winner .cricket-result-board__side {
  color: var(--gold);
}

.cricket-result-board__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.cricket-result-board__team--home .cricket-result-board__name-row {
  justify-content: flex-start;
}

.cricket-result-board__team--away .cricket-result-board__name-row {
  justify-content: flex-end;
}

.cricket-result-board__name-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: visible;
}

.cricket-result-board__team--confetti .cricket-result-board__name-wrap {
  padding-top: 14px;
}

.result-confetti {
  position: absolute;
  left: 50%;
  top: 0;
  width: 52px;
  height: 18px;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

.cricket-result-board__team--away .result-confetti {
  left: auto;
  right: 0;
  transform: none;
}

.result-confetti__piece {
  --delay: calc(var(--i) * 0.08s);
  --x: calc((var(--i) - 4.5) * 5px);
  --spin: calc((var(--i) % 2) * 180deg + 45deg);
  position: absolute;
  left: 50%;
  top: 6px;
  width: 5px;
  height: 7px;
  margin-left: var(--x);
  border-radius: 1px;
  opacity: 0;
  background: var(--gold);
  animation: result-confetti-burst 2.8s ease-out infinite;
  animation-delay: var(--delay);
}

.result-confetti__piece:nth-child(3n) {
  background: #7a1530;
}

.result-confetti__piece:nth-child(3n + 1) {
  background: #1f7a45;
}

.result-confetti__piece:nth-child(3n + 2) {
  background: #f0c75e;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

@keyframes result-confetti-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }
  12% {
    opacity: 1;
    transform: translate3d(calc(var(--x) * 0.35), -10px, 0) rotate(var(--spin)) scale(1);
  }
  45% {
    opacity: 0.95;
    transform: translate3d(calc(var(--x) * 0.9), 4px, 0) rotate(calc(var(--spin) + 90deg)) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) * 1.2), 16px, 0) rotate(calc(var(--spin) + 200deg)) scale(0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-confetti__piece {
    animation: none;
    opacity: 0.85;
    transform: translate3d(var(--x), -4px, 0) rotate(var(--spin));
  }
}

.cricket-result-board__teams-vs {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--text-muted);
  padding-bottom: 2px;
}

.cricket-result-board__panel {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 213, 74, 0.08) 0%, transparent 55%),
    #050505;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.28);
}

.cricket-result-board__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cricket-result-board__row:first-child {
  border-top: none;
}

.cricket-result-board__row--hero {
  background: rgba(255, 255, 255, 0.03);
}

.cricket-result-board__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  text-align: center;
  min-height: 54px;
  min-width: 0;
  overflow: visible;
}

.cricket-result-board__stat:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.cricket-result-board__stat--winner .cricket-result-board__value--hero {
  color: #ffe082;
  -webkit-text-fill-color: #ffe082;
  text-shadow: 0 0 10px rgba(255, 213, 74, 0.45);
}

.cricket-result-board__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.cricket-result-board__value {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.cricket-result-board__value--hero {
  font-size: clamp(1.75rem, 6.5vw, 2.65rem);
  color: #fff8e8;
  letter-spacing: 0.02em;
  line-height: 1.05;
  max-width: 100%;
  overflow: visible;
}

.cricket-result-board__row--hero .cricket-result-board__stat {
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.match-result-banner {
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(26, 77, 46, 0.12), rgba(54, 122, 50, 0.08));
  border: 1px solid rgba(26, 77, 46, 0.2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-800);
  text-align: center;
  line-height: 1.35;
}

.match-ground {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.match-date-bar-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.match-ground-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 79, 28, 0.08);
}

.match-ground-row .match-ground {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--green-800);
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.match-ground-row--away .match-pin-link,
.next-match-card__venue--away .match-pin-link {
  background: linear-gradient(145deg, #bf360c, #e65100);
  box-shadow: 0 3px 10px rgba(191, 54, 12, 0.32);
}

.match-ground-row--away .match-pin-link:hover,
.match-ground-row--away .match-pin-link:focus-visible,
.next-match-card__venue--away .match-pin-link:hover,
.next-match-card__venue--away .match-pin-link:focus-visible {
  background: linear-gradient(145deg, #e65100, #f57c00);
  box-shadow: 0 4px 12px rgba(191, 54, 12, 0.34);
}

.match-pin-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 52px;
  min-height: 54px;
  padding: 7px 10px 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1b5e20, #2e7d32);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(27, 94, 32, 0.32);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.match-pin-link:hover,
.match-pin-link:focus-visible {
  background: linear-gradient(145deg, #2e7d32, #43a047);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.34);
  outline: none;
}

.match-pin-link:active {
  transform: scale(0.96);
}

.match-pin-icon {
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.match-pin-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

/* Tabs */
.stats-tabs {
  margin: 14px 0 10px;
}

.stats-tabs--nested {
  margin: 0 0 12px;
}

.section-header--tight {
  margin-bottom: 8px;
}

.tab-bar-inline {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.tab-inline {
  flex: 1;
  min-height: var(--touch);
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
}

.tab-inline.active {
  background: var(--green-800);
  color: white;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.4;
}

/* Pull-to-refresh tip (empty Fixtures / Results) */
.pull-refresh-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 14px 14px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(34, 120, 58, 0.16) 0%, rgba(255, 253, 247, 0.95) 100%);
  border: 1px solid rgba(26, 77, 46, 0.22);
  box-shadow: 0 8px 24px rgba(13, 40, 24, 0.12);
  text-align: left;
}

.pull-refresh-tip__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: #052e16;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.pull-refresh-tip__body {
  flex: 1;
  min-width: 0;
}

.pull-refresh-tip__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
}

.pull-refresh-tip__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}

.pull-refresh-tip__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 40, 24, 0.08);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.pull-refresh-tip__close:active {
  transform: scale(0.94);
}

.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  opacity: 0.88;
}

.match-data-warning {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.match-data-warning-text {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.team-type-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Live feed */
.live-fav-section {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border-soft);
}

.live-fav-list.fav-list {
  margin-bottom: 0;
}

.live-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 36%, transparent 58%),
    linear-gradient(135deg, rgba(26, 77, 46, 0.86) 0%, rgba(54, 122, 50, 0.8) 100%);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.12);
  color: white;
  border: 1px solid var(--glass-border-mid);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
  box-shadow: var(--glass-shadow-dark);
}

.live-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.live-hero h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.live-hero p {
  font-size: 0.85rem;
  opacity: 0.92;
}

.live-hero-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.55;
}

.live-hero-pulse.active {
  opacity: 1;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.live-loading {
  margin-top: 8px;
  font-size: 0.8rem;
  font-style: italic;
}

.live-hint {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.85) !important;
}

.live-empty {
  margin-top: 8px;
}

.live-matches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.live-match-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.25);
  padding: 14px;
  border-left: 4px solid var(--green-600);
}

.live-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.live-match-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--border);
  color: var(--text-muted);
}

.live-match-badge.live-pulse {
  background: var(--red);
  color: white;
  animation: live-pulse 1.4s ease-in-out infinite;
}

.live-match-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.live-match-teams {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-match-side {
  flex: 1;
  min-width: 0;
}

.live-match-side.away {
  text-align: right;
}

.live-match-name {
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
}

.live-match-name .match-team-label__club {
  font-size: 0.78rem;
}

.live-match-name .match-team-label__side {
  font-size: 0.66rem;
}

.live-match-score {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-800);
  margin-top: 2px;
}

.live-match-vs {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.live-match-fav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.live-bulletins {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-bulletin {
  display: flex;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-500);
}

.live-bulletin--wicket {
  border-left-color: var(--red);
}

.live-bulletin--score {
  border-left-color: var(--green-600);
}

.live-bulletin--result {
  border-left-color: var(--gold);
}

.live-bulletin--status {
  border-left-color: #e85d04;
}

.live-bulletin--milestone {
  border-left-color: var(--gold);
}

.live-bulletin--partnership {
  border-left-color: var(--green-600);
}

.live-bulletin--innings {
  border-left-color: var(--pitch-mid);
}

.live-bulletin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
}

.live-bulletin-text {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.live-bulletin-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.section-header--live {
  align-items: flex-start;
}

.live-refresh-bulletins-btn {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-weight: 800;
  border: 1px solid var(--green-800);
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.22);
}

.live-refresh-bulletins-btn:hover,
.live-refresh-bulletins-btn:focus-visible {
  background: var(--green-800);
  outline: none;
}

.section-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.live-updated-at {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.live-match-when {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.player-name-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--green-900);
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(22, 101, 52, 0.35);
  text-underline-offset: 2px;
}

.player-name-link:hover,
.player-name-link:focus-visible {
  color: var(--green-700);
}

.player-roster-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hall-of-fame-team-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hall-of-fame-team-section {
  background: white;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  box-shadow: var(--shadow);
}

.hall-of-fame-team-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--green-900);
}

.hall-of-fame-block + .hall-of-fame-block {
  margin-top: 12px;
}

.hall-of-fame-block-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0d2818;
}

.club-home-dashboard--hof-only .home-highlights--hof {
  margin: 0 0 16px;
}

.club-home-dashboard--hof-only .club-home-panel {
  margin-top: 4px;
}

.club-home-dashboard--hof-only .club-home-content {
  padding-top: 0;
}

.hall-of-fame-weekly-header {
  margin-bottom: 14px;
}

.hall-of-fame-weekly-kicker {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-900);
}

/* Always stack — 3 columns crush names in the phone-width app shell */
.hall-of-fame-weekly-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.hall-of-fame-block {
  width: 100%;
  min-width: 0;
}

.hall-of-fame-block--empty {
  opacity: 0.85;
}

.hall-of-fame-empty-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stats-table--medals .stats-table-head,
.stats-table--medals .stats-table-row {
  grid-template-columns: 2.75rem minmax(0, 1fr) minmax(4.25rem, auto);
  gap: 10px;
  padding: 10px 12px;
  align-items: center;
}

.stats-table--medals .stats-col-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  width: 2.75rem;
  padding-top: 0;
}

.stats-table--medals .stats-table-head .stats-col-rank {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.stats-table--medals .stats-col-player {
  min-width: 0;
  overflow: hidden;
}

.stats-table--medals .stats-player-name,
.stats-table--medals .player-name-link.stats-player-name {
  display: block;
  max-width: 100%;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.stats-table--medals .stats-player-meta {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-table--medals .stats-col-value {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 4.25rem;
  white-space: nowrap;
}

.stats-table--medals .stats-value-num {
  font-size: 1.05rem;
  white-space: nowrap;
}

.stats-table--medals .stats-value-unit {
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.hof-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hof-medal__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.stats-table-row:hover .hof-medal,
.stats-table-row:focus-within .hof-medal {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));
}

.hof-medal--gold {
  filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.35)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.hof-medal--silver {
  filter: drop-shadow(0 2px 5px rgba(148, 163, 184, 0.35)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.hof-medal--bronze {
  filter: drop-shadow(0 2px 5px rgba(180, 110, 50, 0.32)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.player-roster-table,
.stats-table {
  background: white;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.player-roster-head,
.stats-table-head {
  display: grid;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--green-800);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-roster-head {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px 18px;
}

.stats-table-head {
  grid-template-columns: 28px minmax(0, 1fr) 56px;
}

.player-roster-body,
.stats-table-body {
  display: flex;
  flex-direction: column;
}

.player-roster-row,
.stats-table-row {
  display: grid;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--green-50);
  background: white;
  text-align: left;
}

.player-roster-row {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px 18px;
  cursor: pointer;
}

@media (max-width: 380px) {
  .player-roster-head,
  .player-roster-row {
    grid-template-columns: minmax(0, 1fr) 34px 34px 34px 12px;
    padding: 8px;
    gap: 4px;
    font-size: 0.78rem;
  }

  .player-roster-stat {
    font-size: 0.72rem;
  }
}

.stats-table-row {
  grid-template-columns: 28px minmax(0, 1fr) 56px;
}

.player-roster-row:last-child,
.stats-table-row:last-child {
  border-bottom: none;
}

.player-roster-row:hover,
.player-roster-row:focus-visible {
  background: var(--green-50);
}

.player-roster-section-label {
  padding: 8px 12px 6px;
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
}

.player-roster-row--top .player-roster-name {
  color: var(--green-800);
}

.player-roster-row--top .player-roster-stat {
  font-weight: 800;
  color: var(--green-800);
}

.player-roster-name,
.stats-player-name,
.stats-player-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.stats-player-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(64, 145, 108, 0.35);
  text-underline-offset: 2px;
}

.stats-player-link:hover,
.stats-player-link:focus-visible {
  color: var(--green-700);
}

.player-roster-stat,
.stats-col-rank,
.stats-col-value {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.player-roster-stat {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-800);
}

.stats-col-rank {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

.stats-player-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.stats-col-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stats-value-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-800);
  line-height: 1;
}

.stats-value-unit {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-table--compact .stats-table-row,
.stats-table--compact .stats-table-head {
  padding-top: 6px;
  padding-bottom: 6px;
}

.stats-table--compact .stats-value-num {
  font-size: 0.92rem;
}

.player-roster-chevron {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-500);
  text-align: right;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 215;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.player-modal[hidden] {
  display: none !important;
}

body.player-modal-open {
  overflow: hidden;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.58);
  backdrop-filter: blur(3px);
}

.player-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92dvh, 92svh);
  display: flex;
}

.player-modal-card {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92svh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.player-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

.player-modal-hero,
.match-modal-hero,
.league-table-modal-hero,
.faq-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(38, 107, 46, 0.84) 0%,
      rgba(26, 77, 46, 0.78) 48%,
      rgba(13, 40, 24, 0.9) 100%
    );
  backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur-soft)) saturate(1.15);
  color: #fff8ef;
  border: 1px solid var(--glass-border-mid);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--glass-shadow-dark);
  clear: both;
}

.player-modal-hero::before,
.match-modal-hero::before,
.league-table-modal-hero::before,
.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 48%);
  pointer-events: none;
}

.player-modal-hero h2,
.player-modal-hero p,
.match-modal-hero h2,
.match-modal-hero p,
.league-table-modal-hero h2,
.league-table-modal-hero p,
.faq-hero h2,
.faq-hero p {
  position: relative;
  z-index: 1;
}

.player-modal-hero h2,
.match-modal-hero h2,
.league-table-modal-hero h2,
.faq-hero h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.faq-hero h2 {
  margin-bottom: 8px;
  color: #fffef9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.player-modal-hero p,
.match-modal-hero p,
.league-table-modal-hero p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.92;
}

.faq-hero p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 1;
  color: #f3faf6 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.player-detail-section {
  margin-bottom: 14px;
}

.player-detail-section h3 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-700);
  border-bottom: 1px solid var(--green-100);
}

.player-detail-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}

.player-detail-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--green-50);
}

.player-detail-line:last-child {
  border-bottom: none;
}

.player-detail-line-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.player-detail-line-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-800);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.player-detail-line-meta {
  padding: 0 12px 6px;
  margin-top: -4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: white;
  border-bottom: 1px solid var(--green-50);
}

.player-detail-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-detail-team-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.player-detail-team-heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-800);
}

.player-detail-line--team-total,
.player-detail-line--grand-total {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
}

.player-detail-line--grand-total {
  background: rgba(237, 248, 237, 0.95);
}

.player-detail-line--team-total .player-detail-line-label,
.player-detail-line--grand-total .player-detail-line-label {
  color: var(--green-800);
  font-weight: 800;
}

.player-detail-table--grand-total {
  margin-top: 2px;
}

.home-club-modal {
  position: fixed;
  inset: 0;
  z-index: 214;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.home-club-modal[hidden] {
  display: none !important;
}

body.home-club-modal-open {
  overflow: hidden;
}

.home-club-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.58);
  backdrop-filter: blur(3px);
}

.home-club-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92dvh, 92svh);
  display: flex;
}

.home-club-modal-card {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92svh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.home-club-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

.home-club-modal-hero {
  margin-bottom: 12px;
}

.home-club-modal-hero h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.home-club-modal-hero p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

#home-club-modal-body .club-home-setup {
  display: block;
}

#home-club-modal-body .club-home-hero {
  display: none;
}

.match-modal {
  position: fixed;
  inset: 0;
  z-index: 215;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.match-modal[hidden] {
  display: none !important;
}

body.match-modal-open {
  overflow: hidden;
}

.match-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.58);
  backdrop-filter: blur(3px);
}

.match-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92dvh, 92svh);
  display: flex;
}

.match-modal-card {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92svh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.match-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

.league-table-modal {
  position: fixed;
  inset: 0;
  z-index: 216;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.league-table-modal[hidden] {
  display: none !important;
}

body.league-table-modal-open {
  overflow: hidden;
}

.league-table-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.58);
  backdrop-filter: blur(3px);
}

.league-table-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92dvh, 92svh);
  display: flex;
}

.league-table-modal-card {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92svh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.league-table-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

#league-table-modal-body .standings-cards {
  margin-top: 0;
}

.match-detail-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 12px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--green-100);
}

.match-detail-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-detail-team:last-child {
  text-align: right;
}

.match-detail-team-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-900);
}

.match-detail-team-score {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-800);
}

.match-detail-vs {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.match-detail-result {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green-900);
}

.match-detail-ground {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.match-detail-note {
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.player-detail-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-800);
}

.player-detail-stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-900);
}

.player-detail-stat-meta {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.current-season-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(237, 248, 237, 0.95);
  border: 1px solid rgba(61, 139, 69, 0.28);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.current-season-badge--hero {
  display: block;
  width: fit-content;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.96);
}

.player-modal-team {
  display: block;
  margin-bottom: 2px;
}

.current-season-note {
  margin: 0 0 10px;
}

.current-season-note--modal {
  margin-bottom: 12px;
}

.current-season-note--roster {
  margin-bottom: 8px;
}

.player-detail-intro {
  margin: 0 0 1rem;
  color: var(--text-muted, #8b949e);
  font-size: 0.9rem;
}

.player-detail-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* FAQ / Help popup */
.help-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.help-modal[hidden] {
  display: none !important;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.58);
  backdrop-filter: blur(3px);
}

.help-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92dvh, 92svh);
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.help-modal-card {
  position: relative;
  width: 100%;
  max-height: min(92dvh, 92svh);
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: var(--cream);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.help-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  margin: 0 0 8px 8px;
  border: none;
  border-radius: 50%;
  background: white;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}

.faq-hero {
  padding: 20px 18px;
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--glass-shadow-light);
  backdrop-filter: blur(var(--glass-blur-soft));
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
}

.faq-question {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: #0a3d26;
  line-height: 1.35;
}

.faq-answer {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #1a2e24;
}

.faq-answer strong {
  color: #0a3d26;
  font-weight: 800;
}

.faq-answer a {
  color: #0f5132;
  font-weight: 700;
  text-decoration: underline;
}

/* Bottom nav */
.bottom-nav {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 253, 247, 0.58) 100%);
  border-top: 1px solid var(--glass-border-light);
  box-shadow:
    0 -10px 28px rgba(13, 40, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35);
  display: flex;
  z-index: 200;
}

body.v3a-ios .app > .bottom-nav.v3a-tab-bar {
  z-index: 320 !important;
  pointer-events: auto !important;
}

body.v3a-ios .bottom-nav.v3a-tab-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: min(100%, var(--app-shell-max, 520px));
  z-index: 320;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  height: auto;
}

body.v3a-ios .bottom-nav.v3a-tab-bar > .nav-item {
  flex: none !important;
  flex-direction: row;
  padding: 0 !important;
  text-transform: none;
  letter-spacing: 0;
  background: transparent !important;
}

.nav-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-height: var(--touch);
  padding: 0 2px;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nav-item .nav-icon {
  font-size: 1.35rem;
}

.nav-item.active {
  color: var(--green-800);
  background: linear-gradient(180deg, var(--green-100) 0%, rgba(212, 237, 213, 0.65) 100%);
}

/* Wider screens */
@media (max-width: 520px) {
  body.has-club-selected .header {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    gap: 8px;
  }

  body.has-club-selected .header-app-logo,
  body.has-club-selected .header-club-logo {
    width: 32px;
    height: 32px;
  }

  body.has-club-selected .header-title {
    font-size: 1rem;
    line-height: 1.15;
  }

  body.has-club-selected .header-subtitle {
    font-size: 0.78rem;
    margin-top: 1px;
  }

  body.has-club-selected .app-beta-badge {
    display: none;
  }

  body.has-club-selected:not(.has-team-selected) .finder-club-about {
    display: none !important;
  }

  body.has-club-selected:not(.has-team-selected) #view-home .dashboard-hero {
    display: none;
  }

  body.has-club-selected:not(.has-team-selected) .finder-club-bar {
    padding: 10px 12px;
    align-items: center;
  }

  body.has-club-selected:not(.has-team-selected) .finder-club-bar-name {
    font-size: 1rem;
    line-height: 1.2;
  }

  body.has-club-selected:not(.has-team-selected) .finder-change-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .team-picker-list,
  #club-team-buttons,
  .club-team-buttons:not(.team-picker-list),
  .picker-buttons {
    max-height: none;
    overflow: visible;
  }
}

@media (hover: none) and (pointer: coarse) {
  .finder-club-card:hover,
  .club-btn:hover,
  .club-team-btn:hover,
  .team-quick-pick:hover {
    transform: none;
  }

  .team-picker-row:active,
  .finder-club-card:active,
  .nav-item:active,
  .selectors-compact:active {
    transform: scale(0.995);
    opacity: 0.94;
  }

  button,
  .nav-item,
  .team-picker-main,
  .finder-club-card,
  .selectors-compact {
    touch-action: manipulation;
  }
}

@media (min-width: 521px) and (max-width: 767px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.28) 0%, transparent 55%),
      var(--grass-bg);
    overflow: auto;
  }

  .app {
    margin-top: 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 0 0 4px rgba(212, 184, 122, 0.42),
      0 14px 44px rgba(0, 0, 0, 0.28);
    height: calc(100dvh - 32px);
    height: calc(100svh - 32px);
  }

  .team-picker-list,
  #club-team-buttons {
    max-height: min(50vh, 420px);
    overflow-y: auto;
  }
}

/* Tablet/desktop: shell width comes from responsive.css --app-shell-max */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.28) 0%, transparent 55%),
      var(--grass-bg);
    overflow: auto;
  }

  .app {
    max-width: min(100%, var(--app-shell-max, 900px));
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 18px;
    overflow: hidden;
  }
}

/* Account / auth */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 35, 25, 0.55);
  backdrop-filter: blur(2px);
}

.auth-modal-panel {
  position: relative;
  width: min(100%, 400px);
  z-index: 1;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 22px 20px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: var(--green-900);
}

.auth-sub {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}

.auth-tab {
  min-height: var(--touch);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.auth-tab--active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

.auth-recall {
  margin: -6px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef6f0;
  color: var(--green-900);
  font-size: 0.88rem;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-900);
}

.auth-field input {
  min-height: var(--touch);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 1rem;
}

.auth-error {
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-btn {
  min-height: var(--touch);
  border: none;
  border-radius: 10px;
  background: var(--green-800);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.auth-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-btn--ghost {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--border);
  margin-top: 8px;
}

.auth-btn--activate {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 4px;
  margin-bottom: 4px;
}

.auth-switch {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-switch a {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}

.auth-forgot {
  margin: -2px 0 10px;
  text-align: right;
  font-size: 0.86rem;
}

.auth-forgot a {
  color: var(--green-800);
  font-weight: 700;
  text-decoration: none;
}

.auth-btn--forgot {
  margin-top: 10px;
}

.auth-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-home {
  background: var(--green-100);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.auth-home-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-800);
  margin-bottom: 4px;
}

.auth-home-value {
  margin: 0;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.35;
}

.auth-btn--guest {
  background: transparent;
  color: var(--green-800);
  border: 2px dashed var(--border);
  margin-top: 4px;
}

/* Opening / welcome page */
.auth-modal--opening {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.auth-modal--opening .auth-modal-backdrop {
  background: var(--grass-bg);
  backdrop-filter: none;
}

.auth-modal-panel--opening {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  height: 100%;
  display: flex;
}

.opening-page {
  position: relative;
  flex: 1;
  min-height: 100%;
  color: #fff;
  overflow: hidden;
}

.opening-page__sky {
  position: absolute;
  inset: 0 0 55%;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 58%),
    linear-gradient(180deg, rgba(13, 40, 24, 0.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.opening-page__boundary {
  position: absolute;
  inset: 10px;
  border: 3px solid rgba(212, 184, 122, 0.45);
  border-radius: 18px;
  pointer-events: none;
  z-index: 0;
}

.opening-page__scroll {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    20px
    calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--pitch-lane);
}

.opening-page__hero {
  text-align: center;
  padding-top: 8px;
}

.opening-page__logo-wrap {
  display: inline-flex;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
}

.opening-page__logo {
  display: block;
  border-radius: 16px;
}

.opening-page__kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.opening-page__title {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.opening-page__tagline {
  margin: 0 auto;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

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

.opening-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.opening-feature__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.2);
  font-size: 1rem;
  line-height: 1;
}

.opening-feature__body {
  min-width: 0;
}

.opening-feature__body strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 2px;
}

.opening-feature__body p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

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

.opening-plan {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 40, 24, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.opening-plan--account {
  border-color: rgba(212, 184, 122, 0.55);
  box-shadow: inset 0 0 0 1px rgba(212, 184, 122, 0.2);
}

.opening-plan__title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.opening-plan__list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.opening-page__actions {
  margin-top: auto;
  padding-top: 4px;
}

.opening-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.opening-btn:active {
  transform: scale(0.98);
}

.opening-btn--primary {
  background: var(--cream);
  color: var(--green-900);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.opening-btn--secondary {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.opening-btn--link {
  margin-top: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.92rem;
  font-weight: 700;
}

.opening-btn--guest {
  margin-top: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 2px dashed rgba(255, 255, 255, 0.38);
  font-weight: 700;
}

.opening-page__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

body.opening-page-active .app {
  visibility: hidden;
}

@media (max-width: 360px) {
  .opening-page__features,
  .opening-page__plans {
    grid-template-columns: 1fr;
  }
}

.auth-btn--inline {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 0 16px;
  min-height: 40px;
  font-size: 0.9rem;
}

.auth-back {
  border: none;
  background: transparent;
  color: var(--green-800);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 0;
}

.auth-feature-note {
  margin: 0 0 10px;
  color: #9a3412;
  font-size: 0.88rem;
  font-weight: 700;
}

body.auth-gate-open .loading-overlay {
  display: none !important;
}

#view-home.home-gate-active > :not(.home-guest-access-wrap) {
  opacity: 0.28;
  filter: blur(1px);
  pointer-events: none;
}

.home-guest-access-wrap {
  margin-bottom: 14px;
}

.home-guest-access {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.home-guest-access__logo {
  display: block;
  margin: 0 auto 10px;
  border-radius: 16px;
}

.home-guest-access__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
}

.home-guest-access__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--green-900);
}

.home-guest-access__lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-guest-access__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  text-align: left;
}

.home-guest-access__col {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-guest-access__col h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-guest-access__col ul {
  margin: 0;
  padding-left: 16px;
}

.home-guest-access__col--allowed {
  background: var(--green-50);
  border: 1px solid rgba(26, 77, 46, 0.14);
  color: var(--green-900);
}

.home-guest-access__col--allowed h3 {
  color: var(--green-800);
}

.home-guest-access__col--locked {
  background: rgba(255, 253, 247, 0.72);
  border: 1px dashed rgba(26, 77, 46, 0.22);
  color: var(--text-muted);
}

.home-guest-access__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  border: none;
  border-radius: 12px;
  background: var(--green-800);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.home-guest-access__btn--primary {
  margin-bottom: 10px;
  background: var(--green-900);
  box-shadow: var(--shadow);
}

.home-guest-access__btn--ghost {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--card-border);
}

.home-guest-access__auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.home-guest-banner-wrap {
  margin-bottom: 12px;
}

.home-guest-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.82);
  border: 1px dashed rgba(26, 77, 46, 0.24);
  font-size: 0.8rem;
  line-height: 1.35;
}

.home-guest-banner__label {
  font-weight: 800;
  color: var(--green-800);
  white-space: nowrap;
}

.home-guest-banner__text {
  color: var(--text-muted);
}

.home-guest-banner__btn {
  border: none;
  background: transparent;
  color: var(--green-800);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.home-fav-guest-empty {
  padding: 8px 0 0;
}

@media (max-width: 360px) {
  .home-guest-access__cols,
  .home-guest-access__auth-row {
    grid-template-columns: 1fr;
  }

  .home-guest-banner {
    grid-template-columns: 1fr;
  }
}

.fav-btn--locked .fav-icon {
  opacity: 0.45;
}

.nav-item--locked {
  opacity: 0.55;
}

.guest-live-block {
  text-align: center;
}

/* UX: next match, match-day, freshness, pull-to-refresh */
.home-comp-filter {
  margin: 0 0 10px;
}

.data-freshness {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.data-freshness--stale {
  color: #b45309;
  font-weight: 700;
}

.next-match-card {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  color: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.next-match-card__kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.next-match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: start;
}

.next-match-card__vs {
  font-weight: 800;
  opacity: 0.8;
  padding-top: 18px;
}

.next-match-card__label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-bottom: 2px;
}

.next-match-card__meta,
.next-match-card__venue {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.95;
}

.next-match-card__div {
  margin-left: 8px;
  opacity: 0.85;
}

.next-match-card .form-guide__label,
.next-match-card .form-guide__item {
  color: inherit;
}

.next-match-card .form-guide__item--win {
  background: #2d6a4f;
}

.next-match-card .form-guide__item--loss {
  background: #9b2226;
}

.next-match-card .opponent-link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.match-day-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff7ed;
  border: 2px solid #fdba74;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.match-day-banner__body {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.match-day-banner__pulse {
  color: #ea580c;
  animation: live-pulse 1.2s ease-in-out infinite;
}

.match-day-banner__body p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.match-day-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.home-match-day-wrap {
  margin-bottom: 14px;
}

.home-match-day-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fef3c7 100%);
}

.home-match-day-card__glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

.home-match-day-card__main {
  position: relative;
  flex: 1;
  min-width: 0;
}

.home-match-day-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.home-match-day-card__pulse {
  animation: live-pulse 1.2s ease-in-out infinite;
}

.home-match-day-card__title {
  margin: 0 0 4px;
  font-size: 1.28rem;
  color: #9a3412;
}

.home-match-day-card__lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #7c2d12;
}

.home-match-day-card__stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.82rem;
  color: #9a3412;
}

.home-match-day-card__stats strong {
  font-weight: 700;
}

.home-match-day-card__btn {
  position: relative;
  align-self: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.22);
}

.match-day-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(254, 243, 199, 0.92));
}

.match-day-hero__pulse.active {
  animation: live-pulse 1.2s ease-in-out infinite;
}

.match-day-hero__kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c2410c;
}

.match-day-hero__body h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #9a3412;
}

.match-day-hero__body p {
  margin: 0;
  font-size: 0.92rem;
  color: #7c2d12;
}

.match-day-fixtures {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.match-day-fixture-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-surface);
}

.match-day-fixture-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.match-day-fixture-card__fav {
  font-weight: 700;
  color: var(--green-800);
}

.match-day-fixture-card__teams {
  font-size: 0.95rem;
  font-weight: 700;
}

.match-day-fixture-card__vs {
  margin: 0 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.match-day-fixture-card__ground {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 420px) {
  .home-match-day-card {
    flex-direction: column;
  }

  .home-match-day-card__btn {
    width: 100%;
  }
}

.opponent-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.match-team-name.opponent-link {
  text-decoration: underline;
  text-decoration-color: rgba(27, 67, 50, 0.25);
}

button.form-guide__item {
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.pull-refresh-indicator {
  position: fixed;
  top: calc(var(--header-height, 56px) + 4px);
  left: 50%;
  transform: translateY(-48px);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.pull-refresh-indicator.active {
  opacity: 1;
}

.pull-refresh-indicator.ready .pull-refresh-indicator__icon {
  animation: spin 0.8s linear infinite;
}

.opponent-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.opponent-modal[hidden] {
  display: none !important;
}

body.opponent-modal-open {
  overflow: hidden;
}

.opponent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.opponent-modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: 85vh;
  overflow: auto;
  z-index: 1;
}

.opponent-modal-card {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 28px;
  box-shadow: var(--shadow);
}

.opponent-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 1.4rem;
  cursor: pointer;
}

.opponent-modal-hero h2 {
  margin: 0 0 4px;
}

.opponent-modal-hero p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.opponent-next-fix {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Phase 2 features */
.header-settings {
  border: none;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
  min-width: var(--touch, 44px);
  min-height: var(--touch, 44px);
}

.match-share-btn {
  flex-shrink: 0;
  border: 2px solid var(--green-800);
  background: var(--white);
  color: var(--green-900);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.match-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.stats-source-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--green-100);
  color: var(--green-800);
  margin-bottom: 8px;
}

.stats-source-badge--fallback {
  background: #fff7ed;
  color: #9a3412;
}

.team-stats-header__badge {
  margin-bottom: 6px;
}

.standings-legend {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  margin: 0 0 10px;
  color: var(--text-muted);
}

.standings-legend__up {
  color: #15803d;
  font-weight: 700;
}

.standings-legend__down {
  color: #b91c1c;
  font-weight: 700;
}

.standing-card--promotion {
  border-left: 4px solid #15803d;
}

.standing-card--relegation {
  border-left: 4px solid #b91c1c;
}

.head-to-head {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.head-to-head__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.head-to-head__summary {
  margin: 0 0 8px;
  font-weight: 700;
}

.head-to-head__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.head-to-head__item {
  min-width: 28px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82rem;
}

.head-to-head__item--win {
  background: #2d6a4f;
  color: #fff;
}

.head-to-head__item--loss {
  background: #9b2226;
  color: #fff;
}

.head-to-head__item--draw {
  background: #6c757d;
  color: #fff;
}

.home-live-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.home-live-strip__card {
  flex-shrink: 0;
  border: 2px solid #ea580c;
  background: #fff7ed;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.home-live-strip__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #ea580c;
  margin-right: 6px;
}

.multi-team-dashboard {
  margin-bottom: 14px;
}

.multi-team-grid {
  display: grid;
  gap: 8px;
}

.multi-team-card {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.multi-team-card__main {
  flex: 1;
  border: none;
  background: transparent;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}

.multi-team-card__pos {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.multi-team-card__pin {
  border: none;
  background: var(--green-100);
  padding: 0 12px;
  cursor: pointer;
}

.multi-team-card__pin.active {
  background: #fef08a;
}

.cup-run-tracker {
  margin-bottom: 14px;
}

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

.cup-run__item {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.cup-run__item--done {
  opacity: 0.85;
}

.cup-run__status--next {
  color: var(--green-800);
  font-weight: 700;
}

.season-picker {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.season-chip {
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  cursor: pointer;
}

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

.install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.install-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.install-modal[hidden] {
  display: none !important;
}

body.install-modal-open {
  overflow: hidden;
}

.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 38, 28, 0.55);
  backdrop-filter: blur(2px);
}

.install-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
}

.install-modal__card {
  position: relative;
  background: linear-gradient(180deg, #f8fdf9 0%, #ffffff 42%);
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.install-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(27, 67, 50, 0.08);
  color: var(--green-800);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.install-modal__icon img {
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.18);
}

.install-modal__title {
  margin: 14px 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--green-900, #1b4332);
}

.install-modal__text {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.install-modal__hint {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: var(--green-100);
  border-radius: 12px;
  padding: 10px 12px;
}

.install-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-modal__btn {
  min-height: 48px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.install-modal__btn--primary {
  border: none;
  background: linear-gradient(180deg, #2d6a4f 0%, #1b4332 100%);
  color: #fff;
}

.install-modal__btn--ghost {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
}

.settings-install {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.settings-install__title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.settings-install__text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-install__btn {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--green-800);
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  cursor: pointer;
}

.settings-install--done .settings-install__status {
  margin: 0;
  font-weight: 600;
  color: var(--green-800);
}

@media (prefers-color-scheme: dark) {
  .install-modal__card {
    background: linear-gradient(180deg, #1f2f28 0%, #15241e 100%);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .install-modal__title {
    color: #e8f5e9;
  }

  .install-modal__hint {
    background: rgba(255, 255, 255, 0.06);
    color: #c8e6c9;
  }

  .install-modal__btn--ghost {
    color: #a5d6a7;
  }
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.settings-modal[hidden] {
  display: none !important;
}

body.settings-modal-open {
  overflow: hidden;
}

.settings-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.settings-modal-panel {
  position: relative;
  width: min(100%, 480px);
  z-index: 1;
}

.settings-modal-card {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px 28px;
}

.settings-modal-close {
  float: right;
  border: none;
  background: var(--green-100);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.settings-fieldset {
  border: none;
  padding: 0;
  margin: 12px 0 0;
}

.settings-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-weight: 600;
}

.settings-perm-status {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.settings-push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.settings-push-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(82, 168, 90, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: var(--green-800);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.settings-push-btn:hover,
.settings-push-btn:focus-visible {
  background: rgba(237, 248, 237, 0.95);
}

.settings-push-status {
  min-height: 1.2em;
  margin-top: 8px;
}

.settings-push-status--error {
  color: #b42318;
}

.settings-intro {
  margin-bottom: 4px;
}

.settings-fieldset--onboard {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 67, 50, 0.12);
}

.settings-onboard-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-muted, #4a5c54);
}

.settings-onboard-mail {
  color: var(--green-700, #1b4332);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.club-onboard-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(27, 67, 50, 0.07);
  border: 1px solid rgba(27, 67, 50, 0.14);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-muted, #3d4f47);
}

.club-onboard-note a {
  color: var(--green-800, #1b4332);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.club-attach-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(168, 137, 42, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #3d4a2e;
}

.club-home-confirm-hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted, #4a5c54);
}

.club-home-welcome {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27, 67, 50, 0.12), rgba(212, 175, 55, 0.12));
  border: 1px solid rgba(27, 67, 50, 0.16);
}

.club-home-welcome__line {
  margin: 0;
  font-size: 1.15rem;
  color: var(--green-800, #1b4332);
}

.club-home-welcome__club {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted, #4a5c54);
}

.club-home-welcome__lock {
  font-weight: 700;
  color: #8a7020;
}

.club-home-meta-chip--locked {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(168, 137, 42, 0.4);
}

.player-roles-row__club {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted, #4a5c54);
}

.player-roles-row__club--none {
  font-weight: 500;
  opacity: 0.75;
}

.player-roles-btn--unlock {
  border-color: rgba(168, 137, 42, 0.45);
  color: #6b5614;
  background: rgba(212, 175, 55, 0.12);
}

.compare-teams {
  margin-bottom: 14px;
}

.compare-select {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.compare-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow);
}

.app-toast {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

button.form-guide__item:focus-visible,
.opponent-link:focus-visible,
.match-share-btn:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}