/* Shared navigation and live patch search. */
#yt-header,#yt-header *{box-sizing:border-box}
#yt-header{position:sticky;top:0;z-index:9990;width:100%;padding:29px clamp(12px,2.15vw,34px) 0;font-family:Geist,system-ui,-apple-system,"Segoe UI",sans-serif;color:#fff}
body.admin-bar #yt-header{top:32px}
#yt-header .yt-bar{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:72px;padding:0 16px;border:1px solid #242424;border-radius:8px;background:#000;color:#fff}
#yt-header a{color:inherit;text-decoration:none}
#yt-header .yt-logo{justify-self:start;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:clamp(25px,3vw,37px);font-weight:900;letter-spacing:-.075em;line-height:1}
#yt-header .yt-logo img{width:34px;height:34px;display:block;object-fit:contain;flex:none}
#yt-header nav{display:flex;align-items:center;gap:4px}
#yt-header nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:6px;font-size:16px;line-height:20px;font-weight:500;white-space:nowrap}
#yt-header nav a:hover,#yt-header summary:hover,#yt-header .yt-toggle:hover{background:#222}
#yt-header nav a[aria-current]::after{content:"";width:7px;height:7px;border-radius:50%;background:#fff}
#yt-header .yt-tools{display:flex;justify-self:end;gap:8px}
#yt-header summary,#yt-header .yt-toggle{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;list-style:none;border:1px solid #303030;border-radius:7px;background:#000;color:#fff;cursor:pointer}
#yt-header summary::-webkit-details-marker{display:none}
#yt-header .yt-toggle{display:none}
#yt-header .yt-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#yt-header .yt-quick-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(430px,100%);max-height:min(70vh,570px);overflow:auto;padding:14px;border:1px solid #57424e;border-radius:12px;background:#1c141b;color:#fff;box-shadow:0 16px 40px #0008}
#yt-header .yt-quick-form{display:flex;gap:8px}
#yt-header .yt-quick-form input{min-width:0;flex:1;width:100%;padding:10px;border:1px solid #8a7180;border-radius:7px;background:#2b1e29;color:#fff;font:inherit}
#yt-header .yt-quick-form input::placeholder{color:#ddccd6}
#yt-header .yt-quick-form button{padding:8px 14px;border:0;border-radius:7px;background:#c7164c;color:#fff;font:inherit;font-weight:700;cursor:pointer}
#yt-header #yt-quick-status{margin:10px 0 2px;font-size:.86rem;line-height:1.4;color:#ebdce4}
#yt-header #yt-quick-results{margin:8px 0 0;padding:0;list-style:none}
#yt-header #yt-quick-results[hidden]{display:none}
#yt-header #yt-quick-results a{display:flex;align-items:center;gap:11px;min-height:46px;padding:7px 8px;border-radius:7px;font-size:.94rem;overflow-wrap:anywhere}
#yt-header #yt-quick-results a:is(:hover,:focus-visible){background:#4b2d40}
#yt-header #yt-quick-results img{width:36px;height:48px;object-fit:cover;border-radius:5px;flex:none}
#yt-header :focus-visible{outline:2px solid #fff;outline-offset:2px}
#yt-footer .yt-footer-brand span{background:transparent url("assets/yamatab-mark.svg") center/contain no-repeat;color:transparent}
@media(max-width:782px){body.admin-bar #yt-header{top:46px}}
@media(max-width:760px){
 #yt-header .yt-bar{grid-template-columns:1fr auto}
 #yt-header .yt-logo img{width:31px;height:31px}
 #yt-header .yt-toggle{display:grid}
 #yt-header nav{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);flex-direction:column;align-items:stretch;padding:8px;background:#000;border:1px solid #333;border-radius:8px}
 #yt-header[data-menu="open"] nav{display:flex}
 #yt-header .yt-quick-panel{background:#fcfafb;color:#211019;border-color:#dcc7d2}
 #yt-header .yt-quick-form input{background:#fff;color:#211019;border-color:#a78698}
 #yt-header .yt-quick-form input::placeholder,#yt-header #yt-quick-status{color:#634b5b}
 #yt-header #yt-quick-results a:is(:hover,:focus-visible){background:#f7e1eb}
}

/* The field unfolds left of the fixed magnifier; only typed matches appear below. */
#yt-header.yt-header-v2 .yt-tools{width:100%;min-width:0;justify-content:flex-end}
#yt-header.yt-header-v2 .yt-quick-search{position:relative;flex:1;min-width:0}
#yt-header.yt-header-v2 .yt-quick-search summary{margin-inline-start:auto}
#yt-header.yt-header-v2 .yt-quick-panel{position:static;width:auto;max-height:none;overflow:visible;padding:0;border:0;background:none;box-shadow:none}
#yt-header.yt-header-v2 .yt-quick-form{position:absolute;inset-inline:0 43px;top:0;height:44px;z-index:1;align-items:stretch}
#yt-header.yt-header-v2 .yt-quick-form input{height:100%;border-radius:7px 0 0 7px;padding:8px 12px;background:#141215;border-color:#514650}
#yt-header.yt-header-v2 .yt-quick-search[open] summary{border-radius:0 7px 7px 0;border-color:#514650;background:#141215}
#yt-header.yt-header-v2 .yt-quick-search[open] .yt-quick-form{animation:yt-unfold-left .22s cubic-bezier(.25,.65,.35,1) both}
@keyframes yt-unfold-left{from{clip-path:inset(-4px -4px -4px 100%);opacity:.25}to{clip-path:inset(-4px -4px -4px -4px);opacity:1}}
#yt-header.yt-header-v2 .yt-quick-popover{position:absolute;z-index:3;right:0;top:calc(100% + 12px);width:min(360px,calc(100vw - 40px));max-height:min(65vh,500px);overflow:auto;padding:13px;border-radius:10px;border:1px solid #57424e;background:#1c141b;color:#fff;box-shadow:0 12px 36px #0008}
#yt-header.yt-header-v2 .yt-quick-popover[hidden]{display:none}
#yt-header.yt-header-v2 #yt-quick-status{margin:0 0 6px}
@media(min-width:761px){
 #yt-header.yt-header-v2 .yt-bar{grid-template-columns:minmax(145px,1fr) auto minmax(112px,1fr);column-gap:8px}
 #yt-header.yt-header-v2 .yt-quick-search{max-width:354px}
}
@media(max-width:760px){
 #yt-header.yt-header-v2 .yt-tools{grid-area:1/2}
 #yt-header.yt-header-v2 .yt-quick-search{flex:none;width:44px}
 #yt-header.yt-header-v2 .yt-bar:has(.yt-quick-search[open]) .yt-tools{grid-area:1/1/2/3;padding-inline-start:43px;z-index:1;pointer-events:none}
 #yt-header.yt-header-v2 .yt-bar:has(.yt-quick-search[open]) .yt-logo span{position:absolute;clip-path:inset(50%);pointer-events:none}
 #yt-header.yt-header-v2 .yt-bar:has(.yt-quick-search[open]) .yt-quick-search{flex:1;width:auto}
 #yt-header.yt-header-v2 .yt-tools :is(details,button){pointer-events:auto}
 #yt-header.yt-header-v2 .yt-quick-search[open] summary{background:#211a22;border:1px solid #57424e;color:#fff}
 #yt-header.yt-header-v2 .yt-quick-form input{background:#211a22;color:#fff;border-color:#57424e}
 #yt-header.yt-header-v2 .yt-quick-form input::placeholder{color:#d1becb}
 #yt-header.yt-header-v2 .yt-quick-popover{width:min(350px,calc(100vw - 80px));border-color:#57424e;background:#211a22;color:#fff}
}
@media(prefers-reduced-motion:reduce){#yt-header.yt-header-v2 .yt-quick-search[open] .yt-quick-form{animation:none}}
@media(max-width:760px){
 #yt-header.yt-header-v2 .yt-logo{grid-area:1/1/2/2}
 #yt-header.yt-header-v2 .yt-tools{align-self:center}
}

@media(max-width:760px){
 #yt-header.yt-header-v2 #yt-quick-results a:is(:hover,:focus-visible){background:#402d3d}
 #yt-header.yt-header-v2 #yt-quick-status{color:#ebdce4}
}
