/* WatchHub - neo-noir 80s, en la linea de Blade Runner:
   petroleo oscuro, neblina, ambar como acento y cyan para los datos. */

:root {
  --bg: #050b0e;
  --bg-2: #0a1418;
  --panel: rgba(11, 24, 30, 0.72);
  --panel-solid: #0b181e;
  --raise: rgba(255, 255, 255, 0.035);
  --line: rgba(79, 214, 224, 0.14);
  --line-strong: rgba(79, 214, 224, 0.3);

  --amber: #ff9d3c;
  --amber-dim: rgba(255, 157, 60, 0.5);
  --cyan: #4fd6e0;
  --cyan-dim: rgba(79, 214, 224, 0.5);
  --pink: #ff3d7f;
  --ok: #4ade80;
  --danger: #ff5a5a;

  --ink: #e8f1f2;
  --muted: #7c9aa3;
  --muted-2: #55747d;

  --radius: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glow-amber: 0 0 18px rgba(255, 157, 60, 0.35);
  --glow-cyan: 0 0 18px rgba(79, 214, 224, 0.3);

  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 420px at 82% -8%, rgba(255, 157, 60, 0.13), transparent 60%),
    radial-gradient(760px 420px at 8% 4%, rgba(79, 214, 224, 0.09), transparent 60%),
    radial-gradient(1100px 600px at 50% 110%, rgba(255, 61, 127, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, #03080a 100%);
  background-attachment: fixed;
}

/* --------------------------------------------------------------- atmosfera */

.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fx-rain {
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0 3px,
    rgba(190, 230, 240, 0.7) 3px 4px,
    transparent 4px 9px
  );
  animation: rain 0.9s linear infinite;
}

@keyframes rain {
  to {
    transform: translateY(120px);
  }
}

.fx-scan {
  opacity: 0.35;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0 1px,
    transparent 1px 3px
  );
}

.fx-vignette {
  box-shadow: inset 0 0 220px 60px rgba(0, 0, 0, 0.75);
}

.fx-skyline {
  top: auto;
  bottom: 0;
  height: 190px;
  opacity: 0.5;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85)),
    repeating-linear-gradient(
      90deg,
      rgba(6, 16, 20, 0.95) 0 34px,
      transparent 34px 41px,
      rgba(4, 12, 15, 0.95) 41px 88px,
      transparent 88px 96px
    );
  mask-image: linear-gradient(180deg, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
}

@media (prefers-reduced-motion: reduce) {
  .fx-rain {
    animation: none;
  }
}

/* ------------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 26px;
  background: linear-gradient(180deg, rgba(5, 12, 15, 0.96), rgba(5, 12, 15, 0.82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--amber-dim);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-bar {
  width: 4px;
  height: 30px;
  background: var(--amber);
  box-shadow: var(--glow-amber);
}

.brand strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 157, 60, 0.45);
}

nav {
  display: flex;
  gap: 4px;
}

nav a {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: var(--ink);
}

nav a.on {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: rgba(255, 157, 60, 0.08);
}

.spacer {
  flex: 1;
}

/* ----------------------------------------------------------------- buscador */

.finder {
  position: relative;
  flex: 0 1 340px;
  min-width: 170px;
}

.finder-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(0, 0, 0, 0.4);
}

.finder-box:focus-within {
  border-color: var(--cyan-dim);
  box-shadow: var(--glow-cyan);
}

.finder-box svg {
  flex-shrink: 0;
  color: var(--muted);
}

.finder input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.finder input::placeholder {
  color: var(--muted-2);
}

.finder-results {
  position: absolute;
  top: 46px;
  right: 0;
  left: 0;
  max-height: 62vh;
  overflow-y: auto;
  background: #08151a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}

.finder-results[hidden] {
  display: none;
}

.hit {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
}

.hit:hover {
  background: var(--raise);
}

.hit-name {
  font-weight: 600;
  font-size: 14px;
}

.hit-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.seen {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: 1px;
}

/* ------------------------------------------------------------- icon buttons */

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--cyan);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.icon-btn:hover {
  border-color: var(--cyan-dim);
  box-shadow: var(--glow-cyan);
}

.menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.menu {
  position: absolute;
  top: 46px;
  right: 0;
  width: 250px;
  background: #08151a;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}

.menu[hidden] {
  display: none;
}

.menu-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 9px 11px 5px;
}

.menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.menu button:hover {
  background: var(--raise);
  color: var(--amber);
}

.menu hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 6px 4px;
}

/* -------------------------------------------------------------- stats strip */

.strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 26px 8px;
}

.stat {
  flex: 1 1 130px;
  padding: 4px 20px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: none;
  padding-left: 8px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--amber);
  text-shadow: 0 0 20px rgba(255, 157, 60, 0.35);
}

.stat span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* -------------------------------------------------------------------- layout */

main {
  position: relative;
  z-index: 1;
  padding: 10px 26px 130px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}

.panel-body {
  padding: 8px 20px 20px;
}

/* ------------------------------------------------------------------- filtros */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

select,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="month"],
input[type="password"],
textarea {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 11px;
  outline: none;
  width: 100%;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--cyan-dim);
  box-shadow: var(--glow-cyan);
}

select option {
  background: #08151a;
}

.filters select {
  width: auto;
  min-width: 118px;
  font-size: 13px;
  padding: 7px 10px;
}

/* -------------------------------------------------------------------- meses */

.month {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0 11px;
}

.month h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.month .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-dim), transparent);
}

.month small {
  font-size: 11.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------- filas */

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px 9px 0;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--muted-2));
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.row:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.poster {
  width: 46px;
  height: 66px;
  flex-shrink: 0;
  margin-left: 10px;
  border-radius: 4px;
  object-fit: cover;
  background: #0d1f26;
  border: 1px solid var(--line);
}

.poster-ph {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--muted-2);
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.row-title a {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: var(--ink);
  text-decoration: none;
}

.row-title a:hover {
  color: var(--amber);
}

.row-sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.chip {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.chip-season {
  color: var(--muted);
}

.chip-pass {
  color: var(--cyan);
  background: rgba(79, 214, 224, 0.08);
}

.chip-range {
  color: var(--cyan);
  background: rgba(79, 214, 224, 0.08);
}

.tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
}

.row-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.mini {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.mini:hover {
  border-color: var(--line-strong);
  color: var(--cyan);
}

.mini.danger:hover {
  border-color: rgba(255, 90, 90, 0.5);
  color: var(--danger);
}

/* ----------------------------------------------------------------- estrellas */

.stars {
  display: inline-flex;
  gap: 2px;
  flex-shrink: 0;
}

.stars button,
.stars span {
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  font-size: 15px;
  color: var(--muted-2);
}

.stars button {
  cursor: pointer;
  font-size: 22px;
}

.stars .lit {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(255, 157, 60, 0.6);
}

/* --------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  padding-top: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-3px);
}

.card-art {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  background: #0d1f26;
}

.card-art.poster-ph {
  font-size: 34px;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-body b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.card-body small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- fichas/det */

.detail-head {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px;
}

.detail-head .poster {
  width: 132px;
  height: 198px;
  margin: 0;
}

.detail-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  padding: 11px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.group-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  min-width: 46px;
}

.blocks {
  flex: 1;
  min-width: 190px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* -------------------------------------------------------------------- FABs */

.fabs {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.fab {
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fab:hover {
  transform: scale(1.07);
}

.fab-chart {
  width: 48px;
  height: 48px;
  border: 1px solid var(--cyan-dim);
  background: rgba(8, 21, 26, 0.92);
  color: var(--cyan);
  box-shadow: 0 0 22px rgba(79, 214, 224, 0.28);
}

.fab-add {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 157, 60, 0.6);
  background: rgba(255, 157, 60, 0.14);
  color: var(--amber);
  box-shadow: 0 0 30px rgba(255, 157, 60, 0.35);
}

/* ------------------------------------------------------------------ dialogos */

dialog {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 60px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #08151a;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow: visible;
}

dialog::backdrop {
  background: rgba(2, 7, 9, 0.82);
  backdrop-filter: blur(4px);
}

#panel {
  width: min(940px, calc(100vw - 32px));
}

.dlg {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 62px);
}

.dlg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.dlg-head h2 {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.dlg-body {
  padding: 18px 20px;
  overflow-y: auto;
}

.dlg-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.wide {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.field .hint {
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
}

.segmented {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.segmented button {
  flex: 1;
  padding: 9px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.segmented button.on {
  background: rgba(255, 157, 60, 0.14);
  color: var(--amber);
}

.btn {
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.btn-primary {
  border-color: rgba(255, 157, 60, 0.6);
  background: rgba(255, 157, 60, 0.15);
  color: var(--amber);
}

.btn-primary:hover {
  background: rgba(255, 157, 60, 0.25);
  color: var(--amber);
  border-color: var(--amber);
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}

.btn-danger:hover {
  border-color: rgba(255, 90, 90, 0.6);
  color: var(--danger);
}

/* ------------------------------------------------------------ aviso de vuelta */

.notice {
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid var(--cyan-dim);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  background: rgba(79, 214, 224, 0.07);
  font-size: 13.5px;
  line-height: 1.55;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.notice-actions .btn {
  padding: 7px 13px;
  font-size: 11px;
}

/* ---------------------------------------------------------------- graficos */

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.chart-box {
  min-width: 0;
}

.chart-box h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
}

.chart-canvas {
  position: relative;
  height: 265px;
}

.legend {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-row span:first-of-type {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-row b {
  font-family: var(--font-display);
  color: var(--amber);
}

/* -------------------------------------------------------------------- varios */

.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table th {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
}

.table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(79, 214, 224, 0.07);
}

.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  vertical-align: -3px;
  margin-right: 8px;
}

input[type="color"] {
  width: 46px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: #08151a;
  box-shadow: var(--shadow);
  font-size: 14px;
  max-width: min(560px, calc(100vw - 40px));
}

#toast[hidden] {
  display: none;
}

#toast.bad {
  border-left-color: var(--danger);
}

/* --------------------------------------------------------------------- login */

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(390px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 34px 30px;
}

.login-card .brand {
  justify-content: center;
  margin-bottom: 6px;
}

.login-card .brand strong {
  font-size: 30px;
}

.login-tag {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-card .btn {
  padding: 12px;
}

.login-err {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 90, 90, 0.4);
  border-left: 3px solid var(--danger);
  border-radius: 7px;
  background: rgba(255, 90, 90, 0.08);
  font-size: 13px;
}

.login-err[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .top {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .finder {
    order: 3;
    flex: 1 1 100%;
  }

  .strip,
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .stat b {
    font-size: 24px;
  }

  .row {
    flex-wrap: wrap;
  }

  .detail-head .poster {
    width: 96px;
    height: 144px;
  }
}
