/* ============================================================
   UKAS IDIOT — uoffisiell fanside for Sportsklubben (VG)
   VGTV-inspirert: svart flate, hvit logo i outline-boks,
   seriff på store titler, hero øverst, avrundede kort.
   ============================================================ */

:root {
  --red: #d5121e;          /* VG-rød til knapper og fylte flater */
  --red-dark: #b30f19;
  --red-bright: #ff4655;   /* lysere rød til tekst-aksenter på mørk bunn */

  --bg: #101013;           /* hovedflate */
  --frame: #0b0b0d;        /* toppbar og bunn */
  --surface: #1a1a1f;      /* kort og paneler */
  --surface-2: #101013;    /* inputfelt */
  --surface-3: #26262c;    /* sekundærknapper */
  --text: #f3f2f4;
  --muted: #a09fa6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);

  --green: #4cc27e;
  --amber: #e0ba57;

  --font: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --radius: 14px;
  --shadow-hover: 0 14px 34px -18px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Podkast-coveret som stor bakgrunn øverst på forsiden (à la VGTV):
   skarpt bilde bak toppbar + hero, mørk gradient som toner ut i svart.
   (Absolutt posisjonering ankres mot dokumenttoppen – body skal IKKE
   ha position: relative, det brøt rullingen i Chrome.) */
.front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(92vh, 860px);
  z-index: -2;
  background: url("../img/sportsklubben.jpg") center 25% / cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.front::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(92vh, 860px);
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(11, 11, 13, 0.72) 0%,
      rgba(16, 16, 19, 0.38) 28%,
      rgba(16, 16, 19, 0.8) 64%,
      var(--bg) 97%);
  pointer-events: none;
}

/* Toppbaren legger seg gjennomsiktig oppå bildet på forsiden */
.front .topbar {
  background: transparent;
  border-bottom: none;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }

/* ---------------- TOPPBAR ---------------- */

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--frame);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-family: 'Russo One', 'Arial Black', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-main {
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-divider {
  width: 3px;
  height: 1.3rem;
  background: currentColor;
  border-radius: 1px;
}

.brand-box {
  background: #fff;
  color: #0b0b0d;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.3em 0.5em 0.24em;
  border-radius: 8px;
}

.topbar-note {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.pill-btn {
  display: inline-block;
  background: #fff;
  color: var(--frame);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5em 1.15em;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.pill-btn:hover { opacity: 0.85; }

/* rød podkast-knapp i toppbaren (à la VGTVs røde CTA-er).
   margin-left:auto her + på noten deler restplassen likt,
   så noten sentreres mellom logo og knapper. */
.podcast-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
  background: var(--red);
  color: #fff;
  transition: background 0.15s ease;
}

.podcast-pill:hover { background: var(--red-dark); opacity: 1; }

/* noten trenger luft – under dette blir baren for trang */
@media (max-width: 1000px) {
  .topbar-note { display: none; }
}

.play-ico {
  width: 0;
  height: 0;
  border-top: 0.32em solid transparent;
  border-bottom: 0.32em solid transparent;
  border-left: 0.52em solid currentColor;
}

/* ---------------- HOVEDINNHOLD ---------------- */

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) 1.1rem 4rem;
}

.demo-banner {
  display: none;
  margin: 0 0 1.6rem;
  padding: 0.75rem 1.1rem;
  background: rgba(224, 186, 87, 0.08);
  border: 1px solid rgba(224, 186, 87, 0.28);
  border-radius: var(--radius);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 500;
}

.demo-banner.show { display: block; }

/* ---------------- PALLEN (topp 3) ----------------
   Klassisk seierspall: sølv til venstre, gull hevet i midten,
   bronse til høyre. Kortet står på en sokkel med metallisk
   overkant og et stort konturnummer i Russo One (à la logoen).
   «Hele historien» glir ut i et felles panel under pallen. */

.podium { margin-bottom: 2.6rem; }

.podium-kicker {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-bright);
  text-shadow: 0 1px 12px rgba(11, 11, 13, 0.8);
}

.podium-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.55rem, 2vw, 1.1rem);
  align-items: end;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  grid-row: 1; /* alle på samme rad – eksplisitt kolonne ville ellers gitt radbryting */
  animation: rise 0.5s ease both;
}

/* Premieutdeling: bronse først, gull til slutt */
.podium-spot.gold   { grid-column: 2; --metal: #ecc972; --metal-glow: rgba(236, 201, 114, 0.16); --plinth: clamp(3rem, 8vw, 5.4rem);   animation-delay: 0.26s; }
.podium-spot.silver { grid-column: 1; --metal: #ccd2dd; --metal-glow: rgba(204, 210, 221, 0.13); --plinth: clamp(2rem, 5.5vw, 3.6rem); animation-delay: 0.13s; }
.podium-spot.bronze { grid-column: 3; --metal: #dc9c66; --metal-glow: rgba(220, 156, 102, 0.14); --plinth: clamp(1.4rem, 4vw, 2.4rem); animation-delay: 0s; }

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: clamp(0.9rem, 2.5vw, 1.35rem) clamp(0.5rem, 1.6vw, 1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.podium-spot.gold .podium-card {
  border-color: rgba(236, 201, 114, 0.32);
  box-shadow: 0 0 54px -10px rgba(236, 201, 114, 0.28);
}

.podium-card:hover { border-color: var(--line-strong); }
.podium-spot.gold .podium-card:hover { border-color: rgba(236, 201, 114, 0.55); }

.podium-spot.open .podium-card,
.podium-spot.open .podium-base { border-color: var(--metal); }

.podium-card:focus-visible {
  outline: 2px solid var(--metal);
  outline-offset: 2px;
}

.podium-crown {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metal);
}

.podium-photo-wrap { position: relative; margin-bottom: 0.15rem; }

.podium-photo {
  display: block;
  width: clamp(58px, 9vw, 88px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--metal);
  box-shadow: 0 0 0 4px var(--metal-glow), 0 10px 24px -10px rgba(0, 0, 0, 0.8);
  background: var(--surface-2);
}

.podium-spot.gold .podium-photo { width: clamp(76px, 12vw, 118px); }

.podium-medal {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 55%), var(--metal);
  color: #101013;
  font-size: 0.78rem;
  font-weight: 900;
  border: 2px solid var(--surface);
  font-variant-numeric: tabular-nums;
}

.podium-meta { justify-content: center; margin-bottom: 0; }

.podium-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1rem, 2.3vw, 1.32rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.podium-spot.gold .podium-name { font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.08; }

.podium-short {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podium-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.2s ease;
}

.podium-card:hover .podium-more,
.podium-spot.open .podium-more { color: var(--metal); }

.podium-more .chevron { padding: 0; font-size: 0.58rem; color: inherit; }
.podium-spot.open .podium-more .chevron { transform: rotate(180deg); }

/* sokkelen */
.podium-base {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--plinth);
  background: linear-gradient(180deg, var(--metal-glow), rgba(16, 16, 19, 0) 78%), var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: border-color 0.2s ease;
}

.podium-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 2%, var(--metal) 30%, var(--metal) 70%, rgba(255, 255, 255, 0) 98%);
  box-shadow: 0 0 14px var(--metal-glow);
  opacity: 0.9;
}

.podium-num {
  font-family: 'Russo One', 'Arial Black', sans-serif;
  font-size: calc(var(--plinth) * 0.62);
  line-height: 1;
  color: var(--metal);
  opacity: 0.32;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

@supports (-webkit-text-stroke: 1px white) {
  .podium-num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--metal);
    opacity: 0.7;
  }
}

/* felles «hele historien»-panel under pallen */
.podium-story {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.podium-story.open { grid-template-rows: 1fr; }

.podium-story-inner { overflow: hidden; }

.podium-story.gold   { --metal: #ecc972; }
.podium-story.silver { --metal: #ccd2dd; }
.podium-story.bronze { --metal: #dc9c66; }

.podium-story-content {
  margin-top: 1rem;
  padding: 1.15rem 1.3rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--metal, var(--red));
  border-radius: var(--radius);
  white-space: pre-line;
  color: #cfced4;
  font-size: 0.97rem;
}

.podium-story .card-long-label { color: var(--metal, var(--red-bright)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- LISTEHODE ---------------- */

.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-title {
  position: relative;
  margin: 0;
  font-size: clamp(1.3rem, 3.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 0.45rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.count-chip {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------- LISTEN ---------------- */

.idiot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.card-toggle {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  width: 100%;
  padding: 1.05rem 1.2rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card-toggle:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.thumb-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.rank-badge {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 1.6em;
  text-align: center;
  background: rgba(10, 10, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.1em 0.4em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.card-info { min-width: 0; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}

.week-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.badge-new {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(224, 186, 87, 0.1);
  border: 1px solid rgba(224, 186, 87, 0.3);
  border-radius: 4px;
  padding: 0.05em 0.5em;
}

.move {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.move.up { color: var(--red-bright); }
.move.down { color: var(--green); }

.card-name {
  margin: 0;
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.card-short {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.chevron {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease, color 0.25s ease;
  padding-right: 0.15rem;
}

.card:hover .chevron { color: var(--muted); }

.card.open .chevron {
  transform: rotate(180deg);
  color: var(--red-bright);
}

/* utvidbar «hele historien» (brukes av både hero og kort) */
.card-long {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.open .card-long { grid-template-rows: 1fr; }

.card-long-inner { overflow: hidden; }

.card-long-content {
  margin: 0 1.2rem 1.2rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  white-space: pre-line;
  color: #cfced4;
  font-size: 0.97rem;
}

.card-long-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ---------------- PODKAST-KORT ---------------- */

.podcast-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2.4rem;
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.podcast-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.podcast-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.podcast-info { min-width: 0; }

.podcast-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.podcast-info strong {
  display: block;
  margin: 0.15rem 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.podcast-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------------- STATUS / TOM LISTE ---------------- */

.status {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.status.hidden { display: none; }

/* ---------------- FOOTER ---------------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--frame);
  padding: 2.2rem 1.25rem 2.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-brand {
  justify-content: center;
  margin-bottom: 0.9rem;
  opacity: 0.95;
}

.foot-brand .brand-main { font-size: 1rem; }
.foot-brand .brand-divider { width: 2.5px; height: 0.95rem; }
.foot-brand .brand-box { font-size: 0.72rem; border-radius: 6px; }

footer p { max-width: 62ch; margin: 0.35rem auto; }

footer a { color: var(--muted); }

footer a:hover { color: var(--text); }

/* ============================================================
   ADMIN
   ============================================================ */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.admin-bar .hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.15em;
  border: 1px solid var(--red);
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn.ghost {
  background: var(--surface-3);
  border-color: transparent;
  color: var(--text);
}

.btn.ghost:hover { background: #303037; border-color: var(--line-strong); }

.btn.small { font-size: 0.84rem; padding: 0.45em 0.9em; }

.btn.danger {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--red-bright);
}

.btn.danger:hover { background: rgba(213, 18, 30, 0.14); border-color: var(--red-bright); }

/* ---- innlogging ---- */

.login-card {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}

.login-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.login-card .sub { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; }

/* ---- skjema ---- */

.form-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.8rem;
}

.form-panel.show { display: block; animation: rise 0.3s ease both; }

.form-panel h3 {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.97rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.15);
}

.field textarea { resize: vertical; min-height: 110px; }

.field .charcount {
  float: right;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.field-row { display: grid; grid-template-columns: 1fr 160px; gap: 1rem; }

.img-picker { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.img-preview {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.img-preview.empty { opacity: 0.3; }

.form-actions { display: flex; gap: 0.8rem; margin-top: 1.3rem; }

.form-error, .login-error {
  display: none;
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.9rem;
  background: rgba(213, 18, 30, 0.12);
  border: 1px solid rgba(255, 70, 85, 0.35);
  border-radius: 9px;
  color: #ff9aa1;
  font-size: 0.9rem;
}

.form-error.show, .login-error.show { display: block; }

/* ---- admin-liste (dra og slipp) ---- */

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.admin-row {
  display: grid;
  grid-template-columns: auto 2.4rem 56px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-row:hover { border-color: var(--line-strong); }

.drag-handle {
  cursor: grab;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.45rem;
  line-height: 1;
  user-select: none;
  touch-action: none;
  transition: color 0.15s ease;
}

.drag-handle:hover { color: var(--text); }

.admin-row.sortable-chosen {
  border-color: var(--red-bright);
  box-shadow: var(--shadow-hover);
}

.admin-row.sortable-ghost {
  opacity: 0.4;
  border-style: dashed;
  border-color: var(--red-bright);
}

.admin-rank {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-info { min-width: 0; }

.admin-info strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-info .admin-week {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.admin-info p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-actions { display: flex; gap: 0.5rem; }

/* ---- toast ---- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(16px);
  z-index: 60;
  background: var(--text);
  color: var(--frame);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- MOBIL ---------------- */

@media (max-width: 640px) {
  .topbar-note { display: none; }

  .podcast-pill-label { display: none; }
  .podcast-pill { padding: 0.5em 0.85em; }

  .podium-kicker { margin-bottom: 1.1rem; }

  .podium-card { gap: 0.4rem; padding: 0.8rem 0.45rem 0.9rem; }

  .podium-crown,
  .podium-short { display: none; }

  .podium-name { font-size: 0.95rem; }
  .podium-spot.gold .podium-name { font-size: 1.15rem; }

  .podium-more-label { display: none; }
  .podium-more .chevron { font-size: 0.7rem; }

  .podium-medal { width: 1.35rem; height: 1.35rem; font-size: 0.7rem; }

  .podium-story-content { padding: 1rem 1rem 1.1rem; }

  .card-toggle {
    grid-template-columns: 64px 1fr auto;
    gap: 0.7rem;
    padding: 0.9rem 0.85rem;
  }

  .thumb-wrap { width: 64px; height: 64px; }

  .card-short { font-size: 0.88rem; }
  .card-long-content { margin: 0 0.9rem 1rem; }

  .podcast-card { grid-template-columns: 72px 1fr; gap: 0.9rem; padding: 0.9rem 1rem; }
  .podcast-card img { width: 72px; height: 72px; }

  .field-row { grid-template-columns: 1fr; }

  .admin-row { grid-template-columns: auto 1.6rem 44px 1fr; }
  .admin-thumb { width: 44px; height: 44px; }
  .admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
