/* Onyx Remix studio site. The studio is a channel: a broadcast test card and its programme notes.
   Studio palette = the seven colour bars. Each game owns two bars; Klop/Blop is cyan and magenta,
   and appears inside the TV in its own "neon rivals" identity. */
:root {
  --ground: #E2E2DE;
  --ink: #0B0B0C;
  --ink-2: #3D3D42;
  --on-dark: #F2F2EE;
  --on-dark-2: #BDBDBA;

  --grey: #BDBDBA;
  --yellow: #E3C700;
  --cyan: #00B4C8;
  --green: #1FAA3C;
  --magenta: #B4189C;
  --red: #D21F1F;
  --blue: #1C2FB4;

  /* Klop/Blop's own identity, used only inside the TV */
  --k-ink: #0A0618;
  --k-panel: #151032;
  --k-text: #F4F1FF;
  --k-cyan: #22E4FF;
  --k-mag: #FF3DA8;
  --k-glow: #FFE24A;

  --gutter: clamp(16px, 4vw, 48px);
  --bars-h: clamp(300px, 56vh, 540px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  scrollbar-color: var(--ink) var(--ground);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-size: 17px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Display voice: Archivo at its widest, like a channel ident */
.ident-name, h2, .lt-title, .spec caption {
  font-stretch: 125%; font-weight: 850; text-transform: uppercase; letter-spacing: -.01em; line-height: .92;
  text-wrap: balance;
}

/* ---------- Test card ---------- */
.card { position: relative; background: var(--ink); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: var(--bars-h); }
.b-grey { background: var(--grey); } .b-yellow { background: var(--yellow); } .b-cyan { background: var(--cyan); }
.b-green { background: var(--green); } .b-magenta { background: var(--magenta); } .b-red { background: var(--red); }
.b-blue { background: var(--blue); }
.card .bars span { animation: wipe .9s var(--ease-out) backwards; }
.card .bars span:nth-child(2) { animation-delay: .04s; } .card .bars span:nth-child(3) { animation-delay: .08s; }
.card .bars span:nth-child(4) { animation-delay: .12s; } .card .bars span:nth-child(5) { animation-delay: .16s; }
.card .bars span:nth-child(6) { animation-delay: .2s; }  .card .bars span:nth-child(7) { animation-delay: .24s; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } }

.ident {
  position: absolute; left: 50%; top: calc(var(--bars-h) / 2); transform: translate(-50%, -50%);
  width: clamp(250px, 34vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 0 0 clamp(6px, .8vw, 10px) var(--ground), 0 18px 40px -12px rgba(0, 0, 0, .45);
  display: grid; place-content: center; justify-items: center; gap: clamp(8px, 1.2vw, 16px); text-align: center;
  animation: tune .7s var(--ease-out) .3s backwards;
}
@keyframes tune { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }
.ident h1 { display: grid; justify-items: center; gap: clamp(10px, 1.4vw, 18px); padding: 0 12%; }
.ident-mark { width: clamp(34px, 3.6vw, 50px); height: auto; box-shadow: 0 0 0 2px var(--on-dark-2); border-radius: 50%; }
.ident-name { display: block; font-size: clamp(44px, 6.4vw, 82px); }
.ident-line { display: block; font-size: clamp(13px, 1.15vw, 16px); font-weight: 500; color: var(--on-dark-2); max-width: 15em; line-height: 1.35; text-wrap: balance; }

/* Reverse-bars strip doubles as the navigation */
.strip { display: grid; grid-template-columns: 2fr 1fr 2fr 1fr 2.4fr 1.6fr; min-height: 52px; }
.strip a {
  display: flex; align-items: center; padding: 0 clamp(12px, 1.6vw, 22px);
  font-weight: 700; font-stretch: 112%; font-size: 15px; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.strip a:focus-visible { outline-color: var(--yellow); outline-offset: -4px; }
.s-blue { background: var(--blue); color: var(--on-dark); }
.s-kb { background: linear-gradient(90deg, var(--cyan) 0 calc(100% - var(--kb-tail, 45%)), var(--magenta) 0); color: var(--ink); }
.s-yellow { background: var(--yellow); color: var(--ink); }
.s-magenta { background: var(--magenta); color: var(--on-dark); }
.s-cyan { background: var(--cyan); color: var(--ink); }
.s-ink { background: var(--ink); }
.s-grey { background: var(--grey); }
.strip a:hover { background: var(--ground); color: var(--ink); }

/* PLUGE band with the lower third */
.pluge { display: flex; align-items: flex-end; gap: 24px; padding: clamp(20px, 3vw, 36px) var(--gutter); }
.lower-third {
  flex: 1; display: grid; grid-template-columns: auto 1fr auto;
  background: var(--ground); color: var(--ink);
  animation: slide .8s var(--ease-out) .55s backwards;
}
@keyframes slide { from { clip-path: inset(0 100% 0 0); } }
.on-air {
  display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: var(--red); color: #fff; font-weight: 800; font-stretch: 112%; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.on-air .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.lt-body { padding: 14px 22px; }
.lt-title { font-size: 22px; text-transform: none; }
.lt-text { color: var(--ink-2); margin-top: 6px; }
.clock { position: absolute; top: clamp(12px, 2vw, 24px); right: var(--gutter); background: var(--ink); padding: 6px 12px; color: var(--on-dark-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .02em; }
.clock span { color: var(--on-dark); font-weight: 700; font-size: 16px; }

/* Buttons: square, solid, like a broadcast caption */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--ink); color: var(--on-dark);
  font-weight: 750; font-stretch: 112%; font-size: 16px; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; transition: transform .2s var(--ease-out); }
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:focus-visible { outline-color: var(--yellow); }
.lower-third .btn { background: var(--yellow); color: var(--ink); }
.lower-third .btn:hover { background: var(--on-dark); }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.statement p { font-size: clamp(24px, 3vw, 38px); line-height: 1.3; font-weight: 500; letter-spacing: -.012em; max-width: 26em; text-wrap: pretty; }

/* ---------- Programme: Klop/Blop ---------- */
.programme { padding-bottom: clamp(64px, 9vw, 128px); }
.prog-head { position: relative; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.prog-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, var(--cyan) 0 50%, var(--magenta) 50% 100%); }
.prog-head h2 { font-size: clamp(48px, 8vw, 96px); }
.prog-sub { font-size: 18px; color: var(--ink-2); }
.prog-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4.5vw, 64px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }

.tv { background: #18181A; padding: clamp(10px, 1.3vw, 16px); border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.screen {
  aspect-ratio: 16 / 10; border-radius: 4px; background: var(--k-ink); color: var(--k-text);
  display: grid; grid-template-rows: auto auto 1fr auto; justify-items: center;
  padding: 5% 6% 4%; overflow: hidden;
}
.words { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); font-family: Bungee, var(--font, sans-serif); font-size: clamp(22px, 3.4vw, 46px); line-height: 1; text-transform: uppercase; }
.w1 { color: var(--k-cyan); } .w2 { color: var(--k-mag); }
.slash { width: clamp(30px, 3.6vw, 52px); height: auto; }
.pupil { transition: transform .4s var(--ease-out); }
.item {
  margin-top: 6%; padding: .45em 1.1em; border-radius: 12px; background: var(--k-panel); border: 2px solid rgba(244, 241, 255, .22);
  font-family: Outfit, Archivo, sans-serif; font-weight: 700; font-size: clamp(15px, 2vw, 26px);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.item.out { opacity: 0; transform: translateY(8px); }
.votes { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-self: center; }
.side { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(5px, .7vw, 9px); min-height: 22px; }
.side-1 { justify-content: flex-end; } .side-2 { justify-content: flex-start; }
.side li { width: clamp(14px, 1.7vw, 22px); aspect-ratio: 1; border-radius: 50%; animation: pop .35s var(--ease-out); }
@keyframes pop { from { transform: scale(0); } }
.verdict { font-family: Bungee, sans-serif; font-size: clamp(12px, 1.5vw, 19px); color: var(--k-glow); min-height: 1.3em; text-transform: uppercase; }
.tv-wrap figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); max-width: 60ch; }

.rundown { list-style: none; border-top: 3px solid var(--ink); }
.rundown li { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; row-gap: 6px; padding: 20px 0 22px; border-bottom: 1px solid rgba(11, 11, 12, .3); }
.part { grid-row: span 2; padding-top: 5px; font-size: 13px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rundown h3 { font-size: 22px; font-weight: 800; font-stretch: 112%; line-height: 1.3; }
.rundown p { color: var(--ink-2); }

.spec { width: 100%; margin-top: clamp(48px, 7vw, 88px); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec caption { text-align: left; font-size: clamp(22px, 2.4vw, 30px); padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid rgba(11, 11, 12, .3); }
.spec th { width: 26%; max-width: 280px; font-weight: 700; font-stretch: 112%; padding-right: 24px; }

/* ---------- Studio: a full blue bar ---------- */
.studio { background: var(--blue); color: var(--on-dark); padding-block: clamp(64px, 9vw, 128px); }
.studio-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 3vw, 40px) clamp(28px, 5vw, 72px); }
.studio h2 { font-size: clamp(44px, 6.4vw, 84px); grid-row: span 2; }
.studio-copy p { font-size: clamp(18px, 1.7vw, 21px); max-width: 36em; }
.studio-copy p + p { margin-top: 18px; }
.studio a:focus-visible { outline-color: var(--yellow); }
.schedule { list-style: none; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--on-dark); margin-top: clamp(8px, 2vw, 24px); }
.slot { display: grid; gap: 4px; align-content: start; padding: 18px 20px 22px; border-right: 1px solid rgba(242, 242, 238, .35); }
.slot:last-child { border-right: 0; }
.slot-now { background: var(--on-dark); color: var(--ink); }
.slot-when { font-size: 13px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; color: var(--yellow); }
.slot-now .slot-when { color: var(--red); }
.slot-title { font-size: 22px; font-weight: 850; font-stretch: 125%; text-transform: uppercase; line-height: 1.1; }
.slot-where { font-size: 16px; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px clamp(28px, 5vw, 72px); }
.contact h2 { font-size: clamp(40px, 5.6vw, 72px); grid-row: span 2; }
.caption-card { background: var(--ink); color: var(--on-dark); border-top: 8px solid var(--yellow); }
.cc-text { padding: 22px 24px 20px; font-size: clamp(18px, 1.7vw, 20px); max-width: 36em; }
.caption-card .contact-rows { margin: 0 24px 6px; border-top: 2px solid var(--on-dark); }
.caption-card .contact-rows div { border-bottom-color: rgba(242, 242, 238, .3); }
.caption-card .pending { color: var(--on-dark-2); }
.caption-card a:focus-visible { outline-color: var(--yellow); }
.caption-card .contact-rows div:last-child { border-bottom: 0; }
.contact-rows { border-top: 3px solid var(--ink); }
.contact-rows div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(11, 11, 12, .3); font-size: 18px; }
.contact-rows dt { font-weight: 700; font-stretch: 112%; }
.pending { color: var(--ink-2); }

/* ---------- Close ---------- */
.close { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 104px); }
.close h2 { font-size: clamp(36px, 5.6vw, 76px); }
.close p { color: var(--on-dark-2); font-size: 18px; max-width: 34em; margin: 18px 0 30px; }

/* ---------- Footer ---------- */
.bars-thin { height: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 22px 30px; font-size: 15px; }
.foot-in .mark { width: 28px; height: 28px; }
.foot-in p:last-child { margin-left: auto; }

/* ---------- 404 ---------- */
.lost-card .bars { height: 42vh; min-height: 220px; }
.lost { padding-block: clamp(48px, 8vw, 96px); }
.lost h1 { font-stretch: 125%; font-weight: 850; text-transform: uppercase; font-size: clamp(40px, 6vw, 76px); line-height: .92; }
.lost p { font-size: 20px; color: var(--ink-2); margin: 18px 0 30px; max-width: 30em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .prog-grid, .studio-in, .contact { grid-template-columns: 1fr; }
  .studio h2, .contact h2 { grid-row: auto; }
}
@media (max-width: 720px) {
  :root { --bars-h: 300px; }
  .strip { grid-template-columns: 1fr 1fr 1.3fr; }
  .strip .s-ink, .strip .s-grey { display: none; }
  .strip a { justify-content: center; text-align: center; font-size: 14px; padding: 8px; line-height: 1.2; }
  .lower-third { grid-template-columns: 1fr; }
  .on-air { justify-self: start; padding: 8px 14px; }
  .lt-body { padding: 14px 16px 16px; }
  .lower-third .btn { width: 100%; }
  .clock { font-size: 12px; padding: 4px 8px; }
  .clock span { font-size: 13px; }
  .schedule { grid-template-columns: 1fr; }
  .slot { border-right: 0; border-bottom: 1px solid rgba(242, 242, 238, .35); }
  .rundown li { grid-template-columns: 58px 1fr; column-gap: 12px; }
  .s-kb { --kb-tail: 18px; justify-content: flex-start !important; }
  .cc-text { padding: 18px 16px 16px; }
  .caption-card .contact-rows { margin: 0 16px 4px; }
  .spec th { width: 38%; padding-right: 14px; }
    .foot-in p:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
