/* =========================================================
   SPORTSLINE — Core Stylesheet
   MK Premium Business Solutions
   ========================================================= */

:root {
  --primary-purple: #563477;
  --dark-purple: #351C4F;
  --secondary-purple: #70449A;
  --light-purple: #A56AD6;
  --soft-lavender: #EDE4F5;

  --white: #FFFFFF;
  --light-bg: #F7F7FA;
  --light-gray: #EEF0F4;

  --text-dark: #202124;
  --text-muted: #6B7280;

  --live-red: #E53935;
  --live-accent: #FF4D4F;
  --success-green: #16A34A;
  --warning-gold: #F5B301;

  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 1px 3px rgba(53, 28, 79, 0.08), 0 1px 2px rgba(53, 28, 79, 0.06);
  --shadow-hover: 0 8px 24px rgba(53, 28, 79, 0.14);
  --max-width: 1240px;

  /* Type scale (rem; 1rem = 16px). Nothing below 12px. */
  --fs-12: .75rem;
  --fs-13: .8125rem;
  --fs-14: .875rem;
  --fs-15: .9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Stacking order */
  --z-sticky: 40;
  --z-dropdown: 50;
  --z-drawer: 100;
  --z-overlay: 9999;
}

/* ---------- Dark mode ---------- */
[data-theme="dark"] {
  --star-empty: #5b4a7a;
  --white: #241736;
  --light-bg: #1C1129;
  --light-gray: #2E1F45;
  --text-dark: #F2EDFB;
  --text-muted: #B9A9D6;
  --soft-lavender: #3A2856;
  --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: var(--light-bg); color: var(--text-dark); }
[data-theme="dark"] .main-header { background: var(--white); border-color: var(--light-gray); }
[data-theme="dark"] .top-search input { background: var(--light-bg); border-color: var(--light-gray); color: var(--text-dark); }
[data-theme="dark"] .nav-menu .dropdown, [data-theme="dark"] .mobile-drawer__panel { background: var(--white); }
[data-theme="dark"] .nav-menu .dropdown a { color: var(--text-dark); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; color: var(--dark-purple); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--light-purple); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-12) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; }
.section-head p { color: var(--text-muted); margin: 4px 0 0; max-width: 60ch; }
.section-alt { background: var(--white); }
.link-more { color: var(--secondary-purple); font-weight: 600; white-space: nowrap; }
.link-more:hover { color: var(--primary-purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600;
  border: 1px solid transparent; font-size: var(--fs-15); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--primary-purple); color: var(--white); }
.btn-primary:hover { background: var(--dark-purple); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: var(--soft-lavender); color: var(--primary-purple); }
.btn-ghost:hover { background: #e2d3f2; }
.btn-sm { padding: 8px 14px; font-size: var(--fs-14); }
.btn-lg { padding: 15px 30px; font-size: var(--fs-16); }
.btn-block { width: 100%; }

/* ---------- Badges & status ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; background: var(--light-gray); color: var(--text-muted); }
.badge-live { background: rgba(229,57,53,.1); color: var(--live-red); }
.badge-upcoming { background: rgba(112,68,154,.1); color: var(--secondary-purple); }
.badge-completed { background: rgba(22,163,74,.1); color: var(--success-green); }
.badge-muted { background: var(--light-gray); color: var(--text-muted); }
.badge-international { background: linear-gradient(135deg, #ff9a3c, #ff6b6b); color: #fff; }

/* ---------- Sponsored profile cards (Business-plan listings on the News page) ---------- */
.sponsored-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sponsored-row .sponsored-card { flex-direction: column; align-items: center; text-align: center; }
.sponsored-row .sponsored-card__loc { justify-content: center; }
.sponsored-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; background: linear-gradient(135deg, #fff8e6, #fff); border: 1px solid #f0d78c; border-radius: var(--radius-md); text-decoration: none; color: inherit; box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease; }
.sponsored-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.sponsored-card__tag { position: absolute; top: -9px; left: 14px; background: #F5B301; color: #3a2a00; font-size: var(--fs-12); font-weight: 800; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; }
.sponsored-card__logo { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; background: var(--soft-lavender); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.3rem; }
.sponsored-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.sponsored-card__body h3 { margin: 0 0 2px; font-size: var(--fs-15); }
/* Sponsored / advertising separation (Google News: paid content must be clearly distinguishable from editorial) */
.sponsored-block { margin-top: 32px; padding: 14px 16px 18px; border: 1px dashed #e3c870; border-radius: var(--radius-md); background: #fffdf5; }
.sponsored-block__label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; font-size: var(--fs-12); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a5a00; }
.sponsored-block__label small { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: var(--fs-13); color: var(--text-muted); }
.ad-block { margin-top: 28px; }
.ad-block__label { display: block; margin-bottom: 6px; font-size: var(--fs-12); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.card-grid > .sponsored-card--feed { grid-column: 1 / -1; margin: 8px 0; }
.sponsored-card__type { font-size: var(--fs-12); color: var(--secondary-purple); font-weight: 700; }
.sponsored-card__loc { margin: 4px 0 0; font-size: var(--fs-13); color: var(--text-muted); }

/* ---------- Podcast sidebar strip (News page) ---------- */
.podcast-sidebar-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--light-gray); cursor: pointer; }
.podcast-sidebar-item:last-child { border-bottom: 0; }
.podcast-sidebar-item__thumb { position: relative; flex: 0 0 auto; width: 96px; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; }
.podcast-sidebar-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.podcast-sidebar-item__thumb::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(28,17,41,.35); font-size: var(--fs-14); }
.podcast-sidebar-item__title { font-size: var(--fs-14); font-weight: 700; line-height: 1.35; }
.badge-success { background: rgba(22,163,74,.1); color: var(--success-green); }
.badge-warning { background: rgba(245,179,1,.14); color: #8a6400; }

/* ---------- Utility bar (live scores, near me, clock, dark mode) ---------- */
.utility-bar { background: var(--dark-purple); color: rgba(255,255,255,.85); font-size: var(--fs-13); }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; gap: 12px; }
.utility-bar__left { display: flex; gap: 18px; }
.utility-bar__left a { color: rgba(255,255,255,.85); font-weight: 600; }
.utility-bar__left a.live-link { color: var(--live-accent); }
.utility-bar__left a:hover { color: var(--white); }
.utility-bar__right { display: flex; align-items: center; gap: 14px; }
.utility-clock { font-weight: 600; color: rgba(255,255,255,.7); white-space: nowrap; }
.theme-toggle { background: rgba(255,255,255,.12); border: 0; color: var(--white); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-13); }
.theme-toggle:hover { background: rgba(255,255,255,.22); }

/* ---------- Google Translate widget (utility bar) ---------- */
/* Prevent Google's injected top banner iframe from pushing page content down. */
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.translate-widget { line-height: 1; }
.translate-widget .goog-te-gadget { font-family: var(--font-body); font-size: 0; color: rgba(255,255,255,.6); }
.translate-widget .goog-te-gadget > span { display: none !important; }
.translate-widget .goog-te-gadget-icon { display: none !important; }
.translate-widget .goog-te-combo {
  font-size: var(--fs-12); font-weight: 600; color: var(--text-dark); background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 1px 4px; max-width: 88px;
  height: 22px; vertical-align: middle; margin: 0;
}

/* ---------- Sports pill bar ---------- */
.sports-pill-bar { background: var(--secondary-purple); }
.sports-pill-bar__inner { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.sports-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sports-pills::-webkit-scrollbar { display: none; }
.sports-pill { flex-shrink: 0; color: var(--white); font-weight: 700; font-size: var(--fs-14); padding: 6px 14px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.08); border: 0; cursor: pointer; }
.sports-pill:hover { background: rgba(255,255,255,.2); }
.sports-pill-more { position: relative; flex-shrink: 0; }
.sports-pill-more__dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 6px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); min-width: 180px; overflow: hidden; z-index: var(--z-dropdown); }
.sports-pill-more__dropdown.open { display: block; }
.sports-pill-more__dropdown a { display: block; padding: 9px 14px; color: var(--text-dark); font-size: var(--fs-14); font-weight: 500; }
.sports-pill-more__dropdown a:hover { background: var(--soft-lavender); color: var(--primary-purple); }

/* ---------- Main header (logo, search, auth actions) ---------- */
.main-header { background: var(--white); border-bottom: 1px solid var(--light-gray); }
.main-header .container { display: flex; align-items: center; padding-top: 12px; padding-bottom: 12px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-18); color: var(--primary-purple); letter-spacing: .01em; }
.top-search { flex: 1; max-width: 460px; display: flex; }
.top-search input { flex: 1; border: 1px solid var(--light-gray); border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 9px 12px; font-size: var(--fs-14); }
.top-search button { border: 1px solid var(--primary-purple); background: var(--primary-purple); color: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 14px; }
.top-actions { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.top-actions a { font-weight: 600; color: var(--text-dark); }
.top-actions a.live-link { color: var(--live-red); }
.top-actions a:hover { color: var(--primary-purple); }
.top-actions a.btn-primary, .top-actions a.btn-primary:hover { color: #fff; }

/* ---------- Main nav ---------- */
.main-nav { background: var(--primary-purple); }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-menu { display: flex; }
.nav-menu > li { position: relative; }
.nav-menu { flex-wrap: nowrap; justify-content: space-between; }
.nav-menu > li > a { display: block; padding: 14px clamp(8px, .9vw, 16px); color: var(--white); font-weight: 600; font-size: var(--fs-15); white-space: nowrap; }
@media (max-width: 1200px) { .nav-menu > li > a { font-size: var(--fs-14); } }
.nav-menu > li > a:hover, .nav-menu > li.active > a { background: var(--dark-purple); }
.nav-menu .dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-hover); border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; z-index: var(--z-sticky); }
.nav-menu li:hover .dropdown { display: block; }
.nav-menu .dropdown a { display: block; padding: 10px 16px; color: var(--text-dark); font-weight: 500; font-size: var(--fs-14); }
.nav-menu .dropdown a:hover { background: var(--soft-lavender); color: var(--primary-purple); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-dark); padding: 12px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 22px; height: 2px; background: var(--text-dark); position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* Mobile drawer */
.mobile-drawer { display: none; position: fixed; inset: 0; z-index: var(--z-drawer); }
.mobile-drawer.open { display: block; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(32,33,36,.5); }
.mobile-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: var(--white); padding: 20px; overflow-y: auto; }
.mobile-drawer__panel h3 { font-size: var(--fs-16); }
.mobile-drawer__panel input { width: 100%; padding: 10px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); margin-bottom: 16px; }
.mobile-drawer__panel a { display: block; padding: 12px 0; border-bottom: 1px solid var(--light-gray); font-weight: 600; }
.mobile-drawer__close { float: right; background: none; border: 0; font-size: 1.3rem; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--dark-purple), var(--primary-purple)); color: var(--white); overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(165,106,214,.35), transparent 55%); pointer-events: none; }
.hero .container { position: relative; padding: 72px 20px 88px; display: grid; gap: 28px; }
.hero-eyebrow { color: var(--light-purple); font-weight: 700; letter-spacing: .04em; font-size: var(--fs-14); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 6px 0 14px; max-width: 16ch; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: var(--fs-16); max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-strip span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-size: var(--fs-13); font-weight: 600; }

/* ---------- Hero live match strip ---------- */
.hero-strip-section { background: var(--soft-lavender); padding: 18px 0 26px; }
.hero-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero-strip-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-strip-filter select { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--light-purple); font-weight: 700; font-size: var(--fs-14); background: var(--white); color: var(--primary-purple); }
.hero-strip-quicklinks { display: flex; gap: 14px; font-size: var(--fs-13); }
.hero-strip-quicklinks a { color: var(--secondary-purple); font-weight: 600; }
.hero-strip-quicklinks a:hover { color: var(--primary-purple); }
.hero-strip-track { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.hero-strip-card { flex: 0 0 auto; width: 270px; scroll-snap-align: start; background: var(--white); border: 2px solid transparent; border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-card); }
.hero-strip-card--live { border-color: var(--warning-gold); }
.hero-strip-card__meta { font-size: var(--fs-12); color: var(--text-muted); font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.hero-strip-card__row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; font-size: var(--fs-14); font-weight: 600; }
.hero-strip-card__row .val { color: var(--dark-purple); font-weight: 800; }
.hero-strip-card__status { font-size: var(--fs-13); color: var(--secondary-purple); font-weight: 700; margin-top: 6px; }
.hero-strip-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--light-gray); }
.notify-toggle { position: relative; display: inline-block; width: 34px; height: 18px; flex-shrink: 0; }
.notify-toggle input { opacity: 0; width: 0; height: 0; }
.notify-toggle .track { position: absolute; inset: 0; background: var(--light-gray); border-radius: 999px; transition: background .15s ease; }
.notify-toggle .track::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--white); border-radius: 50%; transition: transform .15s ease; }
.notify-toggle input:checked + .track { background: var(--primary-purple); }
.notify-toggle input:checked + .track::before { transform: translateX(16px); }

/* ---------- Media-style news hero (big story + stacked side list) ---------- */
.news-hero-grid { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; align-items: stretch; }
.news-hero-featured { position: relative; display: block; min-height: 440px; height: 100%; border-radius: var(--radius-md); overflow: hidden; background-color: var(--soft-lavender); background-size: cover; background-position: center; box-shadow: var(--shadow-card); }
.news-hero-featured::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,17,41,.88) 0%, rgba(28,17,41,.35) 55%, rgba(28,17,41,0) 100%); }
.news-hero-featured__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 22px; z-index: 1; }
.news-hero-featured__badge { display: inline-block; background: var(--live-red); color: var(--white); font-size: var(--fs-12); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.news-hero-featured__overlay h2 { color: var(--white); font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; }
.news-hero-featured__meta { color: rgba(255,255,255,.75); font-size: var(--fs-13); font-weight: 600; }

/* ---------- Homepage news slideshow ---------- */
.news-slideshow { position: relative; min-height: 440px; height: 100%; border-radius: var(--radius-md); overflow: hidden; background-color: var(--soft-lavender); box-shadow: var(--shadow-card); }
.news-slideshow__track { position: relative; width: 100%; height: 100%; min-height: 440px; }
.news-slideshow__slide { position: absolute; inset: 0; display: block; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.news-slideshow__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.news-slideshow__slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,17,41,.88) 0%, rgba(28,17,41,.35) 55%, rgba(28,17,41,0) 100%); }
.news-slideshow__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 60px 22px 26px; z-index: 1; }
.news-slideshow__overlay h2 { color: var(--white); font-size: 1.5rem; line-height: 1.25; margin: 0 0 8px; }
.news-slideshow__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(28,17,41,.55); color: var(--white); font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease; }
.news-slideshow__arrow:hover { background: rgba(28,17,41,.85); }
.news-slideshow__arrow--prev { left: 12px; }
.news-slideshow__arrow--next { right: 12px; }
.news-slideshow__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.news-slideshow__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.news-slideshow__dot.is-active { background: var(--white); transform: scale(1.15); }

/* ---------- Sports Authorities directory ---------- */
/* ---------- Podcast page ---------- */
.podcast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.podcast-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.podcast-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.podcast-card__thumb { position: relative; aspect-ratio: 16 / 9; cursor: pointer; overflow: hidden; }
.podcast-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
.podcast-card__thumb:hover img { transform: scale(1.04); }
.podcast-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(28,17,41,.65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; pointer-events: none; }
.podcast-card__body { padding: 14px 16px; }
.podcast-card__body h3 { margin: 0 0 6px; font-size: var(--fs-16); line-height: 1.35; }
.podcast-card__body p { margin: 0; font-size: var(--fs-14); color: var(--text-muted); line-height: 1.5; }

.authority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.authority-card { display: flex; gap: 14px; padding: 18px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: box-shadow .15s ease, transform .15s ease; }
.authority-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.authority-card__logo { flex: 0 0 auto; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--soft-lavender); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.6rem; }
.authority-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.authority-card__body { flex: 1 1 auto; min-width: 0; }
.authority-card__body h3 { margin: 0 0 4px; font-size: var(--fs-16); line-height: 1.3; }
.authority-card__state { display: inline-block; font-size: var(--fs-13); font-weight: 700; color: var(--secondary-purple); background: var(--soft-lavender); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.authority-card__row { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 4px; font-size: var(--fs-14); color: var(--text-muted); line-height: 1.4; }
.authority-card__btn { margin-top: 10px; }

.news-hero-side { display: flex; flex-direction: column; gap: 14px; }

/* ---------- Homepage hero: quick-link buttons (icon + label rows) ---------- */
.hero-quick-links { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; height: 100%; }
.quick-link-btn { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple)); color: var(--white); text-decoration: none; box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease; }
.quick-link-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.quick-link-btn__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: var(--fs-16); }
.quick-link-btn__label { flex: 1 1 auto; font-weight: 700; font-size: var(--fs-15); }
.quick-link-btn__arrow { flex: 0 0 auto; font-size: var(--fs-18); opacity: .8; transition: transform .15s ease; }
.quick-link-btn:hover .quick-link-btn__arrow { transform: translateX(3px); }
.news-hero-item { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow-card); transition: box-shadow .15s ease; }
.news-hero-item:hover { box-shadow: var(--shadow-hover); }
.news-hero-item__thumb { flex: 0 0 84px; width: 84px; height: 64px; border-radius: var(--radius-sm); background-color: var(--soft-lavender); background-size: cover; background-position: center; }
.news-hero-item__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-hero-item__sport { font-size: var(--fs-12); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--secondary-purple); }
.news-hero-item__body h3 { font-size: var(--fs-14); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-hero-item__meta { font-size: var(--fs-12); color: var(--text-muted); }

/* ---------- Homepage main + sidebar grid ---------- */
.home-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 28px; align-items: start; }
.home-main h2 { font-size: 1.5rem; }
.home-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 16px; }
.sidebar-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.sidebar-card__head { padding: 12px 16px; background: var(--soft-lavender); font-weight: 800; font-size: var(--fs-13); color: var(--primary-purple); text-transform: uppercase; letter-spacing: .03em; }
.sidebar-card__body { padding: 14px 16px; }
.directory-promo { background: linear-gradient(160deg, var(--primary-purple), var(--dark-purple)); color: var(--white); border-radius: var(--radius-md); padding: 22px 20px; box-shadow: var(--shadow-card); }
.directory-promo h3 { color: var(--white); font-size: var(--fs-16); margin-bottom: 6px; }
.directory-promo p { color: rgba(255,255,255,.8); font-size: var(--fs-14); }
.directory-promo .icons { display: flex; gap: 10px; margin: 10px 0 14px; font-size: 1.3rem; }
.ad-slot { background: var(--light-gray); border: 1px dashed var(--text-muted); border-radius: var(--radius-md); padding: 24px 16px; text-align: center; color: var(--text-muted); font-size: var(--fs-13); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ad-slot img { max-width: 100%; border-radius: var(--radius-sm); margin-bottom: 8px; }
.featured-news-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 24px; }
.featured-news-card__img { background: var(--soft-lavender); background-size: cover; background-position: center; min-height: 260px; }
.featured-news-card__body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; justify-content: center; }
.featured-news-card__body h2 { font-size: 1.5rem; margin: 8px 0; }


.ticker { background: var(--dark-purple); color: var(--white); }
.ticker .container { display: flex; align-items: center; gap: 14px; padding-top: 0; padding-bottom: 0; }
.ticker-badge { background: var(--live-red); color: var(--white); font-weight: 700; font-size: var(--fs-12); padding: 6px 10px; border-radius: 4px; flex-shrink: 0; letter-spacing: .03em; }
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 40px; }
.ticker-items { display: flex; position: absolute; white-space: nowrap; will-change: transform; align-items: center; height: 40px; }
.ticker-items a { padding: 0 32px 0 0; font-size: var(--fs-14); font-weight: 500; color: rgba(255,255,255,.92); }
.ticker-controls { display: flex; gap: 4px; flex-shrink: 0; }
.ticker-controls button { background: rgba(255,255,255,.12); border: 0; color: var(--white); width: 28px; height: 28px; border-radius: 4px; }
.ticker-controls button:hover { background: rgba(255,255,255,.22); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* All Sports page (sports/index.php): fixed column counts by breakpoint */
.sports-grid { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }

/* Sports Near You results: fixed column counts by breakpoint (2 mobile / 3 tablet / 5 desktop) */
.near-me-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }

/* Explore Sports (homepage): horizontal scroller */
.sports-scroller { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sports-scroller::-webkit-scrollbar { display: none; }
.sports-scroller .sport-card { flex: 0 0 auto; width: 140px; scroll-snap-align: start; }
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .15s ease, transform .15s ease; display: flex; flex-direction: column; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card__img { aspect-ratio: 16/10; background: var(--soft-lavender); background-size: cover; background-position: center; position: relative; }
.news-card__img .badge { position: absolute; top: 10px; left: 10px; }
.news-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__meta { font-size: var(--fs-13); color: var(--text-muted); display: flex; gap: 8px; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.news-card__meta .sport { color: var(--secondary-purple); }
.news-card h3 { font-size: var(--fs-16); margin: 0; }
.news-card p { color: var(--text-muted); font-size: var(--fs-14); margin: 0; flex: 1; }

.sport-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; text-align: center; box-shadow: var(--shadow-card); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; border: 1px solid transparent; }
.sport-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--light-purple); }
.sport-card .icon { font-size: 2rem; margin-bottom: 8px; }
.sport-card h3 { font-size: var(--fs-16); margin: 0; }

.profile-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .15s ease, transform .15s ease; }
.profile-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.profile-card__img { aspect-ratio: 4/3; background: var(--soft-lavender); background-size: cover; background-position: center; }
.profile-card__body { padding: 14px 16px; }
.profile-card__body .sport-tag { font-size: var(--fs-12); font-weight: 700; color: var(--secondary-purple); text-transform: uppercase; letter-spacing: .03em; }
.profile-card__body h3 { font-size: var(--fs-16); margin: 4px 0; }
.profile-card__body .loc { font-size: var(--fs-14); color: var(--text-muted); }

/* Sports Near You */
.near-me-hero { text-align: center; max-width: 620px; margin: 0 auto 28px; padding: 36px 28px; border-radius: var(--radius-md); background: linear-gradient(160deg, var(--soft-lavender), var(--white)); box-shadow: var(--shadow-card); }
.near-me-hero__icon { font-size: 2.2rem; margin-bottom: 6px; }
.near-me-hero h2 { margin: 0 0 8px; font-family: var(--font-display); color: var(--dark-purple); }
.near-me-hero p { color: var(--text-muted); margin-bottom: 20px; }
.near-me-hero__controls { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.near-me-radius { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: 600; color: var(--text-muted); }
.near-me-radius select { padding: 10px 14px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); background: var(--white); font-weight: 600; color: var(--text-dark); }
.near-me-status { color: var(--text-muted); font-size: var(--fs-14); margin-top: 14px; min-height: 1.2em; }
.near-me-manual-form { max-width: 460px; margin: 0 auto 28px; }
.near-me-count { display: inline-block; background: var(--soft-lavender); color: var(--secondary-purple); font-size: var(--fs-12); font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
/* ===== Athlete cards & profile: distinct treatment across the site ===== */
.athlete-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.athlete-card { position: relative; border: 2px solid transparent; background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--light-purple), var(--warning-gold)) border-box; }
.athlete-card:hover { box-shadow: 0 12px 30px rgba(165,106,214,.38); transform: translateY(-3px); }
.athlete-card--top { box-shadow: 0 6px 22px rgba(245,179,1,.30); }
.athlete-card__photo { position: relative; aspect-ratio: 4/5; background-color: var(--soft-lavender); background-size: cover; background-position: center top; overflow: hidden; }
.athlete-card__photo--fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #351C4F, #70449A 60%, #A56AD6); }
.athlete-card__watermark { position: absolute; right: -6px; bottom: -14px; font-size: 6.5rem; line-height: 1; opacity: .18; pointer-events: none; }
.athlete-card__initials, .athlete-hero__initials { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-display); font-weight: 800; color: #351C4F; background: linear-gradient(135deg, #FFE08A, #F5B301); }
.athlete-card__initials { position: relative; width: 84px; height: 84px; font-size: 1.9rem; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.athlete-card__ribbon { position: absolute; top: 10px; left: 10px; z-index: 1; background: linear-gradient(90deg, #F5B301, #FFD75E); color: #351C4F; font-size: var(--fs-12); font-weight: 800; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.athlete-card__body { display: block; }
.athlete-card__ach { display: block; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(245,179,1,.16); color: var(--text-dark); font-size: var(--fs-13); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.athlete-spotlight { background: linear-gradient(180deg, var(--soft-lavender), transparent); }
.athlete-scroller { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 16px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.athlete-scroller::-webkit-scrollbar { display: none; }
.athlete-scroller .athlete-card { flex: 0 0 auto; width: 210px; scroll-snap-align: start; }

/* Local tournament card */
.local-tournament-card { border-radius: var(--radius-md); }
.ltc__banner { position: relative; display: block; aspect-ratio: 16/9; background-color: var(--soft-lavender); background-size: cover; background-position: center; overflow: hidden; }
.ltc__banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,32,.05) 45%, rgba(20,8,32,.62)); }
.ltc__banner--fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #351C4F, #70449A 60%, #A56AD6); }
.ltc__banner--fallback::after { display: none; }
.ltc__watermark { font-size: 5rem; line-height: 1; opacity: .3; }
.ltc__status { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 11px; border-radius: 999px; background: rgba(53,28,79,.88); color: #fff; font-size: var(--fs-12); font-weight: 800; letter-spacing: .04em; }
.ltc__status--live { background: #E53935; animation: ltc-pulse 1.8s ease-in-out infinite; }
.ltc__status--upcoming { background: #2563EB; }
@keyframes ltc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.ltc__sport { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: var(--fs-12); font-weight: 700; }
.ltc__host { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: var(--fs-14); color: var(--text-muted); }
.ltc__host b { color: var(--secondary-purple); }
.ltc__host-logo, .ltc__host-initials { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; }
.ltc__host-logo { object-fit: cover; background: var(--soft-lavender); }
.ltc__host-initials { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFE08A, #F5B301); color: #351C4F; font-size: var(--fs-12); font-weight: 800; }
.ltc__tick { color: var(--success-green); font-weight: 800; }
.ltc__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ltc__chip { padding: 3px 10px; border-radius: 999px; background: var(--soft-lavender); color: var(--text-dark); font-size: var(--fs-12); font-weight: 600; }
.ltc__progress { margin-bottom: 12px; }
.ltc__progress-label { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--text-muted); font-size: var(--fs-12); font-weight: 700; }
.ltc__progress-bar { height: 6px; border-radius: 999px; background: var(--light-gray); overflow: hidden; }
.ltc__progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F5B301, #FFD75E); }
.ltc__next { display: block; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--light-bg); color: var(--text-dark); font-size: var(--fs-14); font-weight: 600; }
.ltc__next small { display: block; color: var(--text-muted); font-size: var(--fs-12); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ltc__teams { display: flex; flex-wrap: wrap; gap: 6px; }
.ltc__team { padding: 2px 9px; border: 1px solid var(--light-gray); border-radius: 999px; font-size: var(--fs-12); }
.ltc__soon { margin: 10px 0 0; color: var(--text-muted); font-size: var(--fs-13); }
.ltc__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.ltc__photo { position: relative; aspect-ratio: 1; border-radius: 8px; background-color: var(--soft-lavender); background-size: cover; background-position: center; }
.ltc__photo--more::after { content: attr(data-more); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgba(53,28,79,.65); color: #fff; font-weight: 800; }

.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.detail-list dt { color: var(--text-muted); font-size: var(--fs-14); font-weight: 600; }
.detail-list dd { margin: 0; font-size: var(--fs-14); }

/* Category-specific business questions (my-listings + admin directory-listings) */
.category-fields__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 10px; }

/* Account type cards (signup + choose-type) */
.account-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-type-card { display: block; cursor: pointer; }
.account-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-card__body { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 18px 12px; text-align: center; border: 2px solid var(--light-gray); border-radius: var(--radius-md); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.account-type-card__body small { color: var(--text-muted); font-size: var(--fs-13); line-height: 1.35; }
.account-type-card__icon { font-size: 1.9rem; }
.account-type-card:hover .account-type-card__body { border-color: var(--light-purple); transform: translateY(-2px); }
.account-type-card input:checked + .account-type-card__body { border-color: var(--secondary-purple); box-shadow: 0 0 0 3px rgba(112,68,154,.18); background: var(--soft-lavender); }
.account-type-card input:focus-visible + .account-type-card__body { outline: 2px solid var(--secondary-purple); outline-offset: 2px; }

/* Sport multi-select */
.sport-multiselect { border: 1px solid var(--light-gray); border-radius: var(--radius-sm); background: var(--white); }
.sport-multiselect__bar { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--light-gray); }
.sport-multiselect__search { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); }
.sport-multiselect__count { flex: 0 0 auto; color: var(--secondary-purple); font-size: var(--fs-13); font-weight: 700; }
.sport-multiselect__list { max-height: 240px; overflow-y: auto; padding: 4px 10px 10px; }
.sport-multiselect__group strong { display: block; margin: 12px 0 6px; color: var(--text-muted); font-size: var(--fs-12); letter-spacing: .05em; text-transform: uppercase; }
.sport-multiselect__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; }
.sport-multiselect__item { display: flex; align-items: center; gap: 6px; padding: 3px 0; font-size: var(--fs-14); font-weight: 400; cursor: pointer; }

/* Athlete profile hero */
.athlete-hero { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 24px; }
.athlete-hero__banner { position: relative; height: 130px; background: radial-gradient(circle at 85% 15%, rgba(245,179,1,.55), transparent 45%), linear-gradient(120deg, #351C4F, #70449A 65%, #A56AD6); overflow: hidden; }
.athlete-hero__no { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 1; padding: 6px 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(20,8,32,.35); backdrop-filter: blur(2px); color: #fff; font-family: var(--font-display); font-size: var(--fs-16); font-weight: 800; letter-spacing: .06em; }
.athlete-hero__banner-icon { position: absolute; right: 24px; bottom: -22px; font-size: 7.5rem; line-height: 1; opacity: .16; }
.athlete-hero__inner { position: relative; z-index: 1; display: flex; gap: 24px; align-items: flex-start; padding: 0 28px 24px; margin-top: -56px; }
.athlete-hero__photo { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 0 0 3px #F5B301, var(--shadow-card); object-fit: cover; background: var(--soft-lavender); }
.athlete-hero__initials { flex: 0 0 132px; width: 132px; height: 132px; font-size: 2.6rem; border: 5px solid var(--white); box-shadow: 0 0 0 3px #F5B301, var(--shadow-card); }
.athlete-hero__main { flex: 1; min-width: 0; padding-top: 68px; }
.athlete-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--light-gray); }
.athlete-stat { text-align: center; padding: 16px 10px; border-right: 1px solid var(--light-gray); }
.athlete-stat:last-child { border-right: none; }
.athlete-stat strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary-purple); }
.athlete-stat span { font-size: var(--fs-12); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }

/* Achievements timeline */
.ach-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ach-timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#F5B301, #A56AD6); }
.ach-timeline__item { position: relative; padding: 0 0 22px 40px; }
.ach-timeline__item:last-child { padding-bottom: 0; }
.ach-timeline__dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--fs-12); background: linear-gradient(135deg, #FFE08A, #F5B301); box-shadow: 0 0 0 4px var(--white); }
.ach-timeline__year { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: rgba(245,179,1,.2); color: var(--text-dark); font-size: var(--fs-12); font-weight: 800; }
.ach-timeline__text { font-weight: 600; }

#nearMeResults .section-head { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--light-gray); }
#nearMeResults .section-head:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.near-me-card .profile-card__img { position: relative; }
.near-me-card__distance { position: absolute; top: 10px; right: 10px; background: rgba(53,28,79,.82); color: var(--white); font-size: var(--fs-12); font-weight: 700; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(2px); }

.tournament-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.tournament-card__img { aspect-ratio: 16/9; background: var(--soft-lavender); background-size: cover; background-position: center; }
.tournament-card__body { padding: 16px; }
.tournament-card__body h3 { font-size: var(--fs-16); }
.tournament-card__body .meta { font-size: var(--fs-13); color: var(--text-muted); }

/* ---------- Live scores / widgets / match cards ---------- */
.live-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.live-tabs button { background: var(--white); border: 1px solid var(--light-gray); padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: var(--fs-14); color: var(--text-muted); }
.live-tabs button.active { background: var(--primary-purple); border-color: var(--primary-purple); color: var(--white); }
.live-panel { display: none; }
.live-panel.active { display: block; }

.match-center { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.match-center__label { grid-column: 1 / -1; font-size: var(--fs-13); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--secondary-purple); }
.match-center__empty { grid-column: 1 / -1; color: var(--text-muted); }
.match-card { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); }
.match-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-13); color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.match-card__teams { display: flex; align-items: center; gap: 12px; }
.match-card__team { flex: 1; display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: var(--fs-15); }
.match-card__team strong { font-size: var(--fs-16); color: var(--dark-purple); }
.match-card__vs { color: var(--text-muted); font-size: var(--fs-13); font-weight: 700; }
.match-card__foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: var(--fs-13); color: var(--text-muted); border-top: 1px solid var(--light-gray); padding-top: 10px; }

.score-widget-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; margin-bottom: 20px; }
.score-widget-card__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--soft-lavender); }
.score-widget-card__brand { font-weight: 800; color: var(--primary-purple); font-size: var(--fs-14); }
.score-widget-card__sport { font-size: var(--fs-13); font-weight: 700; color: var(--secondary-purple); background: var(--white); padding: 3px 10px; border-radius: 999px; }
.score-widget-card__provider { padding: 8px 18px 0; font-size: var(--fs-13); color: var(--text-muted); }
.score-widget-card__body { padding: 14px 18px 18px; }
.score-widget-frame { width: 100%; }
.score-widget-card__foot { padding: 10px 18px; font-size: var(--fs-12); color: var(--text-muted); border-top: 1px solid var(--light-gray); }

/* ---------- Directory / filters ---------- */
.filter-bar { background: var(--white); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; align-items: end; }
.filter-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-13); font-weight: 600; color: var(--text-muted); }
.filter-field select, .filter-field input { padding: 9px 12px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); min-width: 160px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-card); max-width: 480px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: var(--fs-14); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); font-size: var(--fs-15); }
.form-note { font-size: var(--fs-13); color: var(--text-muted); margin-top: 14px; text-align: center; }
.form-note a { color: var(--secondary-purple); font-weight: 600; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: var(--fs-14); margin-bottom: 16px; }
.alert-error { background: #fdecea; color: #a12a24; }
.alert-success { background: #eaf7ee; color: #16713a; }
.alert-warning { background: #fff8e6; color: #8a6100; }

/* ---------- WhatsApp channel buttons ---------- */
.whatsapp-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: #25D366; color: #fff; font-weight: 700; font-size: var(--fs-15); border-radius: 999px; text-decoration: none; box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease; }
.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); background: #1ebd5a; }
.whatsapp-btn__icon { font-size: var(--fs-18); }

/* ---------- CTA / newsletter ---------- */
.cta-band { background: var(--dark-purple); color: var(--white); border-radius: var(--radius-md); padding: 40px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.8); max-width: 52ch; margin: 0 auto 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-purple); color: rgba(255,255,255,.78); padding: 48px 0 0; margin-top: 40px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-grid h4 { color: var(--white); font-size: var(--fs-15); margin-bottom: 14px; }
.footer-grid a { display: block; padding: 5px 0; font-size: var(--fs-14); color: rgba(255,255,255,.7); }
.footer-grid a:hover { color: var(--light-purple); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 32px; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: var(--fs-13); }
.footer-credit { font-weight: 600; color: rgba(255,255,255,.85); }

/* ---------- Rendered rich content (news articles, bios, descriptions) ---------- */
.rte-content { font-size: var(--fs-16); line-height: 1.7; color: var(--text-dark); }
.rte-content h2 { font-size: 1.4rem; margin: 1em 0 .4em; }
.rte-content h3 { font-size: var(--fs-18); margin: 1em 0 .4em; }
.rte-content p { margin: 0 0 1em; }
.rte-content ul, .rte-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.rte-content li { margin-bottom: .3em; }
.rte-content blockquote { border-left: 3px solid var(--light-purple); margin: 1em 0; padding: 6px 18px; color: var(--text-muted); font-style: italic; }
.rte-content a { color: var(--secondary-purple); text-decoration: underline; }
.rte-content a:hover { color: var(--primary-purple); }
.rte-content table.rte-table { border-collapse: collapse; margin: 1em 0; width: 100%; }
.rte-content table.rte-table td, .rte-content table.rte-table th { border: 1px solid var(--light-gray); padding: 8px 12px; }
.rte-content strong, .rte-content b { color: var(--dark-purple); }
.rte-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 1.2em auto; }
.rte-content blockquote.twitter-tweet,
.rte-content blockquote.instagram-media { border-left: none; font-style: normal; max-width: 550px; margin: 1.2em auto; }
.rte-content .fb-post { max-width: 550px; margin: 1.2em auto; }
.rte-content .embed-responsive { position: relative; width: 100%; max-width: 640px; margin: 1.2em auto; aspect-ratio: 16 / 9; }
.rte-content .embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }

/* ---------- Profile / academy gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }


/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0; font-size: var(--fs-13); }
.breadcrumbs ol { display: flex; align-items: center; gap: 0; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; list-style: none; }
.breadcrumbs li::marker { content: ''; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin: 0 8px; color: var(--light-purple); font-size: var(--fs-16); line-height: 1; font-weight: 700; }
.breadcrumbs li:first-child a::before { content: '⌂'; margin-right: 5px; font-size: var(--fs-14); position: relative; top: -1px; }
.breadcrumbs a { color: var(--secondary-purple); font-weight: 600; text-decoration: none; transition: color .15s ease; }
.breadcrumbs a:hover { color: var(--primary-purple); text-decoration: underline; }
.breadcrumbs li:last-child span { color: var(--text-dark); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Page header ---------- */
.page-header { background: var(--soft-lavender); padding: 32px 0; }
.page-header h1 { font-size: 1.9rem; margin: 0; }
.page-header p { color: var(--text-muted); margin: 6px 0 0; }

/* ---------- Directory profile detail page (Coach / Academy / Facility) ---------- */
.profile-header-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 22px; margin-bottom: 20px; }
.profile-header-photo { width: 110px; height: 110px; border-radius: var(--radius-md); object-fit: cover; background: var(--soft-lavender); flex-shrink: 0; }
.profile-header-photo--round { border-radius: 50%; }
.profile-header-main { flex: 1; min-width: 220px; }
.profile-header-main h1 { margin: 0 0 8px; font-size: 1.5rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-tag { background: var(--soft-lavender); color: var(--primary-purple); font-size: var(--fs-13); font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.profile-loc { color: var(--text-muted); font-size: var(--fs-14); display: flex; align-items: center; gap: 5px; margin-bottom: 14px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.profile-layout { display: grid; gap: 20px; grid-template-columns: 2fr 1fr; align-items: start; }
.profile-side-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 18px 20px; margin-bottom: 16px; }
.profile-side-card h4 { margin: 0 0 12px; font-size: var(--fs-13); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.profile-side-card p { margin: 0 0 8px; font-size: var(--fs-14); display: flex; gap: 8px; align-items: flex-start; }
.profile-side-card p:last-child { margin-bottom: 0; }

.profile-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-stat { background: var(--light-bg); border-radius: var(--radius-sm); text-align: center; padding: 14px 8px; }
.profile-stat strong { display: block; font-size: 1.5rem; color: var(--primary-purple); line-height: 1.1; }
.profile-stat span { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }

.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icons a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--soft-lavender); color: var(--primary-purple); font-size: var(--fs-16); transition: background .15s ease, color .15s ease; }
.social-icons a:hover { background: var(--primary-purple); color: var(--white); }

.profile-tabs-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.profile-tabs-nav { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--light-gray); }
.profile-tab-btn { display: inline-block; text-decoration: none; background: none; border: 0; padding: 14px 18px; font-weight: 700; font-size: var(--fs-14); color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; }
.profile-tab-btn.active { color: var(--primary-purple); border-bottom-color: var(--primary-purple); }
.profile-tab-btn:hover { color: var(--primary-purple); }
.profile-tab-panel { padding: 24px; }
.profile-tab-panel[hidden] { display: none; }

.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.showcase-badge { background: var(--light-bg); border-radius: var(--radius-sm); padding: 16px 12px; text-align: center; font-size: var(--fs-14); font-weight: 600; color: var(--text-dark); }
.showcase-badge__icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); background: var(--light-bg); border-radius: var(--radius-sm); }
.empty-state__icon { font-size: 1.8rem; display: block; margin-bottom: 8px; opacity: .6; }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-header-card { flex-direction: column; align-items: center; text-align: center; }
  .profile-actions { justify-content: center; }
  .news-hero-grid { grid-template-columns: 1fr; }
  .news-slideshow, .news-slideshow__track { min-height: 320px; }
  .sponsored-row { grid-template-columns: 1fr; }
}

/* ---------- Reviews & Ratings ---------- */
.reviews-section { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 26px; margin-top: 24px; }
.reviews-section h2 { margin: 0 0 4px; font-size: 1.3rem; }
.rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rating-summary .stars { color: var(--warning-gold); font-size: 1.3rem; letter-spacing: 2px; }
.rating-summary .rating-number { font-weight: 800; font-size: var(--fs-18); color: var(--text-dark); }
.rating-summary .rating-count { color: var(--text-muted); font-size: var(--fs-14); }

.review-form { background: var(--light-bg); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 20px; }
.star-rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin-bottom: 10px; }
.star-rating-input input { display: none; }
.star-rating-input label { font-size: 1.8rem; color: var(--star-empty, #b9aecb); cursor: pointer; padding: 0 2px; transition: color .1s ease; }
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--warning-gold); }

.review-item { padding: 16px 0; border-top: 1px solid var(--light-gray); }
.review-item:first-child { border-top: 0; padding-top: 0; }
.review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item__name { font-weight: 700; }
.review-item__stars { color: var(--warning-gold); letter-spacing: 1px; }
.review-item__date { color: var(--text-muted); font-size: var(--fs-13); margin-left: auto; }
.review-item__comment { color: var(--text-dark); font-size: var(--fs-15); margin: 0; }

/* ---------- "List your business for FREE" CTA banner ---------- */
.business-cta-banner { background: linear-gradient(120deg, var(--dark-purple), var(--primary-purple)); color: var(--white); padding: 40px 0; margin-top: 24px; text-align: center; border-radius: var(--radius-md); }
.business-cta-banner h2 { color: var(--white); margin: 0 0 10px; font-size: 1.5rem; }
.business-cta-banner p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 18px; font-size: var(--fs-15); line-height: 1.5; }
.business-cta-banner .btn-primary { background: var(--white); color: var(--primary-purple); }
.business-cta-banner .btn-primary:hover { background: var(--soft-lavender); }

/* ---------- Clickable match score cards (link to match.php) ---------- */
a.hero-strip-card, a.match-card { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease; cursor: pointer; }
a.hero-strip-card:hover, a.match-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* ---------- Official Rankings (ICC / FIFA / BWF / ATP / WTA etc.) ---------- */
.ranking-board__meta { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:12px; font-size:var(--fs-14); color:var(--text-muted); }
.ranking-table-wrap { overflow-x:auto; }
.ranking-table { width:100%; border-collapse:collapse; }
.ranking-table th { text-align:left; padding:10px 12px; font-size:var(--fs-12); text-transform:uppercase; letter-spacing:.03em; color:var(--text-muted); border-bottom:2px solid var(--light-gray); }
.ranking-table td { padding:10px 12px; font-size:var(--fs-15); border-bottom:1px solid var(--light-gray); }
.ranking-table tr:last-child td { border-bottom:0; }
.ranking-table .rank-cell { font-weight:800; color:var(--primary-purple); width:44px; }
.ranking-table tr:nth-child(-n+3) .rank-cell { color:var(--warning-gold); }
.ranking-table .trend-up { color:var(--success-green); font-weight:700; }
.ranking-table .trend-down { color:var(--live-red); font-weight:700; }
.ranking-table .trend-same { color:var(--text-muted); }

/* ---------- Infinite-scroll grids (sport page tabs) ---------- */
.infinite-grid .infinite-items { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.infinite-sentinel { grid-column: 1 / -1; text-align: center; padding: 18px; color: var(--text-muted); font-size: var(--fs-14); min-height: 1.2em; }
.sport-tab-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sport-tab-head .link-more { font-weight: 700; font-size: var(--fs-14); }
.player-search-box { margin-bottom: 16px; max-width: 340px; }
.player-search-box input { width: 100%; padding: 10px 14px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); font-size: var(--fs-15); }

/* ---------- Gallery lightbox (images + embedded YouTube videos) ---------- */
.gallery-item { position: relative; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--fs-18); pointer-events: none; }

.lightbox-overlay { position: fixed; inset: 0; background: rgba(20,10,30,.92); z-index: var(--z-overlay); display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 900px; max-height: 85vh; width: 100%; }
.lightbox-content img { width: 100%; height: 100%; max-height: 85vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox-content iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: var(--fs-18); cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }


/* =====================================================================
   Phase 4 — gallery thumbnails, multi-select pickers, visibility toggles,
   profile picture field
   ===================================================================== */

/* Gallery: small, uniform, rounded square thumbnails */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 14px 0; }
.gallery-grid img { aspect-ratio: 1 / 1; box-shadow: none; }
.gallery-item { aspect-ratio: 1 / 1; border-radius: 12px; box-shadow: 0 1px 4px rgba(53, 28, 79, .14); transition: transform .15s ease, box-shadow .15s ease; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(53, 28, 79, .22); }
.gallery-item img { border-radius: 0; }
.gallery-item__play { width: 34px; height: 34px; font-size: var(--fs-14); }
@media (min-width: 901px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }

/* My Listings gallery manager (this page does not load admin.css) */
.gallery-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.gallery-manager__item { position: relative; }
.gallery-manager__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--light-gray); display: block; }
.gallery-manager__item label { display: flex; align-items: center; gap: 4px; font-size: var(--fs-12); color: #c0392b; margin-top: 4px; font-weight: 600; cursor: pointer; }

/* Profile picture placeholder (private or missing photo) */
.profile-header-photo--placeholder { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #351C4F; background: linear-gradient(135deg, #f3e9fb, #d9c2f0); }
.profile-tag--spec { background: #fff4d1; color: #7a5600; }

/* Edit form: profile picture field */
.profile-photo-field__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-photo-field__preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--light-gray); flex-shrink: 0; }
.profile-photo-field__preview--empty { display: flex; align-items: center; justify-content: center; font-weight: 800; color: #351C4F; background: linear-gradient(135deg, #f3e9fb, #d9c2f0); }
.profile-photo-field__remove { display: flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 600; margin: 6px 0 2px; cursor: pointer; }

/* Public / Private switch that sits beside a field */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.field-head label { margin: 0; }
.vis-toggle { width: auto !important; min-width: 0; padding: 2px 22px 2px 8px !important; font-size: var(--fs-13); font-weight: 700; border-radius: 999px !important; background-color: var(--soft-lavender); color: var(--primary-purple); border: 1px solid #d9c2f0 !important; height: auto; cursor: pointer; }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }
.vis-grid__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-14); font-weight: 600; padding: 6px 10px; background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius-sm); }

/* Main category -> tick-box sports picker (athletes) */
.msp__hint { margin: 0 0 8px; font-size: var(--fs-14); color: var(--text-muted); }
.msp__panel { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); background: var(--white); max-height: 240px; overflow-y: auto; }
.msp__panel[hidden] { display: none; }
.msp__opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.msp__opt input { position: absolute; opacity: 0; pointer-events: none; }
.msp__opt span { display: inline-block; padding: 6px 14px; border: 1px solid #d9c2f0; border-radius: 999px; font-size: var(--fs-14); font-weight: 600; color: #4a2a6b; background: #faf6fe; transition: background .12s, color .12s, border-color .12s; }
.msp__opt:hover span { border-color: #A56AD6; }
.msp__opt input:checked + span { background: #563477; border-color: #563477; color: #fff; }
.msp__opt input:checked + span::before { content: "\2713\00a0"; }
.msp__opt input:focus-visible + span { outline: 2px solid #F5B301; outline-offset: 2px; }
.msp__chosen { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.msp__chip { border: 0; cursor: pointer; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-13); font-weight: 700; background: #fff4d1; color: #7a5600; }
.msp__chip:hover { background: #ffe9a3; }
.msp__none { font-size: var(--fs-13); color: var(--text-muted); }

/* Business sub-categories: tick-box chips */
.subcat-multi { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--light-gray); border-radius: var(--radius-sm); background: var(--white); max-height: 240px; overflow-y: auto; }
.subcat-multi__opt { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.subcat-multi__opt input { position: absolute; opacity: 0; pointer-events: none; }
.subcat-multi__opt span { display: inline-block; padding: 6px 14px; border: 1px solid #d9c2f0; border-radius: 999px; font-size: var(--fs-14); font-weight: 600; color: #4a2a6b; background: #faf6fe; transition: background .12s, color .12s, border-color .12s; }
.subcat-multi__opt:hover span { border-color: #A56AD6; }
.subcat-multi__opt input:checked + span { background: #563477; border-color: #563477; color: #fff; }
.subcat-multi__opt input:checked + span::before { content: "\2713\00a0"; }
.subcat-multi__opt input:focus-visible + span { outline: 2px solid #F5B301; outline-offset: 2px; }

@media (max-width: 640px) {
  .athlete-hero__no { right: 14px; font-size: var(--fs-14); padding: 4px 12px; }
}


/* ===== Video News page ===== */
.video-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.video-filter__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #d9c2f0; border-radius: 999px; background: #faf6fe; color: #4a2a6b; font-size: var(--fs-14); font-weight: 700; transition: background .12s, color .12s, border-color .12s; }
.video-filter__chip span { font-size: var(--fs-12); font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #efe3fa; color: #563477; }
.video-filter__chip:hover { border-color: #A56AD6; }
.video-filter__chip.is-active { background: #563477; border-color: #563477; color: #fff; }
.video-filter__chip.is-active span { background: rgba(255,255,255,.2); color: #fff; }
.video-featured { margin-bottom: 28px; }
.video-card--featured { display: grid; grid-template-columns: 1.6fr 1fr; align-items: stretch; }
.video-card--featured .podcast-card__thumb { aspect-ratio: auto; min-height: 280px; height: 100%; }
.video-card--featured .podcast-card__body { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.video-card--featured .podcast-card__body h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 10px; }
.video-card--featured .podcast-card__body p { font-size: var(--fs-15); }
.video-card__badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: #F5B301; color: #351C4F; font-size: var(--fs-12); font-weight: 800; }
.video-card__badge--short { background: #e8453c; color: #fff; }
.video-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: var(--fs-13); color: var(--text-muted); font-weight: 600; }
.video-card__sport { padding: 2px 9px; border-radius: 999px; background: var(--soft-lavender); color: var(--primary-purple); font-weight: 700; }
.video-more { text-align: center; margin-top: 28px; }
@media (max-width: 768px) {
  .video-card--featured { grid-template-columns: 1fr; }
  .video-card--featured .podcast-card__thumb { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .video-card--featured .podcast-card__body h3 { font-size: 1.2rem; }
}


/* ===== Header: highlighted Podcast menu (gold box) ===== */
.nav-menu > li > a.nav-highlight { margin: 7px 2px; padding: 7px clamp(8px, .9vw, 14px); border-radius: var(--radius-md); background: linear-gradient(135deg, #F5B301, #ffd45e); color: #351C4F; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); transition: transform .12s ease, box-shadow .12s ease; }
.nav-menu > li > a.nav-highlight:hover, .nav-menu > li.active > a.nav-highlight { background: linear-gradient(135deg, #ffc21f, #ffe08a); color: #351C4F; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .28); }
.mobile-drawer__panel a.nav-highlight { display: inline-block; margin: 8px 0; padding: 9px 18px; border: 0; border-radius: var(--radius-md); background: linear-gradient(135deg, #F5B301, #ffd45e); color: #351C4F; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* ===== Local Events page ===== */
.local-switch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.local-switch--tabs .local-switch__btn { font-size: var(--fs-16); padding: 10px 24px; }
.local-switch__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; border: 1px solid #d9c2f0; background: #faf6fe; color: #4a2a6b; font-weight: 700; font-size: var(--fs-14); transition: background .12s, color .12s, border-color .12s; }
.local-switch__btn span { font-size: var(--fs-12); padding: 1px 8px; border-radius: 999px; background: #efe3fa; color: #563477; }
.local-switch__btn:hover { border-color: #A56AD6; }
.local-switch__btn.is-active { background: #563477; border-color: #563477; color: #fff; }
.local-switch__btn.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }
.local-locate { max-width: 560px; margin: 0 auto 26px; text-align: center; }
.local-locate form { display: flex; gap: 8px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }


/* ===== Live Match video cards (home "Academy Videos", /live-local-match.php, profiles) ===== */
.lm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lm-grid--home { grid-template-columns: repeat(2, 1fr); }
/* Home "Academy Videos": one horizontal row of compact cards, as tall as the ad beside it. */
.home-videos { align-items: stretch; }
.home-videos__main { min-width: 0; display: flex; flex-direction: column; }
.lm-scroller { position: relative; margin-top: auto; }
.lm-scroller__track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.lm-scroller__track > .lm-card { flex: 0 0 236px; scroll-snap-align: start; }
.lm-scroller .lm-card__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: var(--fs-14); }
.lm-scroller .lm-card__body { padding: 10px 12px 12px; }
.lm-scroller .lm-card__body h3 { font-size: var(--fs-14); line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm-scroller .lm-card__meta { font-size: var(--fs-12); flex-wrap: nowrap; }
.lm-scroller .lm-card__meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lm-scroller__btn { position: absolute; top: 38%; transform: translateY(-50%); z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--white); color: var(--primary-purple); box-shadow: var(--shadow-hover); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.lm-scroller__btn--prev { left: -8px; }
.lm-scroller__btn--next { right: -8px; }
.lm-scroller__btn[disabled] { opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .lm-scroller__btn { display: none; } }
.lm-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.lm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.lm-card__thumb { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-color: #1c1129; cursor: pointer; }
.lm-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45)); }
.lm-card__play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #563477; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.lm-card__badge { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-12); font-weight: 800; letter-spacing: .03em; color: #fff; background: #5b4a7a; }
.lm-card__badge--live { background: #e8453c; animation: lmPulse 1.6s ease-in-out infinite; }
.lm-card__badge--upcoming { background: #F5B301; color: #351C4F; }
@keyframes lmPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,69,60,.5); } 50% { box-shadow: 0 0 0 6px rgba(232,69,60,0); } }
.lm-card__body { padding: 12px 14px 14px; }
.lm-card__body h3 { margin: 0 0 6px; font-size: var(--fs-16); line-height: 1.3; }
.lm-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--fs-13); color: var(--text-muted); font-weight: 600; }
.lm-card__sport { padding: 2px 9px; border-radius: 999px; background: var(--soft-lavender); color: var(--primary-purple); font-weight: 700; }
.lm-empty { padding: 36px 20px; text-align: center; border: 1px dashed #d9c2f0; border-radius: var(--radius-md); color: var(--text-muted); background: var(--white); }
.home-videos__ad .ad-slot { height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #A56AD6; border-radius: var(--radius-md); background: var(--white); color: var(--primary-purple); font-weight: 700; text-align: center; overflow: hidden; }
.home-videos__ad .ad-slot img { width: 100%; height: auto; display: block; }
.home-events--two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.home-events--two .card-grid { grid-template-columns: 1fr; }
@media (max-width: 900px) { .home-events--two { grid-template-columns: 1fr; } .lm-grid--home { grid-template-columns: 1fr; } .lm-scroller__track > .lm-card { flex-basis: 220px; } }


/* ===== Article: featured image caption + preferred-source button ===== */
.article-figure { margin: 0 0 8px; }
.article-figure__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); background: var(--soft-lavender); }
.article-figure__caption { margin-top: 8px; font-size: var(--fs-13); line-height: 1.45; color: var(--text-muted); }
.article-figure__text { display: block; }
.article-figure__credit { display: block; margin-top: 2px; font-weight: 700; font-size: var(--fs-13); letter-spacing: .01em; }
.preferred-source { margin: 14px 0 22px; }
.preferred-source__btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--light-gray); border-radius: 8px; background: var(--white); color: var(--text-dark); font-size: var(--fs-14); font-weight: 700; box-shadow: var(--shadow-card); transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.preferred-source__btn:hover { border-color: #A56AD6; box-shadow: var(--shadow-hover); transform: translateY(-1px); }


/* ===== Footer social icons ===== */
.footer-grid .footer-social { display: flex; flex-wrap: wrap; gap: 2px; margin: 14px 0 0 -6px; }
.footer-grid .footer-social a { display: inline-block; padding: 0; line-height: 0; border-radius: 50%; transition: transform .15s ease, filter .15s ease; }
.footer-grid .footer-social a:hover { transform: translateY(-3px) scale(1.08); filter: brightness(1.15); }
.footer-grid .footer-social img { display: block; width: 46px; height: 46px; }

/* Local tournament cards on phones: the generic 2-column card grid is far too narrow for these tall cards.
   Home = swipeable row; the full Local Tournaments page = one card per row. */
@media (max-width: 768px) {
  .card-grid.ltc-grid { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .ltc-grid > .local-tournament-card { flex: 0 0 min(300px, 84%); scroll-snap-align: start; }
  .card-grid.ltc-grid--stack { display: grid; grid-template-columns: 1fr; overflow: visible; padding: 0; }
  .card-grid.ltc-grid--stack > .local-tournament-card { flex: none; }
  .local-tournament-card .tournament-card__body { padding: 14px; }
  .local-tournament-card h3 { font-size: var(--fs-16); }
  .ltc__host { margin: 6px 0 10px; font-size: var(--fs-13); }
  .ltc__chip { font-size: var(--fs-12); padding: 3px 9px; }
  .ltc__status { font-size: var(--fs-12); padding: 3px 10px; top: 8px; left: 8px; }
  .ltc__sport { right: 8px; bottom: 8px; }
}


/* Home "For you": compact horizontal row of news cards */
.fy-scroller .lm-scroller__btn { top: 42%; }
.fy-track > .news-card { flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; }
.fy-track .news-card__img { height: 118px; }
.fy-track .news-card__body { padding: 10px 12px 12px; }
.fy-track .news-card__body h3 { font-size: var(--fs-14); line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fy-track .news-card__body p { display: none; }
@media (max-width: 600px) { .fy-track > .news-card { flex-basis: 70%; } }

/* News article: directory card ("Looking for badminton coaching?") */
.dir-cta { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px 22px; border-left: 4px solid var(--brand-primary, #563477); }
.dir-cta__title { font-size: 1.15rem; margin: 0 0 12px; }
.dir-cta__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dir-cta__link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-soft, #f5f0fb); color: inherit; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .15s ease, transform .15s ease; }
.dir-cta__link:hover { background: #ebe1f7; transform: translateY(-1px); }
.dir-cta__icon { font-size: 1.2rem; }
.dir-cta__arrow { margin-left: auto; color: var(--brand-primary, #563477); }
@media (max-width: 560px) { .dir-cta__links { grid-template-columns: 1fr; } }

/* Founding Athlete offer */
.founding-badge { background: linear-gradient(135deg, #fff3c4, #ffe08a); color: #6b4a00; border: 1px solid #f0d78c; }
.founding-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #fff3c4; color: #6b4a00; border: 1px solid #f0d78c; }
.founding-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-md); background: linear-gradient(135deg, #fff8e6, #fff); border: 1px solid #f0d78c; color: inherit; text-decoration: none; box-shadow: var(--shadow-card); }
.founding-banner__cta { font-weight: 700; color: var(--brand-primary, #563477); }
.strength { margin: 0 0 14px; padding: 12px 14px; background: var(--bg-soft, #f5f0fb); border-radius: var(--radius-md); }
.strength__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.strength__bar { height: 8px; border-radius: 99px; background: #e4daf1; overflow: hidden; margin-bottom: 6px; }
.strength__bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5b301, #563477); border-radius: 99px; }
.share-card { display: flex; gap: 16px; align-items: center; margin: 0 0 16px; padding: 14px; border: 1px solid #e4daf1; border-radius: var(--radius-md); }
.share-card__qr img { display: block; border-radius: 8px; background: #fff; }
.share-card__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.join-hero { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 24px; border-radius: var(--radius-md); background: linear-gradient(135deg, #fff8e6, #f5f0fb); border: 1px solid #f0d78c; margin-bottom: 24px; }
.join-hero h2 { margin: 0 0 8px; }
.join-hero__side { display: flex; gap: 12px; }
.join-count { text-align: center; padding: 12px 16px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); min-width: 110px; }
.join-count strong { display: block; font-size: 1.5rem; color: var(--brand-primary, #563477); }
.join-count small { color: var(--text-muted); }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.join-card { padding: 16px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.join-card span { font-size: 1.5rem; }
.join-card h3 { margin: 6px 0 4px; font-size: 1rem; }
.join-card p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.join-steps { padding-left: 20px; line-height: 1.8; }
@media (max-width: 720px) { .join-grid { grid-template-columns: 1fr; } .share-card { flex-direction: column; align-items: flex-start; } }

/* Join page: opportunities (compact, horizontal scroller) */
.opps { margin-bottom: 22px; padding: 18px 0 14px; border-radius: var(--radius-md); background: linear-gradient(135deg, #3b2354, #563477); color: #fff; text-align: center; overflow: hidden; }
.opps__eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #ffe08a; font-weight: 700; }
.opps__title { margin: 2px 0 0; color: #fff; font-size: 1.3rem; }
.opps__value { margin: 2px 0 12px; font-size: 1.15rem; color: #ffe08a; }
.opps__value strong { font-weight: 800; }
.opps__rail { position: relative; }
.opps__grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 52px 10px; scroll-padding-left: 52px; text-align: left; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.opps__grid::-webkit-scrollbar { display: none; }
.opp { flex: 0 0 200px; scroll-snap-align: start; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); transition: transform .15s ease, background .15s ease; }
.opp:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
.opp__icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.15rem; background: linear-gradient(135deg, #ffe08a, #f5b301); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.opp h3 { margin: 8px 0 3px; font-size: .98rem; color: #fff; }
.opp p { margin: 0; font-size: .8rem; line-height: 1.4; color: rgba(255,255,255,.82); }
.opps__nav { position: absolute; top: 50%; transform: translateY(-60%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #3b2354; font-size: 1.1rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 2; }
.opps__nav--prev { left: 8px; } .opps__nav--next { right: 8px; }
.opps__nav[disabled] { opacity: 0; pointer-events: none; }
.opps__note { margin: 4px 16px 0; font-size: .74rem; color: rgba(255,255,255,.65); }
@media (max-width: 640px) { .opps__grid { padding: 4px 16px 10px; scroll-padding-left: 16px; } .opps__nav { display: none; } .opp { flex-basis: 170px; } .opps__title { font-size: 1.15rem; } }

/* Join page scroller: cards are links; sub line */
a.opp { color: inherit; text-decoration: none; display: block; }
.opps__sub { margin: 4px 16px 8px; font-size: .8rem; color: rgba(255,255,255,.8); }
.opp__count { display: inline-block; margin-top: 8px; font-size: .74rem; color: #ffe08a; }
.opps__note a { color: #ffe08a; }

/* Opportunities pages */
.opp-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.opp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.opp-pill { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #e4daf1; color: inherit; text-decoration: none; font-weight: 600; font-size: .88rem; }
.opp-pill small { color: var(--text-muted); margin-left: 2px; }
.opp-pill.is-active, .opp-pill:hover { background: var(--brand-primary, #563477); color: #fff; border-color: transparent; }
.opp-pill.is-active small, .opp-pill:hover small { color: #ffe08a; }
.opp-total { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-md); background: #fff8e6; border: 1px solid #f0d78c; }
.opp-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.opp-hub__card { padding: 16px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; transition: transform .15s ease; }
.opp-hub__card:hover { transform: translateY(-2px); }
.opp-hub__card span { font-size: 1.6rem; }
.opp-hub__card h3 { margin: 6px 0 4px; }
.opp-hub__card p { margin: 0 0 8px; font-size: .88rem; color: var(--text-muted); }
.opp-hub__card b { font-size: .8rem; color: var(--brand-primary, #563477); }
.opp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.opp-card { display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: inherit; text-decoration: none; border-left: 4px solid var(--brand-primary, #563477); transition: transform .15s ease; }
.opp-card:hover { transform: translateY(-2px); }
.opp-card--closed { opacity: .65; border-left-color: #bbb; }
.opp-card__icon { font-size: 1.6rem; }
.opp-card__type { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--brand-primary, #563477); }
.opp-card h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.opp-card__by { margin: 0 0 8px; font-size: .84rem; color: var(--text-muted); }
.opp-card__chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.opp-card__chips span { padding: 2px 9px; border-radius: 999px; background: var(--bg-soft, #f5f0fb); font-size: .74rem; font-weight: 600; }
.opp-card__chips .opp-card__value { background: #fff3c4; color: #6b4a00; }
.opp-card__deadline { font-size: .8rem; font-weight: 600; color: #b3541e; }
.opp-card__deadline.is-closed { color: var(--text-muted); }
.opp-detail { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.opp-desc { line-height: 1.7; }
.opp-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; }
.opp-facts dt { color: var(--text-muted); font-size: .85rem; }
.opp-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 800px) { .opp-hub { grid-template-columns: 1fr 1fr; } .opp-list { grid-template-columns: 1fr; } .opp-detail { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .opp-hub { grid-template-columns: 1fr; } }

.join-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
.join-count--inline { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 8px 14px; }
.join-count--inline strong { display: inline; font-size: 1.25rem; }
.join-count--inline small { font-size: .85rem; }

.team-facts { margin: 16px 0 0; display: grid; gap: 8px; }
.team-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.team-facts dt { color: var(--text-muted); font-weight: 600; }
.team-facts dd { margin: 0; }
.team-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--border-color, #e3d9ee); }
.team-timeline li { position: relative; padding: 0 0 12px 14px; display: grid; grid-template-columns: 74px 1fr; gap: 10px; }
.team-timeline li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-primary, #563477); }
.team-timeline strong { color: var(--brand-primary, #563477); }
@media (max-width: 560px) { .team-facts > div { grid-template-columns: 1fr; gap: 0; } .team-timeline li { grid-template-columns: 1fr; gap: 0; } }

/* ---- Article inline images (figure + caption + credit) ---- */
.rte-content::after { content: ""; display: block; clear: both; }
.art-img { margin: 1.2em auto; max-width: 100%; }
.art-img img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm, 6px); margin: 0; }
.art-img--small  { width: 300px; }
.art-img--medium { width: 500px; }
.art-img--large  { width: 720px; }
.art-img--full   { width: 100%; }
.art-img--center { margin-left: auto; margin-right: auto; }
.art-img--left   { float: left;  margin: .3em 1.4em 1em 0; }
.art-img--right  { float: right; margin: .3em 0 1em 1.4em; }
.art-img figcaption { font-size: .86rem; line-height: 1.45; color: var(--text-muted); padding: 7px 2px 0; }
.art-img figcaption cite { display: block; font-style: normal; font-size: .78rem; opacity: .85; margin-top: 2px; }
@media (max-width: 640px) {
  .art-img, .art-img--left, .art-img--right { float: none; width: 100% !important; margin: 1em 0; }
}

/* ---- Referral card, Ambassador + Open-to-trials badges ---- */
.referral-card { background: linear-gradient(135deg,#f6f1ff,#fff); border: 1px solid #e3d8f7; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.referral-card__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.referral-card__link { display: flex; gap: 8px; flex-wrap: wrap; }
.referral-card__link input { flex: 1 1 220px; min-width: 0; border: 1px solid var(--light-gray); border-radius: 8px; padding: 7px 10px; font-size: .85rem; background: #fff; }
.referral-card__stats { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; color: var(--text-muted); }
.referral-card__stats b { color: var(--primary-purple); font-size: 1.05rem; }
.ambassador-badge { background: #fff3cd; color: #7a5600; border: 1px solid #f0d58a; }
.trials-badge { background: #e3f6ec; color: #17653a; border: 1px solid #b7e3c8; }
.trials-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: #17653a; background: #e3f6ec; border-radius: 999px; padding: 2px 9px; margin-top: 4px; }
.trials-toggle { background: #f3faf6; border: 1px solid #cfe9d9; border-radius: 10px; padding: 10px 12px; }

/* ---- Article: Key points box + pull quote ---- */
.rte-content aside.art-keypoints { background: #f6f1ff; border-left: 4px solid var(--secondary-purple); border-radius: 8px; padding: 12px 18px; margin: 0 0 1.4em; }
.rte-content aside.art-keypoints h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-purple); }
.rte-content aside.art-keypoints ul { margin: 0; padding-left: 1.2em; }
.rte-content aside.art-keypoints li { margin-bottom: .35em; }
.rte-content blockquote.art-pullquote { border: 0; border-top: 3px solid var(--secondary-purple); border-bottom: 3px solid var(--secondary-purple); margin: 1.4em 0; padding: 16px 8px; font-size: 1.35rem; line-height: 1.4; font-style: italic; font-weight: 700; color: var(--primary-purple); text-align: center; }
@media (max-width: 640px) { .rte-content blockquote.art-pullquote { font-size: 1.15rem; } }

/* Dashboard: Opportunities for you */
.dash-opps { margin-bottom: 24px; }
.dash-opps__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dash-opps__head h3 { margin: 0; }
.dash-opps__note { margin: 6px 0 12px; font-size: .88rem; }
.dash-opps__soon { margin: 0 0 12px; padding: 10px 14px; background: #fff8e6; border: 1px solid #f0d78c; border-radius: var(--radius-md); font-size: .9rem; }
.dash-opps__soon a { margin: 0 8px 0 6px; font-weight: 600; }
.dash-opps__tabs { margin-bottom: 14px; }
.dash-opps__tabs button.opp-pill { cursor: pointer; font-family: inherit; }
.dash-opps__panel[hidden] { display: none; }
.dash-opps__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee7f6; }
.dash-opps__cols h4 { margin: 0 0 8px; }
.dash-opps__list { list-style: none; margin: 0 0 10px; padding: 0; }
.dash-opps__list li { padding: 6px 0; border-bottom: 1px solid #f1ecf8; font-size: .92rem; }
.opp-card__match { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e7f6ec; color: #1e7a3c; font-size: .68rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .dash-opps .opp-list { grid-template-columns: 1fr; } }

/* Push notifications: bell, home banner, preferences */
.push-bell { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: inherit; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.push-bell[hidden] { display: none; }
.push-bell.is-on { background: rgba(255,255,255,.16); }
.push-bell--lg { padding: 10px 18px; font-size: .95rem; border-color: var(--brand-primary, #563477); color: var(--brand-primary, #563477); }
.push-bell--lg.is-on { background: #efe7f8; }
.push-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; padding: 12px 16px; background: linear-gradient(90deg, #f5effc, #fff8e6); border: 1px solid #e4daf1; border-radius: var(--radius-md); position: relative; }
.push-banner[hidden] { display: none; }
.push-banner__icon { font-size: 1.6rem; }
.push-banner__text { flex: 1 1 260px; font-size: .94rem; }
.push-banner__more { font-size: .86rem; font-weight: 600; }
.push-banner__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 4px; }
.push-state { font-weight: 600; margin: 0 0 12px; }
.push-state.is-on { color: #1e7a3c; }
.push-opt { display: block; padding: 6px 0; }
.push-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.push-sport { padding: 5px 12px; border: 1px solid #e4daf1; border-radius: 999px; background: #fff; font-size: .88rem; cursor: pointer; }
.push-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .3s; background: #2b1b3d; color: #fff; padding: 12px 18px; border-radius: 10px; max-width: 90vw; z-index: 9999; font-size: .92rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.push-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .push-bell__label { display: none; } }

/* Flash News strip */
.flash-strip { background: linear-gradient(90deg, #fff4e0, #ffe9e9); border-bottom: 1px solid #f0d2b0; }
.flash-strip[hidden] { display: none; }
.flash-strip__in { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.flash-strip__badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: #e53935; color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 4px; }
.flash-strip__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: flashPulse 1.2s infinite; }
@keyframes flashPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.flash-strip__stage { flex: 1; min-width: 0; overflow: hidden; }
.flash-strip__item { display: flex; align-items: center; gap: 8px; color: #2b1b3d; text-decoration: none; animation: flashIn .35s ease; }
.flash-strip__item b { font-size: 1.1rem; font-weight: 400; }
.flash-strip__item em { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-primary, #563477); background: #fff; border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }
.flash-strip__text { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-strip__item small { color: #7a6a88; font-size: .75rem; flex-shrink: 0; margin-left: auto; padding-left: 8px; }
a.flash-strip__item:hover .flash-strip__text { text-decoration: underline; }
@keyframes flashIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flash-strip__ctl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: .75rem; color: #7a6a88; }
.flash-strip__ctl button { background: #fff; border: 1px solid #e4d3c0; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: 1rem; line-height: 1; }
@media (max-width: 640px) { .flash-strip__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .flash-strip__item small { display: none; } }
@media (prefers-reduced-motion: reduce) { .flash-strip__dot, .flash-strip__item { animation: none; } }
.photo-credit{font-size:12px;opacity:.65;margin:16px 0 0;text-align:center}.photo-credit a{color:inherit;text-decoration:underline}
/* Open to Work */
.otw-tag{display:inline-block;font-size:.75rem;font-weight:700;color:#0b5394;background:#e3f0fc;border:1px solid #b9d7f3;border-radius:999px;padding:2px 9px;margin-top:4px}
.otw-checks{display:flex;flex-wrap:wrap;gap:8px 18px}.otw-checks label,.otw-check{display:inline-flex;gap:6px;align-items:center;font-weight:500;cursor:pointer}
.otw-form{max-width:760px}
.otw-filters{flex-wrap:wrap}.otw-age{display:flex;gap:6px}.otw-age input{width:70px}
.otw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px;margin-top:12px}
.otw-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.otw-card__top{display:flex;gap:12px;align-items:center}.otw-card h3{margin:0;font-size:1.05rem}.otw-card h3 a{color:inherit;text-decoration:none}
.otw-avatar{width:56px;height:56px;border-radius:50%;background:#efe9f8;overflow:hidden;display:flex;align-items:center;justify-content:center;font-weight:800;color:#5b2d91;flex:none}.otw-avatar img{width:100%;height:100%;object-fit:cover}
.otw-chips{display:flex;flex-wrap:wrap;gap:6px}.otw-chip{font-size:.75rem;font-weight:700;background:#efe9f8;color:#5b2d91;border-radius:999px;padding:3px 10px}.otw-chip--alt{background:#e3f6ec;color:#17653a}
.otw-pitch{margin:0;font-style:italic;font-size:.92rem}.otw-meta{margin:0;font-size:.85rem}
.otw-invite summary{list-style:none;cursor:pointer;display:inline-block}.otw-invite summary::-webkit-details-marker{display:none}.otw-invite form{margin-top:10px}
.otw-pager{display:flex;gap:12px;justify-content:center;align-items:center;margin-top:18px}
.otw-badge{background:#e3f0fc;color:#0b5394;border:1px solid #b9d7f3}
.otw-dash{display:flex;gap:14px 24px;align-items:center;flex-wrap:wrap;justify-content:space-between}.otw-dash>div{flex:1 1 260px}
/* News extras */
.news-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.news-chip{display:inline-block;font-size:.72rem;font-weight:700;border-radius:999px;padding:2px 9px;background:#f1f5f9;color:#334155}
.news-chip--spon{background:#fff4d6;color:#8a5a00;border:1px solid #f2d58a}.news-chip--src{background:#eef2ff;color:#3730a3}
.news-update-note{background:#f8fafc;border-left:4px solid #563477;border-radius:6px;padding:8px 12px;font-size:.92rem;margin:10px 0}
.news-spon-note{font-size:.82rem;color:#6b7280;border-top:1px solid #e5e7eb;padding-top:10px}
.news-share,.news-react{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:20px 0 6px}
.news-share__lbl{font-weight:700;font-size:.85rem;color:#563477;margin-right:2px}
.news-share__b,.news-react__b{border:1px solid #d9d2e6;background:#fff;color:#334155;border-radius:999px;padding:6px 14px;font-size:.85rem;font-weight:600;text-decoration:none;cursor:pointer;font-family:inherit}
.news-share__b:hover,.news-react__b:hover{border-color:#563477}.news-share__b--wa{background:#e7f8ee;border-color:#a8e0bd;color:#146c3a}
.news-react__b.is-on{background:#efe9f8;border-color:#563477}.news-react__b b{margin-left:4px}
.rte-content a.auto-link{text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
@media (max-width:600px){.news-share__b,.news-react__b{padding:8px 14px}}

.news-dates{display:flex;flex-wrap:wrap;gap:4px 16px;margin:6px 0 12px;font-size:.88rem;color:var(--text-muted)}
.news-dates span+span{color:var(--primary-purple);font-weight:600}
[data-theme="dark"] .news-dates span+span{color:var(--light-purple)}

/* Newsletter: optional sport choice inside the subscribe band */
.nl-sports{flex-basis:100%;max-width:420px;margin:10px auto 0;text-align:left}
.nl-sports summary{cursor:pointer;font-size:.9rem;font-weight:600;color:#fff;opacity:.92;list-style:none}
.nl-sports summary::-webkit-details-marker{display:none}
.nl-sports summary::after{content:" ▾"}
.nl-sports[open] summary::after{content:" ▴"}
.nl-sports__list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 6px}
.newsletter-form .nl-sports input{flex:none;min-width:0;width:auto;padding:0;margin:0;background:none;border:0}
.nl-sports__list label{display:inline-flex;white-space:nowrap;gap:6px;align-items:center;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:999px;padding:5px 12px;font-size:.85rem;cursor:pointer}
.nl-sports__list label:has(input:checked){background:#fff;color:#563477;font-weight:700}
.nl-sports small{color:#fff;opacity:.85}

.fact-box{margin:1.6em 0;padding:16px 18px;border-radius:12px;background:#f6f1fb;border-left:5px solid #563477}
.fact-box h3{margin:0 0 8px;font-size:1.05rem;color:#563477}
.fact-box ul{margin:0;padding-left:1.2em}.fact-box li{margin:0 0 6px}
[data-theme="dark"] .fact-box{background:#241a31;border-left-color:#a98bd0}[data-theme="dark"] .fact-box h3{color:#d3bff0}
.rte-content aside.art-keypoints h3{margin:0 0 8px;font-size:1.05rem;color:var(--primary-purple)}
.rte-content aside.fact-box{margin:1.6em 0}
.rte-content aside.art-keypoints h2{margin:0 0 8px;font-size:1.05rem;line-height:1.3;color:var(--primary-purple)}
.rte-content aside.art-keypoints.fact-box{background:#fff7e6;border-left-color:#e0a100}
.rte-content aside.art-keypoints.fact-box h2{color:#8a5a00}
[data-theme="dark"] .rte-content aside.art-keypoints.fact-box{background:#2b2410}[data-theme="dark"] .rte-content aside.art-keypoints.fact-box h2{color:#f0c966}
.topic-head{display:flex;gap:18px;align-items:center;margin-bottom:18px}.topic-head__img{width:96px;height:96px;border-radius:14px;object-fit:cover;flex:none;background:#f3f0f7}
.topic-kicker{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--primary-purple)}
.topic-head h1{margin:2px 0 6px;font-size:1.7rem;line-height:1.2}.topic-intro{margin:0 0 6px;color:var(--text-muted,#666)}.topic-meta{margin:0;font-size:.9rem;color:var(--text-muted,#666)}
.topic-block{margin:0 0 22px;padding:16px 18px;border-radius:12px;background:#f6f1fb;border-left:5px solid #563477}.topic-block h2{margin:0 0 8px;font-size:1.1rem;color:#563477}.topic-block h3{margin:12px 0 4px;font-size:.98rem}.topic-block ul{margin:0;padding-left:1.2em}.topic-block li{margin:0 0 6px}
.topic-facts{background:#fff7e6;border-left-color:#e0a100}.topic-facts h2{color:#8a5a00}.topic-src{font-size:.82rem;white-space:nowrap}
.topic-h2{margin:26px 0 12px;font-size:1.25rem}.topic-pager{display:flex;gap:14px;align-items:center;justify-content:center;margin:20px 0}
.topic-chips{display:flex;flex-wrap:wrap;gap:8px}.topic-chip{display:inline-block;padding:6px 12px;border-radius:999px;background:#f3f0f7;color:#563477;font-weight:600;font-size:.9rem;text-decoration:none}.topic-chip small{opacity:.7}
.news-more-on{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:18px 0}.news-more-on strong{font-size:.9rem}
[data-theme="dark"] .topic-block{background:#241a31;border-left-color:#a98bd0}[data-theme="dark"] .topic-block h2{color:#d3bff0}[data-theme="dark"] .topic-facts{background:#2b2410;border-left-color:#e0a100}[data-theme="dark"] .topic-facts h2{color:#f0c966}[data-theme="dark"] .topic-chip{background:#2b2238;color:#d3bff0}
@media(max-width:600px){.topic-head{flex-direction:column;align-items:flex-start}.topic-head h1{font-size:1.4rem}}
