.body { min-width:0; padding-bottom:13rem }
#title { overflow-wrap:anywhere }
#state + section.card { padding:8px; width:fit-content; max-width:100% }
#state + section.card video { display:block; object-fit:contain; width:min(270px,100%) !important; max-height:145px !important; border-radius:8px }
#tracks .head { display:grid; grid-template-columns:minmax(6em,auto) minmax(100px,1fr) repeat(3,auto); gap:12px; align-items:center }
#tracks .head label { display:flex; align-items:center; gap:12px }
#tracks input[type=range] { width:100%; min-width:0; height:42px; cursor:pointer; margin:0 }
#tracks input[type=range]:disabled { cursor:default }
#tracks canvas { height:80px }
footer { position:fixed; inset:auto 0 0 255px; margin:0; padding:9px clamp(12px,3vw,42px) calc(9px + env(safe-area-inset-bottom)); border-radius:15px 15px 0 0; z-index:5; background:#f9fffa }
footer #seek { height:22px; margin:0 }
@media(max-width:950px){
 #tracks .head { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px }
 #tracks .head b, #tracks .head label, #tracks .head > input { grid-column:1/-1 }
}
@media(max-width:680px){
 footer { left:0; display:grid; grid-template-columns:auto 1fr auto auto; gap:4px; font-size:12px }
 footer #seek { grid-column:1/-1 }
 footer select,footer button { padding:7px 3px }
 #tracks canvas { height:60px }
 #state + section.card video { max-height:110px !important }
 .body { padding-bottom:calc(9rem + env(safe-area-inset-bottom)) }
}
