header,main { padding: .65rem .8rem; }
header strong { font-size: 1.4rem; }
.intro { padding: .7rem 0; }
h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.intro p,#notice { margin: .3rem 0 .65rem; font-size: .85rem; }
#heading { font-size: 1.18rem; margin-bottom: .25rem; }
form { gap: .4rem; }
form label:first-child { flex-basis: 9rem; }
form label:last-child { flex: 1 1 6rem; min-width: 0; }
#grid { gap: .9rem .55rem; }
.card { font-size: .86rem; line-height: 1.25; }
.card small { font-size: .72rem; letter-spacing: normal; }
#watch[open] {
  display: grid;
  grid-template: 'title close' auto 'video video' minmax(0,1fr) 'tools tools' auto 'message message' auto / minmax(0,1fr) auto;
  position: fixed; inset: 0; margin: 0; width: 100%; max-width: none;
  height: 100vh; height: 100dvh; max-height: none;
  border: 0; border-radius: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#title { grid-area: title; align-self: center; margin: .25rem .65rem; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#close { grid-area: close; margin-right: .35rem; }
#watch video:not(:fullscreen) { grid-area: video; width: 100%; height: 100%; min-height: 0; }
.tools { grid-area: tools; align-items: center; margin: .35rem .65rem 0; justify-content: space-between; }
.tools label { display: flex; align-items: center; gap: .5rem; }
.tools select { width: auto; }
#watch button { font-size: .85rem; }
#message { grid-area: message; margin: .2rem .65rem; font-size: .78rem; }
