body.jl-sports-home-experience {
  background: #020813;
}

body.jl-sports-home-experience main {
  overflow: visible;
}

body.jl-sports-home-experience main > section[aria-label="Choose sports date"] {
  display: none !important;
}

body.jl-sports-home-experience main section > div.overflow-x-auto,
body.jl-sports-home-experience main section > div.no-scrollbar {
  display: flex !important;
  grid-auto-flow: unset !important;
  grid-template-columns: none !important;
  gap: 1rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0.35rem 0.2rem 1.25rem !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.jl-sports-home-experience main section > div.overflow-x-auto::-webkit-scrollbar,
body.jl-sports-home-experience main section > div.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.jl-sports-home-experience main section > div.overflow-x-auto > button {
  flex: 0 0 var(--jl-event-card-w, 15rem) !important;   /* Sports event cards are text-heavy: their OWN width token (jl-ui.js), not the poster-rail one */
  min-height: 0 !important;
  scroll-snap-align: start;
  border-radius: 1.15rem !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

body.jl-sports-home-experience main section[aria-labelledby="top-ten-games-title"] > div:last-child > button {
  flex-basis: var(--jl-event-card-w, 15rem) !important;
  max-width: none !important;
  min-height: 0 !important;
}

body.jl-live-cinematic {
  background: #020813;
}

body.jl-live-cinematic .jl-live-hero {
  min-height: min(78vh, 54rem) !important;
  isolation: isolate;
}

body.jl-live-cinematic .jl-live-hero > img {
  animation: jl-sports-hero-reveal 700ms ease-out;
}

body.jl-live-cinematic .jl-live-hero > img.hero-logo {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: .68;
  filter: saturate(.92) contrast(1.06);
}

.jl-live-hero-controls {
  position: absolute;
  right: clamp(1.5rem, 5vw, 7rem);
  bottom: 3.75rem;
  z-index: 40;
  display: flex;
  gap: .55rem;
}

.jl-live-hero-controls button {
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(2,8,19,.82);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

body.jl-cinematic-library .jl-library-hero {
  min-height: min(82vh, 56rem) !important;   /* phones / tablets */
  isolation: isolate;
}
@media (min-width: 768px) {
  /* owner 2026-09-21: the hero fills the screen (reference design); the first shelf rides up over its bottom edge (see jl-ui.js) */
  body.jl-cinematic-library .jl-library-hero { min-height: 100vh !important; }
}

.jl-library-hero-controls {
  position: absolute;
  right: clamp(1.5rem, 5vw, 7rem);
  bottom: 4rem;
  z-index: 40;
  display: flex;
  gap: .55rem;
}

.jl-library-hero-controls button {
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(2,8,19,.82);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

body.jl-cinematic-library [class*="overflow-x"],
body.jl-cinematic-library [class*="no-scrollbar"] {
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

/* Cards normalised by jl-ui.js ([data-jl-card]) take their size from the ONE shared --jl-card-w token, not from this legacy rule. */
body.jl-cinematic-library [class*="overflow-x"] > a:not([data-jl-card]),
body.jl-cinematic-library [class*="overflow-x"] > button:not([data-jl-card]),
body.jl-cinematic-library [class*="no-scrollbar"] > a:not([data-jl-card]),
body.jl-cinematic-library [class*="no-scrollbar"] > button:not([data-jl-card]) {
  min-width: clamp(15rem, 18vw, 20rem) !important;
  scroll-snap-align: start;
}

body.jl-live-cinematic .rail,
body.jl-live-cinematic .network-grid {
  gap: 1rem !important;
}

body.jl-live-cinematic .jl-live-legacy-shelf {
  display: none !important;
}

body.jl-live-cinematic .rail > button:not(.program-card),
body.jl-live-cinematic .network-grid > button:not(.program-card) {
  /* size now comes from the shared --jl-card-w token (jl-ui.js); the old 27vw x 17rem landscape tiles are retired */
  border-radius: 1.15rem !important;
  box-shadow: 0 22px 55px rgba(0,0,0,.38);
}

body.jl-live-cinematic .category-rail > button {
  min-width: clamp(11rem, 14vw, 15rem) !important;
  min-height: 8.5rem !important;
  padding: 1rem !important;
  border-radius: 1rem !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

#jl-continuity-player {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 99999;
  width: min(30rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid rgba(103,232,249,.42);
  border-radius: 1rem;
  background: #020813;
  box-shadow: 0 30px 90px rgba(0,0,0,.72);
}

.jl-continuity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding: .55rem .75rem .55rem 1rem;
  color: white;
}

.jl-continuity-bar button {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: transparent;
  color: white;
  padding: .4rem .7rem;
  cursor: pointer;
}

.jl-continuity-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

body.jl-sports-home-experience main section[aria-labelledby="top-ten-games-title"] > div:last-child > button > div {
  width: 82% !important;
  border-radius: 1rem !important;
}

body.jl-sports-home-experience .jl-weekly-rank-hidden {
  display: none !important;
}

.jl-sports-show-more {
  display: block;
  min-width: 12.5rem;
  min-height: 3.25rem;
  margin: 0.75rem auto 0;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.14);
  color: #cffafe;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.jl-sports-show-more:hover,
.jl-sports-show-more:focus-visible {
  border-color: #67e8f9;
  background: rgba(8, 145, 178, 0.3);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

body.jl-sports-home-experience main section > div.overflow-x-auto > button:hover,
body.jl-sports-home-experience main section > div.overflow-x-auto > button:focus-visible,
body.jl-sports-home-experience main section > div.no-scrollbar > button:hover,
body.jl-sports-home-experience main section > div.no-scrollbar > button:focus-visible {
  border-color: rgba(103, 232, 249, 0.8) !important;
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.2);
  transform: translateY(-4px) scale(1.01);
  outline: none;
}

body.jl-sports-home-experience .jl-sports-hero {
  min-height: min(78vh, 53rem) !important;
  isolation: isolate;
}

body.jl-sports-home-experience .jl-sports-hero > img {
  animation: jl-sports-hero-reveal 700ms ease-out;
}

@keyframes jl-sports-hero-reveal {
  from { opacity: 0.25; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.jl-sports-hero-controls {
  position: absolute;
  right: clamp(1.5rem, 5vw, 7rem);
  bottom: 3.75rem;
  z-index: 40;
  display: flex;
  gap: 0.55rem;
}

.jl-sports-hero-controls button,
.jl-sports-rail-controls button {
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(2, 8, 19, 0.78) !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem !important;
  backdrop-filter: blur(14px);
}

.jl-sports-hero-controls button:hover,
.jl-sports-hero-controls button:focus-visible,
.jl-sports-rail-controls button:hover,
.jl-sports-rail-controls button:focus-visible {
  border-color: #67e8f9;
  color: #67e8f9;
  outline: none;
}

.jl-sports-rail-controls {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.jl-sports-rail-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.jl-sports-home-experience main > div:first-child,
body.jl-sports-home-experience main > section[aria-label="Choose sports date"] {
  border-color: rgba(255, 255, 255, 0.11) !important;
  background: rgba(2, 8, 19, 0.88) !important;
  box-shadow: 0 20px 65px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px);
}

@media (max-width: 767px) {
  body.jl-sports-home-experience main section > div.overflow-x-auto > button {
    flex-basis: 84vw !important;
    min-height: 16rem !important;
  }

  body.jl-sports-home-experience main section[aria-labelledby="top-ten-games-title"] > div:last-child > button {
    flex-basis: 76vw !important;
    min-height: 26rem !important;
  }

  .jl-sports-hero-controls {
    bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jl-sports-home-experience .jl-sports-hero > img {
    animation: none;
  }

  body.jl-sports-home-experience main section > div.overflow-x-auto,
  body.jl-sports-home-experience main section > div.no-scrollbar {
    scroll-behavior: auto;
  }
}
