:root {
  --bg: #0a0a0b;
  --bg-raised: #131316;
  --bg-raised-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --fg: #f3f1ea;
  --fg-dim: #9c988e;
  --fg-faint: #605d56;
  --accent: #e8c14d;
  --accent-soft: rgba(232, 193, 77, 0.14);
  --danger: #ff6a5f;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  /* Pin the glow to one viewport height and let the solid color take over
     below it: the gradient already fades to var(--bg), so no visible seam
     however long the page scrolls (the old repeating background cut the
     page in half on tall screens like the Top 20 results). */
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -10%, #17161a 0%, var(--bg) 55%);
  background-size: 100% 100vh;
  background-repeat: no-repeat;
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #14120a; }

img { -webkit-user-drag: none; user-select: none; }

/* Tiny fixed credit, visible on every screen. Non-interactive so it can
   never swallow a tap, and below the overlays/modal so their backdrops
   cover it. */
.site-credit {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 50;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  pointer-events: none;
  user-select: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 6vh 6vw;
}

.screen.active {
  display: flex;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1.4rem;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.display-sm {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}

.lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 40em;
  margin: 0 0 2.4rem;
}

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

.btn {
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #14120a;
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
}

.btn-primary:hover { background: #f2d066; transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2.6rem; font-size: 1.05rem; }

.btn-ghost {
  background: transparent;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  padding: 0.9rem 1.8rem;
}

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

.btn-text {
  background: transparent;
  color: var(--fg-dim);
  padding: 0.4rem 0.2rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-text:hover { color: var(--accent); }

.btn-unseen {
  background: transparent;
  color: var(--fg-faint);
  border: 1px solid var(--line-soft);
  padding: 0.6rem 1.3rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn-unseen:hover { color: var(--danger); border-color: var(--danger); }

/* ================= INTRO ================= */

.screen-intro {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-wrap {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-wrap .lede { margin-left: auto; margin-right: auto; }

/* ================= FAVORITES ================= */

.screen-favorites {
  align-items: center;
  justify-content: center;
}

.favorites-wrap {
  width: 100%;
  max-width: 640px;
}

.search-box {
  position: relative;
  margin-bottom: 1.4rem;
}

#search-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.05rem;
  padding: 1.05rem 1.3rem;
  border-radius: 16px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

#search-input:focus {
  border-color: var(--accent);
  background: var(--bg-raised-2);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  z-index: 20;
  max-height: 340px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  display: none;
}

.search-results.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item.hot {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-raised);
  flex-shrink: 0;
}

.search-result-title {
  font-size: 0.92rem;
  color: var(--fg);
}

.search-result-year {
  font-size: 0.78rem;
  color: var(--fg-faint);
}

.search-empty {
  padding: 0.9rem;
  font-size: 0.85rem;
  color: var(--fg-faint);
}

.era-picker {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.5rem;
  margin-bottom: 2rem;
}

.era-picker-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  gap: 1rem;
}

.era-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0;
}

.era-value {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.15rem;
  margin: 0;
  white-space: nowrap;
}

#era-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  margin: 0.4rem 0;
}

#era-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: box-shadow 0.2s var(--ease);
}

#era-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 7px var(--accent-soft);
}

#era-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.era-hint {
  font-size: 0.78rem;
  color: var(--fg-faint);
  margin: 0.5rem 0 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-height: 0;
  margin-bottom: 2rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 0.35rem;
  animation: chip-in 0.35s var(--ease);
}

@keyframes chip-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.chip img {
  width: 26px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
}

.chip span {
  font-size: 0.85rem;
  color: var(--fg);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip button {
  background: none;
  border: none;
  color: var(--fg-faint);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.chip button:hover { color: var(--danger); }

.form-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: -1rem 0 1.4rem;
}

.favorites-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ================= DUEL ================= */

.screen-duel {
  flex-direction: column;
  padding: 4vh 5vw 3vh;
  display: none;
  gap: 0;
}

.screen-duel.active {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header header"
    "main aside";
  gap: 0 3rem;
  height: 100vh;
}

.duel-header { grid-area: header; }

.progress-track {
  width: 100%;
  height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #fff3c4);
  transition: width 0.5s var(--ease);
}

.duel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.progress-hint {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--fg-faint);
  margin: 0.35rem 0 0;
  max-width: 64em;
}

.duel-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.duel-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.6rem;
  min-height: 0;
}

.movie-card {
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 62vh;
  max-height: 640px;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 193, 77, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.movie-card.picked {
  animation: pick-flash 0.5s var(--ease);
  border-color: var(--accent);
}

.movie-card.rejected {
  animation: reject-fade 0.4s var(--ease) forwards;
}

.movie-card.entering {
  animation: card-in 0.45s var(--ease);
}

@keyframes pick-flash {
  0% { box-shadow: 0 0 0 0 rgba(232, 193, 77, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(232, 193, 77, 0); }
}

@keyframes reject-fade {
  to { opacity: 0; transform: scale(0.94); }
}

@keyframes card-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.movie-card-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.movie-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s var(--ease);
}

/* Hidden the instant a new poster starts downloading (transition: none makes
   the hide immediate, so no frame of the previous movie leaks through), then
   fades in via the base transition once loaded. */
.movie-card-media img.img-loading {
  opacity: 0;
  transition: none;
}

.movie-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.96) 0%,
    rgba(0, 0, 0, 0.96) 26%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.12) 60%,
    transparent 72%
  );
}

.movie-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.5rem;
}

.movie-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
  line-height: 1.15;
  color: var(--fg);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.movie-year {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.vs-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--bg), 0 0 40px rgba(232, 193, 77, 0.08);
}

.unseen-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  margin-top: 1.1rem;
}

.unseen-row .btn-unseen:first-child { justify-self: center; }
.unseen-row .btn-unseen:last-child { justify-self: center; }

.unseen-spacer { width: 56px; }

/* ---------- ranking aside ---------- */

.ranking-panel {
  grid-area: aside;
  overflow-y: auto;
  padding-left: 0.2rem;
}

.ranking-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0.4rem 0 1rem;
}

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

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.ranking-item.bump {
  background: var(--accent-soft);
}

.ranking-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent);
  width: 1.4rem;
  text-align: right;
  flex-shrink: 0;
}

.ranking-item img {
  width: 28px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.ranking-name {
  font-size: 0.83rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= RESULTS ================= */

.screen-results {
  justify-content: center;
}

.results-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.results-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  opacity: 0;
  animation: result-in 0.55s var(--ease) forwards;
}

.result-item:nth-child(1) { border-color: rgba(232,193,77,0.5); background: var(--accent-soft); }

@keyframes result-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  width: 2.2rem;
  text-align: center;
  flex-shrink: 0;
}

.result-item img {
  width: 46px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.result-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.result-year {
  font-size: 0.82rem;
  color: var(--fg-faint);
}

/* ================= responsive ================= */

/* Touch devices: no hover lift (it sticks after tap) and no 300ms zoom delay. */
@media (hover: none) {
  .movie-card:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
  .btn-primary:hover { transform: none; background: var(--accent); }
}

@media (max-width: 960px) {
  .screen-duel.active {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "header"
      "main"
      "aside";
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .movie-card { height: 42vh; }

  .ranking-panel { max-height: none; padding-left: 0; margin-top: 1.4rem; }

  .ranking-list { flex-direction: row; overflow-x: auto; padding-bottom: 0.4rem; }

  .ranking-item { min-width: 160px; flex-shrink: 0; }
}

@media (max-width: 640px) {
  .screen { padding: 4vh 5vw 5vh; }

  /* --- duel: the two posters face off side by side, one thumb-tap each --- */
  .screen-duel { padding: 2.5vh 4vw 4vh; }

  .duel-header-row { flex-wrap: wrap; row-gap: 0.15rem; }
  .progress-label { font-size: 0.68rem; }
  .progress-hint { font-size: 0.66rem; margin-top: 0.25rem; }
  .btn-text { font-size: 0.78rem; }

  .duel-arena {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    position: relative;
  }

  .vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
    z-index: 5;
    box-shadow: 0 0 0 4px var(--bg);
  }

  .movie-card { height: min(66vw, 360px); border-radius: 14px; }
  .movie-card-info { padding: 0.75rem 0.7rem; }
  .movie-title { font-size: 0.95rem; }
  .movie-year { font-size: 0.72rem; }

  .unseen-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 0.75rem;
  }
  .unseen-spacer { display: none; }
  .unseen-row .btn-unseen:first-child,
  .unseen-row .btn-unseen:last-child { justify-self: stretch; }
  .btn-unseen { font-size: 0.72rem; padding: 0.6rem 0.3rem; }

  /* --- everything else --- */
  .favorites-actions { flex-direction: column-reverse; align-items: stretch; }

  .modal { padding: 1.4rem 1.2rem 1.2rem; }
  .captcha-row { flex-wrap: wrap; }
  .captcha-image { flex: 1 1 180px; min-width: 0; }
  .modal-actions { flex-wrap: wrap; }
  .permalink-result { flex-wrap: wrap; }
  .permalink-result input { flex: 1 1 100%; }
}

/* ================= duel keyboard hint ================= */

.kbd-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--fg-faint);
  margin: 0.9rem 0 0;
  user-select: none;
}

.kbd-hint kbd {
  font-family: var(--sans);
  font-size: 0.68rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  color: var(--fg-dim);
  background: var(--bg-raised);
}

/* ================= finals overlay ================= */

.finals-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.finals-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.finals-overlay-inner {
  max-width: 540px;
  text-align: center;
  padding: 0 6vw;
  transform: translateY(10px);
  transition: transform 0.45s var(--ease);
}

.finals-overlay.show .finals-overlay-inner {
  transform: translateY(0);
}

.finals-overlay .lede { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* ================= results actions + share ================= */

.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.share-status {
  font-size: 0.82rem;
  color: var(--fg-dim);
  min-height: 1.2em;
  margin: 0 0 2rem;
}

/* ================= shared list view ================= */

.screen-shared {
  justify-content: center;
}

.shared-meta {
  font-size: 0.85rem;
  color: var(--fg-faint);
  margin: -0.6rem 0 2rem;
}

/* ================= modal (permanent link + captcha) ================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(4px);
  padding: 5vh 6vw;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem 1.8rem 1.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: card-in 0.35s var(--ease);
}

.modal-lede {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.5;
  margin: 0.6rem 0 1.4rem;
}

.modal-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 1.1rem 0 0.45rem;
}

.modal input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

.modal input[type="text"]:focus { border-color: var(--accent); }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.captcha-image {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  min-width: 200px;
  min-height: 64px;
  background: var(--bg);
}

.captcha-image svg { width: 100%; height: auto; display: block; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.permalink-result {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.permalink-result input {
  flex: 1;
  font-size: 0.85rem !important;
  color: var(--accent) !important;
}

@media (max-width: 640px) {
  .results-actions { flex-direction: column; align-items: stretch; }
  .results-actions .btn-text { align-self: center; }
  .kbd-hint { display: none; }
}

.result-noimg {
  width: 46px;
  height: 66px;
  border-radius: 6px;
  background: var(--bg-raised-2);
  flex-shrink: 0;
}
