/* Instagram reels on the sports home page (owner, 31 Oct 2026). Our own reels, played from this site: no Instagram
   script, no cookies. A tile plays a light, silent preview while it is on screen; a tap opens the reel with sound.
   To add a reel: put name.mp4 (720x1280, with sound), name-preview.mp4 (432x768, silent) and name.jpg (the cover)
   in assets/reels/, then copy one <button class="reel"> in index.html. Three reels show at a time (arrows on PC); phones swipe. */
/* the section is a panel in Instagram's colours (owner, 31 Oct 2026): violet behind the words, warming through pink
   to orange and yellow behind the reels; the same in dark mode */
html.v2 .reels{--ig:linear-gradient(140deg,#515bd4 0%,#8134af 24%,#dd2a7b 54%,#f58529 82%,#feda77 100%);display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2.4fr);align-items:center;gap:34px 64px;margin-block:20px 56px;padding:56px 64px;border-radius:36px;background:var(--ig);color:#fff}
html.v2 .reels .section-heading{display:block;margin:0}
html.v2 .reels .eyebrow.muted{background:#fff;color:#8134af}
html.v2 .reels .section-heading h2{color:#fff}
html.v2 .reels .v2-mk{--v-mark:rgba(255,255,255,.26)}
html.v2 .reels .section-heading p{max-width:27em;color:rgba(255,255,255,.92)}
html.v2 .reels-follow{display:inline-flex;align-items:center;gap:13px;margin-top:28px;padding:7px 24px 7px 7px;border-radius:999px;background:#fff;color:#2f2a2b;text-decoration:none;transition:box-shadow .2s}
html.v2 .reels-follow:hover{box-shadow:0 0 0 4px rgba(255,255,255,.35)}
html.v2 .reels-follow i{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 30% 107%,#feda77 0%,#f58529 30%,#dd2a7b 60%,#8134af 85%,#515bd4 100%);color:#fff}
html.v2 .reels-follow b{display:block;font:700 15.5px/1.25 var(--font)}
html.v2 .reels-follow small{display:block;font-size:13.5px;line-height:1.35;color:#6d6466}

html.v2 .reels-track{position:relative;min-width:0}
/* PC: arrows on the row's edges when there are more reels that way */
html.v2 .reels-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:48px;height:48px;margin-top:-24px;padding:0;border:0;border-radius:50%;background:#fff;color:#2f2a2b;cursor:pointer;box-shadow:0 0 0 4px rgba(255,255,255,.25)}
html.v2 .reels-arrow[hidden]{display:none}
html.v2 .reels-prev{left:-20px}
html.v2 .reels-next{right:-20px}
html.v2 .reels-row{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:6px;scrollbar-width:none;padding:6px;margin:-6px}
html.v2 .reels-row::-webkit-scrollbar{display:none}
/* PC and tablets: exactly three whole reels show inside the frame; the arrows move along three at a time */
html.v2 .reel{flex:0 0 auto;width:calc((100% - 36px) / 3);scroll-snap-align:start;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer}
html.v2 .reel:focus-visible{outline:0}
html.v2 .reel:focus-visible .reel-media{outline:3px solid #fff;outline-offset:3px}
html.v2 .reel-media{position:relative;display:block;aspect-ratio:9/16;border-radius:24px;overflow:hidden;background:rgba(255,255,255,.18)}
html.v2 .reel-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.v2 .reel-time,html.v2 .reel-sound{position:absolute;display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:rgba(22,18,19,.62);color:#fff;font:700 12px/1 var(--font)}
html.v2 .reel-time{top:12px;left:12px;padding:6px 10px}
html.v2 .reel-sound{left:12px;bottom:12px;padding:7px 11px 7px 9px;opacity:0;transition:opacity .3s}
html.v2 .reel.is-playing .reel-sound{opacity:1}
/* no play button: a reel plays by itself. If the phone won't start the video, its moving picture (name-loop.webp)
   plays in its place; with Data Saver the cover stays, with "Tap to watch" */
html.v2 .reel-anim{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.v2 .reel.is-playing .reel-anim{display:none}
html.v2 .reel.is-blocked .reel-sound{opacity:1}
html.v2 .reel-watch{position:absolute;left:12px;bottom:12px;display:none;padding:7px 12px;border-radius:999px;background:rgba(22,18,19,.62);color:#fff;font:700 12px/1 var(--font)}
html.v2 .reel.is-still .reel-watch{display:inline-flex}

@media (max-width:1050px){
  html.v2 .reels{grid-template-columns:minmax(0,1fr);padding:44px 40px}
  html.v2 .reels-follow{margin-top:22px}
}
@media (max-width:700px){
  /* the row runs to the panel's edges, and the next reel peeks in so it is clear the row scrolls */
  html.v2 .reels{gap:26px;margin-block:12px 40px;padding:30px 20px 26px;border-radius:28px}
  html.v2 .reels-row{gap:14px;margin:-6px -20px;padding:6px 20px;scroll-padding-inline:20px}
  html.v2 .reel{width:min(62vw,290px)}
  html.v2 .reels-arrow{display:none!important}
  html.v2 .reel-media{border-radius:20px}
}

/* ---- the reel with sound: full screen, the reel's own words left uncovered (arrows and buttons sit below it) ---- */
html:has(.reel-view[open]){overflow:hidden}
html.v2 .reel-view{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:#121011;color:#fff;overflow:hidden}
html.v2 .reel-view::backdrop{background:#121011}
html.v2 .reel-view[open]{display:flex;justify-content:center}
/* --h: the reel's height, leaving room for the arrows and buttons under it */
html.v2 .rlv-in{--h:min(calc(100vh - 170px),calc((100vw - 40px) * 16 / 9));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;height:100%;padding:20px}
@supports (height:100dvh){html.v2 .rlv-in{--h:min(calc(100dvh - 170px),calc((100vw - 40px) * 16 / 9))}}
html.v2 .rlv-stage{position:relative;flex:none;height:var(--h);width:calc(var(--h) * 9 / 16);border-radius:20px;overflow:hidden;background:#000;touch-action:pan-y;cursor:pointer;user-select:none;-webkit-user-select:none}
html.v2 .rlv-stage:focus{outline:0}
html.v2 .rlv-vid{display:block;width:100%;height:100%;object-fit:contain}
html.v2 .rlv-top{position:absolute;inset:0 0 auto;padding:10px 10px 0;background:linear-gradient(rgba(0,0,0,.42),transparent);pointer-events:none}
html.v2 .rlv-bar{display:block;height:3px;border-radius:3px;background:rgba(255,255,255,.3);overflow:hidden}
html.v2 .rlv-bar i{display:block;height:100%;width:100%;background:#fff;transform-origin:left;transform:scaleX(0)}
html.v2 .rlv-head{display:flex;align-items:center;gap:9px;padding:10px 0 14px 2px}
html.v2 .rlv-head img{width:30px;height:30px;border-radius:50%;background:#fff}
html.v2 .rlv-head b{margin-right:auto;font:700 14px/1 var(--font)}
html.v2 .rlv-head button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(22,18,19,.55);color:#fff;font:400 22px/1 var(--font);pointer-events:auto}
html.v2 .rlv-head button:focus-visible{outline:2px solid #fff;outline-offset:2px}
html.v2 .rlv-paused{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:rgba(22,18,19,.6);opacity:0;transition:opacity .2s;pointer-events:none}
html.v2 .reel-view.is-paused .rlv-paused{opacity:1}
html.v2 .reel-view .rlv-sound .is-off,html.v2 .reel-view.is-muted .rlv-sound .is-on{display:none}
html.v2 .reel-view.is-muted .rlv-sound .is-off{display:block}
html.v2 .rlv-foot{flex:none;display:grid;justify-items:center;gap:14px;width:max(min(100%,360px),calc(var(--h) * 9 / 16))}
html.v2 .rlv-nav{display:flex;align-items:center;gap:8px;font:700 13px/1 var(--font);color:rgba(255,255,255,.75)}
html.v2 .rlv-nav button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff}
html.v2 .rlv-nav button:hover{background:rgba(255,255,255,.22)}
html.v2 .rlv-act{display:flex;gap:10px;width:100%}
html.v2 .rlv-act :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:1 1 auto;min-height:48px;padding:0 16px;white-space:nowrap;border:0;border-radius:999px;font:700 15px/1 var(--font);text-decoration:none;cursor:pointer}
html.v2 .rlv-ig{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.45)}
html.v2 .rlv-ig:hover{box-shadow:inset 0 0 0 1.5px #fff}
html.v2 .rlv-act .rlv-quote{background:var(--v-red);color:#fff}
html.v2 .rlv-act .rlv-quote:hover{background:var(--v-red2)}
html.v2[data-theme=dark] .rlv-act .rlv-quote{background:#d1464a}
@media (max-width:700px){
  html.v2 .rlv-in{--h:min(calc(100vh - 140px - env(safe-area-inset-bottom)),calc((100vw - 24px) * 16 / 9));gap:12px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  @supports (height:100dvh){html.v2 .rlv-in{--h:min(calc(100dvh - 140px - env(safe-area-inset-bottom)),calc((100vw - 24px) * 16 / 9))}}
  html.v2 .rlv-stage{border-radius:16px}
  html.v2 .rlv-act :is(a,button){min-height:46px;font-size:14px;padding:0 12px}
}
@media (prefers-reduced-motion:reduce){
  html.v2 .reel-sound,html.v2 .rlv-paused{transition:none}
}

/* ---- catalogue cards (owner, 5 Nov 2026): the card's reel fades in over its photo while the card is pointed at (on
   phones, while it is in the middle of the screen; app.js). The clip is square, so it fills the photo's frame. ---- */
.product-photo .card-reel{position:absolute;inset:0;border-radius:inherit;opacity:0;transition:opacity .3s ease;pointer-events:none}
.product-photo.reel-on .card-reel{opacity:1}
.card-reel video,.card-reel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.card-reel.is-anim video{display:none}
