/* Bevel, after dark: soft capsules, bento surfaces, tight 600-weight display type. */
:root {
  --canvas: #101115;
  /* surfaces are derived from the canvas, so a theme only has to set --canvas */
  --surface: color-mix(in srgb, var(--canvas) 96%, #fff);
  --surface-2: color-mix(in srgb, var(--canvas) 92.5%, #fff);
  --charcoal: color-mix(in srgb, var(--canvas) 94%, #fff);
  --line: rgba(235, 240, 248, 0.08);
  --ink: #ebf0f8;
  --body: #8d9096;
  --gold: #ffca00;
  /* theme accent: set per casino from the dashboard (WBR.applyTheme) */
  --accent: #ffca00;
  --accent-2: #e9b100;
  --accent-rgb: 255 202 0;
  --on-accent: #111214;
  --green: #31ce01;
  --blue: #415eee;
  --lilac: #b9a6ff;
  --coral: #ffab94;
  --metal-gold: #f3c54b;
  --metal-silver: #cfd3da;
  --metal-bronze: #d39360;
  --hero-night: linear-gradient(180deg, color-mix(in srgb, var(--canvas) 80%, #3a5ab0) 0%, color-mix(in srgb, var(--canvas) 94%, #fff) 55%, color-mix(in srgb, var(--canvas) 90%, var(--accent)) 100%);
  --shadow-float: rgba(0, 0, 0, 0.6) 0 18px 40px -18px;
  --shadow-inset: rgba(255, 255, 255, 0.07) 0 1px 0 0 inset;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --r-card: 28px;
  --r-img: 20px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 18px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.num { font-variant-numeric: tabular-nums; }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.page { position: relative; z-index: 1; }

/* ---------- type ---------- */
.display, .h-hero, .h-card, .h-label {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-hero { font-size: clamp(44px, 8.4vw, 96px); line-height: 0.96; letter-spacing: -0.035em; }
.display { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.h-card { font-size: clamp(28px, 3.4vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.h-label { font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; }
.lede { color: var(--body); font-size: clamp(18px, 2vw, 22px); line-height: 1.35; max-width: 46ch; margin: 0 auto; }
.muted { color: var(--body); }
.small { font-size: 14px; }

/* ---------- capsule nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 20;
  width: min(1080px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 32px;
  box-shadow: var(--shadow-inset), rgba(0,0,0,.4) 0 8px 30px -12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(235,240,248,.06); }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  border-radius: 128px; padding: 10px 18px;
  font-weight: 500; font-size: 16px; line-height: 1.4;
  transition: transform .15s ease, background .2s, box-shadow .2s;
}
.pill:active { transform: scale(.97); }
.pill-light { background: var(--ink); color: var(--charcoal); }
.pill-light:hover { background: #fff; box-shadow: 0 0 0 6px rgba(235,240,248,.08); }
.pill-dark { background: var(--charcoal); color: var(--ink); box-shadow: var(--shadow-inset), 0 0 0 1px var(--line); }
.pill-dark:hover { background: var(--surface-2); }
.pill-lg { padding: 14px 24px; font-size: 17px; }
.pill-accent { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-weight: 600; box-shadow: 0 10px 30px -12px rgb(var(--accent-rgb) / .7); }
.pill-accent:hover { filter: brightness(1.06); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .14), 0 10px 30px -12px rgb(var(--accent-rgb) / .7); }
.pill .code { font-weight: 600; letter-spacing: .02em; }
.pill svg { width: 18px; height: 18px; flex: none; }

/* ---------- layout ---------- */
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin: 0 auto; }
section { padding-block: 80px; }
.section-head { text-align: center; display: grid; gap: 16px; margin-bottom: 48px; }

/* ---------- hero ---------- */
.hero { padding: 16px 16px 0; }
.hero-field {
  position: relative; overflow: hidden;
  border-radius: 40px;
  background: var(--hero-night);
  box-shadow: var(--shadow-inset);
  padding: 140px var(--gutter) 0;
  text-align: center;
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; z-index: -2; opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); pointer-events: none; }
.hero-art[hidden] { display: none; }
.hero-field::before { /* soft spotlight behind the coins */
  content: ""; position: absolute; left: 50%; bottom: -10%; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .18), transparent 70%);
  z-index: -1;
}
.partner-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--body); font-weight: 500; font-size: 16px; margin-bottom: 24px; }
.partner-tag b { color: var(--ink); font-weight: 600; }
.partner-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: var(--charcoal); font: 700 11px var(--font-display); letter-spacing: -.02em; }
.hero h1 { max-width: 12ch; margin-inline: auto; }
.hero .lede { margin-top: 24px; }
.hero .lede [data-p="code"] { color: var(--accent); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.live-strip { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--body); font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(49,206,1,.6); animation: pulse 2s infinite; }
.live-dot.off { background: var(--body); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(49,206,1,0); } 100% { box-shadow: 0 0 0 0 rgba(49,206,1,0); } }

.coin-stage { position: relative; height: clamp(260px, 38vw, 440px); margin-top: 48px; perspective: 1200px; }
.coin {
  position: absolute; bottom: -8%;
  width: var(--s); aspect-ratio: 1;
  left: calc(50% + var(--x)); translate: -50% 0;
  background: none; border: 0; padding: 0; cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
}
.coin img { width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.coin.gold { --s: clamp(220px, 34vw, 420px); --x: 0px; z-index: 3; bottom: -14%; }
.coin.silver { --s: clamp(150px, 22vw, 280px); --x: clamp(-300px, -24vw, -150px); z-index: 2; }
.coin.bronze { --s: clamp(150px, 22vw, 280px); --x: clamp(150px, 24vw, 300px); z-index: 2; }
.coin.spin { animation: coinspin .9s cubic-bezier(.2,.7,.2,1); }
@keyframes coinspin { from { transform: rotateY(0); } to { transform: rotateY(720deg); } }

/* ---------- leaderboard ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tab { border: 0; cursor: pointer; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--body); font-weight: 500; font-size: 15px; box-shadow: 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--charcoal); box-shadow: none; }
.tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; margin-top: 120px; }
.place {
  position: relative; text-align: center;
  background: var(--surface); border-radius: var(--r-card);
  padding: 112px 24px 28px;
  box-shadow: var(--shadow-inset);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.place:hover { transform: translateY(-6px); }
.place.first { padding-top: 136px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--accent)) 0%, var(--surface) 70%); }
.place .medal { position: absolute; left: 50%; top: 0; width: 150px; translate: -50% -55%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.place.first .medal { width: 190px; }
.place.spin .medal { transform: rotateY(720deg); }
.place .rank { font: 600 14px var(--font); color: var(--body); }
.place .who { font: 600 24px/1.1 var(--font-display); letter-spacing: -0.01em; margin: 6px 0 16px; overflow-wrap: anywhere; }
.place .wager { color: var(--body); font-size: 15px; }
.place .prize { font: 600 clamp(32px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.03em; margin-top: 16px; }
.place.first .prize { color: var(--metal-gold); }
.place.second .prize { color: var(--metal-silver); }
.place.third .prize { color: var(--metal-bronze); }
.place.empty .who { color: var(--body); }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-inset); display: grid; gap: 12px; align-content: start; min-height: 200px; }
.tile .big { font: 600 clamp(30px, 3.4vw, 40px)/1 var(--font-display); letter-spacing: -0.03em; }
.tile-row { display: flex; align-items: center; gap: 20px; }
.ring { width: 104px; height: 104px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: rgba(235,240,248,.07); }
.ring .bar { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); }
.clock { display: flex; gap: 14px; }
.clock div { display: grid; }
.clock b { font: 600 32px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.clock span { color: var(--body); font-size: 13px; margin-top: 6px; }
.dist { display: flex; align-items: end; gap: 4px; height: 72px; }
.dist i { flex: 1; border-radius: 6px 6px 3px 3px; background: rgb(var(--accent-rgb) / .25); min-height: 4px; transition: height .8s cubic-bezier(.2,.7,.2,1); }
.dist i:first-child { background: var(--metal-gold); }
.dist i:nth-child(2) { background: var(--metal-silver); }
.dist i:nth-child(3) { background: var(--metal-bronze); }

.table-card { background: var(--surface); border-radius: var(--r-card); margin-top: 16px; box-shadow: var(--shadow-inset); overflow: hidden; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--charcoal); border-radius: 999px; padding: 8px 14px; box-shadow: 0 0 0 1px var(--line); min-width: min(280px, 100%); }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 15px; }
.search svg { width: 16px; height: 16px; color: var(--body); flex: none; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-weight: 500; color: var(--body); font-size: 13px; padding: 10px 24px; border-top: 1px solid var(--line); }
td { padding: 16px 24px; border-top: 1px solid var(--line); }
th:nth-child(n+3), td:nth-child(n+3) { text-align: right; }
td.r { color: var(--body); width: 72px; font-variant-numeric: tabular-nums; }
td.p { color: var(--accent); font-weight: 600; }
tr.hit td { background: rgb(var(--accent-rgb) / .08); }
tbody tr { transition: background .2s; }
tbody tr:hover td { background: rgba(235,240,248,.03); }
.empty-row td { text-align: center; color: var(--body); padding: 40px 24px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r-card); padding: 32px; box-shadow: var(--shadow-inset); display: grid; gap: 16px; align-content: start; }
.step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--charcoal); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; }
.step p { margin: 0; color: var(--body); font-size: 18px; line-height: 1.4; }
.step-visual { height: 120px; border-radius: var(--r-img); background: var(--charcoal); display: grid; place-items: center; overflow: hidden; position: relative; }
.codebox { font: 600 22px var(--font-display); letter-spacing: .04em; padding: 10px 18px; border-radius: 14px; border: 1.5px dashed rgb(var(--accent-rgb) / .5); color: var(--accent); background: none; cursor: pointer; }
.chips-stack { display: flex; gap: -10px; }
.mini-chip { width: 54px; height: 54px; border-radius: 50%; margin-left: -14px; background: var(--c); border: 5px dashed rgba(255,255,255,.9); box-shadow: 0 6px 12px rgba(0,0,0,.4); transition: transform .3s; }
.step:hover .mini-chip:nth-child(1) { transform: translateY(-10px) rotate(-20deg); }
.step:hover .mini-chip:nth-child(2) { transform: translateY(-18px) rotate(15deg); }
.step:hover .mini-chip:nth-child(3) { transform: translateY(-8px) rotate(30deg); }
.payout { font: 600 34px var(--font-display); letter-spacing: -0.03em; color: var(--green); }

/* ---------- winners ---------- */
.winners { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.winner-card { background: var(--surface); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-inset); display: grid; gap: 16px; }
.winner-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.winner-card li { display: flex; align-items: center; gap: 12px; }
.winner-card li img { width: 36px; height: 36px; }
.winner-card li .amt { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- videos ---------- */
.yt { background: var(--surface); border-radius: 40px; padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow-inset); display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; overflow: hidden; }
.yt .lede { margin: 16px 0 28px; }
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yt-thumb { display: block; position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16/9; background: var(--charcoal); box-shadow: rgba(0,0,0,.5) 0 0 16px -8px; text-decoration: none; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yt-thumb:hover img { transform: scale(1.05); }
.yt-thumb span { position: absolute; inset: auto 10px 10px 10px; font-size: 13px; font-weight: 500; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.yt-empty { aspect-ratio: 16/9; border-radius: var(--r-img); background: var(--charcoal); display: grid; place-items: center; color: var(--body); font-size: 14px; box-shadow: 0 0 0 1px var(--line); }
.yt-art { position: relative; height: 280px; }
.yt-art img { position: absolute; width: 190px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }

/* ---------- footer ---------- */
footer { padding: 80px 0 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--body); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot a { text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--accent); }
.legal { color: var(--body); font-size: 13px; line-height: 1.5; margin-top: 48px; max-width: 80ch; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--body); color: var(--body); font-size: 12px; font-weight: 600; margin-right: 10px; vertical-align: middle; }


/* ---------- partner logos ---------- */
.plogo { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.plogo-text { height: auto; font: 600 1em/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.partner-tag-logo { display: inline-flex; align-items: center; height: 28px; max-width: 170px; font-size: 18px; text-decoration: none; }
.board-partner { display: inline-flex; justify-content: center; align-items: center; height: 44px; max-width: 220px; margin: 0 auto -4px; font-size: 26px; text-decoration: none; }
.board-partner:empty, .board-partner[hidden] { display: none; }
.step-partner { display: flex; flex-direction: column; gap: 12px; }
.step-partner > span { height: 26px; max-width: 160px; font-size: 18px; display: flex; justify-content: center; }

.partners { padding-block: 64px 0; text-align: center; }
.partners .h-label { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 32px; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 56px; }
.partner-item { display: grid; justify-items: center; gap: 12px; }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 56px; max-width: 220px; font-size: 32px; text-decoration: none; }
.partner-logo img { filter: grayscale(1) brightness(1.6); opacity: .8; transition: filter .3s, opacity .3s, transform .3s; }
.partner-logo:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.partner-code, .partner-board { border: 0; cursor: pointer; background: none; color: var(--body); font-size: 14px; padding: 4px 10px; border-radius: 999px; transition: color .2s, background .2s; }
.partner-code b { color: var(--accent); font-weight: 600; }
.partner-code:hover, .partner-board:hover { background: rgba(235,240,248,.06); color: var(--ink); }
.partner-item { grid-template-columns: auto auto; }
.partner-logo { grid-column: 1 / -1; }
.partner-item > button:only-of-type { grid-column: 1 / -1; }
.tab-partner { color: inherit; opacity: .6; margin-left: 8px; font-size: 13px; }

/* ---------- socials ---------- */
.nav-socials { display: flex; gap: 2px; }
.nav-links + .nav-socials { margin-left: 4px; }
.soc-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--body); transition: color .2s, background .2s; }
.soc-icon:hover { color: var(--ink); background: rgba(235,240,248,.08); }
.soc-icon svg { width: 18px; height: 18px; }
.social-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-pills:empty { display: none; }
.social-pills .pill { padding: 8px 14px; font-size: 15px; }
.foot-socials { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; margin-left: -8px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--charcoal); border-radius: 999px; padding: 12px 20px; font-weight: 500; z-index: 50; transition: transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: rgba(0,0,0,.4) 0 10px 30px; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-socials { display: none; }
  .nav .pill { margin-left: auto; }
  .bento, .steps { grid-template-columns: 1fr; }
  .yt { grid-template-columns: 1fr; }
  .yt-art { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 64px; }
  .hero { padding: 8px 8px 0; }
  .hero-field { border-radius: 28px; padding-top: 112px; }
  .podium { grid-template-columns: 1fr; gap: 88px; margin-top: 96px; }
  .podium .first { order: -1; }
  .place .medal { width: 130px; }
  .place.first .medal { width: 150px; }
  .place, .place.first { padding-top: 88px; }
  table { font-size: 14px; }
  th, td { padding-inline: 10px; }
  td.r { width: 44px; }
  .table-tools { padding: 16px; }
  .hide-sm { display: none; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- partner banners: every one opens the affiliate link ---------- */
.promo { padding-block: 48px 0; }
.promo-row { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-row::-webkit-scrollbar { display: none; }
.promo-row.multi { grid-auto-columns: min(88%, 1000px); }
.promo-banner { display: block; position: relative; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: start;
  box-shadow: var(--shadow-inset), 0 0 0 1px var(--line), 0 24px 60px -30px rgb(var(--accent-rgb) / .45); transition: transform .2s ease, box-shadow .2s; }
.promo-banner img { width: 100%; height: auto; display: block; }
a.promo-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-inset), 0 0 0 2px var(--accent), 0 30px 70px -30px rgb(var(--accent-rgb) / .6); }

/* ---------- YouTube video wall ---------- */
.yt-card { display: block; position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 16/9; background: var(--charcoal); color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line), rgba(0,0,0,.5) 0 16px 30px -16px; isolation: isolate; }
.yt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.yt-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.82)); z-index: -1; }
.yt-card:hover img { transform: scale(1.05); }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,.18); transition: background .2s, scale .2s; }
.yt-play svg { width: 26px; height: 26px; margin-left: 3px; }
.yt-card:hover .yt-play { background: #ff0033; scale: 1.08; }
.yt-feature .yt-play { width: 76px; height: 76px; }
.yt-feature .yt-play svg { width: 34px; height: 34px; }
.yt-title { position: absolute; left: 14px; right: 14px; bottom: 12px; font-weight: 600; font-size: 14px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.yt-feature .yt-title { font: 600 clamp(17px, 1.8vw, 22px)/1.2 var(--font-display); left: 20px; right: 20px; bottom: 18px; }
.yt-badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #ff0033; color: #fff; }
.yt-more { grid-column: 1 / -1; display: grid; gap: 14px; min-width: 0; }
.yt-more[hidden], .promo[hidden] { display: none; }
.yt-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.yt-row .yt-card { flex: none; height: 220px; scroll-snap-align: start; }
.yt-row .yt-card.short { aspect-ratio: 9/16; }
.yt-feature.short { aspect-ratio: 16/9; }
@media (max-width: 640px) { .yt-row .yt-card { height: 180px; } }

/* ---------- watch: videos play on the page ---------- */
.watch { background: var(--surface); border-radius: 40px; padding: clamp(20px, 4vw, 48px); box-shadow: var(--shadow-inset); display: grid; gap: clamp(20px, 3vw, 32px); min-width: 0; }
.watch-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.watch-head .lede { margin: 12px 0 0; text-align: left; }
.watch-cta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.watch-cta .social-pills { margin: 0; }
.watch-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; min-width: 0; }
.watch-body.solo, .watch-body.empty { grid-template-columns: minmax(0, 1fr); }
.watch-body.solo .playlist, .watch-body.empty .playlist, .watch-body.empty .now-playing { display: none; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; background: #000; box-shadow: rgba(0,0,0,.55) 0 20px 50px -20px, 0 0 0 1px var(--line); isolation: isolate; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-short iframe { left: 50%; right: auto; width: auto; aspect-ratio: 9 / 16; translate: -50% 0; }
.player.is-short.is-playing { background: radial-gradient(circle at 50% 40%, #1c1d22, #000 70%); }
.player-poster { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; color: #fff; display: block; width: 100%; }
.player-poster .poster-bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) brightness(.55); }
.player-poster .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.player.is-short .poster-img { left: 50%; width: auto; aspect-ratio: 9 / 16; translate: -50% 0; box-shadow: 0 0 60px rgba(0,0,0,.6); }
.player-poster:hover .poster-img { transform: scale(1.03); }
.player-poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,.35)); }
.player-poster .yt-play { width: 84px; height: 84px; z-index: 2; }
.player-poster .yt-play svg { width: 36px; height: 36px; }
.player-poster:hover .yt-play, .player-poster:focus-visible .yt-play { background: #ff0033; scale: 1.08; }
.player-poster .yt-badge { z-index: 2; top: 14px; left: 14px; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; padding: 20px; background: var(--charcoal); }
.player-empty .yt-art { width: 100%; height: 220px; }
.player-empty .yt-art img { width: 150px; }

.now-playing { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; padding: 0 4px; }
.np-title { font: 600 clamp(17px, 1.8vw, 21px)/1.25 var(--font-display); letter-spacing: -0.01em; }
.np-link { color: var(--body); font-size: 14px; text-decoration: none; white-space: nowrap; }
.np-link:hover { color: var(--ink); }
.np-link[hidden] { display: none; }

.playlist { display: grid; gap: 10px; align-content: start; max-height: min(560px, 70vh); overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.pl-item { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; border: 0; cursor: pointer; padding: 8px; border-radius: 18px; background: transparent; color: var(--ink); transition: background .2s, box-shadow .2s; }
.pl-item:hover { background: var(--charcoal); }
.pl-item[aria-current="true"] { background: var(--charcoal); box-shadow: 0 0 0 1.5px rgb(var(--accent-rgb) / .7); }
.pl-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--charcoal); }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pl-item:hover .pl-thumb img { transform: scale(1.06); }
.pl-thumb .yt-badge { top: 6px; left: 6px; font-size: 11px; padding: 2px 7px; }
.pl-now { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 4px; background: rgba(0,0,0,.55); font-size: 12px; font-weight: 600; }
.pl-now svg { width: 20px; height: 20px; justify-self: center; }
.pl-item[aria-current="true"] .pl-now { display: grid; }
.pl-title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1000px) {
  .watch-body { grid-template-columns: minmax(0, 1fr); }
  .playlist { grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .pl-item { grid-template-columns: 1fr; align-items: start; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .watch { border-radius: 28px; }
  .player.is-short { aspect-ratio: 9 / 16; max-height: 78svh; margin-inline: auto; }
  .player.is-short iframe, .player.is-short .poster-img { left: 0; width: 100%; translate: none; }
  .player-poster .yt-play { width: 68px; height: 68px; }
  .playlist { grid-auto-columns: 72%; }
}

/* preview of unpublished changes */
.preview-bar { position: fixed; left: 50%; top: 12px; translate: -50% 0; z-index: 60; max-width: calc(100% - 32px); background: var(--lilac); color: #15121f; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px; box-shadow: rgba(0,0,0,.4) 0 10px 30px; text-align: center; }
.preview-bar a { color: inherit; font-weight: 700; margin-left: 6px; }
.preview-bar[hidden] { display: none; }

/* video tags, Kick stream, 18+ videos */
.yt-badge.tag { background: var(--accent); color: var(--on-accent); }
.pl-sub { display: block; margin-top: 4px; color: var(--body); font-size: 12px; font-weight: 400; }
.kick-thumb { display: grid; place-items: center; background: linear-gradient(135deg, #0b0e0f, #14361f); color: #53fc18; }
.kick-thumb > svg { width: 42px; height: 42px; }
.kick-poster { display: grid; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 30%, #173d24, #0b0e0f 70%); }
.kick-poster .kick-mark { color: #53fc18; }
.kick-poster .kick-mark svg { width: 56px; height: 56px; }
.kick-poster .kick-text { display: grid; gap: 6px; max-width: 46ch; position: relative; z-index: 2; }
.kick-poster .kick-text b { font: 600 clamp(20px, 2.4vw, 28px)/1.1 var(--font-display); }
.kick-poster .kick-text span { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.45; }
.kick-poster .yt-play { position: relative; left: auto; top: auto; translate: none; }
.kick-poster:hover .yt-play { background: #53fc18; color: #0b0e0f; }
.player-poster.outside .yt-play svg { margin-left: 0; width: 30px; height: 30px; }
.outside-note { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 2; width: max-content; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.72); font-size: 13px; line-height: 1.35; backdrop-filter: blur(6px); }
@media (max-width: 640px) { .outside-note { border-radius: 14px; font-size: 12px; } .kick-poster .kick-text span { display: none; } }
