/* TN /video Y019 TVFIT001 — landscape watch only; original player and remote logic unchanged. */
@media (orientation:landscape) and (min-width: 560px) {
  #tn-watch:not([hidden]) {
    display:flex; flex-direction:column; box-sizing:border-box;
    overflow:hidden !important; padding:2vh 2.5vw; min-height:0;
  }
  #tn-watch .tn-watch-head {
    flex:0 0 auto; min-height:0; padding:4px 5px 6px; gap:8px;
    margin:0; box-sizing:border-box;
  }
  #tn-watch .tn-watch-brand-home {min-height:36px;}
  #tn-watch .tn-watch-brand-home img {width:clamp(85px,12vw,160px);height:clamp(30px,6vh,46px);}
  #tn-watch .tn-watch-head #tn-watch-back.tn-watch-back {width:clamp(34px,6vh,44px)!important;height:clamp(34px,6vh,44px)!important;min-width:0!important;min-height:0!important;flex:0 0 auto!important;}
  #tn-watch .tn-watch-search-row {min-width:0;max-width:none;flex:1;gap:6px;margin-left:0;}
  #tn-watch .tn-watch-search-form {height:clamp(32px,6.2vh,48px);}
  #tn-watch #tn-watch-search-mic {height:clamp(32px,6.2vh,46px);width:clamp(32px,6.2vh,46px);flex:0 0 auto;}
  #tn-watch .tn-watch-main {
    flex:1 1 0; min-height:0; min-width:0; width:100%; box-sizing:border-box;
    display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr); gap:clamp(8px,1.1vw,22px);
    padding:clamp(6px,1.3vh,14px) 5px 4px; margin:0 auto; max-width:none;
  }
  #tn-watch .tn-watch-left {min-width:0;min-height:0;display:flex;flex-direction:column;gap:clamp(3px,.7vh,8px);}
  #tn-watch .tn-watch-fit-slot {flex:1 1 0;min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;position:relative;}
  #tn-watch .tn-watch-video:not(.tn-video-expanded) {
    flex:none; width:100%; height:100%; max-width:100%; max-height:100%;
    aspect-ratio:auto; margin:0; box-sizing:border-box; border-radius:clamp(7px,1vw,16px);
  }
  #tn-watch .tn-watch-title {
    flex:0 0 auto; margin:0 2px; font-size:clamp(13px,2.65vh,28px);line-height:1.15;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
    overflow:hidden;overflow-wrap:anywhere;max-height:2.3em;
  }
  #tn-watch .tn-watch-artist {flex:0 0 auto;margin:0 2px;font-size:clamp(11px,1.9vh,18px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  #tn-watch .tn-watch-actions.tn-neon-controls {flex:0 0 auto; padding:4px 5px 5px;gap:clamp(3px,.65vw,9px);}
  #tn-watch .tn-neon-controls .tn-neon-btn {flex:0 1 62px;width:auto;height:clamp(32px,6vh,44px);min-height:0;}
  #tn-watch .tn-neon-controls .tn-neon-svg {height:clamp(17px,3.4vh,23px);width:clamp(17px,3.4vh,23px);}
  #tn-watch .tn-watch-caption-controls {flex:0 0 auto;}
  #tn-watch .tn-watch-caption-hint.is-visible {margin:0 auto!important;padding:3px 7px!important;max-height:2.8em;overflow:auto;font-size:clamp(10px,1.65vh,13px);}
  #tn-watch .tn-watch-status {flex:0 0 auto;min-height:0;padding:0 2px;font-size:clamp(10px,1.7vh,14px);line-height:1.15;max-height:2.3em;overflow:auto;overflow-wrap:anywhere;}
  #tn-watch .tn-watch-right {min-height:0;max-height:none;height:100%;box-sizing:border-box;overflow:hidden;}
  #tn-watch .tn-watch-right-head {flex:0 0 auto;gap:6px;padding:clamp(6px,1.4vh,15px) 9px;}
  #tn-watch .tn-watch-right-head h2 {min-width:0;font-size:clamp(13px,2.6vh,23px);line-height:1.2;}
  #tn-watch #tn-watch-position {display:block;margin-top:2px;font-size:clamp(10px,1.6vh,14px)!important;}
  #tn-watch .tn-watch-auto {gap:4px;font-size:clamp(10px,1.75vh,15px);}
  #tn-watch .tn-watch-auto input {width:clamp(16px,3vh,24px);height:clamp(16px,3vh,24px);margin:0;}
  #tn-watch .tn-watch-queue-summary {flex:0 0 auto;padding:4px 9px 2px;font-size:clamp(10px,1.7vh,14px);}
  #tn-watch .tn-watch-queue {flex:1 1 0;min-height:0;padding:6px;overflow-y:auto;overscroll-behavior:contain;}
  #tn-watch .tn-queue-card {min-height:0;gap:clamp(5px,.8vw,12px);padding:clamp(4px,.9vh,8px);margin-bottom:2px;align-items:center;}
  #tn-watch .tn-queue-thumb {width:35%;max-width:180px;}
  #tn-watch .tn-queue-meta strong {font-size:clamp(11px,2.1vh,18px);line-height:1.25;}
  #tn-watch .tn-queue-meta small {font-size:clamp(10px,1.65vh,14px);margin-top:3px;}
  #tn-watch .tn-watch-queue-notice {flex:0 0 auto;max-height:2.8em;overflow:auto;padding:3px 9px;font-size:clamp(10px,1.65vh,13px);}
  #tn-watch .tn-watch-queue-notice:empty,#tn-watch .tn-watch-status:empty {display:none;}
  #tn-watch .tn-watch-footer {flex:0 0 auto;padding:2px 5px 0;font-size:clamp(9px,1.5vh,12px);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  /* Preserve native and CSS fallback fullscreen. Inline sizing applies only to the normal slot. */
  #tn-watch .tn-watch-video.tn-video-expanded,#tn-watch .tn-watch-video:fullscreen {max-width:none!important;max-height:none!important;}
  #tn-watch .tn-watch-error {gap:clamp(4px,1.4vh,14px);padding:8px;overflow:auto;}
  #tn-watch .tn-watch-error strong {font-size:clamp(12px,2.5vh,21px);}
  #tn-watch .tn-watch-error p {font-size:clamp(10px,1.9vh,14px);}
  #tn-watch .tn-watch-error .tn-watch-actions {margin:0;}
  #tn-watch .tn-watch-error .tn-watch-btn,#tn-watch .tn-watch-error a {font-size:clamp(10px,1.9vh,14px);min-height:0;padding:6px 9px;}
}
@media (orientation:landscape) and (min-width:560px) and (max-height:420px) {
  #tn-watch .tn-watch-footer {display:none;}
  #tn-watch .tn-watch-right-head {padding:5px 7px;}
  #tn-watch .tn-watch-search-form input {font-size:12px;}
  #tn-watch .tn-watch-title {-webkit-line-clamp:2;}
}
/* Large CSS viewports (native 4K, not 1080p scaled by the TV): keep remote controls legible. */
@media (orientation:landscape) and (min-width:2200px) and (min-height:1200px) {
  #tn-watch .tn-watch-head {padding:8px 10px 12px;gap:16px;}
  #tn-watch .tn-watch-brand-home img {width:clamp(160px,8vw,300px);height:clamp(46px,4vh,90px);max-width:none;max-height:none;}
  #tn-watch .tn-watch-head #tn-watch-back.tn-watch-back {width:clamp(44px,4vh,84px)!important;height:clamp(44px,4vh,84px)!important;max-width:none!important;max-height:none!important;}
  #tn-watch .tn-watch-search-form {height:clamp(48px,4vh,90px);}
  #tn-watch .tn-watch-search-form input {font-size:clamp(15px,1.5vh,32px);}
  #tn-watch #tn-watch-search-mic {width:clamp(46px,4vh,84px);height:clamp(46px,4vh,84px);}
  #tn-watch .tn-watch-title {font-size:clamp(28px,2.5vh,52px);}
  #tn-watch .tn-watch-artist {font-size:clamp(18px,1.8vh,36px);}
  #tn-watch .tn-neon-controls .tn-neon-btn {height:clamp(44px,4.3vh,90px);flex-basis:clamp(62px,6vh,120px);}
  #tn-watch .tn-neon-controls .tn-neon-svg {width:clamp(23px,2.2vh,46px);height:clamp(23px,2.2vh,46px);}
  #tn-watch .tn-watch-right-head h2 {font-size:clamp(23px,2.1vh,44px);}
  #tn-watch #tn-watch-position {font-size:clamp(14px,1.5vh,30px)!important;}
  #tn-watch .tn-watch-auto {font-size:clamp(15px,1.5vh,30px);}
  #tn-watch .tn-watch-auto input {width:clamp(24px,2vh,42px);height:clamp(24px,2vh,42px);}
  #tn-watch .tn-watch-queue-summary,#tn-watch .tn-watch-status,#tn-watch .tn-watch-footer {font-size:clamp(14px,1.4vh,28px);}
  #tn-watch .tn-queue-thumb {max-width:340px;}
  #tn-watch .tn-queue-meta strong {font-size:clamp(18px,1.85vh,38px);}
  #tn-watch .tn-queue-meta small {font-size:clamp(14px,1.4vh,28px);}
}
