* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--at-bg);
  color: var(--at-ink);
  font-family: Inter, sans-serif;
}
header {
  height: 4.6rem;
  border-top: 4px solid var(--at-orange);
  border-bottom: 1px solid var(--at-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 5rem);
}
header img {
  display: block;
  width: 7rem;
  height: auto;
}
header span,
.sub {
  color: var(--at-ink-2);
}
main {
  max-width: 76rem;
  margin: auto;
  padding: clamp(1.3rem, 4vw, 3rem) clamp(1rem, 5vw, 4rem);
}
h1,
h2 {
  font-family: "Inter Tight", Inter, sans-serif;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
h1 {
  font-size: clamp(2rem, 4.6vw, 4.6rem);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}
p {
  line-height: 1.5;
}
a {
  color: var(--at-ink);
  text-underline-offset: 0.2rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--at-orange);
  outline-offset: 3px;
}
#signin,
.panel {
  max-width: 38rem;
  border-top: 2px solid var(--at-ink);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-weight: 600;
}
input {
  width: 100%;
  padding: 0.85rem;
  color: var(--at-ink);
  background: var(--at-card);
  border: 1px solid var(--at-ink-2);
  font: inherit;
}
.actions,
.meta,
.tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.actions {
  margin: 1.25rem 0;
}
button,
.button {
  font:
    600 1rem Inter,
    sans-serif;
  padding: 0.75rem 1rem;
  border: 1px solid var(--at-ink);
  border-radius: 2px;
  background: var(--at-card);
  color: var(--at-ink);
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.primary,
button[aria-pressed="true"] {
  background: var(--at-orange);
  border-color: var(--at-orange);
}
button:active {
  background: var(--at-soft);
}
button:disabled {
  opacity: 0.6;
}
.watch {
  padding-top: 1rem;
}
.watch h1 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  margin: 0.4rem 0 0.8rem;
}
.screen {
  background: var(--at-ink);
  aspect-ratio: 1.8;
  display: block;
  width: 100%;
  object-fit: contain;
}
.screen[hidden], .tools a[hidden] { display: none; }
.meta {
  justify-content: space-between;
  margin: 0.65rem 0;
  color: var(--at-ink-2);
  font-size: 0.92rem;
}
.meta strong {
  color: var(--at-ink);
}
.tools {
  justify-content: space-between;
  border-top: 1px solid var(--at-line);
  padding-top: 0.7rem;
}
.tools button {
  font-size: 0.92rem;
}
.note {
  min-height: 1.3em;
  color: var(--at-ink-2);
  margin: 0.4rem 0;
}
.note:empty {
  display: none;
}
.error {
  color: var(--at-ink);
}
fieldset {
  padding: 0;
  margin: 1.5rem 0;
  border: 0;
  border-top: 2px solid var(--at-ink);
  max-width: 43rem;
}
legend {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 0.6rem 0 0;
}
.gags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}
.gags button {
  min-height: 4.5rem;
  touch-action: manipulation;
}
@media (max-width: 540px) {
  .gags {
    grid-template-columns: 1fr;
  }
  .watch {
    padding: 1rem 0;
  }
  .watch h1,
  .meta,
  .tools,
  .watch .note {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .meta {
    align-items: flex-start;
  }
}
.network-watch .meta{align-items:baseline}
.tv-stage{position:relative;width:100%;aspect-ratio:16/9;background:var(--at-ink);overflow:hidden;isolation:isolate}
.tv-stage canvas{display:block;width:100%;height:100%;object-fit:contain}
.tv-stage:fullscreen{height:100vh;width:100vw;display:grid;place-items:center}
.tv-stage:fullscreen canvas{width:100%;height:100%;object-fit:contain}
.tv-sub,.tv-loc{position:absolute;color:var(--at-bg);background:var(--at-ink);pointer-events:none}
.tv-sub{left:50%;bottom:4%;transform:translateX(-50%);width:max-content;max-width:89%;padding:.28em .62em;text-align:center;line-height:1.28;font-family:Inter,sans-serif;font-size:clamp(.85rem,1.8vw,1.38rem)}
.tv-loc{top:5%;left:3%;padding:.38em .7em;border-left:3px solid var(--at-orange);font-weight:600;font-size:clamp(.75rem,1.4vw,.97rem)}
.tv-sub[hidden],.tv-loc[hidden]{display:none}
.remote-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.8rem 0 1.15rem;max-width:60rem}
.now{font-weight:600;max-width:40rem;margin:0}
.stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem;border-top:2px solid var(--at-ink);max-width:60rem;margin:0 0 1.5rem}
.stations button{display:flex;align-items:center;gap:1.25rem;text-align:left;border:0;border-bottom:1px solid var(--at-line);border-radius:0;min-height:4.7rem;background:transparent;touch-action:manipulation}
.stations button[aria-pressed=true]{background:var(--at-soft);border-left:4px solid var(--at-orange)}
.stations button:active{background:var(--at-line)}.stations strong{font-family:"Inter Tight",Inter,sans-serif;font-size:1.18rem}
.channel-num{font-variant-numeric:tabular-nums;color:var(--at-ink-2);font-weight:500;min-width:2ch}
@media(max-width:640px){.stations{grid-template-columns:1fr}.stations button{min-height:3.85rem}.remote-head{align-items:flex-start;flex-direction:column}.tv-sub{font-size:.87rem}}

.tv-header-nav { display:flex; align-items:center; gap:1.4rem; }
.tv-header-nav a { font-size:.95rem; }

.tv-power{border-top:2px solid var(--at-ink);border-bottom:1px solid var(--at-line);padding:1.2rem 0;margin:.6rem 0 1rem}
.power-heading,.power-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.power-heading{justify-content:space-between;margin-bottom:1rem}
.power-heading h2,.remote-monitor h3{margin:0}
.power-heading strong{font-size:.92rem}
.tv-power button,.preview-switch{min-height:44px}
.tv-power button:disabled{opacity:.55;cursor:default}
.startup-progress{max-width:44rem;margin:1.1rem 0 .45rem}
.startup-progress label{font-size:.94rem;font-weight:600;display:block}
.startup-progress progress{appearance:none;-webkit-appearance:none;border:0;background:var(--at-line);accent-color:var(--at-orange);width:100%;height:.85rem;display:block;margin:.4rem 0}
.startup-progress progress::-webkit-progress-bar{background:var(--at-line)}
.startup-progress progress::-webkit-progress-value{background:var(--at-orange)}
.startup-progress progress::-moz-progress-bar{background:var(--at-orange)}
.tv-power p{font-size:.88rem;margin:.5rem 0 0}
#power-error{font-weight:600}
.preview-switch{margin:0 0 1rem}
.remote-columns{display:grid;align-items:start;gap:1.25rem}
.remote-columns>*{min-width:0}
.remote-monitor iframe{width:100%;aspect-ratio:16/9;border:0;display:block;background:var(--at-ink)}
.remote-monitor h3{margin-bottom:.55rem}
.monitor-only header,.monitor-only main>:not(.tv-stage){display:none}
.monitor-only main{padding:0;margin:0;width:100%;max-width:none}
.monitor-only{background:var(--at-ink);overflow:hidden}
@media(min-width:700px){.remote-columns.with-monitor{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.with-monitor .remote-monitor{position:sticky;top:1rem}.with-monitor .stations{grid-template-columns:1fr}}
@media(max-width:699px){.remote-monitor{grid-row:1}}

.camera-reviews{margin:1rem 0}.camera-reviews summary{cursor:pointer;min-height:44px;font-weight:600}.camera-reviews div{display:flex;gap:1.2rem;flex-wrap:wrap}.regie-metrics article>a{font-size:.77rem;line-height:1.3;margin-top:.4rem;display:inline-block}
