/* TN Music TV V014 – watch view: YouTube player visible, controls and queue TV-remote-friendly */
.tn-watch-root[hidden],.tn-watch-error[hidden]{display:none!important}
.tn-watch-root{position:fixed;inset:0;z-index:60;background:#0e0e0e;color:#f6f6f6;overflow:auto;overscroll-behavior:contain;font-family:Arial,Roboto,'Segoe UI',sans-serif}
.tn-watch-root button:focus-visible,.tn-watch-root input:focus-visible,.tn-watch-root a:focus-visible{outline:3px solid #51e6e4;outline-offset:3px}
.tn-watch-head{display:flex;gap:15px;align-items:center;padding:13px 30px 12px;background:#111;border-bottom:1px solid #242424;min-height:68px}
.tn-watch-head .tn-watch-back{padding:10px 17px;background:#282828;border-radius:28px;border:1px solid #454545;color:white;font-size:16px;font-weight:700;white-space:nowrap}
.tn-watch-head .tn-watch-brand{font-size:19px;font-weight:800;letter-spacing:-.2px;margin-left:12px}.tn-watch-head .tn-watch-brand span{color:#ed3939}
.tn-watch-source{margin-left:auto;color:#aaa;font-size:14px;max-width:26%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tn-watch-main{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:22px;padding:22px 28px 20px;max-width:2150px;margin:0 auto}
.tn-watch-left{min-width:0}.tn-watch-video{aspect-ratio:16/9;background:#040404;border-radius:16px;position:relative;overflow:hidden;border:1px solid #333;box-shadow:0 8px 24px #0006}
.tn-watch-embed,.tn-watch-embed>div,.tn-watch-embed>iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.tn-watch-error{position:absolute;inset:0;z-index:4;background:#080808ec;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:25px;text-align:center}
.tn-watch-error strong{font-size:21px;max-width:560px}.tn-watch-error p{margin:0;color:#bbb;font-size:14px;max-width:590px}.tn-watch-error .tn-watch-actions{justify-content:center}
.tn-watch-error a{color:#fff;text-decoration:none;border-radius:24px;background:#c82424;padding:13px 18px;font-weight:700}
.tn-watch-title{font-size:clamp(20px,2vw,29px);margin:17px 2px 9px;line-height:1.25}.tn-watch-artist{color:#c1c1c1;font-size:16px;margin:0 2px 18px}
.tn-watch-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:4px 0 12px}.tn-watch-btn{border-radius:24px;background:#282828;border:1px solid #444;padding:12px 17px;color:#f7f7f7;white-space:nowrap;font-weight:700;font-size:15px;min-height:48px}
.tn-watch-btn:hover{background:#3c3c3c}.tn-watch-btn[disabled]{opacity:.45;cursor:not-allowed}.tn-watch-btn.primary{background:#ededed;color:#111}
.tn-watch-status{min-height:22px;font-size:14px;color:#98e5c2;padding:2px 4px}.tn-watch-status.is-error{color:#ffa0a0}
.tn-watch-right{min-width:0;background:#161616;border:1px solid #282828;border-radius:16px;min-height:350px;display:flex;flex-direction:column;max-height:calc(100vh - 114px);overflow:hidden}
.tn-watch-right-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 17px 13px;border-bottom:1px solid #282828}
.tn-watch-right-head h2{font-size:21px;margin:0}.tn-watch-auto{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:13px;color:#ddd}.tn-watch-auto input{accent-color:#38d1d6;width:23px;height:23px}
.tn-watch-queue{overflow-y:auto;overflow-x:hidden;min-height:0;scrollbar-color:#4d4d4d transparent;padding:10px}
.tn-queue-card{border:1px solid transparent;width:100%;background:transparent;color:white;border-radius:12px;padding:9px;display:flex;gap:13px;align-items:flex-start;text-align:left;min-height:94px}
.tn-queue-card:hover{background:#282828}.tn-queue-card.active{background:#19343a;border-color:#46d8d6}
.tn-queue-thumb{display:block;position:relative;width:42%;flex:none;aspect-ratio:16/9;background:linear-gradient(150deg,#315161,#473051);overflow:hidden;border-radius:8px}
.tn-queue-thumb img{width:100%;height:100%;object-fit:cover}.tn-queue-thumb>span{position:absolute;right:5px;bottom:4px;background:#111d;padding:3px 6px;border-radius:5px;font-size:12px}
.tn-queue-meta{min-width:0;flex:1}.tn-queue-meta strong{font-size:15px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tn-queue-meta small{display:block;color:#aaa;margin-top:5px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tn-queue-meta em{font-size:11px;font-style:normal;color:#ffab9f}
.tn-watch-footer{text-align:center;padding:9px;color:#8d8d8d;font-size:12px}
@media(min-width:1800px){.tn-watch-main{grid-template-columns:minmax(0,1.9fr) minmax(400px,.95fr)}.tn-watch-right{max-height:calc(100vh - 130px)}}
@media(max-width:1050px){.tn-watch-main{gap:12px;padding:14px;grid-template-columns:minmax(0,1.75fr) minmax(250px,1fr)}.tn-watch-right{max-height:calc(100vh - 92px)}.tn-queue-card{gap:7px}.tn-queue-thumb{width:37%}.tn-queue-meta strong{font-size:12px}.tn-watch-btn{font-size:13px;padding:9px 12px;min-height:42px}.tn-watch-head{padding:10px 14px}}
@media(max-width:700px){.tn-watch-main{grid-template-columns:1fr}.tn-watch-right{max-height:360px}.tn-watch-head .tn-watch-brand{display:none}.tn-watch-source{max-width:48%}}

.tn-watch-queue-summary{font-size:12px;color:#a3a3a3;padding:8px 19px 2px}
.tn-watch-queue-notice{color:#9dd4d0;font-size:12px;line-height:1.35;padding:7px 15px 13px;max-height:76px;overflow:auto}
.tn-queue-card:disabled{opacity:.52;cursor:not-allowed}.tn-queue-card:disabled:hover{background:transparent}

/* V014 watch screen follows the global Music TV theme (player iframe untouched) */
.tn-watch-root{background:var(--bg)!important;color:var(--text)!important}
.tn-watch-head{background:var(--bg)!important;border-bottom-color:var(--line)!important}
.tn-watch-back{display:inline-flex!important;align-items:center;gap:8px;background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}
.tn-watch-back svg{width:22px;height:22px;fill:currentColor;stroke:none}
.tn-watch-brand{display:flex;align-items:center;margin-left:8px!important;background:transparent!important;border-radius:0;padding:0;border:0}
.tn-watch-brand img{display:block;height:46px;width:160px;object-fit:contain;background:transparent}
.tn-watch-source,.tn-watch-artist,.tn-watch-queue-summary,.tn-queue-meta small,.tn-watch-footer{color:var(--sub)!important}
.tn-watch-right{background:var(--panel)!important;border-color:var(--line)!important}.tn-watch-right-head{border-bottom-color:var(--line)!important}
.tn-watch-auto,.tn-queue-card,.tn-watch-title,.tn-watch-right-head h2{color:var(--text)!important}
.tn-watch-btn{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important}.tn-watch-btn:hover,.tn-queue-card:hover{background:var(--hover)!important}
.tn-watch-btn.primary{background:var(--focus)!important;color:#071f40!important}
.tn-queue-card.active{background:var(--hover)!important;border-color:#10bde6!important}
.tn-watch-status{color:var(--focus)!important}.tn-watch-error{background:#071f40f0}
@media(max-width:800px){.tn-watch-brand img{width:118px;height:36px}.tn-watch-brand{margin-left:0!important}}

/* V014: small transparent branding in watch view, same Navy/White system */
.tn-watch-brand{background:transparent!important;box-shadow:none!important;border:none!important;padding:0!important}
.tn-watch-brand img{max-width:160px;max-height:48px;border:0!important}
html[data-theme="light"] .tn-watch-head{background:#f6faff!important}


/* Y002: Reliable fullscreen on TV Box WebView, including synthetic D-pad clicks. */
.tn-watch-root.tn-player-expanded{overflow:hidden!important}
.tn-watch-video.tn-video-expanded,
.tn-watch-video:fullscreen{
 position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;
 width:100dvw!important;height:100dvh!important;aspect-ratio:auto!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;background:#000!important;z-index:99999!important;
}
.tn-video-expanded .tn-watch-embed,.tn-video-expanded .tn-watch-embed>div,
.tn-video-expanded .tn-watch-embed>iframe,.tn-video-expanded iframe,
.tn-watch-video:fullscreen .tn-watch-embed,.tn-watch-video:fullscreen iframe{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;border:0!important;
}
#tn-watch-exit-fullscreen[hidden]{display:none!important}
#tn-watch-exit-fullscreen{position:absolute;z-index:100010;top:20px;right:24px;
 background:rgba(7,23,40,.91);color:#fff;border:2px solid #5bdaf4;border-radius:12px;
 min-width:120px;min-height:50px;padding:10px 17px;font-size:17px;font-weight:700;cursor:pointer}
#tn-watch-exit-fullscreen:focus-visible{outline:4px solid #73ecff;outline-offset:3px}
@media(max-width:700px){#tn-watch-exit-fullscreen{top:10px;right:10px;min-width:100px;font-size:13px;min-height:42px}}

/* Y002: Keep main Music TV search visible on the watch screen (Desktop, touch and D-pad). */
.tn-watch-head{gap:clamp(8px,1vw,16px)}
.tn-watch-search-row{display:flex;align-items:center;flex:1 1 420px;gap:10px;margin-left:clamp(4px,1vw,16px);min-width:170px;max-width:740px}
.tn-watch-search-form{display:flex;align-items:center;min-width:0;flex:1;height:48px;margin:0;border-radius:28px;overflow:hidden;background:linear-gradient(100deg,#0b315b,#0d3e69);border:1px solid #147da8;box-shadow:inset 0 1px 0 #40a3cf20}
.tn-watch-search-form:focus-within{border-color:var(--focus);box-shadow:0 0 0 2px #1da8db44}
.tn-watch-search-form input{background:transparent;border:0;outline:0!important;color:var(--text);padding:0 14px;min-width:0;width:100%;font-size:15px}
.tn-watch-search-form input::placeholder{color:var(--sub);opacity:.9}
.tn-watch-search-form button{display:grid;place-items:center;flex:0 0 52px;height:100%;border:0;border-left:1px solid #24658b;background:#124976;color:#e1f8ff}
.tn-watch-search-form button:hover{background:#176494}
.tn-watch-search-row svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#tn-watch-search-mic{flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border:1px solid #247ba8;border-radius:50%;background:var(--panel);color:var(--focus)}
#tn-watch-search-mic:hover,#tn-watch-search-mic:focus-visible{outline:3px solid var(--focus);outline-offset:2px;background:var(--hover)}
.tn-watch-source{margin-left:auto;max-width:19%;flex:0 1 auto}
html[data-theme="light"] .tn-watch-search-form{background:#f7fbff;border-color:#b1d1e7}
html[data-theme="light"] .tn-watch-search-form button{background:#e3f2ff;color:#123e5a;border-left-color:#b1d1e7}
@media(max-width:1100px){.tn-watch-source{display:none}.tn-watch-search-row{margin-left:2px}.tn-watch-brand img{width:125px;height:38px}.tn-watch-head{gap:8px}}
@media(max-width:700px){.tn-watch-head{padding:7px 9px;gap:5px}.tn-watch-back{padding:8px!important;font-size:13px!important}.tn-watch-back span{display:none}.tn-watch-search-row{min-width:0;gap:5px;flex:1;margin-left:0}.tn-watch-search-form{height:38px}.tn-watch-search-form input{padding:0 7px;font-size:12px}.tn-watch-search-form button{flex-basis:34px}.tn-watch-search-row svg{width:19px;height:19px}#tn-watch-search-mic{flex-basis:37px;width:37px;height:37px}}
