/* Eunexo Podcast Manager — estética de consola de emisora:
   paneles de acero, lámparas de estado y lecturas monoespaciadas. */

:root {
  --steel:   #d9dde2;
  --steel-2: #c6ccd4;
  --panel:   #ffffff;
  --ink:     #14171c;
  --ink-2:   #5b6470;
  --line:    #b9c1ca;
  --cobalt:  #1f4ea8;
  --onair:   #d6273b;
  --queue:   #b9780c;
  --idle:    #8a9098;
  --ok:      #1c7a4b;
  --radius:  4px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* --- barra superior: la "regleta" de la consola --- */
.rack {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--onair);
}
.rack-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap; min-height: 58px;
}
.brand {
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
  display: flex; align-items: center; gap: 9px; margin-right: 6px;
}
.brand .lamp { width: 9px; height: 9px; border-radius: 50%; background: var(--onair); }
.rack nav { display: flex; gap: 18px; flex-wrap: wrap; }
.rack nav a {
  color: #c9d0d9; text-decoration: none; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.rack nav a:hover { color: #fff; }
.rack nav a.on { color: #fff; border-bottom-color: var(--onair); }
.rack .spacer { flex: 1; }
.rack .who { font-family: var(--mono); font-size: 12px; color: #8b95a1; }

main { max-width: 1100px; margin: 0 auto; padding: 26px 18px 70px; }

/* --- títulos --- */
h1 {
  font-size: 26px; letter-spacing: -.01em; margin: 0 0 4px;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .18em; color: var(--ink-2); margin-bottom: 18px;
}
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 14px; }

/* --- paneles --- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* --- lecturas numéricas (VU meters) --- */
.readout { text-align: left; }
.readout .num { font-family: var(--mono); font-size: 30px; font-weight: 600; line-height: 1.1; }
.readout .cap {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-2);
}

/* --- tira de canal: cada episodio es un canal de la consola --- */
.strip {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-left: 4px solid var(--idle);
  background: var(--panel); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 8px;
}
.strip.published { border-left-color: var(--onair); }
.strip.scheduled { border-left-color: var(--queue); }
.strip .body { flex: 1; min-width: 0; }
.strip .title { font-weight: 650; }
.strip .title a { color: var(--ink); text-decoration: none; }
.strip .title a:hover { text-decoration: underline; }
.strip .meta {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 3px;
}
.strip .actions { display: flex; gap: 8px; align-items: center; }

.lamp-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 2px; white-space: nowrap;
  border: 1px solid currentColor;
}
.lamp-tag.published { color: var(--onair); }
.lamp-tag.scheduled { color: var(--queue); }
.lamp-tag.draft     { color: var(--idle); }

/* --- botones --- */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 15px; border-radius: 2px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--steel-2); }
.btn.danger { background: transparent; color: var(--onair); border-color: var(--onair); }
.btn.danger:hover { background: var(--onair); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 11px; }

/* --- formularios --- */
label { display: block; font-size: 12px; font-weight: 650; letter-spacing: .04em; margin-bottom: 5px; }
.hint { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
input[type=text], input[type=email], input[type=url], input[type=password],
input[type=number], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line);
  border-radius: 2px; font-family: var(--sans); font-size: 14px; background: #fbfcfd;
}
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: auto; }
.check label { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 18px; }
legend {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; padding: 0 6px; color: var(--ink-2);
}

/* --- patch bay: el campo con la URL del feed --- */
.patch {
  display: flex; gap: 0; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden;
}
.patch input {
  border: 0; border-radius: 0; font-family: var(--mono); font-size: 13px; background: #fff;
}
.patch button { border-radius: 0; border: 0; border-left: 1px solid var(--ink); }

/* --- avisos --- */
.note {
  border-left: 3px solid var(--cobalt); background: #eef2f9;
  padding: 11px 14px; border-radius: 0 2px 2px 0; margin-bottom: 16px; font-size: 14px;
}
.note.ok  { border-color: var(--ok);    background: #ecf6f0; }
.note.bad { border-color: var(--onair); background: #fbeef0; }

/* --- lista de verificación --- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eceff2; font-size: 14px; }
.checks li:last-child { border-bottom: 0; }
.checks .mark { font-family: var(--mono); font-weight: 700; }
.checks .pass .mark { color: var(--ok); }
.checks .fail .mark { color: var(--onair); }
.checks .hint { margin: 2px 0 0; }

/* --- gráfico de descargas --- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.bars .bar { flex: 1; background: var(--cobalt); min-height: 2px; border-radius: 1px 1px 0 0; }
.bars .bar:hover { background: var(--onair); }
.axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); margin-top: 6px;
}

/* --- página pública --- */
.public-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.public-head img { width: 168px; height: 168px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
audio { width: 100%; margin-top: 10px; }

/* --- login --- */
.login-wrap { max-width: 380px; margin: 90px auto; }

table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eceff2; }
table.plain th { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
table.plain td.num { font-family: var(--mono); }

@media (max-width: 820px) {
  .grid.two, .grid.four { grid-template-columns: 1fr 1fr; }
  .strip { flex-wrap: wrap; }
  .strip .actions { width: 100%; }
}
@media (max-width: 520px) {
  .grid.four { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .public-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- selector de programa: fila de pestañas tipo preselección de canal --- */
.showbar {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.showbar a {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; color: var(--ink-2); padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--panel);
}
.showbar a:hover { border-color: var(--ink-2); color: var(--ink); }
.showbar a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- tarjeta de programa --- */
.showcard {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-left: 4px solid var(--cobalt);
  background: var(--panel); border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.showcard img {
  width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0;
}
.showcard .noart {
  width: 84px; height: 84px; flex-shrink: 0; border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: var(--idle); text-align: center; padding: 6px;
}
.showcard .body { flex: 1; min-width: 0; }
.showcard h3 { margin: 0 0 4px; font-size: 17px; }
.showcard h3 a { color: var(--ink); text-decoration: none; }
.showcard h3 a:hover { text-decoration: underline; }
.showcard .feedline {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  overflow-wrap: anywhere; margin-top: 6px;
}
@media (max-width: 520px) { .showcard { flex-direction: column; } }
