/* Narrowcasting — player. Zwart, schermvullend, geen cursor. Ook gebruikt voor het voorbeeld in de editor (.ncp-preview). */

html.ncp-player, html.ncp-player body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #000; cursor: none; }
.ncp-root { position: fixed; inset: 0; background: #000; color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ncp-stage { position: absolute; inset: 0; overflow: hidden; }
.ncp-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.ncp-layer.ncp-on { opacity: 1; }
.ncp-layer.ncp-tr-none { transition: none; }
.ncp-layer.ncp-tr-slide { transform: translateX(6%); }
.ncp-layer.ncp-tr-slide.ncp-on { transform: none; }
.ncp-layer.ncp-tr-zoom { transform: scale(1.06); }
.ncp-layer.ncp-tr-zoom.ncp-on { transform: none; }

.ncp-slide { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
.ncp-slide iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ncp-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ncp-el { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.ncp-el img, .ncp-el video, .ncp-el canvas { width: 100%; height: 100%; display: block; }
.ncp-el canvas { image-rendering: pixelated; }
.ncp-text { white-space: pre-wrap; overflow-wrap: break-word; width: 100%; }
.ncp-line, .ncp-rect, .ncp-ellipse { display: block; }
.ncp-empty { background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, rgba(255,255,255,.16) 12px 24px); }
.ncp-ticker { justify-content: center; white-space: nowrap; }
.ncp-ticker-track { display: inline-flex; width: max-content; animation: ncp-ticker linear infinite; }
.ncp-ticker-track span { padding-right: 2em; }
@keyframes ncp-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Prijslijst (0.3.0): naam … prijs. */
.ncp-pl { display: grid; grid-auto-flow: column; width: 100%; }
.ncp-pl-row { display: flex; align-items: baseline; min-width: 0; }
.ncp-pl-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncp-pl-dots { flex: 1 1 1em; min-width: .6em; margin: 0 .3em; border-bottom: .12em dotted currentColor; opacity: .55; transform: translateY(-.25em); }
.ncp-pl-gap { flex: 1 1 1em; min-width: .6em; }
.ncp-pl-price { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ncp-el .ncp-pl-img { flex: 0 0 auto; width: 1.4em; height: 1.4em; object-fit: contain; margin-right: .4em; align-self: center; border-radius: .15em; }
.ncp-pl-nophoto { background: rgba(255,255,255,.08); }
.ncp-pl-tiles { gap: .6em; align-items: stretch; }
.ncp-pl-tile { line-height: 1.25; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 0; min-width: 0; padding: .3em; text-align: center; background: rgba(255,255,255,.06); border-radius: .3em; overflow: hidden; }
.ncp-el .ncp-pl-tile-img { flex: 1 1 auto; height: auto; min-height: 0; width: 100%; object-fit: contain; }
.ncp-pl-tile-img.ncp-pl-nophoto { display: block; }
.ncp-pl-tile-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: .2em; }
.ncp-pl-single { width: 100%; height: 100%; }
.ncp-pl-one { display: flex; align-items: center; gap: .8em; width: 100%; height: 100%; animation: ncp-pl-fade .6s ease; }
.ncp-el .ncp-pl-one-img { flex: 1 1 50%; width: auto; min-width: 0; height: 100%; object-fit: contain; }
.ncp-pl-one-text { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.ncp-pl-one-name { font-weight: inherit; }
.ncp-pl-one .ncp-pl-price { font-size: 1.6em; font-weight: 700; }
@keyframes ncp-pl-fade { from { opacity: 0; } to { opacity: 1; } }

/* Stand van het scherm (0.3.0): staand opgehangen tv's. */
.ncp-root.ncp-rot-90, .ncp-root.ncp-rot-270 { inset: auto; left: 50%; top: 50%; width: 100vh; height: 100vw; }
.ncp-root.ncp-rot-90 { transform: translate(-50%, -50%) rotate(90deg); }
.ncp-root.ncp-rot-270 { transform: translate(-50%, -50%) rotate(-90deg); }
.ncp-root.ncp-rot-180 { transform: rotate(180deg); }

/* Binnenkomen van elementen. */
.ncp-in-fade { animation: ncp-fade both ease-out; }
.ncp-in-slide-left { animation: ncp-sl both cubic-bezier(.2,.8,.2,1); }
.ncp-in-slide-right { animation: ncp-sr both cubic-bezier(.2,.8,.2,1); }
.ncp-in-slide-up { animation: ncp-su both cubic-bezier(.2,.8,.2,1); }
.ncp-in-slide-down { animation: ncp-sd both cubic-bezier(.2,.8,.2,1); }
.ncp-in-zoom { animation: ncp-zoom both cubic-bezier(.2,.8,.2,1); }
@keyframes ncp-fade { from { opacity: 0; } }
@keyframes ncp-sl { from { opacity: 0; translate: -12% 0; } }
@keyframes ncp-sr { from { opacity: 0; translate: 12% 0; } }
@keyframes ncp-su { from { opacity: 0; translate: 0 18%; } }
@keyframes ncp-sd { from { opacity: 0; translate: 0 -18%; } }
@keyframes ncp-zoom { from { opacity: 0; scale: .7; } }

/* Koppelcode. */
.ncp-pair { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 20%, #1e293b, #020617 70%); }
.ncp-pair-box { text-align: center; max-width: 80vw; }
.ncp-pair h1 { font-size: 4.2vh; font-weight: 650; margin: 0 0 2vh; }
.ncp-pair p { font-size: 2.4vh; margin: 1vh 0; opacity: .9; }
.ncp-code { font-size: 16vh; font-weight: 800; letter-spacing: .08em; margin: 3vh 0; font-variant-numeric: tabular-nums; color: #fbbf24; }
.ncp-muted { opacity: .6; }
.ncp-small { font-size: 1.6vh !important; }
.ncp-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3vh; opacity: .55; text-align: center; padding: 5vw; }
.ncp-identify { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 23, 42, .88); color: #fff; font: 800 12vh system-ui, sans-serif; text-align: center; }
.ncp-identify small { font-size: 3vh; font-weight: 500; opacity: .8; margin-top: 2vh; }
.ncp-offline-dot { position: fixed; right: 10px; bottom: 10px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; opacity: 0; transition: opacity .3s; z-index: 5; }
html.ncp-offline .ncp-offline-dot { opacity: .8; }
html.ncp-closed .ncp-stage { opacity: 0; }

/* Voorbeeld in de editor. */
.ncp-preview { position: relative; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.ncp-preview .ncp-frame { position: relative; overflow: hidden; }
