/* Socials-pagina (/socials/). De HTML komt uit build/socials.py, de gegevens uit socials/socials.json,
   het gedrag (live-status, nieuwste video's) uit socials/socials.js.
   Idee: het streambureau is de voorkant. Elke zondag om 20:00 gaat het lampje aan; de rest van de week
   staan de kanalen eronder als een rijtje om aan te klikken, elk met zijn eigen merkkleur pas bij hover. */

@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/shop/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

.sc {
  --ink: #f4f1e8;
  --muted: #c4bfb1;
  --surface: #1f1e1a;
  --surface-2: #2a2924;
  --yellow: #f9fb00;
  --amber: #fcc400;
  --red: #e0312f;
  --dark: #12120f;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --radius: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 48px) 0 clamp(64px, 8vw, 112px);
  color: var(--ink);
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc :where(h2, p, ul, figure, figcaption) { margin: 0; padding: 0; }
.sc ul[role="list"] { list-style: none; }
.sc a { color: inherit; text-decoration: none; }
.sc :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 12px; }
.sc ::selection { background: var(--yellow); color: var(--dark); }
.sc-ico { width: 18px; height: 18px; flex: none; }
.sc :is(p, li) { font-weight: 400; }

.sc .sc-h2 {
  font: 700 clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem)/.95 var(--display);
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.sc .sc-text { font-size: 1.04rem; line-height: 1.6; color: var(--muted); max-width: 48ch; text-wrap: pretty; }
.sc-sec { margin-top: clamp(80px, 9vw, 120px); }
.sc-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.sc-head--row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 24px; }
.sc-head--row > div { display: grid; gap: 14px; }

/* ---------- zondagavond: foto van het bureau + tekst ---------- */
.sc-live {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
}
.sc-live__photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.sc-live__photo img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.sc-live__text { display: grid; justify-items: start; gap: 18px; }
.sc .sc-lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--ink); max-width: 40ch; text-wrap: pretty; }
.sc .sc-when { font-size: .98rem; line-height: 1.5; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc .sc-when strong { color: var(--ink); font-weight: 700; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.sc-btn .sc-ico { width: 18px; height: 18px; }
.sc-btn.eh-cta--line .sc-ico { transition: transform .2s var(--ease-out); }
.sc-btn:active { transform: scale(.97); }

/* Het lampje op de foto: geel = wachten op zondag, rood met een puls = nu live */
.sc-onair {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 15, .82);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6);
}
.sc-onair__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.sc-onair a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sc-onair.is-live { background: var(--red); color: #fff; }
.sc-onair.is-live a { text-decoration-color: rgba(255, 255, 255, .7); }
.sc-onair.is-live .sc-onair__dot { background: #fff; }
.sc-onair.is-live .sc-onair__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  animation: sc-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes sc-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- kanalen ---------- */
.sc-rows { display: grid; gap: 8px; }
.sc-row {
  display: grid;
  grid-template-columns: 56px minmax(150px, 15rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: 18px clamp(18px, 2.4vw, 28px) 18px 18px;
  border-radius: 18px;
  background: var(--surface);
  transition: background-color .2s ease, transform .16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.sc-row__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.sc-row__logo svg { width: 26px; height: 26px; }
.sc-row__name { font: 700 clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.sc-row__text { display: grid; gap: 4px; font-size: 1rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.sc-row__handle { color: var(--ink); font-weight: 700; }
.sc-row__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.sc-row__go .sc-ico { transition: transform .2s var(--ease-out); }
.sc-row:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .sc-row:hover { background: var(--surface-2); }
  .sc-row:hover .sc-row__logo { background: var(--sc-brand); color: #fff; }
  .sc-row:hover .sc-row__go .sc-ico { transform: translate(2px, -2px); }
  .sc-btn.eh-cta--line:hover .sc-ico { transform: translate(2px, -2px); }
}
.sc-row:focus-visible .sc-row__logo { background: var(--sc-brand); color: #fff; }

/* ---------- nieuwste video's ---------- */
.sc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--yellow); white-space: nowrap; padding: 6px 0; }
.sc-vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sc-vids__empty { grid-column: 1 / -1; }
.sc-vids__empty a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: 18px; background: var(--surface); font-weight: 700; }
.sc-vid { display: grid; gap: 12px; transition: transform .16s var(--ease-out); }
.sc-vid:active { transform: scale(.98); }
.sc-vid__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface); }
.sc-vid__thumb img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform .5s var(--ease-out); }
.sc-vid__badge { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; line-height: 1; }
.sc-vid__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: 50%; background: rgba(18, 17, 17, .72); color: #fff; opacity: 0; transform: scale(.9); transition: opacity .2s ease, transform .2s var(--ease-out); }
.sc-vid__play .sc-ico { width: 22px; height: 22px; margin-left: 3px; }
.sc-vid__title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-vid__meta { margin-top: -6px; font-size: .9rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .sc-vid:hover .sc-vid__thumb img { transform: scale(1.04); }
  .sc-vid:hover .sc-vid__play { opacity: 1; transform: none; }
  .sc-vids__empty a:hover { background: var(--surface-2); }
}

/* ---------- het ene moment: de foto gaat open, de tekst komt erachteraan ---------- */
@media (prefers-reduced-motion: no-preference) {
  .sc-live__photo { animation: sc-open .9s var(--ease-out) both; }
  .sc-live__photo img { animation: sc-settle 1.4s var(--ease-out) both; }
  .sc-onair { animation: sc-rise .5s var(--ease-out) .55s both; }
  .sc-live__text > * { animation: sc-rise .6s var(--ease-out) both; }
  .sc-live__text > :nth-child(1) { animation-delay: .12s; }
  .sc-live__text > :nth-child(2) { animation-delay: .2s; }
  .sc-live__text > :nth-child(3) { animation-delay: .28s; }
  .sc-live__text > :nth-child(4) { animation-delay: .36s; }
}
@keyframes sc-open { from { clip-path: inset(0 0 100% 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes sc-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes sc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .sc-onair.is-live .sc-onair__dot::after { animation: none; }
  .sc *, .sc *::after { transition-duration: .01ms !important; }
}

/* ---------- tablet en telefoon ---------- */
@media (max-width: 999px) {
  .sc-live { grid-template-columns: minmax(0, 1fr); }
  .sc-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'logo name go' 'logo text text'; row-gap: 6px; align-items: start; }
  .sc-row__logo { grid-area: logo; }
  .sc-row__name { grid-area: name; align-self: center; }
  .sc-row__text { grid-area: text; }
  .sc-row__go { grid-area: go; align-self: center; }
  .sc-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-vids > li:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .sc { padding-top: 20px; }
  .sc-live__photo { border-radius: 16px; aspect-ratio: 4 / 3; --radius: 16px; }
  .sc-onair { left: 12px; bottom: 12px; font-size: .86rem; }
  .sc-actions { width: 100%; }
  .sc-actions .sc-btn { flex: 1 1 100%; }
  .sc-head--row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .sc-row { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; padding: 14px 16px 16px 14px; }
  .sc-row__logo { width: 44px; height: 44px; border-radius: 12px; }
  .sc-row__logo svg { width: 22px; height: 22px; }
  .sc-row__name { font-size: 1.7rem; }
  .sc-row__go { font-size: .95rem; }
  .sc-row__go-label { display: none; }
  .sc-vids { grid-template-columns: minmax(0, 1fr); }
  .sc-vids > li:nth-child(3) { display: block; }
}

/* ---------- verder kijken: links naar verwante pagina's ---------- */
.sc-verder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 96px); }
.sc-verder a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--surface);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.sc-verder strong { font: 700 1.5rem/1 var(--display); text-transform: uppercase; color: var(--ink); }
.sc-verder span { grid-column: 1; color: var(--muted); font-size: .97rem; line-height: 1.45; }
.sc-verder .sc-ico { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--yellow); transition: transform 200ms var(--ease-out); }
.sc-verder a:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .sc-verder a:hover { background: var(--surface-2); }
  .sc-verder a:hover .sc-ico { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .sc-verder .sc-ico { transition: none; } }
