@media (max-width: 640px) {
  html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
  img, video { max-width: 100%; }
  header { max-width: 100vw; }
  header > div { padding-left: 8px !important; padding-right: 8px !important; gap: 6px !important; }
  header * { min-width: 0; }
  header button { white-space: nowrap; font-size: 11px !important; padding: 6px 8px !important; }
  header a { flex-shrink: 1; }
  header [class*="text-3xl"], header [class*="text-2xl"], header [class*="text-xl"] { font-size: 1.05rem !important; }
  header [class*="space-x-1.5"] { gap: 2px; }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .wrap, main, .player, #player, .player > div { min-width: 0 !important; max-width: 100% !important; }
  .player { overflow: hidden !important; }
  .player > div:last-child { overflow-x: auto !important; }
  .ga-m, .player img, .player video { max-width: 100% !important; height: auto !important; object-fit: contain; }
  .hd { flex-wrap: wrap; max-width: 100vw; }
}

@media (max-width: 700px) {
  .main { grid-template-columns: minmax(0,1fr) !important; }
  .main > * { min-width: 0 !important; max-width: 100% !important; }
  header a[href="/"] { gap: 4px !important; }
  header [class*="shrink-0"] { flex-shrink: 1 !important; min-width: 0 !important; }
  header #lu button, header #lu a { padding: 6px 7px !important; font-size: 11px !important; white-space: nowrap; }
  header [class*="text-3xl"], header [class*="text-2xl"], header [class*="text-xl"] { font-size: 1.05rem !important; }
}
