: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;
  gap: 8px;
  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);
}

@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;
  }
}
