/* Y002: Micro positioned next to, OUTSIDE, the complete TV Search form. */
.tn-voice-search-row{display:flex;align-items:center;gap:12px;width:min(875px,55vw);max-width:100%;min-width:0;margin-left:10px;margin-right:auto;flex:0 1 875px}
.tn-voice-search-row>.search-form{flex:1 1 auto;min-width:0;width:100%!important;max-width:none!important;margin:0!important;position:relative}
.tn-voice-search-row>.tn-voice-mic{flex:0 0 58px;width:58px;height:58px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--focus);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 18px #0004;touch-action:manipulation}
.tn-voice-search-row>.tn-voice-mic:hover,.tn-voice-search-row>.tn-voice-mic:focus-visible{background:var(--hover);outline:3px solid var(--focus);outline-offset:2px}
.tn-voice-search-row>.tn-voice-mic svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
@media(max-width:1250px){.tn-voice-search-row{width:min(745px,57vw);gap:9px}.tn-voice-search-row>.tn-voice-mic{flex-basis:47px;width:47px;height:47px}}
@media(max-width:800px){.tn-voice-search-row{flex:1 1 auto;width:auto;margin-left:0;gap:6px}.tn-voice-search-row>.tn-voice-mic{flex-basis:38px;width:38px;height:38px}.tn-voice-search-row>.tn-voice-mic svg{width:20px;height:20px}}
@media(max-width:480px){.tn-voice-search-row{gap:4px}.tn-voice-search-row>.tn-voice-mic{flex-basis:35px;width:35px;height:35px}}
.tn-voice-panel[hidden]{display:none!important}.tn-voice-panel{position:absolute;z-index:1000;left:50%;top:calc(100% + 12px);transform:translateX(-50%);width:min(580px,90vw);padding:22px;background:var(--panel);color:var(--text);border:2px solid var(--focus);border-radius:18px;box-shadow:0 15px 40px #0009;text-align:center}.tn-voice-panel .voice-head{display:flex;gap:10px;justify-content:space-between;align-items:center}.tn-voice-panel button{color:var(--text);background:var(--hover);border:1px solid var(--line);border-radius:9px;min-width:41px;height:37px;font-size:23px;cursor:pointer}.tn-voice-panel strong{font-size:19px}.tn-voice-panel p{margin:9px 0;line-height:1.5}.tn-voice-bars{display:flex;align-items:center;justify-content:center;gap:5px;height:74px}.tn-voice-bars i{display:block;background:linear-gradient(180deg,var(--focus),#9b76ff);border-radius:9px;width:5px;height:18px;animation:tnVoiceBars 800ms ease-in-out infinite alternate}.tn-voice-bars i:nth-child(2n){animation-delay:-330ms}.tn-voice-bars i:nth-child(3n){animation-delay:-500ms}@keyframes tnVoiceBars{to{height:57px}}@media(max-width:800px){.tn-voice-panel{top:calc(100% + 6px);width:min(92vw,450px);padding:15px}}@media(prefers-reduced-motion:reduce){.tn-voice-bars i{animation:none}}

/* Dialog is a sibling of masthead to escape its overflow clipping. */
.tn-voice-panel{position:fixed;top:calc(var(--header,95px) + 10px);max-height:calc(100vh - var(--header,95px) - 22px);overflow:auto;z-index:10010}

/* Y002: Voice panel remains above the watch view when mic is pressed there. */
.tn-voice-panel{z-index:100100;top:clamp(65px,8vh,108px)}
