:root {
  --bg: #0a0c13;
  --bg-elev: #121624;
  --bg-card: #161b2c;
  --bg-hover: #1d2438;
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(230, 184, 79, 0.35);
  --text: #f3efe6;
  --text-muted: #9aa3b8;
  --gold: #e6b84f;
  --gold-bright: #f5cd6d;
  --gold-soft: rgba(230, 184, 79, 0.14);
  --crimson: #e05363;
  --emerald: #34c785;
  --emerald-soft: rgba(52, 199, 133, 0.16);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top center, #151b2e 0%, var(--bg) 52%);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 12, 19, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: opacity 0.15s ease;
}

.brand-home:hover {
  opacity: 0.9;
}

.brand-home:hover .brand-title {
  color: var(--gold-bright);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #b57c1d 100%);
  color: #141007;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(230, 184, 79, 0.28);
  flex-shrink: 0;
}

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

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.version-badge:hover {
  transform: translateY(-1px);
  background: rgba(230, 184, 79, 0.24);
}

.changelog-release {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.changelog-release:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.changelog-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.changelog-ver {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.changelog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.changelog-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.88rem;
}

.brand-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: #161106;
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-primary {
  background: #273252;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #314068;
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(224, 83, 99, 0.16);
  border-color: rgba(224, 83, 99, 0.4);
  color: #ff94a0;
}

.btn-danger:hover {
  background: rgba(224, 83, 99, 0.28);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.82rem;
}

/* Main */
.main-content {
  padding-top: 22px;
  padding-bottom: 56px;
}

/* Stats Panel */
.stats-panel {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 16px;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  gap: 10px;
}

.progress-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
}

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, #f6d57a 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.stat-chip-btn {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease;
}

.stat-chip-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  background: rgba(230, 184, 79, 0.08);
}

.stat-chip-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.stat-chip-btn.active .stat-lbl {
  color: var(--gold-bright);
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Controls */
.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.pill.active {
  background: var(--gold-soft);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

.filter-inputs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.search-wrap {
  flex: 1 1 240px;
}

input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

.filter-inputs select {
  width: auto;
  flex: 0 1 auto;
}

.view-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
}

.icon-btn.active {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

/* Subbar */
.subbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.84rem;
  gap: 10px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--text-muted);
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-bright);
}

.dot {
  color: var(--text-muted);
  margin: 0 6px;
}

/* Empty state */
.empty-state {
  text-align: center;
  background: var(--bg-elev);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius);
  padding: 48px 24px;
}

.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
}

.empty-state p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--text-muted);
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Movies Grid */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: linear-gradient(155deg, #1b2238 0%, #0e111c 100%);
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-fallback {
  width: 100%;
  height: 100%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(230, 184, 79, 0.16), transparent 60%),
              linear-gradient(160deg, #1c2236 0%, #0d1019 100%);
  border-bottom: 1px solid var(--border);
}

.poster-fallback-star {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.poster-fallback-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.poster-fallback-year {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gold);
}

.badge-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.badge-watched {
  background: rgba(16, 46, 33, 0.88);
  color: #6df0b3;
  border: 1px solid rgba(52, 199, 133, 0.45);
}

.badge-mustsee {
  background: rgba(45, 34, 10, 0.88);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
}

.card-quick-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.quick-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 19, 0.78);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.quick-btn:hover {
  transform: scale(1.08);
  color: var(--text);
}

.quick-btn.is-fav {
  color: var(--crimson);
  border-color: rgba(224, 83, 99, 0.5);
}

.quick-btn.is-watched {
  color: var(--emerald);
  border-color: rgba(52, 199, 133, 0.5);
}

.card-body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.73rem;
}

.rating-pill {
  font-weight: 700;
  color: var(--gold-bright);
  background: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Compact List View */
.movies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-row {
  display: grid;
  grid-template-columns: 44px 1.8fr 0.9fr 0.9fr 0.8fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.list-row:hover {
  border-color: var(--border-gold);
  background: var(--bg-hover);
}

.list-thumb {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  background: #1c2236;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--gold);
}

.list-actions {
  display: flex;
  gap: 6px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 11, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.modal {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 780px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--text);
}

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

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.span-2 {
  grid-column: span 2;
}

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

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.readonly-field {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-field label {
  flex-direction: row;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--gold);
}

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-footer-actions.spread {
  justify-content: space-between;
}

.btn-group {
  display: flex;
  gap: 8px;
}

/* Lookup Box */
.lookup-box {
  background: rgba(230, 184, 79, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.lookup-box label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.lookup-row {
  display: flex;
  gap: 8px;
}

.lookup-results {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.lookup-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
}

.lookup-item:hover {
  border-color: var(--gold);
  background: var(--bg-hover);
}

.lookup-item img {
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.lookup-item-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
}

.lookup-item-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Detail modal */
.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.score-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.score-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.score-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.detail-section {
  margin-top: 12px;
}

.detail-section h4 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
}

.detail-section p {
  margin: 0;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.quote-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(230, 184, 79, 0.06);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Private gate */
.private-gate {
  display: flex;
  justify-content: center;
  padding: 60px 16px;
}

.private-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.error-text {
  color: #ff8e9b;
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.success-text {
  color: #6df0b3;
  font-size: 0.85rem;
  margin: 8px 0 0;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 80;
  background: #1d2438;
  border: 1px solid var(--border-gold);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 380px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
.user-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.avatar-img {
  display: inline-block;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--bg-card);
}

.avatar-initial {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  color: #10131e;
  flex-shrink: 0;
}

.profile-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.user-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.user-pill:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.user-pill.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.user-avgs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.user-avg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.user-avg-chip strong {
  color: var(--text);
}

.added-by-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.added-by-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.card-ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.mini-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.mini-score strong {
  color: var(--text);
}

/* Samlet + Individuelle vurderinger i detalje-modal */
.combined-rating-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(230, 184, 79, 0.14), rgba(230, 184, 79, 0.04));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin: 12px 0;
}

.combined-score-big {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}

.individual-ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.indiv-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.indiv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.indiv-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.indiv-score {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.indiv-note {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.my-rating-box {
  background: rgba(91, 156, 246, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  margin: 14px 0;
}

.my-rating-box h4 {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.score-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.score-num-btn {
  width: 34px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.score-num-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.score-num-btn.active {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #161106;
}

.my-rating-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.my-rating-controls input[type="number"] {
  width: 88px;
}

.my-rating-controls input[type="text"] {
  flex: 1 1 180px;
}

/* Brugere & invitationer modal */
.profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.panel-box h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: var(--gold-bright);
}

.invite-created {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
}

.invites-list, .members-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}

.invite-row, .member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.member-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.member-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-friend-active {
  background: var(--emerald-soft);
  border-color: rgba(52, 199, 133, 0.45);
  color: #6df0b3;
}

.btn-friend-active:hover {
  background: rgba(224, 83, 99, 0.2);
  border-color: rgba(224, 83, 99, 0.45);
  color: #ff94a0;
}

.dir-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dir-toolbar input[type="search"] {
  flex: 1 1 200px;
}

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dir-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.dir-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dir-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #10131e;
  flex-shrink: 0;
}

.dir-name {
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dir-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.dir-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* Filmanbefaler modal */
.rec-input-box {
  background: rgba(230, 184, 79, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.rec-input-row {
  display: flex;
  gap: 8px;
}

.rec-ac-wrap {
  position: relative;
  flex: 1;
}

.rec-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 210px;
  overflow-y: auto;
}

.rec-ac-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.rec-ac-item:last-child {
  border-bottom: none;
}

.rec-ac-item:hover {
  background: var(--bg-hover);
  color: var(--gold-bright);
}

.rec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.84rem;
  font-weight: 600;
}

.rec-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.rec-chip button:hover {
  opacity: 1;
}

.rec-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.rec-check-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.rec-check-lbl input {
  accent-color: var(--gold);
}

.rec-section-title {
  margin: 18px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.rec-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.rec-poster {
  width: 64px;
  height: 94px;
  border-radius: 7px;
  object-fit: cover;
  background: #1c2236;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
}

.rec-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rec-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.match-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--emerald-soft);
  color: #6df0b3;
  border: 1px solid rgba(52, 199, 133, 0.45);
}

.rec-reason {
  margin: 5px 0 9px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.rec-card-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

/* External ratings (IMDb & Rotten Tomatoes) */
.ext-ratings-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ext-badge strong {
  font-weight: 700;
}

.ext-badge-imdb {
  background: rgba(245, 197, 24, 0.14);
  border: 1px solid rgba(245, 197, 24, 0.38);
  color: #f5c518;
}

.ext-badge-rt.fresh {
  background: rgba(250, 50, 10, 0.14);
  border: 1px solid rgba(250, 50, 10, 0.38);
  color: #ff7b61;
}

.ext-badge-rt.rotten {
  background: rgba(92, 184, 92, 0.14);
  border: 1px solid rgba(92, 184, 92, 0.38);
  color: #8fd694;
}

.detail-ext-ratings {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.detail-ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.86rem;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.detail-ext-pill:hover {
  transform: translateY(-1px);
}

.detail-ext-pill.ext-imdb {
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid rgba(245, 197, 24, 0.35);
  color: #f8d85c;
}

.detail-ext-pill.ext-imdb:hover {
  background: rgba(245, 197, 24, 0.18);
  border-color: rgba(245, 197, 24, 0.65);
}

.detail-ext-pill.ext-rt.fresh {
  background: rgba(250, 50, 10, 0.1);
  border: 1px solid rgba(250, 50, 10, 0.35);
  color: #ff866e;
}

.detail-ext-pill.ext-rt.fresh:hover {
  background: rgba(250, 50, 10, 0.18);
  border-color: rgba(250, 50, 10, 0.65);
}

.detail-ext-pill.ext-rt.rotten {
  background: rgba(92, 184, 92, 0.1);
  border: 1px solid rgba(92, 184, 92, 0.35);
  color: #93da97;
}

.ext-pill-brand {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.ext-pill-score {
  font-size: 0.95rem;
  color: var(--text);
}

.ext-pill-denom {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 1px;
}

.ext-pill-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Filmaften (Kalender, RSVP & Planlægning) */
.mn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #161106;
  font-size: 0.72rem;
  font-weight: 800;
}

.mn-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.mn-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.mn-tab:hover {
  color: var(--text);
  border-color: rgba(230, 184, 79, 0.45);
}

.mn-tab.active {
  background: rgba(230, 184, 79, 0.15);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mn-overview-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}

.mn-cal-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: sticky;
  top: 0;
}

.mn-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.mn-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.mn-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mn-cal-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.mn-cal-cell.empty {
  cursor: default;
  pointer-events: none;
}

.mn-cal-cell:not(.empty):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mn-cal-cell.is-today {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  font-weight: 700;
}

.mn-cal-cell.has-event {
  background: rgba(230, 184, 79, 0.14);
  border-color: rgba(230, 184, 79, 0.45);
  color: var(--gold-bright);
  font-weight: 700;
}

.mn-cal-cell.has-pending {
  box-shadow: 0 0 0 1px rgba(230, 184, 79, 0.55);
}

.mn-cal-cell.is-selected {
  background: var(--gold);
  color: #161106;
  border-color: var(--gold-bright);
}

.mn-cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-bright);
  margin-top: 2px;
  font-size: 0.56rem;
  line-height: 1;
}

.mn-cal-cell.is-selected .mn-cal-dot {
  background: #161106;
}

.mn-cal-filter-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--gold-bright);
}

.mn-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mn-subpill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mn-subpill.active {
  background: rgba(230, 184, 79, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mn-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mn-empty {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.mn-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.mn-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(230, 184, 79, 0.22);
}

.mn-card.is-past {
  opacity: 0.78;
}

.mn-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mn-poster {
  width: 66px;
  height: 98px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mn-poster-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 184, 79, 0.08);
  font-size: 1.5rem;
}

.mn-card-info {
  flex: 1;
  min-width: 0;
}

.mn-date-line {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.mn-card-title {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.25;
}

.mn-host-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.mn-place {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.mn-mode-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.mn-mode-tag.in-person {
  background: rgba(71, 201, 149, 0.14);
  border: 1px solid rgba(71, 201, 149, 0.4);
  color: #6df0b3;
}

.mn-mode-tag.teleparty {
  background: rgba(176, 127, 245, 0.16);
  border: 1px solid rgba(176, 127, 245, 0.45);
  color: #cfb2ff;
}

.mn-place-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.mn-place-link:hover {
  text-decoration: underline;
}

.mn-notes-box {
  margin: 8px 0 0;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mn-rsvp-box {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(230, 184, 79, 0.07);
  border: 1px solid rgba(230, 184, 79, 0.28);
  border-radius: 9px;
}

.mn-rsvp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mn-rsvp-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mn-rsvp-btn {
  flex: 1;
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.mn-rsvp-btn.going:hover,
.mn-rsvp-btn.going.active {
  background: rgba(52, 199, 133, 0.22);
  border-color: #47c995;
  color: #7ef7c0;
}

.mn-rsvp-btn.maybe:hover,
.mn-rsvp-btn.maybe.active {
  background: rgba(230, 184, 79, 0.22);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mn-rsvp-btn.declined:hover,
.mn-rsvp-btn.declined.active {
  background: rgba(227, 107, 136, 0.22);
  border-color: #e36b88;
  color: #ff9bb3;
}

.mn-rsvp-comment-row {
  margin-top: 8px;
}

.mn-rsvp-comment {
  width: 100%;
  font-size: 0.82rem;
  padding: 6px 10px;
}

.mn-guests-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mn-guests-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mn-sum-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mn-sum-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rsvp-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.rsvp-pill.going {
  background: rgba(52, 199, 133, 0.16);
  color: #7ef7c0;
  border: 1px solid rgba(52, 199, 133, 0.4);
}

.rsvp-pill.maybe {
  background: rgba(230, 184, 79, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(230, 184, 79, 0.4);
}

.rsvp-pill.declined {
  background: rgba(227, 107, 136, 0.16);
  color: #ff9bb3;
  border: 1px solid rgba(227, 107, 136, 0.4);
}

.rsvp-pill.pending {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.mn-guests-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mn-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 7px;
  font-size: 0.84rem;
}

.mn-guest-who {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 0;
}

.mn-guest-note {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
}

.mn-card-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mn-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mn-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.14s ease;
}

.mn-mode-btn span {
  font-weight: 700;
  font-size: 0.9rem;
}

.mn-mode-btn small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.mn-mode-btn.active {
  background: rgba(230, 184, 79, 0.14);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mn-guest-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mn-guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 0.84rem;
  user-select: none;
  transition: all 0.14s ease;
}

.mn-guest-chip input {
  display: none;
}

.mn-guest-chip.selected {
  background: rgba(230, 184, 79, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

.mn-guest-tag {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(71, 201, 149, 0.16);
  color: #6df0b3;
}

.mn-guest-mail {
  font-size: 0.76rem;
}

.mn-time-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mn-time-picker select {
  flex: 1;
  text-align: center;
  font-weight: 600;
}

.mn-time-sep {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  user-select: none;
}

input[type="date"] {
  color-scheme: dark;
}

/* Filmaften: Valgte film & visuel flervalgs-filmvælger */
.mn-selected-movies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.mn-sel-empty {
  font-size: 0.84rem;
}

.mn-sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 5px;
  border-radius: 9px;
  background: rgba(230, 184, 79, 0.14);
  border: 1px solid rgba(230, 184, 79, 0.45);
  font-size: 0.84rem;
}

.mn-sel-chip img {
  width: 24px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.mn-sel-thumb-fb {
  font-size: 1rem;
}

.mn-sel-num {
  color: var(--gold-bright);
  font-weight: 700;
}

.mn-sel-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  line-height: 1;
}

.mn-sel-remove:hover {
  color: #ff9bb3;
}

.mn-movie-pick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mn-program-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 7px;
}

.mn-program-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.mn-program-item img {
  width: 20px;
  height: 30px;
  object-fit: cover;
  border-radius: 3px;
}

/* Nested Movie Picker Modal */
.picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 7, 13, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.picker-backdrop.hidden {
  display: none;
}

.modal-xl {
  width: min(1060px, 100%);
  height: min(88vh, 860px);
  height: min(88dvh, 860px);
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mn-picker-controls {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.mnp-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.mnp-pill.active {
  background: rgba(230, 184, 79, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.mn-picker-filters {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.mn-picker-grid {
  padding: 14px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  grid-auto-rows: max-content;
  gap: 12px;
  align-content: start;
}

.mnp-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  user-select: none;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.mnp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 184, 79, 0.55);
}

.mnp-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(230, 184, 79, 0.3);
  background: rgba(230, 184, 79, 0.08);
}

.mnp-poster-wrap {
  position: relative;
  width: 100%;
  height: 176px;
  flex-shrink: 0;
  background: #0d101b;
  overflow: hidden;
}

.mnp-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mnp-check {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: #161106;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.mnp-watched-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(52, 199, 133, 0.9);
  color: #091d14;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mnp-card-body {
  padding: 7px 8px 8px;
}

.mnp-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mnp-card-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mnp-ext-row {
  display: flex;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.mnp-ext {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.mnp-ext.imdb {
  background: rgba(245, 197, 24, 0.14);
  color: #f5c518;
}

.mnp-ext.rt {
  background: rgba(250, 50, 10, 0.14);
  color: #ff866e;
}

.mn-picker-footer {
  padding: 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(14, 18, 31, 0.98);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.mn-picker-selected-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}

.mn-picker-sel-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mnp-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 184, 79, 0.16);
  border: 1px solid rgba(230, 184, 79, 0.4);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 600;
}

.mnp-mini-chip button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.78rem;
}

@media (max-width: 860px) {
  .mn-picker-filters {
    grid-template-columns: 1fr 1fr;
  }
  .mn-picker-filters input {
    grid-column: span 2;
  }
  .mn-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
  }
  .mnp-poster-wrap {
    height: 148px;
  }
}

@media (max-width: 720px) {
  .picker-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .modal-xl.mn-picker-modal {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .mn-picker-modal .modal-header {
    padding: 10px 14px;
    flex-shrink: 0;
  }
  .mn-picker-modal .modal-header .muted {
    display: none;
  }
  .mn-picker-controls {
    padding: 8px 12px;
    gap: 6px;
  }
  .mn-picker-controls .status-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .mnp-pill {
    padding: 4px 10px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .mn-picker-filters {
    gap: 6px;
  }
  .mn-picker-filters input,
  .mn-picker-filters select {
    padding: 6px 8px;
    font-size: 0.78rem;
  }
  #mnp-count {
    display: none;
  }
  .mn-picker-grid {
    padding: 10px 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .mnp-poster-wrap {
    height: 132px;
  }
  .mn-picker-footer {
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .mn-picker-selected-summary {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 0.8rem;
  }
  .mn-picker-selected-summary strong {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mn-picker-sel-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .mnp-mini-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mn-picker-footer .btn-group {
    width: 100%;
  }
  #mnp-btn-confirm {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .mn-overview-layout {
    grid-template-columns: 1fr;
  }
  .mn-cal-box {
    position: static;
  }
  .mn-mode-toggle {
    grid-template-columns: 1fr;
  }
}

/* Streamingtjenester på profil, brugerliste og Filmaften */
.streaming-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.streaming-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
}

.streaming-chip input {
  display: none;
}

.streaming-chip:hover {
  border-color: rgba(230, 184, 79, 0.45);
  color: var(--text);
}

.streaming-chip.selected {
  background: rgba(230, 184, 79, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
  font-weight: 600;
}

.streaming-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dir-streaming-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.dir-streaming-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.mn-shared-streaming {
  margin-top: 8px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(71, 201, 149, 0.09);
  border: 1px solid rgba(71, 201, 149, 0.32);
  font-size: 0.8rem;
  color: #b7f7d8;
  line-height: 1.45;
}

.mn-shared-streaming.none {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-muted);
}

/* Filmanbefaler resultat-faner (nye film udenfor listen vs. fra listen) */
.rec-result-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rec-res-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.rec-res-tab:hover {
  color: var(--text);
  border-color: rgba(230, 184, 79, 0.45);
}

.rec-res-tab.active {
  background: rgba(230, 184, 79, 0.16);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.rec-card-discover {
  border-color: rgba(230, 184, 79, 0.3);
}

/* Streaming-tilgængelighed og fremhævning på filmkort & detaljevindue */
.ext-badge-stream-match {
  background: rgba(52, 199, 133, 0.16);
  border: 1px solid rgba(52, 199, 133, 0.45);
  color: #7ef7c0;
  font-weight: 700;
}

.detail-stream-box {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.detail-stream-box.is-match {
  background: rgba(52, 199, 133, 0.11);
  border-color: rgba(52, 199, 133, 0.48);
}

.detail-stream-box.is-rent-match {
  background: rgba(230, 184, 79, 0.09);
  border-color: rgba(230, 184, 79, 0.4);
}

.detail-stream-head {
  margin-bottom: 7px;
}

.detail-stream-title {
  font-weight: 700;
  font-size: 0.86rem;
  color: #7ef7c0;
}

.detail-stream-box.is-rent-match .detail-stream-title {
  color: var(--gold-bright);
}

.detail-stream-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stream-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.stream-pill-btn.match {
  background: rgba(52, 199, 133, 0.2);
  border-color: rgba(52, 199, 133, 0.55);
  color: #e9fff4;
}

.detail-stream-box.is-rent-match .stream-pill-btn.match {
  background: rgba(230, 184, 79, 0.18);
  border-color: rgba(230, 184, 79, 0.55);
  color: #fff5d6;
}

.stream-pill-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.detail-stream-info {
  color: var(--text-muted);
  line-height: 1.45;
}

.detail-stream-info strong {
  color: var(--text);
}

.detail-stream-sub {
  margin-top: 6px;
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* Kendte citater fra filmen (karrusel – 1 citat ad gangen hvert 5. sekund) */
.fq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fq-header h4 {
  margin: 0 !important;
}

.fq-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fq-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.fq-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(230, 184, 79, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.fq-ctrl-btn:hover {
  border-color: var(--gold);
  background: rgba(230, 184, 79, 0.16);
  color: var(--gold-bright);
}

.fq-ctrl-btn.is-paused {
  border-color: var(--gold);
  background: rgba(230, 184, 79, 0.22);
  color: var(--gold-bright);
}

.famous-quote-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 12px 15px 14px;
  border-radius: 9px;
  background: rgba(230, 184, 79, 0.06);
  border: 1px solid rgba(230, 184, 79, 0.24);
  border-left: 3px solid var(--gold);
}

.fq-slide {
  min-height: 54px;
}

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

.fq-fade-in {
  animation: fqFadeIn 0.28s ease-out;
}

.fq-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(230, 184, 79, 0.14);
}

@keyframes fqProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.fq-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
}

.fq-progress-bar.is-running {
  animation: fqProgress 10s linear forwards;
}

.fq-progress-bar.is-paused {
  animation-play-state: paused;
}

.fq-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.fq-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.16s, background 0.16s;
}

.fq-dot.active {
  width: 18px;
  background: var(--gold);
}

.famous-quote-text {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #f6f1e5;
}

.famous-quote-speaker {
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.detail-credits-block {
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-credit-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.detail-credit-label {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

.credit-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.credit-chip:hover {
  border-color: var(--gold);
  background: rgba(240, 196, 86, 0.14);
  color: var(--gold-bright);
}

.credit-chip.is-director {
  font-weight: 600;
  border-color: rgba(240, 196, 86, 0.35);
}

.credit-chip-more {
  background: transparent;
  color: var(--text-muted);
  border-style: dashed;
}

.search-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(240, 196, 86, 0.14);
  border: 1px solid rgba(240, 196, 86, 0.38);
  color: var(--gold-bright);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dup-warning-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(240, 173, 78, 0.14);
  border: 1px solid rgba(240, 196, 86, 0.55);
  color: var(--gold-bright);
  font-size: 0.88rem;
  line-height: 1.4;
}

.lookup-item.is-duplicate {
  opacity: 0.86;
  border-color: rgba(240, 196, 86, 0.45);
  background: rgba(240, 196, 86, 0.06);
}

.lookup-dup-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(240, 196, 86, 0.18);
  border: 1px solid rgba(240, 196, 86, 0.45);
  color: var(--gold-bright);
  vertical-align: middle;
}

/* Min filmkø, personlige rettelser & fælles kommentarer */
.pill-queue {
  border-color: rgba(96, 165, 250, 0.42);
  color: #bfdbfe;
}

.pill-queue.active {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60a5fa;
  color: #eff6ff;
}

.quick-btn.is-queued {
  background: rgba(59, 130, 246, 0.9);
  border-color: #60a5fa;
  color: #fff;
}

.badge-queued {
  background: rgba(37, 99, 235, 0.88);
  color: #eff6ff;
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.comment-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 6px;
}

.personal-edit-notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.36);
  color: #dbeafe;
  font-size: 0.84rem;
  line-height: 1.45;
}

.comments-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.comments-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.comments-header h4 {
  margin: 0 !important;
}

.comments-visibility-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.comment-card {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.comment-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.comment-time {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 400;
}

.comment-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-del-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 2px 6px;
  border-radius: 5px;
}

.comment-del-btn:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.comment-form-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.comment-form-row textarea {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}

.comment-form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ==========================================================================
   Layout-vælger i profilen
   ========================================================================== */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.theme-picker-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.16s, box-shadow 0.16s;
}

.theme-card:hover {
  border-color: var(--border-gold);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.theme-card.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(230, 184, 79, 0.25);
}

.theme-preview {
  height: 62px;
  border-radius: 9px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.theme-preview-classic {
  background: radial-gradient(circle at top, #172038 0%, #0a0c13 85%);
}

.theme-preview-cozy {
  background: radial-gradient(ellipse at top, rgba(226, 154, 78, 0.28) 0%, #1c1612 72%);
  border-color: rgba(255, 224, 186, 0.14);
}

.theme-preview-archive {
  background: linear-gradient(180deg, #faf4e8 0%, #f1e7d5 100%);
  border-color: rgba(30, 24, 20, 0.25);
  border-top: 3px solid #8c2233;
}

.theme-preview-archive .tp-bar span:first-child {
  background: #8c2233;
}

.theme-preview-archive .tp-bar span:last-child {
  background: rgba(30, 24, 20, 0.25);
}

.theme-preview-archive .tp-cards div {
  background: #fffcf6;
  border-radius: 3px;
  border: 1px solid rgba(30, 24, 20, 0.26);
  box-shadow: 2px 2px 0 rgba(30, 24, 20, 0.1);
}

.tp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tp-bar span:first-child {
  width: 34%;
  height: 7px;
  border-radius: 99px;
  background: #e6b84f;
}

.tp-bar span:last-child {
  width: 24%;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}

.theme-preview-cozy .tp-bar span:first-child {
  background: #dfa452;
}

.tp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tp-cards div {
  height: 28px;
  border-radius: 5px;
  background: #1a2136;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-preview-cozy .tp-cards div {
  background: #2b231d;
  border-radius: 7px;
  border-color: rgba(255, 226, 192, 0.12);
}

.theme-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.theme-active-badge {
  display: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--gold);
  color: #18120a;
}

.theme-card.active .theme-active-badge {
  display: inline-flex;
}

.theme-card-desc {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .theme-picker-grid,
  .theme-picker-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TEMA: "Hyggekrog" (Clean, roligt og varmt filmstue-look)
   Bevarer 100% af alle funktionaliteter i en varmere, luftigere ramme.
   ========================================================================== */
body[data-theme="cozy"] {
  --bg: #171310;
  --bg-elev: #211b17;
  --bg-elevated: #211b17;
  --bg-card: #261f1a;
  --bg-hover: #302720;
  --border: rgba(255, 229, 198, 0.095);
  --border-gold: rgba(223, 164, 82, 0.38);
  --text: #f5eee4;
  --text-muted: #b5a493;
  --gold: #dfa452;
  --gold-bright: #f2c47e;
  --gold-soft: rgba(223, 164, 82, 0.14);
  --crimson: #dc6e6e;
  --emerald: #6db889;
  --emerald-soft: rgba(109, 184, 137, 0.16);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 14px 36px rgba(8, 5, 3, 0.42);
  background:
    radial-gradient(ellipse 85% 42% at 50% -6%, rgba(226, 148, 70, 0.17) 0%, rgba(164, 88, 48, 0.06) 38%, transparent 72%),
    linear-gradient(180deg, #1b1612 0%, #15110e 100%);
  background-attachment: fixed;
  color: var(--text);
}

body[data-theme="cozy"] .topbar {
  background: rgba(23, 19, 16, 0.84);
  border-bottom: 1px solid rgba(255, 229, 198, 0.08);
  box-shadow: 0 4px 24px rgba(10, 6, 3, 0.28);
}

body[data-theme="cozy"] .topbar-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-theme="cozy"] .brand-mark {
  background: linear-gradient(140deg, #e5aa58 0%, #b77432 100%);
  border-radius: 13px;
  box-shadow: 0 6px 22px rgba(223, 164, 82, 0.25);
}

body[data-theme="cozy"] .brand-title {
  letter-spacing: 0.01em;
  color: #faf3e8;
}

body[data-theme="cozy"] .btn {
  border-radius: 11px;
  font-weight: 500;
}

body[data-theme="cozy"] .btn-secondary {
  background: rgba(255, 232, 206, 0.055);
  border-color: rgba(255, 229, 198, 0.1);
}

body[data-theme="cozy"] .btn-secondary:hover {
  background: rgba(255, 232, 206, 0.1);
  border-color: rgba(223, 164, 82, 0.35);
}

body[data-theme="cozy"] .btn-gold {
  background: linear-gradient(135deg, #e5aa58 0%, #cf8a3c 100%);
  color: #1b130a;
  box-shadow: 0 4px 16px rgba(223, 164, 82, 0.22);
}

body[data-theme="cozy"] .stats-panel {
  background: linear-gradient(145deg, rgba(44, 35, 29, 0.82) 0%, rgba(32, 26, 22, 0.88) 100%);
  border: 1px solid rgba(255, 229, 198, 0.1);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px rgba(8, 5, 3, 0.28), inset 0 1px 0 rgba(255, 234, 210, 0.05);
}

body[data-theme="cozy"] .stat-chip {
  background: rgba(255, 232, 206, 0.035);
  border-color: rgba(255, 229, 198, 0.08);
  border-radius: 13px;
}

body[data-theme="cozy"] .stat-chip-btn:hover {
  background: rgba(223, 164, 82, 0.1);
  border-color: rgba(223, 164, 82, 0.36);
}

body[data-theme="cozy"] .controls-bar {
  margin-top: 22px;
  gap: 14px;
}

body[data-theme="cozy"] .pill {
  background: rgba(255, 232, 206, 0.04);
  border-color: rgba(255, 229, 198, 0.1);
  padding: 7px 14px;
}

body[data-theme="cozy"] .pill.active {
  background: rgba(223, 164, 82, 0.18);
  border-color: var(--gold);
  color: #fae0b0;
}

body[data-theme="cozy"] .pill-stream.active {
  background: rgba(109, 184, 137, 0.22);
  border-color: #6db889;
  color: #e4f7eb;
}

body[data-theme="cozy"] .pill-queue {
  border-color: rgba(154, 189, 224, 0.34);
  color: #d4e4f4;
}

body[data-theme="cozy"] .pill-queue.active {
  background: rgba(125, 168, 212, 0.24);
  border-color: #93bce6;
  color: #f0f6fc;
}

body[data-theme="cozy"] .filter-inputs input,
body[data-theme="cozy"] .filter-inputs select {
  background: rgba(38, 31, 26, 0.92);
  border-color: rgba(255, 229, 198, 0.11);
  border-radius: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body[data-theme="cozy"] .filter-inputs input:focus,
body[data-theme="cozy"] .filter-inputs select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 164, 82, 0.14);
}

/* Luftigere, roligere filmkort hvor plakaterne får hovedrollen */
body[data-theme="cozy"] .movies-grid {
  gap: 22px;
}

body[data-theme="cozy"] .movie-card {
  background: linear-gradient(180deg, #28211c 0%, #221c18 100%);
  border: 1px solid rgba(255, 229, 198, 0.085);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(8, 5, 3, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="cozy"] .movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 164, 82, 0.4);
  box-shadow: 0 18px 38px rgba(8, 5, 3, 0.42), 0 0 0 1px rgba(223, 164, 82, 0.12);
}

body[data-theme="cozy"] .card-body {
  padding: 13px 14px 14px;
}

body[data-theme="cozy"] .card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  color: #faf3e8;
}

body[data-theme="cozy"] .card-meta {
  color: #b5a493;
}

/* Hold hurtig-knapperne rolige og diskrete på desktop indtil hover (men altid synlige når aktive) */
@media (hover: hover) {
  body[data-theme="cozy"] .movie-card .quick-btn:not(.is-fav):not(.is-watched):not(.is-queued) {
    opacity: 0.42;
    transition: opacity 0.18s ease, background 0.15s ease, transform 0.15s ease;
  }
  body[data-theme="cozy"] .movie-card:hover .quick-btn {
    opacity: 1;
  }
}

body[data-theme="cozy"] .tag {
  background: rgba(255, 232, 206, 0.06);
  border-color: rgba(255, 229, 198, 0.1);
  color: #d6c8b8;
}

body[data-theme="cozy"] .list-row {
  background: #251e19;
  border-color: rgba(255, 229, 198, 0.085);
  border-radius: 14px;
}

body[data-theme="cozy"] .list-row:hover {
  background: #2d251f;
  border-color: rgba(223, 164, 82, 0.34);
}

/* Blødere, varmere modaler, citater & kommentarer */
body[data-theme="cozy"] .modal-backdrop,
body[data-theme="cozy"] .picker-backdrop {
  background: rgba(12, 9, 6, 0.76);
  backdrop-filter: blur(8px);
}

body[data-theme="cozy"] .modal {
  background: linear-gradient(180deg, #251e19 0%, #1e1814 100%);
  border: 1px solid rgba(255, 229, 198, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(6, 4, 2, 0.62);
}

body[data-theme="cozy"] .modal-header {
  border-bottom-color: rgba(255, 229, 198, 0.09);
}

body[data-theme="cozy"] .panel-box,
body[data-theme="cozy"] .my-rating-box,
body[data-theme="cozy"] .lookup-box,
body[data-theme="cozy"] .rec-input-box {
  background: rgba(255, 232, 206, 0.035);
  border-color: rgba(255, 229, 198, 0.09);
  border-radius: 14px;
}

body[data-theme="cozy"] .famous-quote-card {
  background: rgba(223, 164, 82, 0.075);
  border-color: rgba(223, 164, 82, 0.26);
  border-left-color: #dfa452;
  border-radius: 12px;
  padding: 14px 16px 16px;
}

body[data-theme="cozy"] .comment-card {
  background: rgba(255, 232, 206, 0.04);
  border-color: rgba(255, 229, 198, 0.09);
  border-radius: 12px;
}

body[data-theme="cozy"] .combined-rating-banner {
  background: rgba(223, 164, 82, 0.09);
  border-color: rgba(223, 164, 82, 0.3);
  border-radius: 13px;
}

@media (max-width: 560px) {
  body[data-theme="cozy"] .movies-grid {
    gap: 14px;
  }
}

/* ==========================================================================
   TEMA: "Filmklub-Arkivet" (Radikalt anderledes analogt kunstbiograf-design)
   Varmt elfenbenspapir, dyb blæk, bordeaux biograffløjl, kartotekfaner,
   biografbillet-oversigt og passepartout-indrammede filmplakater.
   ========================================================================== */
body[data-theme="archive"] {
  --bg: #f4ede0;
  --bg-elev: #fbf7ef;
  --bg-elevated: #fbf7ef;
  --bg-card: #fdfaf3;
  --bg-hover: #efe4d0;
  --border: rgba(30, 24, 20, 0.16);
  --border-gold: rgba(140, 34, 51, 0.42);
  --text: #1e1814;
  --text-muted: #66584b;
  --gold: #8c2233;
  --gold-bright: #6e1927;
  --gold-soft: rgba(140, 34, 51, 0.09);
  --crimson: #b3263a;
  --emerald: #236b47;
  --emerald-soft: rgba(35, 107, 71, 0.12);
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 10px 28px rgba(30, 24, 20, 0.12);
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(196, 146, 74, 0.11) 0%, transparent 65%),
    repeating-linear-gradient(0deg, rgba(30, 24, 20, 0.012) 0px, rgba(30, 24, 20, 0.012) 1px, transparent 1px, transparent 28px),
    #f4ede0;
  color: #1e1814;
}

/* Editorial Masthead Topbar */
body[data-theme="archive"] .topbar {
  background: rgba(251, 247, 239, 0.94);
  border-top: 4px solid #8c2233;
  border-bottom: 3px double rgba(30, 24, 20, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(30, 24, 20, 0.06);
}

body[data-theme="archive"] .topbar-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

body[data-theme="archive"] .brand-mark {
  background: #8c2233;
  color: #fbf7ef;
  border-radius: 4px;
  border: 2px solid #1e1814;
  box-shadow: 3px 3px 0 #1e1814;
}

body[data-theme="archive"] .brand-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.48rem;
  letter-spacing: 0.02em;
  color: #1e1814;
}

body[data-theme="archive"] .brand-sub {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: #66584b;
}

body[data-theme="archive"] .version-badge {
  background: #f1e6d2;
  border: 1px solid rgba(30, 24, 20, 0.25);
  color: #4f4237;
  border-radius: 3px;
  font-weight: 600;
}

/* Taktile bogtryk-knapper */
body[data-theme="archive"] .btn {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body[data-theme="archive"] .btn-gold {
  background: #8c2233;
  color: #fbf7ef;
  border: 1px solid #6e1927;
  box-shadow: 2px 2px 0 rgba(30, 24, 20, 0.22);
}

body[data-theme="archive"] .btn-gold:hover {
  background: #731a29;
  color: #fff;
}

body[data-theme="archive"] .btn-primary {
  background: #1e1814;
  color: #fbf7ef;
  border: 1px solid #1e1814;
}

body[data-theme="archive"] .btn-primary:hover {
  background: #352b25;
}

body[data-theme="archive"] .btn-secondary {
  background: #fdfaf3;
  color: #1e1814;
  border: 1px solid rgba(30, 24, 20, 0.24);
}

body[data-theme="archive"] .btn-secondary:hover {
  background: #f1e6d2;
  border-color: #8c2233;
  color: #8c2233;
}

body[data-theme="archive"] .btn-ghost {
  background: transparent;
  color: #4a3e34;
  border: 1px solid rgba(30, 24, 20, 0.16);
}

body[data-theme="archive"] .btn-ghost:hover {
  background: rgba(30, 24, 20, 0.06);
  color: #1e1814;
}

body[data-theme="archive"] .btn-danger {
  background: rgba(179, 38, 58, 0.1);
  color: #8c1a2a;
  border: 1px solid rgba(179, 38, 58, 0.35);
}

body[data-theme="archive"] .btn-danger:hover {
  background: #b3263a;
  color: #fff;
}

/* Biografbillet / Programoversigt (Stats-panel) */
body[data-theme="archive"] .stats-panel {
  background: #fbf7ef;
  border: 1.5px solid #1e1814;
  border-radius: 5px;
  padding: 20px 24px;
  box-shadow: 5px 5px 0 rgba(140, 34, 51, 0.14);
  position: relative;
}

body[data-theme="archive"] .progress-label,
body[data-theme="archive"] .progress-bar-label {
  color: #8c2233;
  letter-spacing: 0.12em;
}

body[data-theme="archive"] .progress-track {
  background: rgba(30, 24, 20, 0.1);
  border: 1px solid rgba(30, 24, 20, 0.14);
  border-radius: 3px;
}

body[data-theme="archive"] .progress-fill {
  background: linear-gradient(90deg, #8c2233 0%, #b85c38 100%);
  border-radius: 2px;
}

body[data-theme="archive"] .stat-chip {
  background: #f4ede0;
  border: 1px solid rgba(30, 24, 20, 0.18);
  border-radius: 4px;
}

body[data-theme="archive"] .stat-chip-btn:hover,
body[data-theme="archive"] .stat-chip.active {
  background: #efe3cf;
  border-color: #8c2233;
  box-shadow: 2px 2px 0 rgba(140, 34, 51, 0.18);
}

body[data-theme="archive"] .stat-num {
  font-family: "Playfair Display", Georgia, serif;
  color: #1e1814;
}

body[data-theme="archive"] .stat-lbl {
  color: #66584b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

body[data-theme="archive"] .user-avg-pill {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.2);
  color: #1e1814;
  border-radius: 3px;
}

/* Kartotek-faner (status-piller forvandles til redaktionelle faneblade) */
body[data-theme="archive"] .status-pills {
  border-bottom: 1.5px solid rgba(30, 24, 20, 0.2);
  padding-bottom: 0;
  gap: 4px;
}

body[data-theme="archive"] .pill {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #66584b;
  padding: 9px 14px 8px;
  font-weight: 600;
  margin-bottom: -1.5px;
}

body[data-theme="archive"] .pill:hover {
  color: #1e1814;
  background: rgba(30, 24, 20, 0.04);
}

body[data-theme="archive"] .pill.active {
  background: transparent;
  color: #8c2233;
  border-bottom-color: #8c2233;
}

body[data-theme="archive"] .pill-stream {
  color: #236b47;
}

body[data-theme="archive"] .pill-stream.active {
  color: #1a5437;
  border-bottom-color: #236b47;
  background: rgba(35, 107, 71, 0.07);
}

body[data-theme="archive"] .pill-queue {
  color: #264d73;
}

body[data-theme="archive"] .pill-queue.active {
  color: #1a3a59;
  border-bottom-color: #264d73;
  background: rgba(38, 77, 115, 0.08);
}

/* Søgefelt & filtre i arkiv-stil */
body[data-theme="archive"] input,
body[data-theme="archive"] select,
body[data-theme="archive"] textarea {
  background: #fdfaf3;
  color: #1e1814;
  border: 1px solid rgba(30, 24, 20, 0.26);
  border-radius: 4px;
}

body[data-theme="archive"] input::placeholder,
body[data-theme="archive"] textarea::placeholder {
  color: #8c7d6e;
}

body[data-theme="archive"] input:focus,
body[data-theme="archive"] select:focus,
body[data-theme="archive"] textarea:focus {
  border-color: #8c2233;
  box-shadow: 0 0 0 2px rgba(140, 34, 51, 0.14);
}

body[data-theme="archive"] .icon-btn {
  background: #fdfaf3;
  color: #4a3e34;
  border: 1px solid rgba(30, 24, 20, 0.24);
  border-radius: 4px;
}

body[data-theme="archive"] .icon-btn.active {
  background: #1e1814;
  color: #fbf7ef;
  border-color: #1e1814;
}

/* Passepartout-indrammede Galleri-filmkort */
body[data-theme="archive"] .movies-grid {
  gap: 22px;
}

body[data-theme="archive"] .movie-card {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.22);
  border-radius: 5px;
  box-shadow: 4px 4px 0 rgba(30, 24, 20, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body[data-theme="archive"] .movie-card:hover {
  transform: translate(-2px, -3px);
  border-color: #8c2233;
  box-shadow: 7px 7px 0 rgba(140, 34, 51, 0.16);
}

body[data-theme="archive"] .poster-wrap {
  padding: 8px 8px 0 8px;
  background: #fdfaf3;
}

body[data-theme="archive"] .poster-wrap img,
body[data-theme="archive"] .poster-placeholder {
  border: 1px solid rgba(30, 24, 20, 0.16);
  border-radius: 2px;
}

body[data-theme="archive"] .poster-placeholder {
  background: linear-gradient(145deg, #efe4d0 0%, #e5d5bc 100%);
  color: #66584b;
}

body[data-theme="archive"] .badge-top-left {
  top: 15px;
  left: 15px;
}

body[data-theme="archive"] .card-quick-actions {
  top: 14px;
  right: 14px;
}

body[data-theme="archive"] .quick-btn {
  background: rgba(253, 250, 243, 0.94);
  color: #1e1814;
  border: 1px solid rgba(30, 24, 20, 0.3);
  box-shadow: 0 2px 6px rgba(30, 24, 20, 0.16);
}

body[data-theme="archive"] .quick-btn:hover {
  background: #1e1814;
  color: #fbf7ef;
}

body[data-theme="archive"] .quick-btn.is-fav {
  background: #8c2233;
  color: #fff;
  border-color: #6e1927;
}

body[data-theme="archive"] .quick-btn.is-watched {
  background: #236b47;
  color: #fff;
  border-color: #1a5437;
}

body[data-theme="archive"] .quick-btn.is-queued {
  background: #264d73;
  color: #fff;
  border-color: #1a3a59;
}

body[data-theme="archive"] .badge-mustsee {
  background: #8c2233;
  color: #fbf7ef;
  border: 1px solid #6e1927;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.67rem;
}

body[data-theme="archive"] .badge-watched {
  background: #236b47;
  color: #fbf7ef;
  border: 1px solid #1a5437;
  border-radius: 3px;
}

body[data-theme="archive"] .badge-queued {
  background: #264d73;
  color: #fbf7ef;
  border: 1px solid #1a3a59;
  border-radius: 3px;
}

body[data-theme="archive"] .card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e1814;
}

body[data-theme="archive"] .card-meta {
  color: #66584b;
}

body[data-theme="archive"] .added-by-pill,
body[data-theme="archive"] .tag {
  background: #f1e6d2;
  border: 1px solid rgba(30, 24, 20, 0.16);
  color: #3f342b;
  border-radius: 3px;
}

body[data-theme="archive"] .rating-pill {
  background: #1e1814;
  color: #f4ede0;
  border-radius: 3px;
}

body[data-theme="archive"] .mini-rating-chip {
  background: #f4ede0;
  border: 1px solid rgba(30, 24, 20, 0.16);
  color: #1e1814;
}

/* IMDb, Rotten Tomatoes & Streaming badges med skarp læsbarhed på papir */
body[data-theme="archive"] .ext-badge-imdb,
body[data-theme="archive"] .ext-pill-imdb {
  background: #f3e2b3;
  border: 1px solid #c79a2b;
  color: #523b04;
}

body[data-theme="archive"] .ext-badge-rt,
body[data-theme="archive"] .ext-pill-rt {
  background: #f5d8dc;
  border: 1px solid #c96472;
  color: #6e1522;
}

body[data-theme="archive"] .ext-badge-stream {
  background: #d8eee1;
  border: 1px solid #59a17a;
  color: #174d31;
}

body[data-theme="archive"] .search-match-pill {
  background: #f5d8dc;
  border-color: #8c2233;
  color: #6e1522;
}

body[data-theme="archive"] .detail-stream-banner {
  background: #f1e6d2;
  border: 1px solid rgba(30, 24, 20, 0.2);
  color: #1e1814;
}

body[data-theme="archive"] .detail-stream-banner.is-match {
  background: #e1f2e7;
  border-color: #236b47;
}

body[data-theme="archive"] .detail-stream-badge.is-stream {
  background: #236b47;
  color: #fbf7ef;
  border-color: #1a5437;
}

body[data-theme="archive"] .detail-stream-badge.is-rent {
  background: #f3e2b3;
  color: #523b04;
  border-color: #c79a2b;
}

/* Listevisning som trykt biografprogram */
body[data-theme="archive"] .list-row {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.2);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(30, 24, 20, 0.06);
}

body[data-theme="archive"] .list-row:hover {
  background: #f7efe0;
  border-color: #8c2233;
}

/* Magasin-opslag Modaler, Citater, Kommentarer & Vurderinger */
body[data-theme="archive"] .modal-backdrop,
body[data-theme="archive"] .picker-backdrop {
  background: rgba(30, 24, 20, 0.58);
  backdrop-filter: blur(6px);
}

body[data-theme="archive"] .modal {
  background: #faf4e8;
  border: 1.5px solid #1e1814;
  border-radius: 6px;
  box-shadow: 10px 10px 0 rgba(30, 24, 20, 0.22);
  color: #1e1814;
}

body[data-theme="archive"] .modal-header {
  border-bottom: 3px double rgba(30, 24, 20, 0.24);
}

body[data-theme="archive"] .modal-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #1e1814;
}

body[data-theme="archive"] .modal-close {
  color: #4a3e34;
  border: 1px solid rgba(30, 24, 20, 0.2);
  border-radius: 4px;
}

body[data-theme="archive"] .modal-close:hover {
  background: #8c2233;
  color: #fff;
  border-color: #8c2233;
}

body[data-theme="archive"] .panel-box,
body[data-theme="archive"] .my-rating-box,
body[data-theme="archive"] .lookup-box,
body[data-theme="archive"] .rec-input-box,
body[data-theme="archive"] .indiv-rating-card,
body[data-theme="archive"] .mn-cal-box,
body[data-theme="archive"] .mn-card,
body[data-theme="archive"] .rec-card {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.18);
  border-radius: 5px;
}

body[data-theme="archive"] .combined-rating-banner {
  background: #f1e6d2;
  border: 1px solid rgba(140, 34, 51, 0.34);
  border-radius: 5px;
}

body[data-theme="archive"] .score-num-btn {
  background: #f4ede0;
  color: #1e1814;
  border: 1px solid rgba(30, 24, 20, 0.22);
}

body[data-theme="archive"] .score-num-btn:hover,
body[data-theme="archive"] .score-num-btn.active {
  background: #8c2233;
  color: #fbf7ef;
  border-color: #6e1927;
}

body[data-theme="archive"] .credit-chip {
  background: #f1e6d2;
  border: 1px solid rgba(30, 24, 20, 0.2);
  color: #1e1814;
}

body[data-theme="archive"] .credit-chip:hover {
  background: #8c2233;
  border-color: #8c2233;
  color: #fbf7ef;
}

body[data-theme="archive"] .credit-chip.is-director {
  border-color: #8c2233;
  color: #6e1927;
}

/* Pull-quote citatkarrusel i filmmagasin-stil */
body[data-theme="archive"] .famous-quote-card {
  background: #f1e6d2;
  border: 1px solid rgba(30, 24, 20, 0.18);
  border-left: 4px solid #8c2233;
  border-radius: 4px;
}

body[data-theme="archive"] .famous-quote-text {
  color: #1e1814;
  font-size: 1.02rem;
}

body[data-theme="archive"] .famous-quote-speaker {
  color: #8c2233;
}

body[data-theme="archive"] .fq-ctrl-btn {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.24);
  color: #1e1814;
}

body[data-theme="archive"] .fq-ctrl-btn:hover,
body[data-theme="archive"] .fq-ctrl-btn.is-paused {
  background: #8c2233;
  border-color: #8c2233;
  color: #fbf7ef;
}

body[data-theme="archive"] .fq-progress-track {
  background: rgba(30, 24, 20, 0.12);
}

body[data-theme="archive"] .fq-progress-bar {
  background: #8c2233;
}

body[data-theme="archive"] .fq-dot {
  background: rgba(30, 24, 20, 0.22);
}

body[data-theme="archive"] .fq-dot.active {
  background: #8c2233;
}

/* Kommentarer, advarsler, toast & øvrige komponenter */
body[data-theme="archive"] .comment-card {
  background: #fdfaf3;
  border: 1px solid rgba(30, 24, 20, 0.16);
  border-radius: 4px;
}

body[data-theme="archive"] .personal-edit-notice {
  background: #e4eef7;
  border-color: #264d73;
  color: #1a3a59;
}

body[data-theme="archive"] .dup-warning-box {
  background: #f7e6c4;
  border-color: #a67522;
  color: #523b04;
}

body[data-theme="archive"] .error-text {
  color: #9e1b2e;
}

body[data-theme="archive"] .toast {
  background: #1e1814;
  color: #fbf7ef;
  border: 1px solid #8c2233;
  border-radius: 4px;
}

body[data-theme="archive"] .theme-card {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.2);
}

body[data-theme="archive"] .theme-card.active {
  border-color: #8c2233;
  background: rgba(140, 34, 51, 0.08);
  box-shadow: 3px 3px 0 rgba(140, 34, 51, 0.18);
}

body[data-theme="archive"] .theme-active-badge {
  background: #8c2233;
  color: #fbf7ef;
}

body[data-theme="archive"] .mnp-card,
body[data-theme="archive"] .mn-picker-controls,
body[data-theme="archive"] .mn-picker-footer {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.18);
  color: #1e1814;
}

body[data-theme="archive"] .mnp-pill {
  background: #f4ede0;
  color: #4a3e34;
  border-color: rgba(30, 24, 20, 0.2);
}

body[data-theme="archive"] .mnp-pill.active {
  background: #8c2233;
  color: #fbf7ef;
  border-color: #6e1927;
}

body[data-theme="archive"] .stream-service-chip {
  background: #fdfaf3;
  color: #1e1814;
  border-color: rgba(30, 24, 20, 0.22);
}

body[data-theme="archive"] .stream-service-chip.selected {
  background: #8c2233;
  color: #fbf7ef;
  border-color: #6e1927;
}

body[data-theme="archive"] .user-pill {
  background: #fdfaf3;
  color: #1e1814;
  border-color: rgba(30, 24, 20, 0.22);
}

body[data-theme="archive"] .user-pill.active {
  background: #8c2233;
  color: #fbf7ef;
  border-color: #6e1927;
}

body[data-theme="archive"] .rec-tab {
  background: #f4ede0;
  color: #4a3e34;
  border-color: rgba(30, 24, 20, 0.2);
}

body[data-theme="archive"] .rec-tab.active {
  background: #8c2233;
  color: #fbf7ef;
  border-color: #6e1927;
}

@media (max-width: 560px) {
  body[data-theme="archive"] .movies-grid {
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .stats-panel {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    max-width: 220px;
    margin: 0 auto;
  }
  .list-row {
    grid-template-columns: 40px 1fr auto;
  }
  .list-hide-sm {
    display: none;
  }
}

@media (max-width: 560px) {
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
}

/* =========================================================================
   v1.25.0 – Feature Hub, Streaming-alarmer, Filmdagbog, Mit filmår,
             Rangering/Tier-liste, Samlinger & Serie-fremdrift
   ========================================================================= */

.feature-hub-bar {
  margin: 0 0 14px;
}

.feature-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.hub-chip:hover {
  transform: translateY(-1px);
  border-color: var(--border-gold);
  background: var(--bg-hover);
}

.hub-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
}

.hub-chip-alert {
  border-color: rgba(52, 199, 133, 0.55);
  background: rgba(52, 199, 133, 0.14);
  color: #82f4be;
}

.hub-chip-alert:hover,
.hub-chip-alert.active {
  background: rgba(52, 199, 133, 0.24);
  border-color: var(--emerald);
}

.hub-count-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--emerald);
  color: #062114;
  font-size: 0.74rem;
  font-weight: 800;
}

/* Udklappeligt "Nu på dine tjenester!"-banner */
.streaming-alerts-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 199, 133, 0.42);
  background: linear-gradient(135deg, rgba(52, 199, 133, 0.11), rgba(22, 27, 44, 0.92));
}

.sa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.sa-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.sa-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 19, 0.45);
  border: 1px solid var(--border);
}

.sa-thumb {
  width: 36px;
  height: 52px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--bg-elev);
}

.sa-thumb-fb {
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.sa-item-info {
  flex: 1;
  min-width: 0;
}

.sa-item-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sa-open-title {
  font-weight: 600;
  text-align: left;
  color: var(--text);
  font-size: 0.88rem;
}

.sa-item-svcs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.sa-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(52, 199, 133, 0.16);
  color: #8df5c3;
  border: 1px solid rgba(52, 199, 133, 0.35);
}

/* Badges for serier, gensyn & ny streaming */
.badge-top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.badge-series {
  background: rgba(91, 156, 246, 0.22);
  color: #a9ccff;
  border: 1px solid rgba(91, 156, 246, 0.45);
}

.badge-rewatch {
  background: rgba(176, 127, 245, 0.2);
  color: #d6bcff;
  border: 1px solid rgba(176, 127, 245, 0.42);
}

.ext-badge-new-arrival {
  background: rgba(52, 199, 133, 0.22);
  color: #7ef2ba;
  border-color: rgba(52, 199, 133, 0.5);
  font-weight: 700;
}

.detail-ext-pill.is-hidden-score {
  opacity: 0.82;
  border-style: dashed;
}

/* Serie-fremdrift, Samlinger & Filmdagbog inde i Filmdetaljer */
.detail-series-box,
.detail-lists-box,
.detail-diary-box {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.detail-series-box {
  border-color: rgba(91, 156, 246, 0.35);
  background: rgba(91, 156, 246, 0.07);
}

.detail-series-head,
.detail-lists-head,
.detail-diary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.detail-series-head h4,
.detail-lists-head h4,
.detail-diary-head h4 {
  margin: 0;
  font-size: 0.9rem;
}

.detail-series-controls {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.series-num-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.series-num-field input {
  width: 72px;
  padding: 6px 8px;
}

.detail-series-controls > input[type="text"] {
  flex: 1;
  min-width: 150px;
}

.detail-series-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-lists-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.list-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.list-tag-chip:hover {
  filter: brightness(1.08);
}

.detail-list-picker {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-list-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.detail-diary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-diary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.84rem;
}

.detail-diary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.detail-diary-note {
  width: 100%;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.82rem;
  margin-top: 2px;
}

.detail-diary-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.dd-quick-friends {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 6px;
}

.dd-friend-chip {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.75rem;
  cursor: pointer;
}

.dd-friend-chip:hover {
  border-color: var(--border-gold);
}

.dd-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Modal: 📖 Filmdagbog */
.diary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.diary-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.diary-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diary-month-group {
  margin-bottom: 18px;
}

.diary-month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.diary-month-head h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.diary-month-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diary-entry-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.diary-day-box {
  width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.diary-day-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.diary-thumb {
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.diary-thumb-fb {
  display: grid;
  place-items: center;
  color: var(--gold);
}

.diary-entry-body {
  flex: 1;
  min-width: 0;
}

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

.diary-movie-btn {
  color: var(--text);
  font-size: 0.96rem;
  text-align: left;
}

.diary-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  margin-top: 2px;
}

.diary-entry-note {
  margin: 5px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Modal: 📊 "Mit filmår" – Plakatvæg & årsstatistik */
.yr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.yr-kpi-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  text-align: center;
}

.yr-kpi-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.15;
}

.yr-kpi-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.yr-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.yr-hl-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.yr-hl-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.yr-hl-value {
  font-weight: 700;
  font-size: 0.98rem;
}

.yr-hl-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.yr-chart-box {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.yr-chart-box h4 {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.yr-months-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 110px;
}

.yr-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}

.yr-bar-cnt {
  font-size: 0.7rem;
  color: var(--gold-bright);
  font-weight: 600;
  min-height: 14px;
}

.yr-bar-track {
  width: 100%;
  max-width: 26px;
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.yr-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 5px 5px 0 0;
  transition: height 0.25s ease;
}

.yr-bar-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.yr-wall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.yr-wall-head h4 {
  margin: 0;
  font-size: 1rem;
}

.yr-poster-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
}

.yr-wall-tile {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  background: var(--bg-elev);
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease;
}

.yr-wall-tile:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--gold);
  z-index: 2;
}

.yr-wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yr-wall-fb {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  color: var(--text);
  font-size: 0.76rem;
  gap: 4px;
}

.yr-wall-overlay {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.yr-wall-score,
.yr-wall-rewatch {
  background: rgba(10, 12, 19, 0.86);
  color: var(--gold-bright);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.yr-wall-rewatch {
  color: #d6bcff;
}

/* Modal: 🏆 Rangering (1-mod-1 Duel, Top-liste & Tier-liste) */
.rk-duel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rk-duel-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.rk-vs-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.rk-duel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rk-duel-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(230, 184, 79, 0.18);
}

.rk-duel-poster {
  width: 155px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-card);
}

.rk-duel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rk-duel-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.rk-duel-meta {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.rk-duel-cta {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.rk-duel-footer {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.rk-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rk-top-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rk-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.rk-top-row:hover {
  border-color: var(--border-gold);
  background: var(--bg-hover);
}

.rk-top-row.is-podium {
  border-color: rgba(230, 184, 79, 0.35);
}

.rk-rank-num {
  width: 34px;
  text-align: center;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.rk-row-thumb {
  width: 34px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.rk-row-thumb-fb {
  display: grid;
  place-items: center;
  color: var(--gold);
}

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

.rk-row-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Tier-liste */
.rk-tiers-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-tier-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.rk-tier-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  text-align: center;
  color: #141007;
}

.rk-tier-label strong {
  font-size: 1.35rem;
  line-height: 1;
}

.rk-tier-label span {
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
}

.tier-S { background: #ff7f7f; color: #2b0707; }
.tier-A { background: #ffbf7f; color: #2b1604; }
.tier-B { background: #ffdf7f; color: #2a2003; }
.tier-C { background: #bfff7f; color: #162b04; }
.tier-D { background: #9fd0ff; color: #081e36; }

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.rk-tier-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  align-items: flex-start;
}

.rk-tier-card {
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rk-tier-poster-wrap {
  position: relative;
  width: 96px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

.rk-tier-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rk-tier-fb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 6px;
  font-size: 0.7rem;
  text-align: center;
}

.rk-tier-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk-tier-btns {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.tier-mini-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.78;
}

.tier-mini-btn:hover,
.tier-mini-btn.active {
  opacity: 1;
  outline: 1px solid #fff;
}

.rk-untiered-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.rk-untiered-section h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

/* Modal: 🗂️ Temalister & Samlinger */
.cl-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cl-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.custom-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cl-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.cl-card-top {
  display: flex;
  gap: 12px;
}

.cl-collage {
  width: 68px;
  height: 92px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.cl-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cl-collage.is-empty {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  font-size: 1.7rem;
}

.cl-card-info {
  flex: 1;
  min-width: 0;
}

.cl-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 700;
  font-size: 0.96rem;
}

.cl-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Tema-tilpasning: Filmklub-Arkivet (lyst papir-tema) */
body[data-theme="archive"] .hub-chip {
  background: #fdfaf3;
  color: #1e1814;
  border-color: rgba(30, 24, 20, 0.22);
  border-radius: 4px;
}

body[data-theme="archive"] .hub-chip:hover {
  background: #f7eedc;
  border-color: #8c2233;
}

body[data-theme="archive"] .hub-count {
  background: #8c2233;
  color: #fbf7ef;
}

body[data-theme="archive"] .hub-chip-alert {
  background: #e3f3ea;
  border-color: #217a4d;
  color: #134f31;
}

body[data-theme="archive"] .streaming-alerts-banner {
  background: #eef8f2;
  border-color: #217a4d;
  color: #1e1814;
}

body[data-theme="archive"] .sa-item,
body[data-theme="archive"] .diary-entry-card,
body[data-theme="archive"] .yr-kpi-card,
body[data-theme="archive"] .yr-hl-card,
body[data-theme="archive"] .yr-chart-box,
body[data-theme="archive"] .rk-duel-card,
body[data-theme="archive"] .rk-top-row,
body[data-theme="archive"] .rk-tier-row,
body[data-theme="archive"] .cl-card,
body[data-theme="archive"] .detail-lists-box,
body[data-theme="archive"] .detail-diary-box {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.18);
  color: #1e1814;
}

body[data-theme="archive"] .detail-series-box {
  background: #edf3fa;
  border-color: #2b5a8a;
  color: #1e1814;
}

body[data-theme="archive"] .detail-diary-row {
  background: rgba(30, 24, 20, 0.05);
}

body[data-theme="archive"] .sa-svc-pill {
  background: #d7f0e2;
  color: #134f31;
  border-color: #217a4d;
}

body[data-theme="archive"] .sa-open-title,
body[data-theme="archive"] .diary-movie-btn {
  color: #1e1814;
}

body[data-theme="archive"] .yr-kpi-num,
body[data-theme="archive"] .diary-day-num,
body[data-theme="archive"] .diary-month-head h3,
body[data-theme="archive"] .rk-rank-num {
  color: #8c2233;
}

body[data-theme="archive"] .yr-bar-track {
  background: rgba(30, 24, 20, 0.08);
}

body[data-theme="archive"] .yr-bar-fill {
  background: #8c2233;
}

body[data-theme="archive"] .list-tag-chip {
  background: rgba(140, 34, 51, 0.1);
  border-color: rgba(140, 34, 51, 0.35);
  color: #8c2233;
}

body[data-theme="archive"] .badge-series {
  background: #e1eef9;
  color: #184673;
  border-color: #2b5a8a;
}

body[data-theme="archive"] .badge-rewatch {
  background: #efe5fa;
  color: #4f2580;
  border-color: #7c4db8;
}

@media (max-width: 720px) {
  .yr-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .yr-highlights-grid {
    grid-template-columns: 1fr;
  }
  .rk-duel-stage {
    grid-template-columns: 1fr;
  }
  .rk-vs-badge {
    margin: 0 auto;
  }
  .rk-tier-row {
    grid-template-columns: 64px 1fr;
  }
}

/* IMDb Minimum Rating Filter */
.imdb-filter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 390px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.imdb-filter-card.is-active {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
}

.imdb-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.imdb-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.imdb-filter-title label {
  cursor: pointer;
  margin: 0;
}

.imdb-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f5c518;
  color: #111111;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.imdb-filter-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.imdb-range-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #f59e0b 0%,
    #f59e0b var(--imdb-pct, 0%),
    rgba(245, 158, 11, 0.22) var(--imdb-pct, 0%),
    rgba(245, 158, 11, 0.22) 100%
  );
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
}

.imdb-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.imdb-range-slider::-webkit-slider-thumb:hover,
.imdb-range-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.24), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.imdb-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.imdb-range-slider::-moz-range-thumb:hover,
.imdb-range-slider:focus-visible::-moz-range-thumb {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.24), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.imdb-value-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.imdb-value-box.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.48);
  color: #f5a623;
  font-size: 1rem;
}

.imdb-reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.imdb-reset-btn:hover {
  color: var(--text);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

/* Kompakt variant i Filmaften-filmvælgeren */
.imdb-filter-card-compact {
  flex-direction: row;
  align-items: center;
  max-width: 100%;
  padding: 8px 12px;
  gap: 12px;
  border-radius: 10px;
}

.imdb-filter-card-compact .imdb-filter-title {
  font-size: 0.84rem;
}

.imdb-filter-card-compact .imdb-value-box {
  min-width: 48px;
  height: 30px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.imdb-filter-card-compact .imdb-value-box.is-active {
  font-size: 0.9rem;
}

.imdb-filter-card-compact .imdb-range-slider::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
}

.imdb-filter-card-compact .imdb-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
}

/* Kompakt inline IMDb-filter i status-linjen (efter Min filmkø) */
.imdb-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 7px 0 9px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  max-width: 100%;
  flex-shrink: 0;
}

.imdb-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.imdb-filter-pill.is-active {
  border-color: rgba(245, 158, 11, 0.52);
  background: rgba(245, 158, 11, 0.09);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

.imdb-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.imdb-filter-pill.is-active .imdb-pill-label {
  color: var(--text);
}

.imdb-filter-pill .imdb-logo-pill {
  padding: 1px 5px;
  font-size: 0.68rem;
  border-radius: 4px;
}

.imdb-filter-pill .imdb-range-slider {
  width: 78px;
  min-width: 60px;
  flex: 0 1 78px;
  height: 5px;
}

.imdb-filter-pill .imdb-range-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.imdb-filter-pill .imdb-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

/* Fast samlet bredde for værdi + nulstil-knap (65px = 42px + 5px gap + 18px), så pillen aldrig ændrer bredde eller hopper ned på næste linje */
.imdb-filter-pill .imdb-value-box {
  width: 65px;
  min-width: 65px;
  height: 24px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.75rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.imdb-filter-pill .imdb-value-box.is-active {
  width: 42px;
  min-width: 42px;
  font-size: 0.75rem;
}

.imdb-filter-pill .imdb-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1;
}

/* Tema-tilpasning: Hyggekrog */
body[data-theme="cozy"] .imdb-filter-pill {
  background: rgba(255, 232, 206, 0.04);
  border-color: rgba(255, 229, 198, 0.1);
}

body[data-theme="cozy"] .imdb-filter-pill:hover {
  border-color: rgba(255, 229, 198, 0.22);
}

body[data-theme="cozy"] .imdb-filter-pill.is-active {
  background: rgba(223, 164, 82, 0.15);
  border-color: var(--gold);
}

/* Tema-tilpasning: Filmklub-Arkivet (lyst papir-tema) */
body[data-theme="archive"] .status-pills {
  align-items: flex-end;
}

body[data-theme="archive"] .imdb-filter-pill {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.2);
  border-radius: 4px;
  color: #1e1814;
  height: 32px;
  margin-left: 6px;
  margin-bottom: 5px;
}

body[data-theme="archive"] .imdb-filter-pill.is-active {
  background: #fff9ec;
  border-color: #b87400;
  box-shadow: 0 2px 8px rgba(184, 116, 0, 0.12);
}

body[data-theme="archive"] .imdb-pill-label {
  color: #4a3e34;
}

body[data-theme="archive"] .imdb-filter-pill.is-active .imdb-pill-label {
  color: #1e1814;
}

body[data-theme="archive"] .imdb-filter-card {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.2);
  color: #1e1814;
}

body[data-theme="archive"] .imdb-filter-card.is-active {
  border-color: #b87400;
  box-shadow: 0 3px 12px rgba(184, 116, 0, 0.12);
}

body[data-theme="archive"] .imdb-filter-title {
  color: #1e1814;
}

body[data-theme="archive"] .imdb-range-slider {
  background: linear-gradient(
    to right,
    #c97b00 0%,
    #c97b00 var(--imdb-pct, 0%),
    rgba(30, 24, 20, 0.14) var(--imdb-pct, 0%),
    rgba(30, 24, 20, 0.14) 100%
  );
}

body[data-theme="archive"] .imdb-range-slider::-webkit-slider-thumb {
  background: #ffffff;
  border: 2px solid #b87400;
  box-shadow: 0 1px 5px rgba(30, 24, 20, 0.28);
}

body[data-theme="archive"] .imdb-range-slider::-moz-range-thumb {
  background: #ffffff;
  border: 2px solid #b87400;
  box-shadow: 0 1px 5px rgba(30, 24, 20, 0.28);
}

body[data-theme="archive"] .imdb-value-box {
  background: rgba(30, 24, 20, 0.05);
  border-color: rgba(30, 24, 20, 0.18);
  color: #5c5148;
}

body[data-theme="archive"] .imdb-value-box.is-active {
  background: #fff3d1;
  border-color: #c97b00;
  color: #8a5200;
}

body[data-theme="archive"] .imdb-reset-btn {
  border-color: rgba(30, 24, 20, 0.22);
  color: #5c5148;
}

body[data-theme="archive"] .imdb-reset-btn:hover {
  color: #1e1814;
  border-color: #8c2233;
  background: rgba(140, 34, 51, 0.08);
}

@media (max-width: 720px) {
  .imdb-filter-card {
    max-width: 100%;
  }
  .imdb-filter-card-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .imdb-filter-pill {
    flex: 1 1 100%;
    height: 38px;
  }
  .imdb-filter-pill .imdb-range-slider {
    flex: 1 1 auto;
    width: auto;
  }
  body[data-theme="archive"] .imdb-filter-pill {
    margin-left: 0;
    margin-top: 4px;
    margin-bottom: 6px;
  }
}

/* =========================================================================
   FILMQUIZ & VENNE-UDFORDRINGER
   ========================================================================= */

.quiz-modal {
  max-width: 820px;
}

.quiz-empty-hero {
  text-align: center;
  padding: 36px 20px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--border);
}

.quiz-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.quiz-empty-hero h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
}

.quiz-empty-hero p {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.quiz-section {
  margin-bottom: 18px;
}

.quiz-section:last-child {
  margin-bottom: 0;
}

.quiz-sec-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}

.quiz-ch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-ch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.quiz-ch-card.is-highlight {
  border-color: rgba(230, 184, 79, 0.55);
  background: linear-gradient(135deg, rgba(230, 184, 79, 0.09), rgba(255, 255, 255, 0.02));
}

.quiz-ch-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.quiz-solo-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(230, 184, 79, 0.16);
  border: 1px solid rgba(230, 184, 79, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.quiz-ch-info {
  min-width: 0;
  flex: 1;
}

.quiz-ch-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.quiz-ch-msg {
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 2px 0 6px;
}

.quiz-ch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-ch-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.quiz-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.quiz-pill.is-hot {
  background: rgba(230, 184, 79, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(230, 184, 79, 0.45);
}

.quiz-pill.is-wait {
  background: rgba(91, 156, 246, 0.15);
  color: #9dc2ff;
  border: 1px solid rgba(91, 156, 246, 0.35);
}

.quiz-pill.is-win {
  background: rgba(71, 201, 149, 0.18);
  color: #7ee8bd;
  border: 1px solid rgba(71, 201, 149, 0.42);
}

.quiz-pill.is-loss {
  background: rgba(227, 107, 136, 0.15);
  color: #f4a4b7;
  border: 1px solid rgba(227, 107, 136, 0.36);
}

.quiz-pill.is-tie,
.quiz-pill.is-solo {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Opret ny udfordring */
.quiz-create-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-form-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.quiz-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.quiz-opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 9px;
}

.quiz-opp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.quiz-opp-card:hover {
  border-color: rgba(230, 184, 79, 0.5);
  transform: translateY(-1px);
}

.quiz-opp-card.active {
  border-color: var(--gold);
  background: rgba(230, 184, 79, 0.14);
  box-shadow: 0 0 0 1px rgba(230, 184, 79, 0.35);
}

.quiz-opp-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quiz-opp-info strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-cat-chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.quiz-cat-chip:hover {
  border-color: rgba(230, 184, 79, 0.5);
}

.quiz-cat-chip.active {
  background: var(--gold);
  color: #161106;
  border-color: var(--gold);
}

.quiz-cnt-group {
  display: inline-flex;
  gap: 6px;
}

.quiz-cnt-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s ease;
}

.quiz-cnt-btn.active {
  background: rgba(230, 184, 79, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Aktivt spil */
.quiz-play-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.quiz-play-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-score-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(230, 184, 79, 0.14);
  border: 1px solid rgba(230, 184, 79, 0.35);
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.quiz-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(230, 184, 79, 0.16);
  border: 1px solid rgba(230, 184, 79, 0.38);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
}

.quiz-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.quiz-question-prompt {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.35;
}

.quiz-quote-box {
  margin: 2px 0 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(230, 184, 79, 0.07);
  border: 1px solid rgba(230, 184, 79, 0.28);
  border-left: 4px solid var(--gold);
}

.quiz-quote-text {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
}

.quiz-quote-speaker {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.quiz-subject-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.quiz-subject-card img {
  width: 54px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}

.quiz-subject-fb {
  width: 54px;
  height: 80px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quiz-subject-title {
  font-weight: 700;
  font-size: 1.06rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease, opacity 0.15s ease;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(230, 184, 79, 0.1);
  transform: translateY(-1px);
}

.quiz-opt-btn:disabled {
  cursor: default;
}

.quiz-opt-letter {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.quiz-opt-poster {
  width: 38px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}

.quiz-opt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.quiz-opt-text strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.quiz-opt-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.quiz-opt-mark {
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.quiz-opt-btn.is-correct {
  border-color: #47c995;
  background: rgba(71, 201, 149, 0.18);
  color: #e9fff5;
}

.quiz-opt-btn.is-correct .quiz-opt-letter {
  background: #47c995;
  border-color: #47c995;
  color: #0b2419;
}

.quiz-opt-btn.is-wrong {
  border-color: #e36b88;
  background: rgba(227, 107, 136, 0.18);
}

.quiz-opt-btn.is-wrong .quiz-opt-letter {
  background: #e36b88;
  border-color: #e36b88;
  color: #240910;
}

.quiz-opt-btn.is-dim {
  opacity: 0.52;
}

.quiz-feedback-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 4px;
}

.quiz-feedback-box.is-correct {
  background: rgba(71, 201, 149, 0.12);
  border-color: rgba(71, 201, 149, 0.42);
}

.quiz-feedback-box.is-wrong {
  background: rgba(227, 107, 136, 0.12);
  border-color: rgba(227, 107, 136, 0.42);
}

.quiz-fb-main {
  flex: 1;
  min-width: 220px;
}

.quiz-fb-main strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.96rem;
}

.quiz-fb-main p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.quiz-kbd-hint {
  text-align: center;
  font-size: 0.76rem;
}

/* Resultat & gennemgang */
.quiz-result-banner {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  text-align: center;
}

.quiz-result-banner.is-win {
  border-color: rgba(71, 201, 149, 0.5);
  background: linear-gradient(160deg, rgba(71, 201, 149, 0.14), rgba(230, 184, 79, 0.06));
}

.quiz-result-banner.is-wait {
  border-color: rgba(230, 184, 79, 0.45);
  background: linear-gradient(160deg, rgba(230, 184, 79, 0.12), rgba(91, 156, 246, 0.06));
}

.quiz-result-banner.is-loss {
  border-color: rgba(227, 107, 136, 0.4);
  background: linear-gradient(160deg, rgba(227, 107, 136, 0.1), rgba(255, 255, 255, 0.02));
}

.quiz-result-banner h3 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.32rem;
}

.quiz-result-banner > p {
  margin: 0 auto 14px;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.quiz-duel-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.quiz-sb-player {
  min-width: 155px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.quiz-sb-player.is-winner {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(230, 184, 79, 0.35);
}

.quiz-sb-name {
  font-size: 0.86rem;
  font-weight: 700;
}

.quiz-sb-score {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.quiz-sb-score span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quiz-sb-score.is-pending {
  color: var(--text-muted);
}

.quiz-sb-vs {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.quiz-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quiz-review-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quiz-review-item {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.quiz-review-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 6px;
}

.quiz-review-num {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.quiz-ans-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.quiz-ans-chip.is-ok {
  background: rgba(71, 201, 149, 0.16);
  color: #7ee8bd;
  border: 1px solid rgba(71, 201, 149, 0.36);
}

.quiz-ans-chip.is-bad {
  background: rgba(227, 107, 136, 0.16);
  color: #f4a4b7;
  border: 1px solid rgba(227, 107, 136, 0.36);
}

.quiz-review-prompt {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.quiz-review-quote {
  font-style: italic;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.quiz-review-reveal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stilling & Head-to-Head */
.quiz-stats-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quiz-stats-col {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.quiz-h2h-list,
.quiz-lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-h2h-row,
.quiz-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.quiz-lb-row.is-me {
  border-color: rgba(230, 184, 79, 0.45);
  background: rgba(230, 184, 79, 0.08);
}

.quiz-h2h-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.quiz-h2h-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.quiz-score-win {
  color: #47c995;
}

.quiz-score-loss {
  color: #e36b88;
}

.quiz-lb-rank {
  min-width: 26px;
  font-weight: 700;
  text-align: center;
}

.quiz-lb-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quiz-lb-acc {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

/* Tema-tilpasning: Filmklub-Arkivet (lyst papir-tema) */
body[data-theme="archive"] .quiz-sec-title,
body[data-theme="archive"] .quiz-quote-speaker,
body[data-theme="archive"] .quiz-lb-acc {
  color: #8c2233;
}

body[data-theme="archive"] .quiz-ch-card,
body[data-theme="archive"] .quiz-opp-card,
body[data-theme="archive"] .quiz-opt-btn,
body[data-theme="archive"] .quiz-review-item,
body[data-theme="archive"] .quiz-stats-col,
body[data-theme="archive"] .quiz-result-banner,
body[data-theme="archive"] .quiz-cat-chip,
body[data-theme="archive"] .quiz-cnt-btn {
  background: #fdfaf3;
  border-color: rgba(30, 24, 20, 0.18);
  color: #1e1814;
}

body[data-theme="archive"] .quiz-cat-chip.active {
  background: #8c2233;
  border-color: #8c2233;
  color: #fdfaf3;
}

body[data-theme="archive"] .quiz-cnt-btn.active,
body[data-theme="archive"] .quiz-opp-card.active {
  background: rgba(140, 34, 51, 0.09);
  border-color: #8c2233;
  color: #1e1814;
}

body[data-theme="archive"] .quiz-cat-badge,
body[data-theme="archive"] .quiz-score-pill {
  background: rgba(140, 34, 51, 0.1);
  border-color: rgba(140, 34, 51, 0.3);
  color: #8c2233;
}

body[data-theme="archive"] .quiz-quote-box {
  background: #f8f2e4;
  border-color: rgba(140, 34, 51, 0.25);
  border-left-color: #8c2233;
}

body[data-theme="archive"] .quiz-opt-btn.is-correct {
  background: rgba(30, 128, 84, 0.13);
  border-color: #1e8054;
  color: #12402b;
}

body[data-theme="archive"] .quiz-opt-btn.is-wrong {
  background: rgba(176, 38, 62, 0.11);
  border-color: #b0263e;
  color: #5c121e;
}

body[data-theme="archive"] .quiz-pill.is-win,
body[data-theme="archive"] .quiz-ans-chip.is-ok {
  background: rgba(30, 128, 84, 0.12);
  color: #176643;
  border-color: rgba(30, 128, 84, 0.35);
}

body[data-theme="archive"] .quiz-pill.is-loss,
body[data-theme="archive"] .quiz-ans-chip.is-bad {
  background: rgba(176, 38, 62, 0.12);
  color: #8c1e32;
  border-color: rgba(176, 38, 62, 0.35);
}

body[data-theme="archive"] .quiz-pill.is-hot {
  background: rgba(184, 116, 0, 0.14);
  color: #855000;
  border-color: rgba(184, 116, 0, 0.4);
}

body[data-theme="archive"] .quiz-pill.is-wait {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.3);
}

body[data-theme="archive"] .quiz-sb-player {
  background: #f5efe0;
}

body[data-theme="archive"] .quiz-sb-score {
  color: #8c2233;
}

body[data-theme="archive"] .quiz-h2h-row,
body[data-theme="archive"] .quiz-lb-row {
  background: #f6f0e2;
  border-color: rgba(30, 24, 20, 0.14);
}

@media (max-width: 720px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
  .quiz-stats-split {
    grid-template-columns: 1fr;
  }
  .quiz-ch-card {
    flex-direction: column;
    align-items: stretch;
  }
  .quiz-ch-actions {
    justify-content: flex-end;
  }
  .quiz-review-badges {
    margin-left: 0;
  }
}

/* Rotten Tomatoes Minimum Score Slider (tvilling til IMDb-slideren) */
.rt-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fa320a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.imdb-filter-pill .rt-logo-pill {
  padding: 1px 5px;
  font-size: 0.68rem;
  border-radius: 4px;
}

.rt-filter-pill.is-active,
.rt-filter-card.is-active {
  border-color: rgba(250, 50, 10, 0.54);
  background: rgba(250, 50, 10, 0.1);
  box-shadow: 0 2px 10px rgba(250, 50, 10, 0.12);
}

.rt-range-slider {
  background: linear-gradient(
    to right,
    #fa320a 0%,
    #fa320a var(--rt-pct, 0%),
    rgba(250, 50, 10, 0.24) var(--rt-pct, 0%),
    rgba(250, 50, 10, 0.24) 100%
  );
}

.rt-range-slider::-webkit-slider-thumb:hover,
.rt-range-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(250, 50, 10, 0.24), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rt-range-slider::-moz-range-thumb:hover,
.rt-range-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(250, 50, 10, 0.24), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.rt-value-box.is-active {
  background: rgba(250, 50, 10, 0.16);
  border-color: rgba(250, 50, 10, 0.52);
  color: #ff6b4a;
}

.rt-reset-btn:hover {
  border-color: rgba(250, 50, 10, 0.48);
  background: rgba(250, 50, 10, 0.12);
}

.mnp-rating-sliders-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Tema-tilpasning: Hyggekrog */
body[data-theme="cozy"] .rt-filter-pill.is-active,
body[data-theme="cozy"] .rt-filter-card.is-active {
  background: rgba(224, 92, 68, 0.16);
  border-color: rgba(235, 112, 86, 0.58);
}

/* Tema-tilpasning: Filmklub-Arkivet (lyst papir-tema) */
body[data-theme="archive"] .rt-filter-pill.is-active,
body[data-theme="archive"] .rt-filter-card.is-active {
  background: #fff3f1;
  border-color: #c92a2a;
  box-shadow: 0 2px 8px rgba(201, 42, 42, 0.12);
}

body[data-theme="archive"] .rt-range-slider {
  background: linear-gradient(
    to right,
    #c92a2a 0%,
    #c92a2a var(--rt-pct, 0%),
    rgba(30, 24, 20, 0.14) var(--rt-pct, 0%),
    rgba(30, 24, 20, 0.14) 100%
  );
}

body[data-theme="archive"] .rt-range-slider::-webkit-slider-thumb {
  border-color: #c92a2a;
}

body[data-theme="archive"] .rt-range-slider::-moz-range-thumb {
  border-color: #c92a2a;
}

body[data-theme="archive"] .rt-value-box.is-active {
  background: #fde4e1;
  border-color: #c92a2a;
  color: #9b1c1c;
}

@media (max-width: 720px) {
  .mnp-rating-sliders-row {
    grid-template-columns: 1fr;
  }
}
