/* DESIGNIC TV 1.9.41 — viewport-only scene, no route UI outside the approved image. */
html:has(body.designic-tv-route),body.designic-tv-route{height:100%!important;width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;overscroll-behavior:none!important;background:#100907!important}
body.designic-tv-route{min-height:0!important;position:relative!important}
body.designic-tv-route > :not(.dntv):not(script):not(style):not(template){display:none!important}
body.designic-tv-route .dntv,body.designic-tv-route .dntv *{box-sizing:border-box!important}
body.designic-tv-route .dntv{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#130b08!important;color:#f3ead9!important;font:14px/1.25 Arial,Helvetica,sans-serif!important;isolation:isolate!important}
.dntv:before{content:'';position:absolute;inset:-30px;z-index:0;background-image:var(--dntv-room);background-position:center;background-repeat:no-repeat;background-size:cover;filter:brightness(.76) saturate(.90);pointer-events:none}
.dntv button{font-family:Arial,Helvetica,sans-serif!important;cursor:pointer}
.dntv button:focus-visible{outline:2px solid #ffe3ad!important;outline-offset:3px!important}
.dntv .dntv-sr-only{position:absolute!important;height:1px!important;width:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:0!important;border:0!important}
.dntv-stage{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:min(100vw,177.6833dvh)!important;height:min(100dvh,56.2799vw)!important;z-index:1!important;aspect-ratio:1672 / 941!important;max-width:none!important;max-height:100dvh!important;overflow:hidden!important;isolation:isolate!important;background:#180d0a}
.dntv-room{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:fill!important;pointer-events:none!important;user-select:none!important;-webkit-user-drag:none!important}
/* Exact front-facing CRT interior, calibrated against 1672x941 approved PNG.
   Do not use cover, zoom or projective transforms: all video pixels remain visible. */
.dntv-screen{position:absolute!important;left:39.27%!important;top:18.72%!important;width:30.55%!important;height:37.47%!important;z-index:4!important;overflow:hidden!important;border-radius:12% 11% 12% 12% / 15% 15% 14% 15%!important;clip-path:inset(0 0 0 0 round 12% 12% 12% 12%)!important;background:transparent!important;transform:none!important}
.dntv-screen-content{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;background:#040404;visibility:hidden}
.dntv-screen.is-on .dntv-screen-content{visibility:visible}
.dntv-screen video{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;background:#000!important;border:0!important;border-radius:0!important;filter:none;transform:none!important}
.dntv-screen.is-monochrome video{filter:grayscale(1) contrast(1.08)!important}
.dntv-crt-fx{position:absolute;z-index:7;inset:0;pointer-events:none;display:none;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 3px,rgba(0,0,0,.035) 4px,transparent 5px),radial-gradient(ellipse at center,transparent 54%,rgba(0,0,0,.15) 100%)}
.dntv-screen.is-on .dntv-crt-fx{display:block}
.dntv-standby{position:absolute!important;left:50%!important;top:83%!important;transform:translate(-50%,-50%)!important;z-index:18!important;border:1px solid #d4ab6e!important;border-radius:5px!important;background:rgba(18,10,7,.82)!important;color:#ffe4ae!important;padding:5px 9px!important;min-width:0!important;min-height:0!important;font-size:clamp(7px,.85vw,13px)!important;letter-spacing:.06em!important;white-space:nowrap!important;box-shadow:0 4px 12px #000a!important}
.dntv-standby span{font-size:1.15em}
.dntv-screen.is-on .dntv-standby{display:none!important}
.dntv-status{position:absolute;z-index:16;inset:0;display:flex;align-items:center;justify-content:center;background:#020203ee;color:#efdfc6;text-align:center;font:700 clamp(8px,.85vw,15px) / 1.4 'Courier New',monospace;padding:8%;letter-spacing:.06em}
.dntv-status[hidden]{display:none!important}
.dntv-osd{position:absolute;left:5%;top:5%;right:5%;z-index:12;display:flex;align-items:center;gap:7px;pointer-events:none;color:#e8ffe7;text-shadow:1px 2px 4px #000,0 0 7px #a8d9a3;font:700 clamp(7px,1.04vw,17px) 'Courier New',monospace;letter-spacing:.04em}
.dntv-osd span{max-width:54%;font-size:.72em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dntv-osd small{font-size:.67em;color:#ec554c;margin-left:auto}
.dntv-osd[hidden]{display:none!important}
.dntv-sound{position:absolute!important;left:50%!important;bottom:8%!important;transform:translateX(-50%)!important;z-index:13!important;border:0!important;border-radius:4px!important;background:#130d0bbb!important;color:#f7e7cb!important;padding:4px 8px!important;white-space:nowrap!important;font-size:clamp(7px,.8vw,13px)!important}
.dntv-sound[hidden]{display:none!important}
.dntv-channel-number{position:absolute!important;left:74.44%!important;top:18.70%!important;width:6.28%!important;height:4.44%!important;z-index:9!important;display:grid;place-items:center;background:#150905!important;border:0!important;border-radius:2px!important;color:#ff3021!important;text-shadow:0 0 4px rgba(255,38,20,.72)!important;font:700 clamp(7px,1.25vw,21px)/1 "Courier New",monospace!important;letter-spacing:.015em!important;pointer-events:none;overflow:hidden!important;text-align:center!important}
.dntv-channel-number[hidden]{display:grid!important;color:transparent!important;text-shadow:none!important}
.dntv-hit{position:absolute!important;border:0!important;outline-offset:1px!important;z-index:12!important;opacity:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;min-width:0!important;min-height:0!important;transform:none!important}
.dntv-hit-dial{left:74.70%!important;top:23.55%!important;width:4.2%!important;height:7.4%!important;border-radius:50%!important}
.dntv-hit-remote{left:39.25%!important;top:85.00%!important;width:7.5%!important;height:10.05%!important;border-radius:13%!important}
.dntv-hit-vcr-power{left:74.75%!important;top:77.15%!important;width:1.45%!important;height:3.2%!important;border-radius:4px!important}
/* Guide appears only when the visitor taps the photographed remote. */
.dntv-guide{position:absolute;inset:0;z-index:24;display:flex;flex-direction:column;padding:3.5% 3.7%;overflow:hidden;color:#f7e3bb;background:linear-gradient(#11100feb,#050607f5);font:700 clamp(7px,.79vw,13px)/1.25 'Courier New',monospace;border-radius:inherit}
.dntv-guide[hidden]{display:none!important}
.dntv-guide header,.dntv-guide footer{display:flex;align-items:center;justify-content:space-between;gap:4px;flex-shrink:0}
.dntv-guide header{font-size:1.1em;color:#ffd48f;padding-bottom:2%;border-bottom:1px solid #ae794a}
.dntv-guide button{color:inherit!important;border:0!important;background:transparent!important;min-height:0!important;min-width:0!important;line-height:1.2!important;margin:0!important;padding:2px 4px!important;font-size:inherit!important;font-weight:bold!important;text-transform:none!important}
.dntv-guide header button{font-size:1.35em!important}
.dntv-guide-pages{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:.9em;color:#fce0a8;white-space:nowrap}
.dntv-guide-pages button{padding:2px 4px!important;font-size:1.1em!important}
.dntv-guide-pages button:disabled{opacity:.33!important;cursor:default!important}
.dntv-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:1.2% 1.6%;padding:2% 0;min-height:0;flex:1;overflow:hidden}
.dntv-guide-list button{width:100%;height:100%;border:1px solid #886847!important;text-align:left!important;background:#251915!important;border-radius:3px!important;display:flex;align-items:center;gap:5px;overflow:hidden;font-size:.95em!important;letter-spacing:0!important;white-space:nowrap!important}
.dntv-guide-list button.is-current{border-color:#ffce86!important;background:#533827!important}
.dntv-guide-list button .no{color:#ffc979;flex-shrink:0}
.dntv-guide-list button .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dntv-guide footer{padding-top:2%;border-top:1px solid #876443}
.dntv-guide footer button{border:1px solid #876443!important;border-radius:2px!important;padding:2px 3px!important;font-size:.8em!important}
.dntv-guide footer button:hover,.dntv-guide-list button:hover{background:#5b402d!important}
/* Narrow viewports: keep entire room visible, but make an explicitly opened guide usable. */
@media(max-width:650px){
 .dntv-guide:not([hidden]){position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(93vw,430px)!important;height:min(75dvh,590px)!important;border:1px solid #97714c!important;border-radius:9px!important;box-shadow:0 0 0 100vmax #0009,0 15px 45px #000c!important;z-index:40!important;padding:16px!important;font-size:12px!important}
 .dntv-guide-list{gap:6px;grid-auto-rows:minmax(0,1fr)}
 .dntv-guide footer button{font-size:10px!important}
 .dntv-standby{font-size:6px!important;padding:2px 3px!important}
 .dntv-osd{font-size:6px!important}
 .dntv-sound{font-size:6px!important;padding:2px 4px!important}
 .dntv-status{font-size:7px!important;padding:6%!important}
}
@media(prefers-reduced-motion:reduce){.dntv *, .dntv *:before,.dntv *:after{animation:none!important;transition:none!important}}

/* v1.9.42: use the real photograph to fill side areas, never a blurred fake image.
   The original 1672x941 room and all calibrated screen coordinates are unchanged. */
.dntv:before{inset:0;background-size:cover;filter:brightness(.64) saturate(.78)}
.dntv:after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#10090745,transparent 13%,transparent 87%,#10090745)}
.dntv-screen iframe.dntv-youtube{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:#000!important;max-width:none!important;max-height:none!important}
.dntv-status:not([hidden]){cursor:pointer}

/* v1.9.43 - compact IPTV library controls INSIDE the existing CRT guide. */
.dntv-guide-tabs{display:flex;gap:6px;flex-shrink:0;padding:2.1% 0 .8%;align-items:center}
.dntv-guide-tabs button{border:1px solid #6b5340!important;background:#211812!important;border-radius:2px!important;padding:3px 6px!important;font-size:.92em!important;color:#f5cd8a!important}
.dntv-guide-tabs button.is-active{background:#704424!important;border-color:#f9c57a!important;color:#ffecb4!important}
.dntv-guide-filters{display:flex;align-items:center;gap:5px;flex-shrink:0;flex-wrap:wrap;padding:1.3% 0 1.5%}
.dntv-guide-filters[hidden]{display:none!important}
.dntv-guide-filters input[type=search],.dntv-guide-filters select{min-width:0!important;min-height:0!important;width:42%!important;max-width:100%!important;font:inherit!important;background:#231916!important;border:1px solid #886847!important;border-radius:2px!important;color:#f9dfa8!important;padding:3px 4px!important;box-shadow:none!important;outline-offset:1px}
.dntv-guide-filters select{width:33%!important;text-overflow:ellipsis}
.dntv-guide-filters label{display:flex;align-items:center;gap:2px;font-size:.8em;white-space:nowrap;cursor:pointer}
.dntv-guide-filters input[type=checkbox]{width:12px!important;height:12px!important;margin:0!important;min-width:0!important}
.dntv-guide-list .dntv-guide-message{grid-column:1/-1;align-self:center;text-align:center;color:#decbaa;font-size:1em}
.dntv-iptv-admin-results{border:1px solid #d1d5da;border-radius:6px;overflow:hidden}
.dntv-iptv-admin-item{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #e5e7eb;background:#fff}
.dntv-iptv-admin-item:last-child{border-bottom:0}
.dntv-iptv-admin-item .meta{flex:1;min-width:0;overflow-wrap:anywhere}
.dntv-iptv-admin-item .meta small{display:block;color:#666;margin-top:3px}
@media(max-width:650px){.dntv-guide-filters input[type=search]{width:45%!important}.dntv-guide-filters select{width:32%!important}.dntv-guide-tabs button{font-size:11px!important}.dntv-guide-filters{gap:8px}}

/* v1.9.45: compact source selection within the unchanged CRT guide. */
.dntv-guide-filters #dntv-guide-playlist{width:100%!important;flex:1 1 100%;font-size:.9em!important}

/* v1.9.47: gentle CRT video edge treatment. The picture remains crisp at the center. */
.dntv-screen.is-on .dntv-crt-fx{
  background:
    linear-gradient(to right,rgba(0,0,0,.42),transparent 8%,transparent 92%,rgba(0,0,0,.42)),
    linear-gradient(to bottom,rgba(0,0,0,.36),transparent 9%,transparent 91%,rgba(0,0,0,.40)),
    radial-gradient(ellipse at center,transparent 60%,rgba(0,0,0,.19) 92%,rgba(0,0,0,.36) 100%),
    repeating-linear-gradient(to bottom,transparent 0px,transparent 3px,rgba(0,0,0,.025) 4px,transparent 5px);
  box-shadow:inset 0 0 17px 5px rgba(0,0,0,.18);
}

/* v1.9.48: restore the softly blurred room extension at the outer viewport
   edges only. The original center-stage photograph, CRT and live video remain sharp. */
.dntv:before{inset:-26px!important;filter:blur(20px) brightness(.64) saturate(.78)!important;transform:scale(1.025);transform-origin:center center}

/* Keep the imported-channel browser short until it is needed. */
.dntv-iptv-browser-shell[hidden]{display:none!important}
.dntv-iptv-browser-shell{margin-top:12px;padding:12px;border:1px solid #d0d5dc;border-radius:8px;background:#f7f8fa;max-width:940px}
.dntv-iptv-browser-shell .dntv-iptv-admin-results{max-height:380px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#fff}
@media(max-width:650px){.dntv-iptv-browser-shell{padding:8px}.dntv-iptv-browser-shell .dntv-iptv-admin-results{max-height:50vh}}

/* v1.9.49: separately named playlist tabs, scroll instead of overflowing the TV. */
.dntv-guide-tabs{overflow-x:auto;overflow-y:hidden;min-height:0;scrollbar-width:thin;white-space:nowrap}
.dntv-guide-tabs button{flex:0 0 auto;white-space:nowrap;max-width:165px;overflow:hidden;text-overflow:ellipsis}
