/* ═══════════════════════════════════════════════════════════════════
   CYNEFLIX V32 — THEME OVERRIDE (loaded LAST)
   Forces the strict dark + red identity over every versioned stylesheet.
   No purple, blue, green, cyan, orange, yellow, or pink in the UI.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Retire non-red accent tokens (override style.css :root) ──────── */
:root {
  --gold:   #E50914 !important;
  --green:  #FF303A !important;
  --blue:   #B20710 !important;
  --glow-purple: 0 0 18px rgba(229,9,20,.28) !important;
  --accent2:     #E50914 !important;
  --accent2-h:   #FF303A !important;
  --vio:         #E50914 !important;
}

/* ── Nav / menu "Watch Party" green → red ────────────────────────── */
.nav-link[href="watchparty.html"]:hover,
.nav-link[href="watchparty.html"].active,
.nav-link--party:hover,
.nav-link--party.active { color: #FF303A !important; }
.nav-link[href="watchparty.html"]::after { background: #E50914 !important; }
.mm-link[href="watchparty.html"]:hover {
  color: #FF303A !important;
  background: rgba(229,9,20,.08) !important;
}

/* ── Watch Together button ──────────────────────────────────────── */
.btn-wt {
  background: rgba(229,9,20,.12) !important;
  color: #FF303A !important;
  border-color: rgba(229,9,20,.25) !important;
}

/* ── Row title bars (series/party) → red family ────────────────── */
.row-header[data-cat="series"] .row-title-bar { background: #B20710 !important; }
.row-header[data-cat="party"]  .row-title-bar { background: #E50914 !important; }

/* ── Verified / success indicators → red ────────────────────────── */
.account-verified { color: #FF303A !important; }

/* ── Ratings (gold) → red ───────────────────────────────────────── */
.card-rating, .card-rating.rg,
.info-rating, .watch-rating { color: #FF303A !important; }

/* ── Generic green text → red ───────────────────────────────────── */
.stats-message.is-error { color: #ffb3b3 !important; }

/* ── Statistics metric cards: every accent → red variants ────────── */
.metric-card.blue    { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }
.metric-card.gold    { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }
.metric-card.green   { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }
.metric-card.purple  { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }
.metric-card.cyan    { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }
.metric-card.orange  { --metric-bg:rgba(229,9,20,.13) !important; --metric-color:#ff5860 !important; --metric-glow:rgba(229,9,20,.12) !important; }

.purple-icon { color:#ff646b !important; background:rgba(229,9,20,.12) !important; }
.gold-icon   { color:#ff646b !important; background:rgba(229,9,20,.12) !important; }
.blue-icon   { color:#ff646b !important; background:rgba(229,9,20,.12) !important; }

/* ── Calendar purple → red ──────────────────────────────────────── */
.calendar-page .calendar-current:after { background:#E50914 !important; }
.calendar-day.today .calendar-day-number { background:#E50914 !important; }

/* ── Manga reader accents (gold/green) → red ────────────────────── */
.manga-reader .chapter-bar,
.manga-reader .read-badge { background:#E50914 !important; }

/* ── Watch Party green → red ───────────────────────────────────── */
#watchparty .wp-online-dot,
.wp-participant-dot,
.wp-status-online { background:#E50914 !important; }
.wp-status-text, .wp-online-count { color:#FF303A !important; }

/* ── Anime pill tint (orange/purple) → red ─────────────────────── */
.anime-pill, .pill-anime {
  background: rgba(229,9,20,.15) !important;
  color: #FF303A !important;
  border-color: rgba(229,9,20,.35) !important;
}

/* ── Sign-in purple variation → red ─────────────────────────────── */
.signin-variant, .auth-modal .modal-accent {
  background:#E50914 !important;
  color:#fff !important;
}

/* ── Any leftover hard-coded non-red UI colors forced to red ──────
   Targeted at the known violators; scoped to avoid posters/artwork. */
.nav-link, .mm-link, .card-rating, .info-rating, .watch-rating,
.account-verified, .btn-wt, .row-title-bar, .badge-tv, .badge-a {
  color: var(--v32-red-bright, #FF303A) !important;
}

/* ── V32 DMCA / Copyright announcement bar ───────────────────────── */
/* V37 FIX: the bar used to sit at top:0, overlapping the fixed nav
   (#main-nav is also top:0, z-index 1100). Now it is pushed below the
   nav (top: var(--nav-h)) and --v32-dmca-h is actually consumed by the
   body padding below, so content is never hidden behind the bar. */
.v32-dmca-bar {
  position: fixed;
  top: var(--nav-h, 66px);
  left: 0;
  right: 0;
  z-index: 1090;                 /* below the nav (1100) */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(14px, 3.8vw, 52px);
  background: linear-gradient(90deg, rgba(178,7,16,.92), rgba(8,8,8,.96));
  border-bottom: 1px solid var(--v32-border, #292929);
  color: var(--v32-text-2, #B3B3B3);
  font-size: 12px;
  line-height: 1.4;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.v32-dmca-bar.v32-dmca-hide {
  transform: translateY(-110%);
  opacity: 0;
}
/* V37 FIX: consume --v32-dmca-h so page content is pushed below the bar.
   Defaults to 0 when the bar is absent or has been dismissed. The fixed
   nav (#main-nav) is out of flow, so it is unaffected. */
body { padding-top: var(--v32-dmca-h, 0px); }
.v32-dmca-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v32-red-bright, #FF303A);
  box-shadow: 0 0 8px var(--v32-red-bright, #FF303A);
  animation: v32-dmca-pulse 2.4s ease-in-out infinite;
}
@keyframes v32-dmca-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.v32-dmca-text { flex: 1; min-width: 0; }
.v32-dmca-label {
  color: var(--v32-red-bright, #FF303A);
  font-weight: 700;
  letter-spacing: .3px;
}
.v32-dmca-link {
  flex: none;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: color .2s ease, border-color .2s ease;
}
.v32-dmca-link:hover {
  color: var(--v32-red-bright, #FF303A);
  border-color: var(--v32-red-bright, #FF303A);
}
.v32-dmca-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--v32-text-2, #B3B3B3);
  transition: background .2s ease, color .2s ease;
}
.v32-dmca-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.v32-dmca-close:focus-visible {
  outline: 2px solid var(--v32-red-bright, #FF303A);
  outline-offset: 1px;
}
@media (max-width: 640px) {
  .v32-dmca-bar {
    font-size: 11px;
    gap: 8px;
    padding: 7px 14px;
  }
  .v32-dmca-text { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .v32-dmca-dot { animation: none; }
  .v32-dmca-bar { transition: none; }
}

/* ── V32 PWA install button ─────────────────────────────────────── */
.v32-pwa-install-btn {
  color: var(--v32-red-bright, #FF303A);
  border: 1px solid rgba(229, 9, 20, .35);
}
.v32-pwa-install-btn:hover {
  background: rgba(229, 9, 20, .14);
  color: #fff;
}
.v32-pwa-install-btn:focus-visible {
  outline: 2px solid var(--v32-red-bright, #FF303A);
  outline-offset: 2px;
}

/* ═══ V33 — Notifications ════════════════════════════════════════ */
/* Bell badge (mirrors nav-wl-badge styling, red) */
.nav-notif-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--accent,#E50914);color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid var(--bg,#080808);line-height:1}
#notif-bell.nav-icon-btn:hover{color:var(--accent,#E50914)}

/* Notifications panel */
.notif-box{max-width:420px;width:calc(100% - 32px);max-height:80vh;display:flex;flex-direction:column;overflow:hidden}
.notif-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px 12px;border-bottom:1px solid var(--border,#292929)}
.notif-header h3{margin:0;font-size:17px;font-weight:700;color:#fff}
.notif-header-actions{display:flex;gap:8px}
.notif-clear-btn{background:transparent;border:1px solid var(--border,#292929);color:var(--text-dim,#b3b3b3);border-radius:8px;padding:5px 10px;font-size:11px;font-weight:600;cursor:pointer;transition:.2s}
.notif-clear-btn:hover{border-color:var(--accent,#E50914);color:#fff}
.notif-list{flex:1;overflow-y:auto;padding:8px 8px 12px;max-height:50vh}
.notif-item{display:flex;gap:10px;padding:12px;border-radius:10px;cursor:pointer;transition:.15s;border:1px solid transparent}
.notif-item:hover{background:rgba(255,255,255,.04)}
.notif-item.unread{background:rgba(229,9,20,.06)}
.notif-item.unread .notif-dot{background:var(--accent,#E50914)}
.notif-dot{width:8px;height:8px;border-radius:50%;background:var(--text-dim,#777);margin-top:5px;flex:none}
.notif-body{flex:1;min-width:0}
.notif-title{font-size:13px;font-weight:600;color:#fff;line-height:1.3}
.notif-text{font-size:12px;color:var(--text-dim,#b3b3b3);margin-top:2px;line-height:1.4}
.notif-link{display:inline-block;margin-top:6px;font-size:12px;font-weight:600;color:var(--accent,#E50914);text-decoration:none}
.notif-link:hover{text-decoration:underline}
.notif-empty{text-align:center;color:var(--text-dim,#777);font-size:13px;padding:32px 12px}
.notif-footer{padding:12px 20px 18px;border-top:1px solid var(--border,#292929)}
.notif-status{margin:0 0 10px;font-size:12px;color:var(--text-dim,#b3b3b3);line-height:1.4}
.notif-enable-btn{width:100%}

/* Responsive */
@media (max-width:480px){
  .notif-box{max-height:85vh}
  .notif-header-actions{flex-direction:column;align-items:flex-end}
}

/* ═══ V33 — Profiles & Settings ══════════════════════════════════ */
.profiles-box{max-width:440px;width:calc(100% - 32px)}
.profiles-title, .settings-title{margin:0 0 4px;font-size:18px;font-weight:700;color:#fff}
.profiles-desc, .settings-desc{margin:0 0 16px;font-size:12px;color:var(--text-dim,#b3b3b3);line-height:1.4}
.profiles-list, .settings-list{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow-y:auto;padding:4px}
.profiles-empty{text-align:center;color:var(--text-dim,#777);font-size:13px;padding:28px 12px}
.profile-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--border,#292929);border-radius:10px;transition:.15s}
.profile-row:hover{border-color:var(--accent,#E50914)}
.profile-row.active{border-color:var(--accent,#E50914);background:rgba(229,9,20,.06)}
.profile-avatar{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;color:#fff;font-weight:700;font-size:16px;cursor:pointer;border:2px solid transparent}
.profile-row.active .profile-avatar{border-color:#fff}
.profile-name{flex:1;font-size:14px;font-weight:600;color:#fff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-active-tag{font-size:11px;font-weight:700;color:var(--accent,#E50914)}
.profile-switch-btn{background:transparent;border:1px solid var(--border,#292929);color:var(--text-dim,#b3b3b3);border-radius:8px;padding:5px 12px;font-size:11px;font-weight:600;cursor:pointer}
.profile-switch-btn:hover{border-color:var(--accent,#E50914);color:#fff}
.profile-del-btn{background:transparent;border:none;color:var(--text-dim,#777);cursor:pointer;font-size:14px;padding:4px 8px;border-radius:6px}
.profile-del-btn:hover{color:var(--accent,#E50914);background:rgba(229,9,20,.1)}
.profiles-add{display:flex;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#292929)}
.profiles-input{flex:1;background:var(--bg-elev,#151515);border:1px solid var(--border,#292929);border-radius:10px;padding:11px 14px;color:#fff;font-size:14px}
.profiles-input:focus{outline:none;border-color:var(--accent,#E50914)}

.settings-box{max-width:480px;width:calc(100% - 32px)}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 4px;border-bottom:1px solid var(--border,#292929)}
.setting-row:last-child{border-bottom:none}
.setting-info{flex:1;min-width:0}
.setting-label{font-size:14px;font-weight:600;color:#fff}
.setting-desc{font-size:12px;color:var(--text-dim,#b3b3b3);margin-top:2px;line-height:1.35}
.setting-switch{position:relative;display:inline-block;width:44px;height:24px;flex:none}
.setting-switch input{opacity:0;width:0;height:0}
.setting-slider{position:absolute;inset:0;background:#333;border-radius:24px;transition:.2s;cursor:pointer}
.setting-slider:before{content:"";position:absolute;height:18px;width:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.setting-switch input:checked + .setting-slider{background:var(--accent,#E50914)}
.setting-switch input:checked + .setting-slider:before{transform:translateX(20px)}
.settings-box select.filter-select{max-width:150px}

@media (max-width:480px){
  .profiles-box, .settings-box{max-width:100%}
  .setting-row{flex-direction:column;align-items:flex-start;gap:8px}
  .settings-box select.filter-select{max-width:100%}
}
