/* ============================================================================
   SportMyLife — Mobile Swipe Carousels, Compact Sport Categories Rail &
   Global Capsule-Free Visible Scroll Chevrons (‹ ›)
   Loaded LAST in index.html so all sitewide overrides apply cleanly.
   Preserves 100% of existing features (Law #17) & 320px–1600px symmetry (Law #18).
   ============================================================================ */

/* ============================================================================
   1. COMPACT SINGLE-ROW SWIPEABLE "SPORT CATEGORIES" RAIL ON HOME (/)
   ============================================================================ */
.sml-cat-rail-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  margin-bottom: 2px;
  box-sizing: border-box;
}

html body #world-sports-showcase .ws-cat-filter-rail,
html body #world-sports-showcase .sml-cat-rail-wrap > .ws-cat-filter-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding-block: 4px 6px !important;
  padding-inline-start: 2px !important;
  padding-inline-end: 32px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

html body #world-sports-showcase .ws-cat-filter-rail::-webkit-scrollbar {
  display: none;
}

html body #world-sports-showcase .ws-cat-filter-btn {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  max-width: none !important;
  padding: 5px 10px 5px 7px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(20, 34, 28, 0.92) 0%, rgba(11, 20, 16, 0.96) 100%);
  color: #edf5f0;
  font-size: 12.5px !important;
  font-weight: 700;
  line-height: 1.15 !important;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  text-align: center !important;
  scroll-snap-align: start;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

html[dir='rtl'] body #world-sports-showcase .ws-cat-filter-btn {
  padding: 5px 7px 5px 10px !important;
}

html body #world-sports-showcase .ws-cat-filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cat-accent, rgba(240, 195, 90, 0.72));
  background: linear-gradient(160deg, rgba(26, 46, 37, 0.96) 0%, rgba(14, 26, 21, 0.98) 100%);
  color: #ffffff;
}

html body #world-sports-showcase .ws-cat-filter-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #1d7047 0%, #10492d 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 5px 14px rgba(16, 185, 129, 0.26);
}

html[data-theme='light'] body #world-sports-showcase .ws-cat-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f2419;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-theme='light'] body #world-sports-showcase .ws-cat-filter-btn:hover {
  background: #f5faf7;
  border-color: var(--cat-accent, #059669);
  color: #091a11;
}

html[data-theme='light'] body #world-sports-showcase .ws-cat-filter-btn.is-active {
  border: 0 !important;
  background: linear-gradient(135deg, #165b37 0%, #0d3e24 100%) !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(246, 220, 147, 0.56),
    0 4px 12px rgba(13, 62, 36, 0.22);
}

html body #world-sports-showcase .ws-cat-filter-btn .ws-cat-filter-ico,
html body #world-sports-showcase .ws-cat-filter-btn .sml-icon3d-transparent {
  width: 21px !important;
  height: 21px !important;
  flex-shrink: 0;
  display: block;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body #world-sports-showcase .ws-cat-filter-btn > span,
html body #world-sports-showcase .ws-cat-filter-lbl {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  min-width: 0;
}

html body #world-sports-showcase .ws-cat-filter-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #f6dc93;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  box-sizing: border-box;
}

html body #world-sports-showcase .ws-cat-filter-btn.is-active .ws-cat-filter-cnt {
  background: rgba(246, 220, 147, 0.22);
  color: #fef3c7;
}

html[data-theme='light'] body #world-sports-showcase .ws-cat-filter-cnt {
  background: rgba(15, 58, 36, 0.09);
  color: #0f4c2f;
}

html[data-theme='light'] body #world-sports-showcase .ws-cat-filter-btn.is-active .ws-cat-filter-cnt {
  background: rgba(246, 220, 147, 0.24);
  color: #fef3c7;
}

/* Keep /sports #sdir-cat-tabs single-row swipeable cleanly on tablets & phones */
@media (max-width: 900px) {
  html body #sdir-cat-tabs.sdir-cat-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-block: 3px 5px;
    padding-inline-start: 2px;
    padding-inline-end: 32px;
  }

  html body #sdir-cat-tabs.sdir-cat-tabs::-webkit-scrollbar {
    display: none;
  }

  html body #sdir-cat-tabs .sdir-cat-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  html body #world-sports-showcase .ws-cat-filter-btn {
    min-height: 34px;
    padding: 4px 9px 4px 6px !important;
    font-size: 12px !important;
    gap: 6px;
  }

  html[dir='rtl'] body #world-sports-showcase .ws-cat-filter-btn {
    padding: 4px 6px 4px 9px !important;
  }

  html body #world-sports-showcase .ws-cat-filter-btn .ws-cat-filter-ico {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ============================================================================
   2. HORIZONTAL SWIPE CAROUSEL FOR WING CARDS (#world-cat-*) ON <= 900px
      Desktop (> 900px) keeps existing multi-column balanced grid 100% intact!
   ============================================================================ */
.sml-wing-rail-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px !important;
    padding: 4px 2px 10px !important;
    margin-bottom: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols::-webkit-scrollbar {
    display: none;
  }

  /* Single-wing category (e.g. #world-cat-esports_arena) fills cleanly with 0 empty gap */
  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols > .ws-live-col:only-child {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
}

/* Tablets (601px – 900px): 46% per wing card so 2 cards + next peek show cleanly */
@media (min-width: 601px) and (max-width: 900px) {
  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols > .ws-live-col {
    flex: 0 0 46% !important;
    width: 46% !important;
    max-width: 46% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
}

/* Phones (<= 600px): 84% per wing card so next card peeks clearly on the right */
@media (max-width: 600px) {
  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols > .ws-live-col {
    flex: 0 0 84% !important;
    width: 84% !important;
    max-width: 84% !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-col .ws-live-col-body {
    padding: 13px;
    min-width: 0;
    box-sizing: border-box;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-col .ws-live-col-halls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-col .ws-col-hall-btn {
    min-width: 0;
    max-width: 100%;
    padding: 6px 5px;
    font-size: 11px;
    box-sizing: border-box;
  }

  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-col .ws-live-col-cta {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================================================
   3. GLOBAL UNIFIED VISIBLE SCROLL ARROWS WITHOUT CAPSULES (‹ ›) SITEWIDE
      Overrides ALL .sml-scroll-arrow across Home, /live, /sports, /tickets & 30 wings.
   ============================================================================ */
html body .sml-scroll-wrap {
  position: relative;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

html body .sml-scroll-arrow,
html body .sml-scroll-wrap > .sml-scroll-arrow,
html body .tp-geo-rail-wrap .sml-scroll-arrow,
html body #live-hub .lh-controls .sml-scroll-arrow,
html body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow,
html body #tickets-page .tp-controls .sml-scroll-arrow,
html[data-theme='light'] body #live-hub .lh-controls .sml-scroll-arrow,
html[data-theme='light'] body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow,
html[data-theme='light'] body #tickets-page .tp-controls .sml-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  width: 28px !important;
  height: 34px !important;
  min-width: 28px;
  min-height: 34px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  color: rgba(246, 220, 147, 0.94) !important;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.78),
    0 0 12px rgba(0, 0, 0, 0.48) !important;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease, color 0.16s ease, transform 0.16s ease, text-shadow 0.16s ease;
}

html body .sml-scroll-arrow:hover,
html body .sml-scroll-wrap > .sml-scroll-arrow:hover,
html body .tp-geo-rail-wrap .sml-scroll-arrow:hover,
html body #live-hub .lh-controls .sml-scroll-arrow:hover,
html body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow:hover,
html body #tickets-page .tp-controls .sml-scroll-arrow:hover {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-shadow:
    0 0 14px rgba(246, 220, 147, 0.78),
    0 2px 8px rgba(0, 0, 0, 0.82) !important;
  transform: translateY(-50%) scale(1.12);
}

html body .sml-scroll-arrow:focus-visible {
  outline: 2px solid rgba(246, 220, 147, 0.85);
  outline-offset: 1px;
}

/* Light theme surfaces: crisp deep emerald-charcoal chevron + soft light halo */
html[data-theme='light'] body .sml-scroll-arrow,
html[data-theme='light'] body .sml-scroll-wrap > .sml-scroll-arrow {
  color: rgba(15, 58, 36, 0.92) !important;
  text-shadow:
    0 1px 6px rgba(255, 255, 255, 0.94),
    0 0 10px rgba(255, 255, 255, 0.78) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme='light'] body .sml-scroll-arrow:hover,
html[data-theme='light'] body .sml-scroll-wrap > .sml-scroll-arrow:hover {
  color: #092c1a !important;
  text-shadow:
    0 0 10px rgba(16, 185, 129, 0.32),
    0 1px 6px rgba(255, 255, 255, 0.98) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme='light'] body .sml-scroll-arrow:focus-visible {
  outline: 2px solid rgba(15, 58, 36, 0.82);
  outline-offset: 1px;
}

/* Dark 3D Consoles ALWAYS stay luminous gold #f6dc93 even in Light theme */
html[data-theme='light'] body #live-hub .lh-controls .sml-scroll-arrow,
html[data-theme='light'] body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow,
html[data-theme='light'] body #tickets-page .tp-controls .sml-scroll-arrow,
html[data-theme='light'] body #tickets-page .tp-hero .sml-scroll-arrow,
html[data-theme='light'] body #world-hero-banner .sml-scroll-arrow {
  color: #f6dc93 !important;
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.82),
    0 0 12px rgba(0, 0, 0, 0.52) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme='light'] body #live-hub .lh-controls .sml-scroll-arrow:hover,
html[data-theme='light'] body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow:hover,
html[data-theme='light'] body #tickets-page .tp-controls .sml-scroll-arrow:hover,
html[data-theme='light'] body #tickets-page .tp-hero .sml-scroll-arrow:hover,
html[data-theme='light'] body #world-hero-banner .sml-scroll-arrow:hover {
  color: #ffffff !important;
  text-shadow:
    0 0 14px rgba(246, 220, 147, 0.82),
    0 2px 8px rgba(0, 0, 0, 0.86) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Edge placement (LTR + RTL with directional flip) */
html body .sml-scroll-wrap > .sml-scroll-arrow.is-prev,
html body .tp-geo-rail-wrap .sml-scroll-arrow.is-prev {
  left: 0;
  right: auto;
}

html body .sml-scroll-wrap > .sml-scroll-arrow.is-next,
html body .tp-geo-rail-wrap .sml-scroll-arrow.is-next {
  right: 0;
  left: auto;
}

[dir='rtl'] .sml-scroll-wrap > .sml-scroll-arrow.is-prev,
[dir='rtl'] .tp-geo-rail-wrap .sml-scroll-arrow.is-prev {
  left: auto;
  right: 0;
  transform: translateY(-50%) scaleX(-1);
}

[dir='rtl'] .sml-scroll-wrap > .sml-scroll-arrow.is-next,
[dir='rtl'] .tp-geo-rail-wrap .sml-scroll-arrow.is-next {
  right: auto;
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}

[dir='rtl'] .sml-scroll-wrap > .sml-scroll-arrow:hover,
[dir='rtl'] .tp-geo-rail-wrap .sml-scroll-arrow:hover {
  transform: translateY(-50%) scaleX(-1) scale(1.12);
}

/* Hidden state when at scroll boundary or no overflow */
html body .sml-scroll-arrow.is-hidden,
html body .sml-scroll-wrap > .sml-scroll-arrow.is-hidden,
html body .tp-geo-rail-wrap .sml-scroll-arrow.is-hidden,
html body #live-hub .lh-controls .sml-scroll-arrow.is-hidden,
html body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow.is-hidden,
html body #tickets-page .tp-controls .sml-scroll-arrow.is-hidden,
html[data-theme='light'] body #live-hub .lh-controls.lh-controls-3d .sml-scroll-arrow.is-hidden,
html[data-theme='light'] body #tickets-page .tp-controls .sml-scroll-arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Guarantee touch & mobile NEVER hide arrows via display:none */
@media (hover: none), (max-width: 900px) {
  html body .sml-scroll-wrap > .sml-scroll-arrow:not(.is-hidden),
  html body .tp-geo-rail-wrap .sml-scroll-arrow:not(.is-hidden) {
    display: inline-flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ============================================================================
   4. SOFT EDGE FADE-OUT MASKS (LTR & RTL) + CLEAN END BREATHING ROOM
      Text & pills dissolve smoothly under ‹ › and NEVER visually collide.
   ============================================================================ */
html body .sml-scroll-wrap > .ws-cat-filter-rail,
html body .sml-scroll-wrap > .ws-news-sport-rail,
html body .sml-scroll-wrap > .ws-date-presets,
html body .sml-scroll-wrap > .ws-pill-rail,
html body .sml-scroll-wrap > .ws-timeline-scroll,
html body .sml-scroll-wrap > .sdir-cat-tabs,
html body .sml-scroll-wrap > .sdir-filter-row,
html body .sml-scroll-wrap > .sports-portal-filters,
html body .sml-scroll-wrap > .tp-sport-rail,
html body .sml-scroll-wrap > .tp-country-rail,
html body .sml-scroll-wrap > .tp-city-rail,
html body .sml-scroll-wrap > .lh-cat-tabs,
html body .sml-scroll-wrap > .lh-sport-subpills,
html body .sml-scroll-wrap > .lh-date-strip {
  padding-inline-end: 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

html body .sml-scroll-wrap > .ws-news-sport-rail::-webkit-scrollbar,
html body .sml-scroll-wrap > .ws-date-presets::-webkit-scrollbar,
html body .sml-scroll-wrap > .ws-pill-rail::-webkit-scrollbar,
html body .sml-scroll-wrap > .ws-timeline-scroll::-webkit-scrollbar,
html body .sml-scroll-wrap > .sports-portal-filters::-webkit-scrollbar {
  display: none;
}

/* Pill / Tab / Filter Rails — Next arrow visible (LTR) */
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap).has-scroll-next:not(.has-scroll-prev) > :not(.sml-scroll-arrow),
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap):has(> .sml-scroll-arrow.is-next:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-prev:not(.is-hidden))) > :not(.sml-scroll-arrow) {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
}

/* Pill / Tab / Filter Rails — Prev arrow visible (LTR) */
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap).has-scroll-prev:not(.has-scroll-next) > :not(.sml-scroll-arrow),
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap):has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-next:not(.is-hidden))) > :not(.sml-scroll-arrow) {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34px, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34px, #000 100%);
}

/* Pill / Tab / Filter Rails — Both Prev & Next visible (LTR + RTL symmetric) */
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap).has-scroll-prev.has-scroll-next > :not(.sml-scroll-arrow),
html body .sml-scroll-wrap:not(.sml-wing-rail-wrap):has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):has(> .sml-scroll-arrow.is-next:not(.is-hidden)) > :not(.sml-scroll-arrow) {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34px, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34px, #000 calc(100% - 34px), transparent 100%);
}

/* Pill / Tab / Filter Rails — RTL directional masks */
[dir='rtl'] .sml-scroll-wrap:not(.sml-wing-rail-wrap).has-scroll-next:not(.has-scroll-prev) > :not(.sml-scroll-arrow),
[dir='rtl'] .sml-scroll-wrap:not(.sml-wing-rail-wrap):has(> .sml-scroll-arrow.is-next:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-prev:not(.is-hidden))) > :not(.sml-scroll-arrow) {
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(270deg, #000 0%, #000 calc(100% - 34px), transparent 100%);
}

[dir='rtl'] .sml-scroll-wrap:not(.sml-wing-rail-wrap).has-scroll-prev:not(.has-scroll-next) > :not(.sml-scroll-arrow),
[dir='rtl'] .sml-scroll-wrap:not(.sml-wing-rail-wrap):has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-next:not(.is-hidden))) > :not(.sml-scroll-arrow) {
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 34px, #000 100%);
  mask-image: linear-gradient(270deg, transparent 0%, #000 34px, #000 100%);
}

/* Wing Card Carousels (<= 900px) — Soft edge fade that keeps peeking card clearly visible */
@media (max-width: 900px) {
  html body .sml-wing-rail-wrap.has-scroll-next:not(.has-scroll-prev) > .ws-live-columns.ws-cat-grid-cols,
  html body .sml-wing-rail-wrap:has(> .sml-scroll-arrow.is-next:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-prev:not(.is-hidden))) > .ws-live-columns.ws-cat-grid-cols {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
  }

  html body .sml-wing-rail-wrap.has-scroll-prev:not(.has-scroll-next) > .ws-live-columns.ws-cat-grid-cols,
  html body .sml-wing-rail-wrap:has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-next:not(.is-hidden))) > .ws-live-columns.ws-cat-grid-cols {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 100%);
  }

  html body .sml-wing-rail-wrap.has-scroll-prev.has-scroll-next > .ws-live-columns.ws-cat-grid-cols,
  html body .sml-wing-rail-wrap:has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):has(> .sml-scroll-arrow.is-next:not(.is-hidden)) > .ws-live-columns.ws-cat-grid-cols {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
  }

  [dir='rtl'] .sml-wing-rail-wrap.has-scroll-next:not(.has-scroll-prev) > .ws-live-columns.ws-cat-grid-cols,
  [dir='rtl'] .sml-wing-rail-wrap:has(> .sml-scroll-arrow.is-next:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-prev:not(.is-hidden))) > .ws-live-columns.ws-cat-grid-cols {
    -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
    mask-image: linear-gradient(270deg, #000 0%, #000 calc(100% - 28px), rgba(0, 0, 0, 0.14) 100%);
  }

  [dir='rtl'] .sml-wing-rail-wrap.has-scroll-prev:not(.has-scroll-next) > .ws-live-columns.ws-cat-grid-cols,
  [dir='rtl'] .sml-wing-rail-wrap:has(> .sml-scroll-arrow.is-prev:not(.is-hidden)):not(:has(> .sml-scroll-arrow.is-next:not(.is-hidden))) > .ws-live-columns.ws-cat-grid-cols {
    -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 100%);
    mask-image: linear-gradient(270deg, rgba(0, 0, 0, 0.14) 0%, #000 28px, #000 100%);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html body #world-sports-showcase .ws-cat-filter-rail,
  html body #world-sports-showcase .ws-cat-section[id^="world-cat-"] .ws-live-columns.ws-cat-grid-cols {
    scroll-behavior: auto;
  }

  html body .sml-scroll-arrow {
    transition: none !important;
  }
}
