/* ════════════════════════════════════════════════════════════════════════
 * FinalVerse Enhancements — CSS
 * Load AFTER styles.css. Everything is namespaced with .fv- prefix.
 * ════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   UI-3  Detail page: Share button, Watch progress
   ────────────────────────────────────────────────────────────────────── */

.fv-detail-action {
  /* Inherits .btn-trailer styling. Nothing extra needed. */
}

.fv-watch-progress {
  background: linear-gradient(135deg, rgba(232, 184, 75, .06), rgba(224, 92, 58, .03));
  border: 1px solid rgba(232, 184, 75, .25);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  margin: 1rem 0 1.1rem;
}
.fv-wp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
  font-family: 'DM Sans', sans-serif;
}
.fv-wp-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent, #e8b84b);
}
.fv-wp-stats {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}
.fv-wp-track {
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
  height: 7px;
  overflow: hidden;
  position: relative;
}
.fv-wp-fill {
  background: linear-gradient(90deg, var(--accent, #e8b84b), var(--accent2, #e05c3a));
  height: 100%;
  border-radius: 4px;
  transition: width .6s cubic-bezier(.22, .61, .36, 1);
  box-shadow: 0 0 14px rgba(232, 184, 75, .35);
}

/* ──────────────────────────────────────────────────────────────────────
   UI-4  Recent searches dropdown
   ────────────────────────────────────────────────────────────────────── */

.fv-recent-dd {
  background: var(--surface, #0f1219);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(232, 184, 75, .08);
  padding: .35rem;
  z-index: 600;
  font-family: 'DM Sans', sans-serif;
  animation: fv-fade-in .15s ease;
}
@keyframes fv-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.fv-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: .25rem;
}
.fv-recent-head span {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.fv-recent-clear {
  background: none;
  border: none;
  color: var(--accent, #e8b84b);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
  padding: .15rem .4rem;
  border-radius: 4px;
}
.fv-recent-clear:hover { background: rgba(232, 184, 75, .1); }
.fv-recent-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .87rem;
  color: rgba(255, 255, 255, .82);
  transition: background .12s;
}
.fv-recent-row:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.fv-recent-row svg { color: rgba(255, 255, 255, .35); flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-1  Sidebar regroup — collapsible group headers
   ────────────────────────────────────────────────────────────────────── */

.fv-sidebar-group-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1rem .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
  border-top: 1px solid rgba(255, 255, 255, .04);
  margin-top: .35rem;
}
.fv-sidebar-group-header:first-child {
  border-top: none;
  margin-top: 0;
}
.fv-sidebar-group-header:hover { color: rgba(255, 255, 255, .85); }
.fv-sgh-icon { font-size: .9rem; opacity: .75; }
.fv-sgh-title { flex: 1; }
.fv-sgh-caret {
  transition: transform .2s;
  color: rgba(255, 255, 255, .35);
}
.fv-sidebar-group-header.collapsed .fv-sgh-caret { transform: rotate(-90deg); }
.fv-grouped-item { transition: opacity .18s; }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-2  Dashboard: Needs Attention widget + trend chart + FAB
   ────────────────────────────────────────────────────────────────────── */

.fv-attn-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, .07), rgba(232, 184, 75, .04));
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.4rem;
  position: relative;
  overflow: hidden;
}
.fv-attn-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, rgba(239, 68, 68, .12), transparent 60%);
  pointer-events: none;
}
.fv-attn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .9rem;
}
.fv-attn-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: #fff;
}
.fv-attn-refresh {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all .15s;
}
.fv-attn-refresh:hover {
  background: rgba(232, 184, 75, .12);
  border-color: rgba(232, 184, 75, .3);
  color: var(--accent, #e8b84b);
  transform: rotate(180deg);
}
.fv-attn-list { display: flex; flex-direction: column; gap: .55rem; }
.fv-attn-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem;
  background: rgba(0, 0, 0, .25);
  border-radius: 9px;
  border-left: 3px solid;
  font-family: 'DM Sans', sans-serif;
}
.fv-attn-info { border-left-color: #60a5fa; }
.fv-attn-warn { border-left-color: #fbbf24; }
.fv-attn-err  { border-left-color: #ef4444; }
.fv-attn-icon { font-size: 1.05rem; flex-shrink: 0; }
.fv-attn-text { flex: 1; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.fv-attn-action {
  background: rgba(232, 184, 75, .12);
  border: 1px solid rgba(232, 184, 75, .35);
  color: var(--accent, #e8b84b);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .3px;
  padding: .42rem .85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.fv-attn-action:hover {
  background: var(--accent, #e8b84b);
  color: #111;
  transform: translateX(2px);
}
.fv-attn-clean {
  text-align: center;
  padding: 1rem;
  font-size: .9rem;
  color: #22c55e;
}

/* Trend chart */
.fv-trend-card { margin-bottom: 1.4rem; }
.fv-trend-chart-wrap {
  background: rgba(0, 0, 0, .25);
  border-radius: 10px;
  padding: .6rem;
}
.fv-trend-svg { width: 100%; height: auto; display: block; }
.fv-trend-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  fill: rgba(255, 255, 255, .45);
}
.fv-trend-legend {
  display: flex; gap: 1.5rem;
  margin-top: .6rem;
  padding-left: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  color: rgba(255, 255, 255, .65);
}
.fv-trend-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.fv-trend-sw {
  display: inline-block;
  width: 18px; height: 3px;
  border-radius: 2px;
}
.fv-trend-sw-dash {
  background: transparent;
  border-top: 2px dashed;
  height: 0;
}
.fv-trend-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 255, 255, .35);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
}

/* FAB */
.fv-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 350;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, transform .2s;
}
.fv-fab.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.85);
}
.fv-fab-toggle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #e8b84b), var(--accent2, #e05c3a));
  border: none;
  color: #111;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(232, 184, 75, .3), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  opacity: .7;
}
.fv-fab-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(232, 184, 75, .45); opacity: 1; }
.fv-fab.open .fv-fab-toggle { transform: rotate(45deg); opacity: 1; }
.fv-fab-menu {
  position: absolute;
  bottom: 62px;
  right: 0;
  background: var(--surface, #0f1219);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 200px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(10px) scale(.95);
  pointer-events: none;
  transition: opacity .18s, transform .2s;
  transform-origin: bottom right;
}
.fv-fab.open .fv-fab-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.fv-fab-menu button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .85);
  font-family: inherit;
  font-size: .87rem;
  text-align: left;
  padding: .65rem .85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.fv-fab-menu button:hover {
  background: rgba(232, 184, 75, .14);
  color: var(--accent, #e8b84b);
}

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-3  Library: Grid mode + bulk select bar + inline checkboxes
   ────────────────────────────────────────────────────────────────────── */

.fv-lib-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: .85rem 0 .8rem;
  padding: .55rem 0;
}
.fv-lib-toolbar-left { display: flex; gap: .35rem; }
.fv-lib-mode-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.fv-lib-mode-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.fv-lib-mode-btn.active {
  background: rgba(232, 184, 75, .15);
  border-color: rgba(232, 184, 75, .45);
  color: var(--accent, #e8b84b);
}
.fv-lib-sel-count {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent, #e8b84b);
}

.fv-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fv-lib-tile {
  background: var(--surface, #0f1219);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.fv-lib-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 184, 75, .35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.fv-lib-tile.selected {
  border-color: var(--accent, #e8b84b);
  box-shadow: 0 0 0 2px rgba(232, 184, 75, .35), 0 10px 28px rgba(0, 0, 0, .5);
}
.fv-lib-tile img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
.fv-lib-tile-check {
  position: absolute;
  top: .55rem; left: .55rem;
  background: rgba(0, 0, 0, .75);
  border-radius: 6px;
  padding: .2rem .35rem;
  cursor: pointer;
  z-index: 2;
}
.fv-lib-tile-check input { cursor: pointer; accent-color: var(--accent, #e8b84b); }
.fv-lib-tile-edit {
  position: absolute;
  top: .55rem; right: .55rem;
  background: rgba(0, 0, 0, .75);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s, background .12s;
}
.fv-lib-tile:hover .fv-lib-tile-edit { opacity: 1; }
.fv-lib-tile-edit:hover { background: var(--accent, #e8b84b); color: #111; }
.fv-lib-tile-body {
  padding: .65rem .75rem .8rem;
  font-family: 'DM Sans', sans-serif;
}
.fv-lib-tile-title {
  font-size: .87rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .3rem;
}
.fv-lib-tile-meta {
  display: flex;
  gap: .55rem;
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
}
.fv-lib-tile-badge {
  display: inline-block;
  margin-top: .4rem;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.fv-lib-tile-badge.soon { background: rgba(232, 184, 75, .18); color: var(--accent, #e8b84b); }
.fv-lib-tile-badge.nosrv { background: rgba(239, 68, 68, .18); color: #fca5a5; margin-left: .3rem; }

/* Bulk bar — slides up from the bottom */
.fv-bulk-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--surface2, #1a1d28), var(--surface, #0f1219));
  border-top: 1px solid rgba(232, 184, 75, .35);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  z-index: 400;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, .6);
  font-family: 'DM Sans', sans-serif;
  flex-wrap: wrap;
}
.fv-bulk-bar.open { transform: translateY(0); }
.fv-bulk-count {
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent, #e8b84b);
  margin-right: 1rem;
}
.fv-bulk-btn {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.fv-bulk-btn:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(232, 184, 75, .3);
}
.fv-bulk-danger {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .3);
  color: #fca5a5;
}
.fv-bulk-danger:hover {
  background: rgba(239, 68, 68, .25);
  border-color: rgba(239, 68, 68, .5);
}
.fv-bulk-ghost {
  background: none;
  border-color: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .55);
  margin-left: auto;
}

.fv-row-check-cell { padding: .5rem !important; }
.fv-row-check { accent-color: var(--accent, #e8b84b); cursor: pointer; }
#fv-lib-select-all { accent-color: var(--accent, #e8b84b); cursor: pointer; }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-4  Import Hub — tab layout
   ────────────────────────────────────────────────────────────────────── */

.fv-hub-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.fv-hub-tab {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  font-family: 'DM Sans', sans-serif;
  padding: 1rem 1.1rem;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .8rem;
  text-align: left;
  transition: all .18s;
}
.fv-hub-tab:hover {
  border-color: rgba(232, 184, 75, .35);
  background: rgba(255, 255, 255, .05);
}
.fv-hub-tab.active {
  border-color: var(--accent, #e8b84b);
  background: linear-gradient(135deg, rgba(232, 184, 75, .12), rgba(224, 92, 58, .06));
  box-shadow: 0 0 0 1px rgba(232, 184, 75, .25) inset;
}
.fv-hub-tab-icon { font-size: 1.6rem; flex-shrink: 0; }
.fv-hub-tab-text { display: flex; flex-direction: column; gap: .1rem; }
.fv-hub-tab-text strong { font-size: .9rem; }
.fv-hub-tab-text small { font-size: .72rem; color: rgba(255, 255, 255, .5); }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-5  Reports inbox toolbar
   ────────────────────────────────────────────────────────────────────── */

.fv-reports-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.fv-reports-filters { display: flex; gap: .35rem; }
.fv-rp-filter {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .65);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  padding: .42rem .9rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all .15s;
}
.fv-rp-filter:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.fv-rp-filter.active {
  background: rgba(232, 184, 75, .15);
  border-color: rgba(232, 184, 75, .5);
  color: var(--accent, #e8b84b);
}
.fv-rp-bulk-btn {
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .35);
  color: #4ade80;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  padding: .5rem .95rem;
  border-radius: 8px;
  cursor: pointer;
}
.fv-rp-bulk-btn:hover { background: rgba(34, 197, 94, .22); border-color: rgba(34, 197, 94, .5); }

/* Filter modes — hide rows that don't match */
body[data-fv-report-filter='unread']    .adm-report-row.fv-rp-resolved { display: none; }
body[data-fv-report-filter='resolved']  .adm-report-row:not(.fv-rp-resolved) { display: none; }
body[data-fv-report-filter='critical']  .adm-report-row:not(.fv-rp-critical) { display: none; }

.adm-report-row.fv-rp-checked { background: rgba(232, 184, 75, .08); border-left: 3px solid var(--accent, #e8b84b); }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-6  Backup — version history
   ────────────────────────────────────────────────────────────────────── */

.fv-bk-new {
  float: right;
  background: rgba(232, 184, 75, .12);
  border: 1px solid rgba(232, 184, 75, .35);
  color: var(--accent, #e8b84b);
  font-family: 'DM Sans', sans-serif;
  font-size: .76rem;
  font-weight: 700;
  padding: .42rem .85rem;
  border-radius: 7px;
  cursor: pointer;
  margin-top: -.4rem;
}
.fv-bk-new:hover { background: var(--accent, #e8b84b); color: #111; }
.fv-bk-list { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.fv-bk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
}
.fv-bk-meta { flex: 1; min-width: 0; font-family: 'DM Sans', sans-serif; }
.fv-bk-label { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .15rem; }
.fv-bk-sub { font-size: .72rem; color: rgba(255, 255, 255, .45); }
.fv-bk-actions { display: flex; gap: .4rem; }
.fv-bk-actions button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.fv-bk-actions button:hover { background: rgba(255, 255, 255, .1); }
.fv-bk-restore { background: rgba(34, 197, 94, .12) !important; color: #4ade80 !important; border-color: rgba(34, 197, 94, .3) !important; }
.fv-bk-restore:hover { background: rgba(34, 197, 94, .22) !important; }
.fv-bk-del:hover { background: rgba(239, 68, 68, .15) !important; color: #fca5a5 !important; }
.fv-bk-auto {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .85rem;
  color: rgba(255, 255, 255, .7);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.fv-bk-auto input { accent-color: var(--accent, #e8b84b); }
.fv-bk-empty {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, .4);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  background: rgba(255, 255, 255, .02);
  border-radius: 9px;
}

.fv-bk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 2rem;
}
.fv-bk-modal {
  background: var(--surface, #0f1219);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 25px 80px rgba(0, 0, 0, .7);
}
.fv-bk-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.fv-bk-modal-head h3 { margin: 0; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 2px; }
.fv-bk-modal-x {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}
.fv-bk-modal-body { padding: 1.2rem 1.5rem; overflow-y: auto; }
.fv-bk-modal-body h4 { font-size: .95rem; margin: 1rem 0 .5rem; color: rgba(255, 255, 255, .85); }
.fv-bk-modal-body ul { padding-left: 1.3rem; color: rgba(255, 255, 255, .65); font-size: .85rem; line-height: 1.7; }
.fv-bk-diff-stat { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 700; }
.fv-bk-diff-pos { color: #22c55e; }
.fv-bk-diff-neg { color: #ef4444; }
.fv-bk-diff-mod { color: #fbbf24; }
.fv-bk-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.fv-bk-modal-foot button {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1.1rem;
  border-radius: 7px;
  cursor: pointer;
}
.fv-bk-modal-foot button:hover { background: rgba(255, 255, 255, .12); }

/* ──────────────────────────────────────────────────────────────────────
   ADMIN-7  Analytics — heatmap, funnel, tables
   ────────────────────────────────────────────────────────────────────── */

.fv-an-empty {
  text-align: center;
  padding: 1.5rem;
  color: rgba(255, 255, 255, .4);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
}

.fv-an-heatmap { padding: .6rem 0; overflow-x: auto; }
.fv-hm-grid { display: flex; flex-direction: column; gap: 2px; min-width: 600px; }
.fv-hm-row { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 2px; align-items: center; }
.fv-hm-head span { font-size: .65rem; color: rgba(255, 255, 255, .35); text-align: center; font-family: 'DM Sans', sans-serif; }
.fv-hm-day {
  font-size: .68rem;
  color: rgba(255, 255, 255, .5);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-align: right;
  padding-right: .35rem;
}
.fv-hm-cell {
  display: block;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, .04);
  border-radius: 2px;
  cursor: help;
}
.fv-hm-cell:hover { outline: 1px solid var(--accent, #e8b84b); }

.fv-an-funnel { padding: .5rem 0; }
.fv-fn-row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem;
  font-family: 'DM Sans', sans-serif;
}
.fv-fn-label { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.fv-fn-bar {
  height: 22px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  overflow: hidden;
}
.fv-fn-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s ease;
}
.fv-fn-n {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fv-an-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
}
.fv-an-tbl thead th {
  text-align: left;
  padding: .5rem .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.fv-an-tbl tbody td {
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.fv-an-tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
.fv-an-tbl code { background: rgba(255, 255, 255, .07); padding: .1rem .4rem; border-radius: 3px; font-size: .8rem; }
.fv-srv-pct {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: #111;
}

/* ──────────────────────────────────────────────────────────────────────
   TOOL-1  AI Tools
   ────────────────────────────────────────────────────────────────────── */

.fv-ai-controls {
  display: flex;
  gap: .55rem;
  align-items: flex-end;
  margin: .9rem 0;
  flex-wrap: wrap;
}
.fv-ai-controls select { max-width: 260px; }
.fv-ai-ctl { display: flex; flex-direction: column; gap: .25rem; }
.fv-ai-ctl > span {
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem; letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.fv-ai-ctl .adm-kv-input { margin: 0; }

/* ── Auto-Tagger results: responsive poster grid (one card per title) ── */
.fv-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .7rem;
  margin-top: 1rem;
}
.fv-ai-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fv-ai-card.err { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.05); }
.fv-ai-card.applied { border-color: rgba(34,197,94,.45); }
.fv-ai-card-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; background: #11131a; display: block; }
.fv-ai-card-noposter { background: linear-gradient(135deg,#1a1d27,#11131a); }
.fv-ai-card-info {
  padding: .55rem .6rem .65rem;
  display: flex; flex-direction: column; gap: .4rem;
  font-family: 'DM Sans', sans-serif;
}
.fv-ai-card-head { display: flex; align-items: flex-start; gap: .3rem; flex-wrap: wrap; }
.fv-ai-card-head strong {
  font-size: .8rem; color: #fff; line-height: 1.25; flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fv-ai-card-genres { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .74rem; }
.fv-ai-cur { color: rgba(255,255,255,.5); }
.fv-ai-arrow { color: rgba(255,255,255,.4); }
.fv-ai-sug { color: var(--accent,#e8b84b); font-weight: 700; }
.fv-ai-card-moods { display: flex; flex-wrap: wrap; gap: .25rem; }
.fv-ai-apply { align-self: flex-start; margin-top: .15rem; }
.fv-ai-card-err { font-size: .72rem; color: #fca5a5; word-break: break-word; line-height: 1.35; }
.fv-ai-status {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
  margin: .55rem 0;
  min-height: 1.2em;
}
.fv-ai-results { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.fv-ai-row {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  padding: .85rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
}
.fv-ai-row.err { border-color: rgba(239, 68, 68, .3); background: rgba(239, 68, 68, .05); }
.fv-ai-row-head {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: .45rem;
  flex-wrap: wrap;
}
.fv-ai-row-head strong { font-size: .92rem; color: #fff; flex: 1; min-width: 0; }
.fv-ai-flag {
  background: rgba(239, 68, 68, .15);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fca5a5;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 4px;
  letter-spacing: .5px;
}
.fv-ai-conf {
  font-size: .7rem;
  color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
  padding: .15rem .45rem;
  border-radius: 4px;
}
.fv-ai-row-body { display: flex; flex-direction: column; gap: .3rem; color: rgba(255, 255, 255, .78); }
.fv-ai-row-body code { background: rgba(255, 255, 255, .07); padding: .1rem .4rem; border-radius: 3px; font-size: .82rem; color: var(--accent, #e8b84b); }
.fv-ai-same { color: rgba(255, 255, 255, .35); font-style: italic; }
.fv-ai-tag {
  display: inline-block;
  background: rgba(232, 184, 75, .12);
  color: var(--accent, #e8b84b);
  padding: .15rem .55rem;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 600;
  margin-right: .25rem;
}
.fv-ai-row-actions { margin-top: .65rem; }
.fv-ai-applied {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(34, 197, 94, .2);
  color: #22c55e;
  font-size: .82rem;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────────────
   TOOL-2  Health
   ────────────────────────────────────────────────────────────────────── */

.fv-health-status {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
  margin-top: .55rem;
  min-height: 1.2em;
}
.fv-health-results .fv-an-tbl { margin-top: .5rem; }
.fv-health-ts {
  font-size: .76rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .55rem;
  font-family: 'DM Sans', sans-serif;
}

/* ──────────────────────────────────────────────────────────────────────
   TOOL-3  TMDB refresh
   ────────────────────────────────────────────────────────────────────── */

.fv-tmdb-status {
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  color: rgba(255, 255, 255, .65);
  margin-top: .65rem;
  min-height: 1.2em;
}

/* ──────────────────────────────────────────────────────────────────────
   Personal home rows — accent the new ones subtly
   ────────────────────────────────────────────────────────────────────── */

.home-row.fv-personal-row .home-row-title {
  position: relative;
  display: inline-block;
}
.home-row.fv-personal-row .home-row-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 2px; width: 36px;
  background: linear-gradient(90deg, var(--accent, #e8b84b), transparent);
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────────────
   Responsive — mobile tweaks
   ────────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .fv-attn-row { flex-wrap: wrap; }
  .fv-attn-action { width: 100%; margin-top: .4rem; }
  .fv-fab { bottom: 1rem; right: 1rem; }
  .fv-fab-toggle { width: 50px; height: 50px; }
  .fv-bulk-bar { padding: .85rem 1rem; }
  .fv-bulk-ghost { margin-left: 0; }
  .fv-lib-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .65rem; }
  .fv-fn-row { grid-template-columns: 110px 1fr 45px; gap: .5rem; }
  .fv-fn-label { font-size: .78rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   ADMIN REDESIGN — softer surface palette + topbar + breadcrumb
   The original admin uses pitch-black backgrounds (rgba(6,8,14,.85)) which
   creates extreme contrast with the white text — that's the eye-strain
   the user reported. The redesign below introduces a slate-tinted palette,
   gentler text colors, and a persistent breadcrumb topbar.

   Activated by the .fv-comfort class on <body> (default ON, toggleable
   via the Comfort button in the topbar).
   ════════════════════════════════════════════════════════════════════════ */

/* ── Generic SVG icon helper used inline everywhere ── */
.fv-ic {
  display: inline-block;
  vertical-align: -2px;
  margin-right: .3rem;
  flex-shrink: 0;
}

/* ── COMFORT MODE — softer admin colors ──
   Slate-tinted backgrounds, warmer text, gentler borders. Replaces the
   harsh black-on-white contrast with a calmer slate-blue palette that's
   easier on the eyes for long admin sessions. */

body.fv-comfort #admin-overlay {
  background: linear-gradient(135deg, #131722 0%, #181d2a 100%) !important;
}
body.fv-comfort .adm-sidebar {
  background: rgba(20, 24, 36, .92) !important;
  border-right-color: rgba(255, 255, 255, .055) !important;
}
body.fv-comfort .adm-content {
  background: transparent !important;
}
body.fv-comfort .adm-nav-item {
  color: rgba(220, 226, 240, .68) !important;
}
body.fv-comfort .adm-nav-item:hover {
  background: rgba(255, 255, 255, .035) !important;
  color: rgba(245, 248, 255, .95) !important;
}
body.fv-comfort .adm-nav-item.active {
  background: rgba(232, 184, 75, .085) !important;
  color: var(--accent) !important;
}
body.fv-comfort .adm-section-title {
  font-size: 1.5rem !important;
  letter-spacing: 1.5px !important;
  color: rgba(245, 248, 255, .92) !important;
}
body.fv-comfort .adm-section-desc {
  color: rgba(200, 208, 220, .58) !important;
  font-size: .88rem !important;
  max-width: 760px;
}
body.fv-comfort .adm-card {
  background: rgba(255, 255, 255, .025) !important;
  border-color: rgba(255, 255, 255, .06) !important;
}
body.fv-comfort .adm-card-title {
  font-size: 1.05rem !important;
  letter-spacing: 1px !important;
}
body.fv-comfort .adm-stat-card {
  background: rgba(255, 255, 255, .025) !important;
  border-color: rgba(255, 255, 255, .06) !important;
}
body.fv-comfort .adm-stat-value {
  color: rgba(245, 248, 255, .95) !important;
}

/* ── ADMIN TOPBAR — breadcrumb + comfort toggle ── */

.fv-adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 0 1rem;
  margin: 0 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  font-family: 'DM Sans', sans-serif;
  /* Not sticky — sticky was causing the bar to float over the section
     title and FAB. Just sits at the top of the content area like a
     normal header. */
}

.fv-adm-crumbs {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
}
.fv-adm-crumb-grp {
  color: rgba(255, 255, 255, .45);
  font-weight: 600;
  letter-spacing: .3px;
}
.fv-adm-crumb-sep {
  color: rgba(255, 255, 255, .25);
  flex-shrink: 0;
}
.fv-adm-crumb-cur {
  color: var(--accent, #e8b84b);
  font-weight: 700;
  letter-spacing: .3px;
}

.fv-adm-topbar-right {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.fv-adm-topbtn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .75);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .42rem .85rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all .15s;
}
.fv-adm-topbtn:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}
.fv-adm-topbtn.active {
  background: rgba(232, 184, 75, .14);
  border-color: rgba(232, 184, 75, .35);
  color: var(--accent, #e8b84b);
}

/* ── SIDEBAR REGROUP refinements — quieter, more rhythmic ── */

.adm-sidebar.fv-regrouped {
  padding: 1rem 0 1.5rem;
}
.fv-sidebar-group-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 1rem .55rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  cursor: pointer;
  user-select: none;
  transition: color .15s;
  border-top: 1px solid rgba(255, 255, 255, .035);
  margin-top: .35rem;
}
.fv-sidebar-group-header:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: .5rem;
}
.fv-sidebar-group-header:hover {
  color: rgba(255, 255, 255, .85);
}
.fv-sgh-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: .7;
  flex-shrink: 0;
}
.fv-sgh-icon svg {
  width: 100%;
  height: 100%;
}
.fv-sgh-title {
  flex: 1;
}
.fv-sgh-caret {
  transition: transform .2s;
  color: rgba(255, 255, 255, .25);
  flex-shrink: 0;
}
.fv-sidebar-group-header.collapsed .fv-sgh-caret {
  transform: rotate(-90deg);
}

/* Slightly tighten nav items in the regrouped sidebar so the visual
   rhythm matches the header spacing. */
.adm-sidebar.fv-regrouped .adm-nav-item {
  padding: .58rem 1rem .58rem 1.4rem;
  font-size: .88rem;
}
.adm-sidebar.fv-regrouped .adm-nav-icon {
  font-size: 1rem;
  width: 18px;
}

/* ════════════════════════════════════════════════════════════════════════
   READY TO WATCH — Sort buttons in the cat-header
   Three buttons aligned to the right of the filter pills. Compact pill
   style with an inline SVG icon and label. Active state mirrors the
   existing filter-pill active look so it feels native.
   ════════════════════════════════════════════════════════════════════════ */

.rf-sort-group {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  margin-left: auto;          /* push to the right inside cat-header */
  padding-left: 1rem;
  flex-shrink: 0;
  /* Explicit reset — make sure nothing inherits or paints a box around
     the group (some parent .cat-filters / smart-filter rules can bleed). */
  background: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
}
.rf-sort-group:focus,
.rf-sort-group:focus-within {
  outline: 0 !important;
  box-shadow: none !important;
}
.rf-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  padding: .42rem .85rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.rf-sort-btn svg {
  color: rgba(255, 255, 255, .55);
  transition: color .15s;
}
.rf-sort-btn:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
}
.rf-sort-btn:hover svg {
  color: rgba(255, 255, 255, .85);
}
.rf-sort-btn.is-active {
  background: rgba(232, 184, 75, .14);
  border-color: rgba(232, 184, 75, .42);
  color: var(--accent, #e8b84b);
}
.rf-sort-btn.is-active svg {
  color: var(--accent, #e8b84b);
}

@media (max-width: 720px) {
  .rf-sort-group {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    margin-top: .5rem;
  }
  .rf-sort-btn span { display: none; }
  .rf-sort-btn { padding: .42rem .55rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   FIX #3 — Highlight Movies/Series nav pills like Home
   The original CSS only gives `.nav-pill.active` a background — the
   Movies/Series pills don't get any active styling when their view is
   open. We add an `is-active` class via JS (fvNavPillSyncPatch) and
   style it the same way as Home's active state.
   ════════════════════════════════════════════════════════════════════════ */

.nav-pill.is-active,
.nav-pill.mega-open {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════════
   FIX #2 — Hide hero/stats/cat-tabs during active search
   Backup safety net in case the JS patch hasn't run yet. body.fv-search-mode
   is added by the renderAll patch in finalverse-enhancements.js.
   ════════════════════════════════════════════════════════════════════════ */

body.fv-search-mode #hero,
body.fv-search-mode #stats-bar,
body.fv-search-mode #cat-tabs-bar {
  display: none !important;
}


/* ────────────────────────────────────────────────────────────────────
   Tone down small accent emoji-like decorations that were left in
   row titles (now stripped, replaced with subtle gold underline accent
   to keep the visual hierarchy). The existing .fv-personal-row rule
   above already does this — we just make the underline a touch wider
   in comfort mode for better readability.
   ──────────────────────────────────────────────────────────────────── */

body.fv-comfort .home-row.fv-personal-row .home-row-title::after {
  width: 48px;
  height: 2px;
}

/* Inline SVG icons used inside buttons/labels should inherit text color
   smoothly and align with letter baselines, even on the home page. */
.home-row-title .fv-ic,
.adm-section-title .fv-ic,
.adm-card-title .fv-ic {
  vertical-align: -1px;
  opacity: .9;
}


/* ════════════════════════════════════════════════════════════════════════
   ═══════════                                                ═══════════
   ═══════════         UX UPGRADE PACKAGE v2 — STYLES         ═══════════
   ═══════════                                                ═══════════
   ════════════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────────
   UX-1  Navigation cleanup — refined cat-tabs
   ────────────────────────────────────────────────────────────────────── */

.cat-tabs.fv-tabs-clean {
  gap: .35rem !important;
  padding: 1rem 2.5rem .5rem !important;
}
.cat-tabs.fv-tabs-clean .cat-tab {
  font-weight: 600 !important;
  letter-spacing: .3px !important;
  padding: .5rem 1.1rem !important;
  font-size: .85rem !important;
  border-radius: 20px !important;
}
.cat-tabs.fv-tabs-clean .cat-tab.active {
  font-weight: 700 !important;
  letter-spacing: .4px !important;
}
/* The Home button keeps its visual emphasis */
.cat-tabs.fv-tabs-clean .cat-tab-home {
  font-weight: 700 !important;
}

/* ──────────────────────────────────────────────────────────────────────
   UX-6  Smart navbar — hide on scroll down
   ────────────────────────────────────────────────────────────────────── */

nav {
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
nav.fv-nav-hidden {
  transform: translateY(-100%);
}

/* ──────────────────────────────────────────────────────────────────────
   UX-7  Home page density — hide stats by default
   ────────────────────────────────────────────────────────────────────── */

#stats-bar.fv-stats-hidden {
  display: none !important;
}

/* ──────────────────────────────────────────────────────────────────────
   UX-4  Skeleton screens — shimmer animation
   ────────────────────────────────────────────────────────────────────── */

.fv-skel-row {
  margin-bottom: 1.5rem;
  opacity: .9;
}
.fv-skel-title {
  width: 180px;
  height: 22px;
  background: rgba(255, 255, 255, .05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.fv-skel-scroll {
  padding: .5rem 2.5rem !important;
  pointer-events: none;
  overflow: hidden !important;
}
.fv-skel-card {
  flex-shrink: 0;
  width: 155px;
  height: 232px;
  background: rgba(255, 255, 255, .04);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .03);
}
.fv-skel-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, .06) 50%,
    transparent 100%
  );
  animation: fv-shimmer 1.4s linear infinite;
}
@keyframes fv-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ──────────────────────────────────────────────────────────────────────
   UX-5  Continue Watching progress bars
   ────────────────────────────────────────────────────────────────────── */

.fv-card-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 50px;        /* sit above the title/meta info */
  height: 3px;
  background: rgba(0, 0, 0, .55);
  border-radius: 2px;
  overflow: hidden;
  z-index: 4;
  pointer-events: none;
}
.fv-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #e8b84b), var(--accent2, #e05c3a));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(232, 184, 75, .5);
  transition: width .6s cubic-bezier(.22, .61, .36, 1);
}

/* On hover, lift the progress bar above the gradient overlay so it stays
   visible even when the title area expands */
.row-card.fv-has-progress:hover .fv-card-progress {
  bottom: 70px;
}

/* ──────────────────────────────────────────────────────────────────────
   UX-2  Smart Search — type filters + no-results state
   ────────────────────────────────────────────────────────────────────── */

.fv-srch-filters {
  display: flex;
  gap: .35rem;
  padding: .7rem .9rem .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  flex-shrink: 0;
}
.fv-srch-pill {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all .15s;
}
.fv-srch-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}
.fv-srch-pill.active {
  background: rgba(232, 184, 75, .15);
  border-color: rgba(232, 184, 75, .45);
  color: var(--accent, #e8b84b);
}

.fv-no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}
.fv-nr-icon {
  color: rgba(255, 255, 255, .25);
  margin-bottom: .8rem;
  display: flex;
  justify-content: center;
}
.fv-nr-title {
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.2rem;
}
.fv-nr-title strong {
  color: var(--accent, #e8b84b);
  font-weight: 700;
}
.fv-nr-section {
  margin-top: 1rem;
  text-align: left;
}
.fv-nr-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: .55rem;
  padding-left: .2rem;
}
.fv-nr-suggest {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.fv-nr-suggest-btn {
  background: rgba(232, 184, 75, .08);
  border: 1px solid rgba(232, 184, 75, .25);
  color: #fff;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
  padding: .55rem .85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.fv-nr-suggest-btn:hover {
  background: rgba(232, 184, 75, .18);
  border-color: rgba(232, 184, 75, .45);
  transform: translateX(2px);
}
.fv-nr-suggest-btn span {
  color: rgba(255, 255, 255, .5);
  font-weight: 500;
  margin-left: .2rem;
}
.fv-nr-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.fv-nr-action {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .85rem;
  border-radius: 18px;
  cursor: pointer;
  transition: all .15s;
}
.fv-nr-action:hover {
  background: rgba(232, 184, 75, .12);
  border-color: rgba(232, 184, 75, .35);
  color: var(--accent, #e8b84b);
}
.fv-nr-trending {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
}
.fv-nr-trend-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .65);
  font-family: inherit;
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all .15s;
}
.fv-nr-trend-btn:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
}

/* ──────────────────────────────────────────────────────────────────────
   UX-3  Detail page hierarchy — primary Watch + overflow More menu
   ────────────────────────────────────────────────────────────────────── */

/* The Watch button becomes the visual primary — bigger, gold gradient,
   pulls the eye first. */
.modal-actions .fv-watch-primary {
  background: linear-gradient(135deg, var(--accent, #e8b84b), var(--accent2, #e05c3a)) !important;
  color: #111 !important;
  font-weight: 800 !important;
  letter-spacing: .5px !important;
  font-size: 1rem !important;
  padding: .8rem 1.8rem !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(232, 184, 75, .25), 0 0 0 1px rgba(255, 255, 255, .1) inset !important;
  transition: all .2s !important;
  text-transform: uppercase;
}
.modal-actions .fv-watch-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 184, 75, .4), 0 0 0 1px rgba(255, 255, 255, .15) inset !important;
}

/* Hidden buttons (now delegated through More menu) */
.fv-hidden-by-more {
  display: none !important;
}

/* More dropdown */
.fv-more-wrap {
  position: relative;
  display: inline-flex;
}
.fv-more-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  padding: .55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.fv-more-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}
.fv-more-wrap.open .fv-more-btn {
  background: rgba(232, 184, 75, .12);
  border-color: rgba(232, 184, 75, .35);
  color: var(--accent, #e8b84b);
}
.fv-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 18, 25, .98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03);
  padding: .4rem;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  opacity: 0;
  transform: translateY(-6px) scale(.96);
  pointer-events: none;
  transition: opacity .15s, transform .18s;
  z-index: 100;
  transform-origin: top right;
}
.fv-more-wrap.open .fv-more-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.fv-more-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .85);
  font-family: 'DM Sans', sans-serif;
  font-size: .87rem;
  font-weight: 600;
  text-align: left;
  padding: .6rem .8rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.fv-more-item svg {
  color: rgba(255, 255, 255, .55);
  flex-shrink: 0;
  transition: color .12s;
}
.fv-more-item:hover {
  background: rgba(232, 184, 75, .12);
  color: var(--accent, #e8b84b);
}
.fv-more-item:hover svg {
  color: var(--accent, #e8b84b);
}

/* Responsive — mobile detail page tightens up */
@media (max-width: 720px) {
  .modal-actions .fv-watch-primary {
    width: 100%;
    padding: .8rem 1rem !important;
    font-size: .9rem !important;
  }
  .fv-more-wrap {
    width: 100%;
  }
  .fv-more-btn {
    width: 100%;
    justify-content: center;
  }
  .fv-more-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}
