
/* FOUNTAIN+ TV V0.3.4.4 — DEFAULT-OPEN GUIDE RESTORED
   Presentation only. Programming, clock, scheduler and playback engine untouched. */

body[data-fplus-tv-viewer-version="0.3.4.4"]{
  background:#020302;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-shell{
  width:min(1540px,calc(100% - 28px));
  padding-top:8px;
}

/* One quiet line above the picture. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-viewer-line{
  min-height:32px;
  margin:0 0 5px;
  padding:0 3px;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.tv-live-identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:#f5f0df;
}
.tv-live-identity .signal-dot{
  width:7px;
  height:7px;
  flex:0 0 auto;
}
.tv-live-word{
  font-size:8px;
  font-weight:950;
  letter-spacing:.16em;
}
.tv-live-identity strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  letter-spacing:-.025em;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] #channel-clock{
  margin-left:auto;
  color:#f5f0df;
  font-size:12px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  letter-spacing:.02em;
  white-space:nowrap;
}

/* Video is the experience. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage{
  margin-top:0!important;
  border-radius:14px;
  border-color:rgba(255,255,255,.08);
  box-shadow:0 18px 54px rgba(0,0,0,.38);
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-mobile-broadcast-bar{
  display:none!important;
}

/* Controls fully vanish unless the user touches/moves/focuses inside the player. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-controls{
  opacity:0!important;
  visibility:hidden;
  transform:translateY(7px);
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage.controls-awake .tv-controls,
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage:focus-within .tv-controls{
  opacity:1!important;
  visibility:visible;
  transform:none;
  pointer-events:auto;
  transition-delay:0s;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-controls button{
  background:rgba(0,0,0,.72);
  border-color:rgba(255,255,255,.16);
  backdrop-filter:blur(14px);
}

/* No persistent program cards below the picture. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-guide-deck,
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-title-cards,
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-status-grid,
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-note{
  display:none!important;
}

/* Full Guide is the only information surface. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-guide-clean{
  margin:7px 0 0;
  padding:0;
  text-align:right;
  background:transparent;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] #guide-toggle{
  min-height:32px;
  padding:6px 3px;
  border:0;
  background:transparent;
  color:rgba(245,240,223,.48);
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
  cursor:pointer;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] #guide-toggle:hover{
  color:#f5f0df;
}

/* NOW PLAYING exists only when Full Guide is open. */
body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-now-panel{
  display:none;
  text-align:left;
  padding:17px 18px 15px;
  border:1px solid rgba(255,255,255,.09);
  border-bottom:0;
  border-radius:13px 13px 0 0;
  background:
    linear-gradient(120deg,rgba(226,185,79,.055),transparent 48%),
    #090b09;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] #guide-toggle[aria-expanded="true"] + .guide-now-panel{
  display:block;
}
.guide-now-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:rgba(245,240,223,.48);
  font-size:8px;
  font-weight:850;
  letter-spacing:.1em;
}
.guide-now-live{
  display:flex;
  align-items:center;
  gap:6px;
  color:#e2b94f;
  letter-spacing:.14em;
}
.guide-now-live i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#ff453f;
}
.guide-now-panel h2{
  margin:9px 0 7px;
  color:#f5f0df;
  font-size:22px;
  line-height:1.06;
  letter-spacing:-.03em;
}
.guide-now-detail{
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(245,240,223,.43);
  font-size:9px;
}
.guide-now-detail span+span:before{
  content:"·";
  margin-right:9px;
  color:rgba(245,240,223,.22);
}
.guide-now-detail strong{
  margin-left:auto;
  color:rgba(245,240,223,.68);
  font-size:10px;
  font-variant-numeric:tabular-nums;
}
.guide-now-panel .guide-progress{
  height:2px;
  margin-top:11px;
  background:rgba(255,255,255,.12);
}
.guide-now-panel .guide-progress>span{
  display:block;
  width:0;
  height:100%;
  background:#e2b94f;
  transition:width .8s linear;
}

body[data-fplus-tv-viewer-version="0.3.4.4"] .full-guide{
  margin:0;
  border:1px solid rgba(255,255,255,.09);
  border-top:1px solid rgba(255,255,255,.055);
  border-radius:0 0 13px 13px;
  background:#080a08;
  text-align:left;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .full-guide[hidden]{
  display:none!important;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-label{
  padding:13px 18px 8px;
  color:rgba(245,240,223,.36);
  font-size:8px;
  letter-spacing:.14em;
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-row{
  min-height:58px;
  border-top-color:rgba(255,255,255,.065);
}
body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-kind{
  opacity:.42;
}

/* Mobile: same hierarchy, less chrome. */
@media(max-width:760px){
  html{
    overflow-y:auto!important;
    overflow-x:hidden!important;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"]{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    position:static!important;
    touch-action:pan-y!important;
    -webkit-overflow-scrolling:touch;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-topbar{
    height:50px;
    padding:0 14px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-topbar nav{
    display:none!important;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-shell{
    width:100%;
    margin:0;
    padding:3px 0 max(28px,env(safe-area-inset-bottom));
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-viewer-line{
    min-height:31px;
    margin:0;
    padding:0 12px;
    display:flex!important;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-live-identity strong{
    font-size:13px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] #channel-clock{
    font-size:11px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage{
    width:100%;
    margin:0;
    border:0;
    border-radius:0;
    box-shadow:none;
  }

  /* Keep portrait material intentional without adding UI. */
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage[data-video-orientation="portrait"]{
    background:
      radial-gradient(ellipse at 50% 50%,rgba(226,185,79,.10),transparent 34%),
      linear-gradient(90deg,#020302,#10150d 34%,#10150d 66%,#020302);
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-stage[data-video-orientation="portrait"] #tv-video{
    width:auto;
    max-width:52%;
    height:100%;
    margin:0 auto;
    object-fit:contain;
    box-shadow:0 0 44px rgba(0,0,0,.6);
  }

  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-controls{
    left:8px;
    right:8px;
    bottom:8px;
    gap:5px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-controls button{
    min-height:30px;
    padding:7px 9px;
    font-size:7px;
    letter-spacing:.07em;
  }

  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-guide-clean{
    margin-top:2px;
    padding:0 10px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] #guide-toggle{
    width:100%;
    min-height:38px;
    text-align:right;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-now-panel{
    margin:0 -10px;
    padding:14px 14px 13px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-now-panel h2{
    font-size:18px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .full-guide{
    margin:0 -10px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-row{
    grid-template-columns:68px minmax(0,1fr);
    padding:10px 14px;
  }
  body[data-fplus-tv-viewer-version="0.3.4.4"] .guide-kind{
    display:none!important;
  }
}

@media(max-width:390px){
  .tv-live-word{font-size:7px}
  body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-live-identity strong{font-size:12px}
  body[data-fplus-tv-viewer-version="0.3.4.4"] #channel-clock{font-size:10px}
}

/* V0.3.4.3 — owner-requested cleanup */
body[data-fplus-tv-viewer-version="0.3.4.4"] .tv-watermark{
  display:none!important;
}

/* Guide is the intentional information surface, so when open it should
   feel attached to the viewer instead of like a developer panel. */
body[data-fplus-tv-viewer-version="0.3.4.4"] #guide-toggle[aria-expanded="true"]{
  color:rgba(245,240,223,.72);
}
