/* One event as a poster-style card (js/eventcard.js), the same in every list of events: the red and blue
   fields cut on the poster's diagonal with the headliners' photos, their names over the gold VS, where the
   event stands on a tag, then its name, date and arena. And the sport page's banner, which turns the
   poster through the upcoming cards. */

.evcs { margin: 0 16px; align-items: stretch; }
.evcs.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px 10px; }
/* a row scrolls sideways on a phone, the next card peeking in */
.evcs.row { display: flex; gap: 10px; margin: 0; padding: 0 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: thin; }
.evcs.row > .evc { flex: 0 0 min(216px, 64vw); scroll-snap-align: start; }

.evc { display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.evc:hover .evc-nm { text-decoration: underline; text-underline-offset: 3px; }
.evc:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.evc.gold { border-color: var(--gold); }

.evc-art { position: relative; display: block; height: 128px; overflow: hidden; container-type: inline-size; background: linear-gradient(200deg, var(--blue-hi), var(--blue-lo)); }
.evc-r { position: absolute; inset: 0; clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%); background: linear-gradient(160deg, var(--red-hi), var(--red-deep)); }
.evc-b { position: absolute; inset: 0; }
.evc-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,.7)); pointer-events: none; }
.evc-art .sil, .evc-art .photo { position: absolute; bottom: 0; height: 92%; width: auto; max-width: 58%; pointer-events: none; }
.evc-art .sil { fill: rgba(0,0,0,.38); height: 80%; }
.evc-art .photo { object-fit: contain; filter: brightness(.62); }
.evc-r .sil, .evc-r .photo { left: -4%; object-position: bottom left; }
.evc-b .sil, .evc-b .photo { right: -4%; object-position: bottom right; }
.evc-vs { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 18px 6px 4px; color: #fff; font-style: italic; font-weight: 800; line-height: .9; letter-spacing: -.03em; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.evc-vs b { font-size: min(22px, calc(92cqw / var(--w, 6))); overflow-wrap: anywhere; }
.evc-vs em { margin: 3px 0; padding: 0 6px; font-size: 11px; background: var(--gold); color: var(--bg); transform: skew(-8deg); text-shadow: none; }

.evc-tag { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 7px; border-radius: 20px; font: 800 9.5px/1 var(--font-ui); letter-spacing: .12em; background: rgba(10,10,12,.82); color: var(--text); }
.s-open .evc-tag { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.gold .evc-tag { background: var(--gold); color: var(--bg); box-shadow: none; }
.s-live .evc-tag { background: var(--red); color: #fff; }
.s-live .evc-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #fff; vertical-align: 1px; }
.s-off .evc-tag { color: var(--muted); }
.s-off .evc-art { filter: saturate(.3) brightness(.7); }

.evc-txt { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px 11px; min-width: 0; }
.evc-nm { font: italic 800 14.5px/1.15 var(--font-poster); letter-spacing: -.01em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.evc-txt small { font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .1em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.evc-txt .evc-at { color: var(--muted-2); }
.evcs.grid .evc-nm { -webkit-line-clamp: 3; }
.evc-txt .evc-won { color: var(--text); }
.evc-won i { font-style: normal; margin-right: 6px; padding: 2px 6px; border-radius: 20px; background: var(--win-bg); color: var(--win); }

@media (min-width: 900px) {
  .hub > .evcs.row, .hub > .results > .evcs.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; padding: 0; overflow: visible; }
  .hub > .evcs.row > .evc { flex: none; }
  .evcs.grid { grid-template-columns: repeat(4, 1fr); }
  .hub > .evcs, .hub > .results > .evcs { max-width: 720px; margin-left: auto; margin-right: auto; }
  .evc-art { height: 140px; }
}

/* The banner ------------------------------------------------------------------------------- */

.rot { position: relative; overflow: hidden; }
.rot-track { display: flex; transition: transform .45s ease; will-change: transform; }
.rot-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.rot-poster h1 { pointer-events: none; }
.rot-poster .when { z-index: 3; }
.rot-go { position: absolute; inset: 0; z-index: 2; }
.rot-go:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.rot-dots { display: flex; }
.rot-nav { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 4px 0 0; }
.rot-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rot-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .2s, width .2s; }
.rot-dot[aria-current="true"]::before { width: 18px; border-radius: 4px; background: var(--gold); }
.rot-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 6px; }
.rot-count { margin-left: 6px; font: 700 10.5px/1 var(--font-ui); letter-spacing: .12em; color: var(--muted-2); }
.rot-arrow { position: absolute; top: 125px; z-index: 4; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,10,12,.7); color: #fff; font: 800 24px/1 var(--font-poster); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.rot-arrow.prev { left: 8px; }
.rot-arrow.next { right: 8px; }
.rot-arrow:focus-visible { outline: 2px solid var(--gold); }
.rot.still .rot-track { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .rot-track, .rot-dot::before { transition: none; }
}
@media (min-width: 900px) {
  .hub > .rot { max-width: none; }
  .rot-arrow { top: 170px; }
}
