/* La Rendija — equipo de vigilancia pinchado a una señal ajena.
   Sólo tema oscuro: esto se mira de noche y no hay otro modo. */

/* Sin @font-face: pilas de fuentes de sistema a propósito (ver informe). */

:root {
  color-scheme: dark;

  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", "Roboto Mono",
    Consolas, "Liberation Mono", monospace;

  --bg-0: #05080a;
  --bg-1: #0a0f10;
  --bg-2: #0e1516;
  --bg-monitor: #060a09;

  --fg: #cfe8da;
  --fg-dim: #5c7570;
  --fg-faint: #37473f;

  --phosphor: #9ff7c8;
  --phosphor-bright: #d4fff0;
  --phosphor-dim: #4f7d68;

  --amber: #ffb020;
  --amber-dim: #a97a2c;

  --rec: #ff3b3b;
  --rec-dim: #7a1f1f;

  --danger: #ff6a6a;

  --line: rgba(159, 247, 200, 0.14);
  --line-strong: rgba(159, 247, 200, 0.3);

  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-0);
}

body {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(159, 247, 200, 0.05), transparent 60%);
  min-height: 100%;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

::selection {
  background: var(--phosphor-dim);
  color: var(--bg-0);
}

/* Scrollbar técnico y fino */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--fg-faint) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: var(--fg-faint);
  border-radius: 4px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================================ ACCESO === */

#screen-acceso {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.acceso-panel {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 28px 24px;
  position: relative;
}

.acceso-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.acceso-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acceso-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor-dim);
}

.acceso-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.acceso-input {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  color: var(--phosphor-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  border-radius: var(--radius);
}

.acceso-input:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 1px var(--phosphor-dim);
}

.acceso-submit {
  margin-top: 16px;
  width: 100%;
  background: transparent;
  border: 1px solid var(--phosphor-dim);
  color: var(--phosphor);
  padding: 10px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.acceso-submit:hover:not(:disabled) {
  background: var(--phosphor-dim);
  color: var(--bg-0);
}

.acceso-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.acceso-status {
  margin-top: 14px;
  font-size: 12px;
  color: var(--fg-dim);
  line-height: 1.5;
  min-height: 1em;
}

.acceso-status[data-tone='ok'] {
  color: var(--phosphor);
}

.acceso-status[data-tone='error'] {
  color: var(--danger);
}

.acceso-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

.acceso-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--phosphor-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.acceso-link:hover {
  color: var(--phosphor);
}

/* ============================================================= SHELL === */

#screen-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  flex-wrap: wrap;
  padding: 6px 2px;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phosphor-dim);
  flex: none;
}

.hud-dot[data-live='true'] {
  background: var(--rec);
  animation: pulse-live 1.6s ease-in-out infinite;
}

.hud-dot[data-tone='amber'] {
  background: var(--amber);
  animation: pulse-live 0.9s ease-in-out infinite;
}

.hud-dot[data-tone='green'] {
  background: var(--phosphor);
}

@keyframes pulse-live {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5);
  }
  50% {
    opacity: 0.45;
    box-shadow: 0 0 0 5px rgba(255, 59, 59, 0);
  }
}

#hud-connectivity[data-status='reconectando'] {
  color: var(--amber);
}

#hud-mock {
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 2px 7px;
  border-radius: var(--radius);
}

/* =========================================================== MONITOR === */

.monitor-wrap {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  padding: 10px;
  border-radius: 4px;
}

.monitor-wrap::before,
.monitor-wrap::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4744, #060a09);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.monitor-wrap::before {
  top: 8px;
  left: 8px;
}
.monitor-wrap::after {
  top: 8px;
  right: 8px;
}

.monitor {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: var(--bg-monitor);
  overflow: hidden;
  border-radius: 2px;
}

.monitor-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.monitor-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85), inset 0 0 140px rgba(0, 0, 0, 0.5);
}

.monitor-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}

.monitor-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- feed DIRECTO ------------------------------------------------------ */

#feed-pane {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
}

#feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  max-height: 100%;
}

.feed-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.55;
  animation: feed-in 0.5s var(--ease) both;
  white-space: pre-wrap;
  word-break: break-word;
  transition: opacity 0.9s ease, filter 0.9s ease;
}

/* Las líneas se hunden en el fósforo según envejecen. */
#feed .feed-line {
  opacity: 0.85;
}
#feed .feed-line:nth-last-child(-n + 3) {
  opacity: 1;
}
#feed .feed-line:nth-last-child(n + 7) {
  opacity: 0.5;
}
#feed .feed-line:nth-last-child(n + 12) {
  opacity: 0.28;
  filter: blur(0.2px);
}
#feed .feed-line:nth-last-child(n + 18) {
  opacity: 0.13;
  filter: blur(0.4px);
}

.feed-line[data-kind='prompt'] {
  box-shadow: inset 2px 0 0 var(--phosphor-dim);
  padding-left: 9px;
}

/* Sin `opacity` en el `to`: quién brilla y quién se apaga lo dicen las reglas
   de arriba, y el `both` de la animación las pisaría. */
@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    transform: translateY(0);
  }
}

.feed-time {
  flex: none;
  color: var(--fg-faint);
}

.feed-kind {
  flex: none;
  color: var(--phosphor-dim);
  min-width: 10ch;
  text-transform: lowercase;
}

.feed-kind[data-kind='deploy'],
.feed-kind[data-kind='reply'],
.feed-kind[data-kind='prompt'] {
  color: var(--phosphor);
}

.feed-body {
  color: var(--fg);
}

.feed-line[data-kind='tool'] .feed-body,
.feed-line[data-kind='command'] .feed-body,
.feed-line[data-kind='file'] .feed-body {
  color: var(--fg-dim);
}

.feed-line[data-kind='prompt'] .feed-body,
.feed-line[data-kind='reply'] .feed-body {
  color: var(--phosphor-bright);
}

.feed-line:last-child .feed-body {
  text-shadow: 0 0 9px rgba(159, 247, 200, 0.22);
}

.feed-caret {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  margin-left: 2px;
  background: var(--phosphor);
  vertical-align: -0.15em;
  animation: caret-blink 1.1s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.feed-empty {
  color: var(--fg-dim);
  font-size: 12.5px;
}

/* --- SINTONIZANDO / RESINTONIZANDO -------------------------------------- */

.placard {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 20px;
  background: var(--bg-monitor);
}

.placard-title {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.placard-title.glitch-tick {
  animation: glitch-shift 0.28s var(--ease);
}

@keyframes glitch-shift {
  0% {
    transform: translateX(0);
    text-shadow: none;
  }
  30% {
    transform: translateX(-2px);
    text-shadow: 2px 0 var(--rec), -2px 0 var(--phosphor);
  }
  60% {
    transform: translateX(2px);
  }
  100% {
    transform: translateX(0);
    text-shadow: none;
  }
}

.placard-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.placard-wave {
  width: min(260px, 70%);
  height: 34px;
  opacity: 0.85;
}

#resync {
  background: var(--bg-monitor);
}

#resync .placard-title {
  color: var(--amber);
  font-size: 20px;
  animation: resync-flicker 0.12s steps(2, end) infinite;
}

@keyframes resync-flicker {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  93%,
  97% {
    opacity: 0.55;
  }
}

#signal-lost .placard-title {
  color: var(--amber);
}

/* --- ESPIAR (vídeo) ------------------------------------------------------ */

.clip-surface {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.espiar-readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phosphor-bright);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.audio-toggle {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 7;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  background: rgba(6, 10, 9, 0.7);
  padding: 5px 9px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- INTERRUPCIÓN --------------------------------------------------------- */

#interrupt-panel {
  position: absolute;
  z-index: 8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  animation: interrupt-in 0.6s var(--ease) both;
  box-shadow:
    0 0 34px 4px var(--interrupt-bloom, rgba(243, 234, 217, 0.35)),
    0 0 110px 18px var(--interrupt-bloom-far, rgba(243, 234, 217, 0.16));
}

@keyframes interrupt-in {
  from {
    opacity: 0;
    filter: brightness(2.6) blur(3px);
  }
  35% {
    opacity: 1;
  }
  to {
    filter: brightness(1) blur(0);
  }
}

.interrupt-glow {
  position: absolute;
  inset: 0;
  background: #f3ead9;
}

/* Luz propia de la superficie: centro vivo, esquinas caídas. */
.interrupt-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(255, 255, 255, 0.45), transparent 62%),
    radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.42) 135%);
}

/* Rejilla de píxel: es un dispositivo, no un papel. */
.interrupt-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.045) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* Barrido especular al encenderse. */
.interrupt-sheen {
  position: absolute;
  inset: -45%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.32) 50%, transparent 58%);
  transform: translateX(-75%);
  animation: sheen-pass 1.5s 0.3s var(--ease) forwards;
  mix-blend-mode: screen;
}

@keyframes sheen-pass {
  to {
    transform: translateX(75%);
  }
}

.interrupt-text-wrap {
  position: relative;
  z-index: 2;
  width: 92%;
  text-align: center;
  padding: 6% 8%;
  container-type: inline-size;
  animation: surface-hum 0.17s steps(2, jump-none) infinite;
}

.interrupt-text-stack {
  position: relative;
}

@keyframes surface-hum {
  50% {
    transform: translate(0.3px, -0.25px);
  }
}

.interrupt-text,
.interrupt-text-ghost {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #14100a;
  font-size: clamp(9px, 2.1cqw, 16px);
  line-height: 1.4;
  white-space: pre-wrap;
}

.interrupt-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: currentColor;
  vertical-align: -0.14em;
  margin-left: 1px;
  animation: caret-blink 0.9s steps(1) infinite;
}

.interrupt-text-ghost {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: screen;
}
.interrupt-text-ghost[data-ch='r'] {
  color: #ff3b3b;
  transform: translate(-0.6px, 0);
}
.interrupt-text-ghost[data-ch='c'] {
  color: #3bd2ff;
  transform: translate(0.6px, 0);
}

.interrupt-author {
  display: block;
  font-size: 0.8em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b5a3d;
  margin-bottom: 0.6em;
}

.interrupt-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.12;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ============================================================ CONTROLS === */

.controls-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 2px;
}

.btn-spy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rec);
  background: transparent;
  border: 1px solid var(--rec-dim);
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn-spy::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.btn-spy:hover:not(:disabled) {
  background: var(--rec);
  color: var(--bg-0);
}

.btn-spy:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-spy[data-active='true'] {
  color: var(--amber);
  border-color: var(--amber-dim);
}
.btn-spy[data-active='true']::before {
  animation: pulse-live 1.4s ease-in-out infinite;
}

#quota {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

#quota b {
  color: var(--phosphor);
  font-weight: 600;
}

.channel-switch {
  display: flex;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-switch button {
  background: var(--bg-1);
  border: none;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  border-left: 1px solid var(--line);
}
.channel-switch button:first-child {
  border-left: none;
}
.channel-switch button[aria-pressed='true'] {
  color: var(--phosphor);
  background: var(--bg-2);
}

/* ========================================================= GRABACIONES === */

#screen-grabaciones {
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
}

.archive-index {
  border-right: 1px solid var(--line);
  padding: 6px 0 10px;
  overflow-y: auto;
  max-height: 72vh;
}

.archive-index-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 10px 16px;
  margin: 0;
}

.world-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  box-shadow: inset 2px 0 0 transparent;
  padding: 11px 16px;
  cursor: pointer;
  color: var(--fg-dim);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.world-tab:hover {
  background: var(--bg-2);
}

.world-tab[aria-current='true'] {
  background: var(--bg-2);
  box-shadow: inset 2px 0 0 var(--phosphor);
  color: var(--fg);
}

.world-tab-name {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.world-tab[aria-current='true'] .world-tab-name {
  color: var(--phosphor);
}

.world-tab-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Un carrete: una marca por episodio archivado. */
.world-tab-reel {
  display: flex;
  gap: 3px;
}

.world-tab-reel i {
  width: 7px;
  height: 3px;
  background: var(--phosphor-dim);
  opacity: 0.5;
}

.world-tab[aria-current='true'] .world-tab-reel i {
  opacity: 1;
}

.world-tab-meta {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.archive-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.world-sheet {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.world-sheet-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin: 0 0 8px;
}

.world-sheet-premise {
  font-size: 12.5px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
  text-wrap: pretty;
}

.act-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 20px 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.act-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.episode-list {
  display: flex;
  flex-direction: column;
}

.episode-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 20px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--fg);
  box-shadow: inset 2px 0 0 transparent;
}

.episode-row:hover {
  background: var(--bg-2);
}

.episode-row[aria-current='true'] {
  background: var(--bg-2);
  box-shadow: inset 2px 0 0 var(--phosphor-dim);
}

.episode-number {
  font-size: 11px;
  color: var(--fg-dim);
  width: 4ch;
  flex: none;
}

.episode-synopsis {
  font-size: 12.5px;
  flex: 1;
  line-height: 1.5;
}

.episode-duration {
  font-size: 11px;
  color: var(--fg-faint);
  flex: none;
}

.recordings-empty {
  padding: 30px 16px;
  color: var(--fg-dim);
  font-size: 12.5px;
  text-align: center;
}

.player-panel {
  padding: 14px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-0);
}

.player-panel video,
.player-panel canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-caption {
  font-size: 11.5px;
  color: var(--fg-dim);
  padding-top: 8px;
  line-height: 1.6;
}

.player-note {
  font-size: 10.5px;
  color: var(--amber);
  padding-top: 4px;
  letter-spacing: 0.04em;
}

/* =============================================================== PLATE === */

.plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.plate-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plate-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  cursor: pointer;
}

.plate-link:hover {
  color: var(--phosphor);
}

/* =============================================================== MEDIA === */

@media (max-width: 720px) {
  #screen-main {
    padding: 12px 10px 20px;
  }
  .hud {
    font-size: 10px;
  }
  .controls-strip {
    gap: 10px;
  }
  .channel-switch {
    margin-left: 0;
    width: 100%;
  }
  .channel-switch button {
    flex: 1;
    text-align: center;
  }
  #screen-grabaciones {
    grid-template-columns: 1fr;
  }
  .archive-index {
    display: flex;
    max-height: none;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 4px 6px;
  }
  .archive-index-label {
    display: none;
  }
  .world-tab {
    width: auto;
    flex: none;
    box-shadow: inset 0 -2px 0 transparent;
  }
  .world-tab[aria-current='true'] {
    box-shadow: inset 0 -2px 0 var(--phosphor);
  }
}
