/* Watch owns the visual shell for all four passive modes. Load after page CSS. */
.watch-mode .watch-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(14px, 1fr) auto minmax(14px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 16px 6px;
  color: var(--text-dim);
  font: 12px 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.watch-mode .watch-top > a { justify-self: start; }
.watch-mode .watch-top > span {
  justify-self: end;
  margin: 0;
  white-space: nowrap;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.watch-mode .md-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
}
.watch-mode .md-tab {
  border: 0;
  background: none;
  color: var(--text-3);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.watch-mode .md-tab:hover { color: var(--text); }
.watch-mode .md-tab[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.watch-mode .md-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Reserve the same rail and header space, including modes without timed cards. */
.watch-mode .wm-rail { padding: 10px 0 0; }
.watch-mode .wm-rail-track { margin-inline: 16px; }
.watch-mode .sm-rail { margin-top: 10px; }
.watch-mode .ls, .watch-mode .cs { padding-top: calc(13px + env(safe-area-inset-top)); }
.watch-mode .sm, .watch-mode .ls, .watch-mode .cs {
  padding-bottom: calc(60px + max(8px, env(safe-area-inset-bottom)));
}

/* Keep Watch's framed cards and warm text surfaces when changing modes. */
.watch-mode .ls-inner { max-width: 620px; }
.watch-mode .ls-card, .watch-mode .ls-play, .watch-mode .cs .card {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-3);
}
.watch-mode .cs .slot { padding: 4px 12px 24px; }
.watch-mode .cs .card { padding: 0; background: var(--bg-elev-1); }
.watch-mode .cs .shot { display: flex; flex-direction: column; margin: 0; }
.watch-mode .cs .cap {
  position: static;
  order: -1;
  padding: 14px 16px 13px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line-soft);
}
.watch-mode .cs .th { color: var(--text); }
.watch-mode .cs .rom { color: var(--text-3); }
.watch-mode .cs .cap .row { padding: 0; border: 0; background: none; }
.watch-mode .sm-art { margin-inline: 0; }
.watch-mode .sm-art img {
  position: absolute;
  inset: 0;
  object-fit: contain;
}
@media (min-width: 769px) {
  .watch-mode .sm, .watch-mode .ls, .watch-mode .cs { padding-bottom: 0; }
}
@media (max-width: 768px) {
  .watch-mode .watch-top { gap: 4px; padding-inline: 12px; letter-spacing: 0.02em; }
  .watch-mode .md-tab { font-size: 14px; padding: 5px 6px; }
  .watch-mode .watch-top > span { position: absolute; right: 16px; top: -11px; font-size: 10px; background: var(--bg); }
  .watch-mode .watch-top > span:not(:empty) { padding-left: 6px; }
}
@media (max-width: 359px) {
  .watch-mode .watch-top { gap: 4px; padding-inline: 8px; }
  .watch-mode .md-tab { padding-inline: 2px; letter-spacing: 0; }
}
