* { box-sizing: border-box; }
:root { color-scheme: dark; --orange:#ff8600; --purple:#9344e2; --black:#080808; --muted:#aaa; }
html { min-height:100%; background:var(--black); }
body { margin:0; min-height:100vh; color:#fff; font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; background:radial-gradient(ellipse at 50% -10%,#2a163b 0,#101010 42%,#080808 75%); }
.app-shell { width:min(100%,560px); min-height:100vh; margin:0 auto; padding:max(22px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:25px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.brand-logo-link { display:block; flex:0 1 245px; max-width:68%; line-height:0; }
.brand-logo { display:block; width:100%; height:auto; object-fit:contain; filter:drop-shadow(0 0 7px #9344e222); }
.live-pill { flex-shrink:0; display:flex; align-items:center; gap:7px; border:1px solid #ff860066; border-radius:30px; padding:8px 10px; color:#ffc27c; font-size:9px; font-weight:850; letter-spacing:1px; }
.live-pill i { display:inline-block; width:8px; height:8px; border-radius:50%; background:#20d879; box-shadow:0 0 10px #20d87988; animation:live-dot-colors 3.5s ease-in-out infinite alternate; }
@keyframes live-dot-colors {
  0% { background:#20d879; box-shadow:0 0 7px #20d87966; }
  100% { background:#ff3434; box-shadow:0 0 10px #ff3434aa; }
}
@media (prefers-reduced-motion: reduce) { .live-pill i { animation:none; } }
.hero { padding:0 2px 0; }
.hero .hero-welcome { color:#c4a4e8; margin:0 0 10px; line-height:1.55; }
.eyebrow { margin:0; font-size:10px; letter-spacing:1.7px; font-weight:850; color:#c4a4e8; }
.hero h1 { margin:3px 0 3px; font-size:clamp(34px,8vw,45px); line-height:1.05; letter-spacing:-1.6px; font-weight:700; color:var(--orange); }
.tagline { margin:0 0 12px; color:#fff; font-size:15px; font-weight:750; letter-spacing:.1px; }
.intro { color:#c0c0c0; line-height:1.65; font-size:14px; max-width:390px; margin:0; }
.player-card { position:relative; overflow:hidden; display:grid; grid-template-columns:72px minmax(0,1fr) 52px; align-items:center; gap:13px; padding:17px 14px; border-radius:22px; border:1px solid #9344e277; background:linear-gradient(120deg,#1c1c1c,#111 65%); box-shadow:0 12px 35px #0008; }
.player-card::before { content:""; position:absolute; width:130px; height:130px; background:#9344e21c; filter:blur(35px); right:0; top:-60px; pointer-events:none; }
.album-art-frame { position:relative; width:72px; aspect-ratio:1; overflow:hidden; display:grid; place-items:center; border-radius:13px; border:1px solid #9344e288; background:#202020; box-shadow:0 4px 14px #0007; }
.album-art { display:block; width:100%; height:100%; object-fit:cover; }
.album-art-fallback { display:none; position:absolute; inset:0; place-items:center; color:#ff8600; font-size:18px; font-weight:950; background:linear-gradient(135deg,#20152b,#111); }
.album-art-fallback.visible { display:grid; }
.track-info { min-width:0; }
.track-info h2 { font-size:16px; margin:7px 0 3px; overflow-wrap:anywhere; }
.track-info p:not(.eyebrow) { margin:0; color:#bbb; font-size:12px; overflow-wrap:anywhere; }
.track-info .status { margin-top:8px!important; color:#ffbf70!important; font-size:10px!important; }
.play-button { width:52px; height:52px; border:2px solid #9344e2; border-radius:50%; background:var(--orange); color:#111; font-size:20px; font-weight:900; cursor:pointer; box-shadow:0 0 0 5px #ff86001b; }
.play-button:focus-visible,a:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.section-label { margin:0 0 -13px 2px; font-size:10px; letter-spacing:1.6px; color:#aaa; font-weight:800; }
.quick-links { display:grid; gap:10px; }
.quick-link { display:grid; grid-template-columns:42px minmax(0,1fr) 18px; align-items:center; gap:12px; padding:13px; color:white; text-decoration:none; border:1px solid #ffffff12; border-radius:16px; background:#151515; transition:border-color .15s,transform .15s; }
.quick-link:hover { border-color:var(--orange); transform:translateY(-1px); }
.link-icon { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:#111; font-size:23px; font-weight:800; background:var(--orange); }
.music-icon { color:white; background:var(--purple); }
.request-icon { background:#a6db54; }
.chat-icon { position:relative; background:var(--purple); }
.chat-icon > span { position:relative; display:block; width:23px; height:17px; border:2px solid #fff; border-radius:6px; }
.chat-icon > span::after { content:""; position:absolute; left:3px; bottom:-6px; width:7px; height:7px; background:var(--purple); border-left:2px solid #fff; border-bottom:2px solid #fff; transform:skew(-18deg) rotate(-25deg); border-bottom-left-radius:2px; }
.quick-link b,.quick-link small { display:block; }
.quick-link b { font-size:13px; margin-bottom:4px; }
.quick-link small { font-size:11px; color:#aaa; }
.arrow { color:var(--orange); font-size:18px; }
footer { margin-top:auto; text-align:center; color:#999; font-size:11px; padding-top:8px; }
footer span { color:var(--orange); }
.footer-mark { width:25px; height:25px; object-fit:contain; opacity:.85; }
.footer-note { color:#666; font-size:10px; } .footer-links { margin:5px 0; font-size:11px; } .footer-links a { color:var(--orange); text-decoration:none; } .footer-links a:hover,.footer-links a:focus { color:var(--purple); text-decoration:underline; }
@media(max-width:360px) { .app-shell{padding-left:14px;padding-right:14px}.brand-logo-link{flex-basis:210px}.player-card{grid-template-columns:56px minmax(0,1fr) 44px;gap:9px;padding:12px 10px}.album-art-frame{width:56px}.play-button{width:44px;height:44px} }


/* Ingebedde Radio Kick-pagina's */
.page-head{display:flex;align-items:center;gap:12px;margin-bottom:2px}
.back-link{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;color:#fff;text-decoration:none;background:#191919;border:1px solid #9344e277;font-size:25px}
.page-heading{min-width:0;flex:1}
.page-heading .eyebrow{margin-bottom:5px}
.page-heading h1{margin:0;color:var(--orange);font-size:25px;line-height:1.15}
.embed-card,.onair-card{overflow:hidden;border:1px solid #9344e277;border-radius:16px;background:#000;box-shadow:0 12px 35px #0008}
.embed-intro{margin:0;color:#bbb;font-size:12px;line-height:1.5}
.embed-frame{display:block;width:100%;border:0;background:#000}
.chat-frame-top{height:200px;transition:height 0.15s ease;}
.chat-frame-main{height:clamp(420px,62vh,760px);transition:height 0.15s ease;}
.request-frame{height:clamp(420px,68vh,900px);min-height:55vh;transition:height 0.15s ease;}
.nonstop-frame{height:160px;min-height:0;max-height:none;}
.embed-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#17121d;border-bottom:1px solid #9344e244}
.app-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;border:1px solid var(--purple);border-radius:10px;background:var(--orange);color:#111;text-decoration:none;font-size:12px;font-weight:850;cursor:pointer}
.app-action.secondary{background:#18121f;color:#fff}
.embed-note{padding:12px;margin:0;color:#aaa;font-size:11px;line-height:1.5}
.embedded-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}
.embedded-subtitle{font-size:10px;color:#aaa;text-align:right}
.onair-card{width:min(100%,252px);margin:0 auto;background:#000}
html.rk-lenovo-tb-x505f .onair-card{width:min(100%,320px)}
.onair-card .embedded-heading{padding:10px 12px;background:#101010}
.onair-card .section-label{margin:0;color:#aaa}
/* ON AIR: iets ruimere overlap voorkomt een dunne lichte strook langs de iframe-rand op afwijkende schermbreedtes. */
.onair-card iframe{display:block;position:relative;left:-8px;width:calc(100% + 16px);max-width:none;height:277px;margin:0;border:0;outline:0;background:#000}
/* Alleen Lenovo TB-X505F: passend frame zonder overlap en met hoogte afgestemd op de geschaalde ON AIR-inhoud. */
html.rk-lenovo-tb-x505f .onair-card iframe{left:0!important;width:100%!important;max-width:100%!important;height:356px!important}

.program-ticker {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    margin-top: -12px;
    padding: 9px 0;
    border-top: 1px solid #9344e244;
    border-bottom: 1px solid #9344e244;
    color: var(--orange);
    text-decoration: none;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .6px;
    background: #120d16;
}

.program-ticker-track {
    display: flex;
    width: max-content;
    animation: rk-ticker 75s linear infinite;
}

.program-ticker-item {
    display: block;
    flex: 0 0 auto;
    padding-right: 0.3em;
}

.program-ticker:hover .program-ticker-track {
    animation-play-state: paused;
}

@keyframes rk-ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-ticker-track {
        display: block;
        width: auto;
        animation: none;
    }

    .program-ticker-item {
        white-space: normal;
        padding-right: 0;
    }

    .program-ticker-item[aria-hidden="true"] {
        display: none;
    }
}
@media(max-width:360px){.chat-frame-top{height:150px}.chat-frame-main{height:560px}.request-frame{height:600px}}


/* Radio Kick-app: sticky speler op alle pagina's behalve de chatpagina.
   We gebruiken een expliciete body-class in plaats van :has(), zodat dit ook
   betrouwbaar werkt in Android WebView en tijdens interne navigatie. */
body:not(.rk-chat-page) {
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

body:not(.rk-chat-page) .player-card {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  margin: 0;
  box-shadow: 0 8px 32px #000d, 0 0 0 1px #9344e244;
}

/* Sterke reset op de chatpagina: de speler staat in de normale pagina-indeling
   boven de chatframes en mag die frames dus niet overlappen. */
body.rk-chat-page .player-card {
  position: relative !important;
  z-index: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 0 !important;
  box-shadow: 0 12px 35px #0008;
}

@media (max-width: 360px) {
  body:not(.rk-chat-page) .player-card {
    width: calc(100% - 16px);
  }
}

/* Net Geweest: gele accentkleur */
.history-icon { background:#f5d000; color:#111; }
.home-icon { background:var(--orange); color:#111; }
.history-frame { display:block; width:100%; height:375px; border:1px solid var(--purple); border-radius:6px; background:#000; }


/* Radio Kick App 3.0.0 — gedeelde navigatie op de subpagina's. */
.rk-subpage .app-shell { gap:18px; }
.subpage-brand { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; margin:0; }
.subpage-logo-link { display:block; width:min(225px,68%); line-height:0; flex:0 1 225px; }
.subpage-logo { display:block; width:100%; height:auto; object-fit:contain; filter:drop-shadow(0 0 8px #9344e222); }
.subpage-live-pill { padding:7px 9px; gap:6px; font-size:8px; letter-spacing:.8px; }
.subpage-live-pill i { width:7px; height:7px; flex:0 0 7px; }
.subpage-heading { width:100%; text-align:left; display:flex; flex-direction:column; align-items:flex-start; gap:0; }
.subpage-heading h1 { margin:0 0 3px; color:var(--orange); font-size:clamp(34px,8vw,45px); line-height:1.05; letter-spacing:-1.6px; font-weight:700; }
.subpage-tagline { margin:0 0 12px; color:#fff; font-size:15px; font-weight:750; letter-spacing:.1px; line-height:1.25; }
.subpage-description { max-width:100%; margin:0; color:#c4a4e8; font-size:10px; line-height:1.55; font-weight:850; letter-spacing:1.7px; text-align:left; }
.subpage-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; width:100%; }
.subnav-tile { min-width:0; min-height:82px; padding:10px 4px 9px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; text-decoration:none; color:#fff; text-align:center; border:1px solid #ffffff16; border-radius:14px; background:linear-gradient(155deg,#191919,#101010); transition:border-color .15s ease,transform .15s ease,background .15s ease; }
.subnav-tile:hover { border-color:var(--purple); transform:translateY(-1px); background:#1a151f; }
.subnav-tile:active { transform:translateY(0); }
.subnav-icon { width:36px; height:36px; flex:0 0 36px; display:grid; place-items:center; border-radius:11px; color:#111; background:var(--orange); }
.subnav-icon svg { display:block; width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.subnav-home .subnav-icon { background:var(--orange); color:#111; }
.subnav-chat .subnav-icon { background:var(--purple); color:#fff; }
.subnav-request .subnav-icon { background:#27a653; color:#fff; }
.subnav-history .subnav-icon { background:#f5d000; color:#111; }
.subnav-label { display:block; max-width:100%; font-size:10px; line-height:1.15; font-weight:800; overflow-wrap:anywhere; }
.subpage-nav a:focus-visible { outline:3px solid #fff; outline-offset:3px; }
@media(max-width:360px) {
  .rk-subpage .app-shell { gap:15px; }
  .subpage-logo-link { width:min(205px,66%); flex-basis:205px; }
  .subpage-live-pill { padding:6px 7px; gap:5px; font-size:7px; letter-spacing:.5px; }
  .subpage-nav { gap:7px; }
  .subnav-tile { min-height:78px; padding-left:2px; padding-right:2px; border-radius:12px; }
  .subnav-icon { width:33px; height:33px; flex-basis:33px; }
  .subnav-label { font-size:9px; }
}


/* Radio Kick App v3.0.0: compacte chatregels, alleen zichtbaar op chat.html. */
.rk-app-chat-rules {
  margin: 10px 0 12px;
  padding: 10px 12px;
  color: #eee;
  background: #080808;
  border: 1px solid #9344E2;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.rk-app-chat-rules > strong { color: #FF8600; display: block; margin-bottom: 4px; }
.rk-app-chat-rules p { margin: 4px 0 0; }
.rk-app-chat-howto { margin-top: 0; }


/* Radio Kick App v3.0.1: schermvullende albumhoesviewer. */
.album-art-frame {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
}
.album-art-frame:focus-visible,
.rk-history-track-art:focus-visible,
.rk-art-lightbox-close:focus-visible { outline: 2px solid #ff8600; outline-offset: 3px; }
body.rk-art-viewer-open { overscroll-behavior: none; }
.rk-art-lightbox[hidden] { display: none !important; }
.rk-art-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0,0,0,.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  touch-action: none;
  overscroll-behavior: contain;
}
.rk-art-lightbox-content {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 38px 0 8px;
  box-sizing: border-box;
}
.rk-art-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 100vw - 32px);
  max-height: min(72dvh, 100dvh - 150px);
  object-fit: contain;
  box-sizing: border-box;
  border: 2px solid #9344E2;
  border-radius: 18px;
  background: #101010;
  box-shadow: 0 0 0 1px #9344e233, 0 12px 42px #000b;
}
.rk-art-lightbox-caption {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 0 10px;
}
.rk-art-lightbox-title { color: #fff; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.rk-art-lightbox-artist { color: #d0b3f5; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.rk-art-lightbox-hint { color: #aaa; font-size: 11px; line-height: 1.35; }
.rk-art-lightbox-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #9344e2;
  border-radius: 14px;
  color: #fff;
  background: #18121f;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px #0008;
}
@media (orientation: landscape) {
  .rk-art-lightbox-content { flex-direction: row; gap: 18px; padding: 38px 0 8px; }
  .rk-art-lightbox-image { max-width: min(66vw, 100dvh - 80px); max-height: calc(100dvh - 85px); }
  .rk-art-lightbox-caption { max-width: 30vw; }
}

/* v3.0.1: API-backed tracklijst met per albumhoes dezelfde viewer. */
.rk-history-list { display: grid; gap: 10px; width: 100%; }
.rk-history-status { margin: 0; padding: 16px 12px; color: #c4a4e8; text-align: center; font-size: 13px; line-height: 1.5; }
.rk-history-track {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid #9344e277;
  border-radius: 14px;
  background: linear-gradient(120deg, #1c1c1c, #101010 72%);
  box-shadow: 0 5px 16px #0004;
}
.rk-history-track-art {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #9344e288;
  border-radius: 12px;
  background: #202020;
  cursor: zoom-in;
}
.rk-history-track-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-history-track-details { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rk-history-track-title { display: -webkit-box; overflow: hidden; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rk-history-track-artist { display: -webkit-box; overflow: hidden; color: #d1d1d1; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rk-history-track-time { color: #ad8bdb; font-size: 10px; line-height: 1.35; }
.history-frame[hidden] { display: none !important; }
@media (max-width: 360px) {
  .rk-history-track { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; padding: 8px; }
  .rk-history-track-art { width: 58px; height: 58px; }
}


/* Radio Kick v3.0.6: native startup logo and red Google Play update notice. */
.rk-update-notice[hidden],
.rk-startup-splash[hidden] { display: none !important; }
.rk-update-notice {
  display: grid;
  gap: 9px;
  margin: 12px 0 18px;
  padding: 15px;
  border: 2px solid #ff3434;
  border-radius: 15px;
  background: linear-gradient(135deg, #17121d, #080808 78%);
  box-shadow: 0 0 0 1px #ff343433, 0 5px 18px #0006;
}
.rk-update-notice > strong { color: #d8b8ff; font-size: 15px; line-height: 1.35; }
.rk-update-notice > p { margin: 0; color: #e1e1e1; font-size: 13px; line-height: 1.45; }
.rk-update-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 15px;
  border: 1px solid #9344E2;
  border-radius: 12px;
  color: #080808;
  background: #FF8600;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.rk-update-button:active { background: #9344E2; color: #080808; }
.rk-startup-splash {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: #000;
  color: #FF8600;
  text-align: center;
  overscroll-behavior: contain;
}
.rk-startup-splash img {
  display: block;
  width: min(76vw, 310px);
  max-height: 48vh;
  object-fit: contain;
  filter: drop-shadow(0 0 15px #9344e255);
}
.rk-startup-splash span {
  color: #d6b5ff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .02em;
}
