@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&display=swap');

/* ===================================================
   BIRDPOST — Article Page CSS
   =================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

:root,
[data-theme="light"] {
  --bg: #f6f7f8;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f2f3;
  --border: #e3e5e7;
  --border-soft: #f1f2f3;

  /* Logo variables — Light mode overrides */
  --logo-text-color: #18191c;
  --text-primary: #18191c;
  --text-secondary: #61666d;
  --text-muted: #9499a0;
  --text-white: #18191c;
  /* Accent — Vibrant Yellow (#facc15) */
  --accent: #facc15;
  --accent-hover: #eab308;
  --accent-glow: rgba(250, 204, 21, 0.35);
  --accent-subtle: rgba(250, 204, 21, 0.12);
  --accent-text: #000000;
  --bili-blue: #facc15;
  --bili-pink: #fb7299;
  --red: #ef4444;
  --green: #22c55e;
  --yellow: #eab308;
  --orange: #f97316;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --trans: 0.18s ease;
  --trans-slow: 0.3s ease;

  /* Popover custom styles — Light mode */
  --bg-popover: rgba(255, 255, 255, 0.98);
  --shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.1);
  --popover-border: rgba(0, 0, 0, 0.08);
  --popover-hover: rgba(0, 0, 0, 0.04);
  --popover-unread: rgba(0, 174, 236, 0.08);
}

/* ===== DARK MODE — EXTREME DARK / AMOLED BLACK THEME ===== */
[data-theme="dark"] {
  --bg: #000000;
  --bg-panel: #000000;
  --bg-card: #000000;
  --bg-hover: #141414;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);

  /* Logo variables */
  --logo-text-color: #ffffff;

  --text-primary: #eaedef;
  --text-secondary: #82959b;
  --text-muted: #57656a;
  --text-white: #ffffff;
  /* Accent — Vibrant Yellow (#facc15) */
  --accent: #facc15;
  --accent-hover: #eab308;
  --accent-glow: rgba(250, 204, 21, 0.4);
  --accent-subtle: rgba(250, 204, 21, 0.14);
  --accent-text: #000000;
  --bili-blue: #facc15;
  --bili-pink: #fb7299;

  /* Popover custom styles */
  --bg-popover: rgba(10, 10, 10, 0.98);
  --shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.7);
  --popover-border: rgba(255, 255, 255, 0.08);
  --popover-hover: rgba(255, 255, 255, 0.06);
  --popover-unread: rgba(0, 174, 236, 0.08);
}

/* Light mode header and nav links */
[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

/* Light mode search bar */
[data-theme="light"] .header-search {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .header-search:focus-within {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04) !important;
}

/* ── Header Socials ── */
.header-social-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Threads Ping Toast */
.action-bar-left {
  position: relative;
}

.threads-ping-toast {
  position: sticky !important;
  bottom: 24px !important;
  margin-top: 32px !important;
  left: 0 !important;
  transform: translateY(10px) !important;
  background: #111 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 18px 16px !important;
  border-radius: var(--radius-lg) !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 320px !important;
  cursor: pointer !important;
}

.threads-ping-toast::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 20px;
  border-width: 8px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

[data-theme="light"] .threads-ping-toast {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Glassmorphism Theme Overrides */
.threads-ping-toast.glass-theme {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
}

.threads-ping-toast.glass-theme::after {
  display: none !important;
}

[data-theme="light"] .threads-ping-toast.glass-theme {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #111 !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .threads-ping-toast.glass-theme .threads-ping-text {
  color: rgba(17, 17, 17, 0.8) !important;
}

[data-theme="light"] .threads-ping-toast.glass-theme .threads-ping-text strong {
  color: #111 !important;
}

[data-theme="light"] .threads-ping-toast.glass-theme .threads-ping-close {
  color: rgba(17, 17, 17, 0.6) !important;
}

.threads-ping-toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.threads-ping-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.threads-ping-icon svg {
  width: 13px;
  height: 13px;
}

.threads-ping-text {
  flex: 1;
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

.threads-ping-text strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 1px;
  color: #fff !important;
}

.threads-ping-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  margin-left: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 50%;
}

.threads-ping-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 12px;
}

.header-socials a {
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-socials a svg {
  width: 16px;
  height: 16px;
}

.header-socials a:hover {
  border-color: var(--text-primary);
  background: var(--bg-hover);
  transform: scale(1.05);
}

/* ── Theme Toggle Pill (mirrored from style.css) ── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
  position: relative;
  width: 78px;
  height: 32px;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tt-track,
[data-theme="light"] .tt-track,
[data-theme="dark"] .tt-track,
.theme-toggle .tt-track {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #facc15 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: absolute;
  left: 5px;
  top: 5px;
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

.theme-icon-sun,
.theme-icon-moon,
.theme-toggle .theme-icon-sun,
.theme-toggle .theme-icon-moon,
.theme-toggle:hover .theme-icon-sun,
.theme-toggle:hover .theme-icon-moon,
[data-theme="light"] .theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle .theme-icon-moon {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: #000000 !important;
  line-height: 0;
  flex-shrink: 0;
}

.theme-icon-moon {
  display: block;
}

.theme-icon-sun {
  display: none;
}

.tt-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--trans);
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  left: auto;
}

.theme-toggle:hover .tt-label {
  color: var(--text-primary);
}

.tt-text-dark {
  display: inline;
}

.tt-text-light {
  display: none;
}

[data-theme="light"] .tt-track {
  transform: translateX(44px);
  background: #facc15 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

[data-theme="light"] .theme-icon-moon {
  display: none !important;
}

[data-theme="light"] .theme-icon-sun {
  display: block !important;
}

[data-theme="light"] .tt-label {
  left: 10px;
  right: auto;
}

[data-theme="light"] .tt-text-dark {
  display: none;
}

[data-theme="light"] .tt-text-light {
  display: inline;
}

/* ===================================================
   HEADER PILL CAPSULE BUTTONS (Yellow Background & Black Text with Left Icon)
   =================================================== */
.header-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--bg-card, #181b1e);
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 50px;
  height: 32px;
  padding: 0 13px 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  flex-shrink: 0;
  box-sizing: border-box;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-pill-btn:hover {
  background: var(--bg-hover, #22262b);
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.header-pill-btn:active {
  transform: translateY(0);
}

.header-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  flex-shrink: 0;
  line-height: 0;
}

.header-pill-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.header-pill-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff) !important;
  transition: color var(--trans);
  letter-spacing: 0.01em;
  display: inline-block;
  line-height: 1;
}

.header-pill-btn:hover .header-pill-label {
  color: #ffffff !important;
}

.header-pill-btn:hover .header-pill-icon {
  color: #ffffff;
}

.header-pill-btn.active {
  background: var(--bg-hover, rgba(255, 255, 255, 0.12));
  border-color: var(--accent, #00aeec);
  box-shadow: 0 0 0 2px var(--accent-glow, rgba(0, 174, 236, 0.3));
}

.header-pill-btn.active .header-pill-label {
  color: #ffffff !important;
  font-weight: 800;
}

.header-pill-track {
  display: none !important;
}

.header-pill-btn.premium-pill {
  background: var(--bg-card, #181b1e);
  border: 1.5px solid rgba(245, 176, 65, 0.35);
  color: var(--text-primary, #ffffff);
}

.header-pill-btn.premium-pill:hover {
  background: rgba(245, 176, 65, 0.08);
  border-color: #f5b041;
  box-shadow: 0 0 0 3px rgba(245, 176, 65, 0.2);
}

.header-pill-btn.premium-pill .header-pill-icon,
.header-pill-btn.premium-pill .header-pill-icon svg {
  color: #f5b041;
  fill: #f5b041;
}

.header-pill-btn.premium-pill .header-pill-label {
  color: var(--text-primary, #ffffff) !important;
}

/* Post Pill (Legacy fallback) */
.header-pill-btn.post-pill {
  background: var(--bg-card, #181b1e) !important;
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  color: var(--text-primary, #ffffff) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-pill-btn.post-pill .header-pill-label {
  color: var(--text-primary, #ffffff) !important;
  font-weight: 700;
}

.header-pill-btn.post-pill .header-pill-icon {
  color: var(--text-secondary, #94a3b8) !important;
}

.header-pill-btn.post-pill .header-pill-icon svg {
  fill: currentColor !important;
}

.header-pill-btn.post-pill:hover {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25)) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
}

.header-pill-btn.post-pill:hover .header-pill-label {
  color: #ffffff !important;
}

.header-pill-btn.post-pill:hover .header-pill-icon {
  color: #ffffff !important;
}

.header-pill-btn.post-pill:active {
  transform: translateY(0);
}

.header-pill-btn.post-pill.active {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.35)) !important;
}

/* ── Header Profile Icon Button & Popup ── */
.header-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ===================================================
   HEADER NOTIFICATION BELL & BADGE (Matching Image 2)
   =================================================== */

.header-notifications-wrap {
  position: relative;
  display: none;
  /* Only visible to signed-in or logged-in users */
  align-items: center;
}

.header-notifications-wrap.logged-in {
  display: inline-flex;
}

.header-bell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.header-bell-btn:hover,
.header-bell-btn:focus,
.header-bell-btn:active,
.header-bell-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  transform: scale(1.05);
}

.header-bell-btn .header-bell-icon,
.header-bell-btn:hover .header-bell-icon,
.header-bell-btn:focus .header-bell-icon,
.header-bell-btn:active .header-bell-icon,
.header-bell-btn.active .header-bell-icon {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

[data-theme="light"] .header-bell-btn {
  color: #1e293b;
}

[data-theme="light"] .header-bell-btn:hover,
[data-theme="light"] .header-bell-btn:focus,
[data-theme="light"] .header-bell-btn:active,
[data-theme="light"] .header-bell-btn.active {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a !important;
}

[data-theme="light"] .header-bell-btn .header-bell-icon,
[data-theme="light"] .header-bell-btn.active .header-bell-icon {
  stroke: #0f172a !important;
}

.header-bell-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}

.header-bell-btn:hover .header-bell-icon {
  animation: bellWiggle 0.4s ease-in-out;
}

@keyframes bellWiggle {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(12deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(6deg);
  }

  100% {
    transform: rotate(0);
  }
}

/* Red 9+ Badge Matching Image 2 */
.header-bell-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 2px solid #0b0c10;
  pointer-events: none;
  font-family: inherit;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

[data-theme="light"] .header-bell-badge {
  border-color: #ffffff;
}

.header-bell-badge.badge-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Notification Popup Dropdown - Modern Redesign */
.header-notifications-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: -20px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: rgba(18, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-origin: top right;
  animation: notifPopupSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifPopupSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme="light"] .header-notifications-popup {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.notif-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .notif-popup-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.015);
}

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

.notif-popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

[data-theme="light"] .notif-popup-title {
  color: #0f172a;
}

.notif-popup-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.22);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

[data-theme="light"] .notif-popup-count-pill {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.notif-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
  animation: notifDotPulse 2s infinite ease-in-out;
}

@keyframes notifDotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.notif-mark-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.notif-mark-all-btn:hover {
  color: #00aeec;
  background: rgba(0, 174, 236, 0.08);
}

[data-theme="light"] .notif-mark-all-btn {
  color: #64748b;
}

[data-theme="light"] .notif-mark-all-btn:hover {
  color: #009cd3;
  background: rgba(0, 156, 211, 0.08);
}

.notif-popup-list {
  max-height: 350px;
  overflow-y: auto;
  padding: 6px 0;
}

.notif-popup-list::-webkit-scrollbar {
  width: 4px;
}

.notif-popup-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  margin: 2px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .notif-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.notif-item.unread {
  background: rgba(0, 174, 236, 0.06);
}

.notif-item.unread:hover {
  background: rgba(0, 174, 236, 0.1);
}

[data-theme="light"] .notif-item.unread {
  background: rgba(0, 174, 236, 0.05);
}

[data-theme="light"] .notif-item.unread:hover {
  background: rgba(0, 174, 236, 0.09);
}

/* Avatar & Badges */
.notif-avatar-col {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.notif-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: block;
}

[data-theme="light"] .notif-avatar {
  border-color: rgba(0, 0, 0, 0.08);
}

.notif-system-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-system-avatar.badge-breaking {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.notif-badge-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 2px solid #12141a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .notif-badge-icon {
  border-color: #ffffff;
}

.notif-badge-icon.badge-reply {
  background: linear-gradient(135deg, #3b82f6, #00aeec);
}

.notif-badge-icon.badge-upvote {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
}

.notif-badge-icon.badge-alert {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notif-badge-icon.badge-award {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}

/* Content Column */
.notif-content-col {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.notif-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.38;
  word-break: break-word;
}

[data-theme="light"] .notif-text {
  color: #334155;
}

.notif-actor {
  font-weight: 700;
  color: #ffffff;
}

[data-theme="light"] .notif-actor {
  color: #0f172a;
}

.notif-tag {
  font-weight: 700;
  color: #f87171;
}

[data-theme="light"] .notif-tag {
  color: #dc2626;
}

.notif-target {
  color: #f1f5f9;
  font-weight: 500;
}

[data-theme="light"] .notif-target {
  color: #1e293b;
}

.notif-highlight {
  color: #c084fc;
  font-weight: 600;
}

[data-theme="light"] .notif-highlight {
  color: #9333ea;
}

.notif-time {
  font-size: 0.70rem;
  color: #64748b;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

[data-theme="light"] .notif-time {
  color: #94a3b8;
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00aeec;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 174, 236, 0.7);
}

/* Footer */
.notif-popup-footer {
  padding: 11px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .notif-popup-footer {
  border-top-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
}

.notif-view-all-link {
  font-size: 0.80rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, gap 0.15s ease;
}

.notif-view-all-link:hover {
  color: #00aeec;
  gap: 8px;
}

[data-theme="light"] .notif-view-all-link {
  color: #64748b;
}

[data-theme="light"] .notif-view-all-link:hover {
  color: #009cd3;
}

.notif-view-all-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.notif-view-all-link:hover {
  color: #00aeec;
}

/* ===================================================
   HEADER PROFILE BUTTON WITH ALWAYS ORANGE RING (Image 1)
   =================================================== */

.header-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: #cfd4dc !important;
  /* Neutral grey from Image 1 */
  border: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.header-profile-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .header-profile-btn {
  background: #cbd5e1 !important;
  border: none !important;
}

.header-profile-btn .profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cfd4dc;
}

.header-profile-btn .profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-profile-btn .profile-avatar svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  width: 22px;
  height: 22px;
}

/* Image 3 adjustment: Notification bell & profile avatar on desktop to little right */
@media (min-width: 769px) {
  .header-notifications-wrap,
  #headerNotificationsWrap {
    margin-left: 10px !important;
  }
}

.header-account-popup {
  top: calc(100% + 8px);
  right: 0;
  left: auto !important;
  width: 240px;
  min-width: 220px;
}

.account-popup-header-user {
  padding: 12px 14px 10px;
}

.account-popup-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-popup-user-handle {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

/* ── Sidebar Post Pill Button ── */
.btn-sidebar-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  background: var(--bg-card, #181b1e) !important;
  color: var(--text-primary, #ffffff) !important;
  border: 1.5px solid var(--border, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  margin-top: 4px;
  box-sizing: border-box;
  user-select: none;
}

.btn-sidebar-post:hover {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border-hover, rgba(255, 255, 255, 0.25)) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-sidebar-post:active {
  transform: translateY(0);
}

.sidebar-post-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  line-height: 0;
  transition: color var(--trans);
}

.sidebar-post-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.sidebar-post-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  transition: color var(--trans);
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-sidebar-post:hover .sidebar-post-label {
  color: #ffffff !important;
}

.btn-sidebar-post:hover .sidebar-post-icon {
  color: #ffffff !important;
}

[data-theme="light"] .btn-sidebar-post {
  background: #ffffff !important;
  border: 1.5px solid #d4d4d8 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-sidebar-post .sidebar-post-label {
  color: #0f172a !important;
}

[data-theme="light"] .btn-sidebar-post .sidebar-post-icon {
  color: #64748b !important;
}

[data-theme="light"] .btn-sidebar-post:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .btn-sidebar-post:hover .sidebar-post-label {
  color: #0f172a !important;
}

[data-theme="light"] .btn-sidebar-post:hover .sidebar-post-icon {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn {
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-pill-btn .header-pill-label {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn .header-pill-icon {
  color: #475569;
}

[data-theme="light"] .header-pill-btn:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-pill-btn:hover .header-pill-label {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn.premium-pill {
  background: #ffffff;
  border: 1.5px solid #d4d4d8;
}

[data-theme="light"] .header-pill-btn.premium-pill .header-pill-label {
  color: #0f172a !important;
}

[data-theme="light"] .header-pill-btn.post-pill {
  background: #00aeec !important;
  border: 1.5px solid #00aeec !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .header-pill-btn.post-pill:hover {
  background: #009cd3 !important;
  border-color: #009cd3 !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 0.4);
}

[data-theme="light"] .header-pill-btn.post-pill .header-pill-label {
  color: #ffffff !important;
}

[data-theme="light"] .header-pill-btn.post-pill .header-pill-icon svg {
  fill: #ffffff !important;
}

[data-theme="light"] .header-profile-btn {
  background: #cbd5e1 !important;
  border: none !important;
}

[data-theme="light"] .header-profile-btn .profile-avatar svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

@media (max-width: 1200px) {
  .header-pill-btn {
    padding: 0 10px 0 9px;
    gap: 5px;
    font-size: 0.74rem;
  }

  .header-pill-icon svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 992px) {
  .header-pill-btn {
    padding: 0 8px 0 7px;
    gap: 4px;
    font-size: 0.72rem;
  }
}



[data-theme="light"] .floating-bottom-bar {
  background: rgba(255, 255, 255, 0.96);
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: none !important;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0 !important;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

input,
textarea {
  font-family: var(--font);
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===================================================
   TOP HEADER
   =================================================== */

.top-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

[data-theme="light"] .top-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .top-header {
  background: #000000;
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 100%;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
}

.header-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: transform var(--trans) !important;
  text-decoration: none !important;
}

.header-logo:hover {
  transform: scale(1.02) !important;
  box-shadow: none !important;
}

.header-logo-icon {
  display: none !important;
}

.header-logo-bird {
  display: none !important;
}

/* Circular bird logo before website name (matching Image 1 & Image 3) */
.header-logo-bird-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent, #00aeec);
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-logo:hover .header-logo-bird-circle {
  transform: rotate(-8deg) scale(1.06);
}

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

.header-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 2.2rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.05em !important;
  color: var(--logo-text-color) !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-transform: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--logo-text-color) !important;
  -webkit-text-stroke: 0 !important;
  background-clip: unset !important;
  text-shadow: none !important;
  white-space: nowrap;
}

.logo-exclamation {
  display: inline-block !important;
  transform: rotate(12deg) !important;
  margin-left: 2px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Brand name + category name hierarchy */
.header-logo-brand {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--logo-text-color);
  -webkit-text-fill-color: var(--logo-text-color);
}

.header-logo-sep {
  display: inline-block;
  margin: 0 8px;
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.25;
  color: var(--logo-text-color);
  -webkit-text-fill-color: var(--logo-text-color);
  vertical-align: middle;
}

.header-logo-category {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  vertical-align: middle;
  opacity: 0.92;
}

/* Search */
.header-search {
  position: relative;
  flex: 0 1 520px;
  width: 520px;
  max-width: 560px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141416;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 6px 4px 14px;
  transition: all var(--trans);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.header-search:hover {
  border-color: #ffffff !important;
}

.header-search:focus-within {
  background: #18181e;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .header-search,
html[data-theme="dark"] .header-search {
  background: #141416 !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
}

[data-theme="dark"] .header-search:focus-within,
html[data-theme="dark"] .header-search:focus-within {
  background: #18181e !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .header-search,
html[data-theme="light"] .header-search {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .header-search:focus-within,
html[data-theme="light"] .header-search:focus-within {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15) !important;
}

.header-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

[data-theme="light"] .header-search-icon {
  color: #71717a;
}

.header-search input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: left;
  padding: 6px 4px;
  font-family: var(--font);
}

.header-search input::placeholder {
  color: #71717a;
}

.header-search-clear {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #2a2e33;
  color: #a1a1aa;
  border: none;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.header-search-clear:hover {
  background: #3f444a;
  color: #ffffff;
}

[data-theme="light"] .header-search-clear {
  background: #e4e4e7;
  color: #52525b;
}

[data-theme="light"] .header-search-clear:hover {
  background: #d4d4d8;
  color: #18181b;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  border-radius: 9999px !important;
  padding: 7px 18px !important;
  height: auto !important;
  width: auto !important;
  cursor: pointer;
  border: none !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.28);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  font-family: inherit;
}

.header-search-btn:hover {
  background: #eab308 !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
  transform: translateY(-0.5px);
}

.header-search-btn:active {
  transform: scale(0.97);
}

.header-search-btn-icon {
  width: 15px;
  height: 15px;
}

.header-search-kbd {
  display: none !important;
}

.header-search-kbd {
  display: none !important;
}

/* Right actions */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 0;
}

/* Header search icon button (hidden on desktop where center search bar is visible) */
.header-search-icon-btn {
  display: none;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--trans), background var(--trans);
}

.social-icon-link:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}

.header-signin {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--trans);
}

.header-signin:hover {
  background: var(--bg-hover);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff !important;
  background: var(--accent, #00aeec);
  border: 1.5px solid var(--accent, #00aeec);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.header-cta:hover {
  background: var(--accent-hover, #009cd3);
  border-color: var(--accent-hover, #009cd3);
  color: #ffffff !important;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.header-cta:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px var(--accent-glow);
}

.header-mobile-menu {
  display: none;
  margin-left: auto;
  color: var(--text-primary);
}

/* Nav */
.header-nav {
  border-top: 1px solid var(--border-soft);
  padding: 4px 0 8px 0;
}

.header-nav-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 0 24px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  transition: all var(--trans);
  border-radius: var(--radius-pill);
  height: 34px;
  box-sizing: border-box;
  margin: 0 4px;
  border: none !important;
  background: var(--bg-hover) !important;
  box-shadow: none !important;
}

.header-nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--border-soft) !important;
  transform: translateY(-1px);
}

.header-nav-link:active {
  transform: scale(0.96);
}

.header-nav-link.active {
  background: var(--text-primary) !important;
  color: var(--bg) !important;
}

/* Remove special styling to make all tabs uniform */
.header-nav-special {
  margin: 0 4px;
}

/* ===================================================
   AD BANNER TOP
   =================================================== */

.ad-banner-top {
  display: none !important;
}

.header-nav {
  display: none !important;
}

.ad-banner-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 20px;
  /* Keep some padding so the content doesn't hit the absolute edges */
}

.ad-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ad-placeholder-top {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 14px 20px;
  overflow: hidden;
}

.ad-mock {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ad-mock-icon {
  font-size: 2rem;
}

.ad-mock-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-mock-text strong {
  font-size: 0.95rem;
  color: var(--text-white);
  letter-spacing: 0.02em;
}

.ad-mock-text span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ad-mock-pills {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.ad-mock-pill {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}

/* ===================================================
   ARTICLE LAYOUT — 3-column
   =================================================== */

.article-layout {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 340px;
  grid-template-areas: "left main right";
  gap: 0;
  min-height: calc(100vh - 64px);
}

@media (min-width: 1440px) {
  .article-layout {
    grid-template-columns: 270px minmax(0, 1fr) 350px;
    grid-template-areas: "left main right";
  }
}

/* ===================================================
   MAIN LEFT SIDEBAR (Matching Home Page)
   =================================================== */

.sidebar-left,
.article-sidebar-left {
  grid-area: left;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden !important;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  width: 270px;
  box-sizing: border-box;
  padding: 0 !important;
}

body[style*="overflow: hidden"] .sidebar-left,
body[style*="overflow:hidden"] .sidebar-left,
body[style*="overflow: hidden"] .article-sidebar-left,
body[style*="overflow:hidden"] .article-sidebar-left {
  top: 0 !important;
}

.sidebar-left .logo-wrap {
  display: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 8px 12px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-inner::-webkit-scrollbar {
  display: none;
}

/* Sidebar Top Actions (Subscribe + Account) */
.sidebar-top-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 2px 3px;
}

.btn-primary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: var(--accent, #00aeec);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  box-shadow: 0 2px 8px var(--accent-glow);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-full:hover {
  background: var(--accent-hover, #009cd3);
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary-full:active {
  transform: scale(0.96);
  box-shadow: 0 1px 4px var(--accent-glow);
}

/* Sidebar Top Slider Button - Bird of the Week (Image 4 Pill Style) */
.btn-primary-full.sidebar-slider-btn,
.btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 9999px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 3px 16px 3px 5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
  text-decoration: none !important;
}

[data-theme="light"] .btn-primary-full.sidebar-slider-btn,
[data-theme="light"] .btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.2), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .btn-primary-full.sidebar-slider-btn,
[data-theme="dark"] .btn-primary-full.sidebar-slider-btn.only-birdweek {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 4px 22px rgba(250, 204, 21, 0.25), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

.btn-primary-full.sidebar-slider-btn:hover,
.btn-primary-full.sidebar-slider-btn.only-birdweek:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.26), 0 0 16px rgba(250, 204, 21, 0.3) !important;
  background: #f8fafc !important;
}

.btn-primary-full.sidebar-slider-btn:active,
.btn-primary-full.sidebar-slider-btn.only-birdweek:active {
  transform: scale(0.98) !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-track,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-track {
  height: 100% !important;
  width: 100% !important;
  transform: translateY(0) !important;
  transition: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-slide,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-slide {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  gap: 12px !important;
  color: #0f172a !important;
  background: transparent !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-icon-circle,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #facc15 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #000000 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin-left: 2px !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-icon-circle svg,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle svg {
  width: 15px !important;
  height: 15px !important;
  color: #000000 !important;
  stroke: #000000 !important;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-primary-full.sidebar-slider-btn:hover .sidebar-slider-icon-circle svg,
.btn-primary-full.sidebar-slider-btn.only-birdweek:hover .sidebar-slider-icon-circle svg {
  transform: rotate(-16deg) scale(1.15) !important;
}

.btn-primary-full.sidebar-slider-btn .sidebar-slider-label,
.btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-label {
  color: #0f172a !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: -0.015em !important;
  white-space: nowrap !important;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: background var(--trans);
}

.sidebar-profile:hover {
  background: var(--bg-hover);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-fun, linear-gradient(135deg, #a855f7, #ec4899));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-white, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .profile-name {
  color: var(--text-primary, #0f172a);
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.more-btn {
  color: var(--text-secondary);
  padding: 4px;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--trans), background var(--trans);
}

.more-btn:hover {
  color: var(--text-white);
  background: var(--bg-hover);
}

/* ===================================================
   SIDEBAR ACCOUNT POPUP MENU
   =================================================== */
.sidebar-profile-wrap {
  position: relative;
  width: 100%;
}

.sidebar-profile.menu-open {
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
}

.sidebar-profile.menu-open .more-btn {
  color: var(--text-white, #ffffff);
}

.account-popup-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 6px;
  z-index: 1200;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-popup-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.account-popup-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-popup-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 5px 6px;
}

.account-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-white, #ffffff);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  user-select: none;
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.account-popup-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-popup-item:active {
  transform: scale(0.98);
}

.account-popup-item.bold-item .account-popup-label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text-white, #ffffff);
}

.account-popup-item.normal-item .account-popup-label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary, #d4d4d8);
}

.account-popup-item:hover.normal-item .account-popup-label {
  color: var(--text-white, #ffffff);
}

.account-popup-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.14);
}

.account-popup-item.logout-item:hover .account-popup-label,
.account-popup-item.logout-item:hover .account-popup-icon {
  color: #ef4444;
}

.account-popup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #a1a1aa;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.account-popup-item:hover .account-popup-icon {
  color: #ffffff;
}

/* Light Theme Styling */
[data-theme="light"] .account-popup-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .account-popup-divider {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .account-popup-item {
  color: #18181b;
}

[data-theme="light"] .account-popup-item:hover {
  background: #f4f4f5;
}

[data-theme="light"] .account-popup-item.bold-item .account-popup-label {
  color: #18181b;
}

[data-theme="light"] .account-popup-item.normal-item .account-popup-label {
  color: #52525b;
}

[data-theme="light"] .account-popup-item:hover.normal-item .account-popup-label {
  color: #09090b;
}

[data-theme="light"] .account-popup-icon {
  color: #71717a;
}

[data-theme="light"] .account-popup-item:hover .account-popup-icon {
  color: #18181b;
}

[data-theme="light"] .account-popup-item.logout-item:hover {
  background: #fef2f2;
}

[data-theme="light"] .account-popup-item.logout-item:hover .account-popup-label,
[data-theme="light"] .account-popup-item.logout-item:hover .account-popup-icon {
  color: #dc2626;
}

/* Sidebar Embedded Auth Panel */
.sidebar-auth-panel {
  padding: 6px 6px 4px;
}

.sidebar-auth-welcome {
  padding: 10px 8px 8px;
  text-align: center;
}

.sidebar-auth-welcome-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

[data-theme="light"] .sidebar-auth-welcome-title {
  color: #09090b;
}

.sidebar-auth-welcome-sub {
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-secondary, #a1a1aa);
  margin-bottom: 12px;
}

.sidebar-auth-welcome-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-popup-primary-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.25);
}

.btn-popup-primary-auth:hover {
  background: #0098d0;
  transform: translateY(-1px);
}

.btn-popup-secondary-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #e4e4e7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .btn-popup-secondary-auth {
  background: #f4f4f5;
  color: #18181b;
  border-color: #e4e4e7;
}

.btn-popup-secondary-auth:hover {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-popup-secondary-auth:hover {
  background: #e4e4e7;
}

.sidebar-auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

[data-theme="light"] .sidebar-auth-tabs {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.sidebar-auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary, #a1a1aa);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
  text-align: center;
}

.sidebar-auth-tab:hover {
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .sidebar-auth-tab:hover {
  color: #18181b;
}

.sidebar-auth-tab.active {
  color: #ff5722;
}

.sidebar-auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #ff5722;
  border-radius: 2px;
}

.sidebar-auth-msg {
  display: none;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 6px 9px;
  border-radius: 8px;
  margin-bottom: 8px;
  word-break: break-word;
}

.sidebar-auth-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.sidebar-auth-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.sidebar-auth-form {
  display: none;
  flex-direction: column;
  gap: 7px;
}

.sidebar-auth-form.active {
  display: flex;
}

.sidebar-auth-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-auth-field label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #888);
}

.sidebar-auth-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .sidebar-auth-field input {
  background: #f4f4f5;
  border-color: rgba(0, 0, 0, 0.12);
  color: #18181b;
}

.sidebar-auth-field input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

[data-theme="light"] .sidebar-auth-field input:focus {
  background: #ffffff;
}

.sidebar-auth-submit {
  margin-top: 3px;
  background: linear-gradient(135deg, #ff5722, #ff7043);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-auth-submit:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.sidebar-auth-submit:active {
  transform: scale(0.98);
}

.sidebar-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.sidebar-auth-switch {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-secondary, #888);
  margin: 3px 0 1px;
}

.sidebar-auth-switch a {
  color: #ff5722;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-auth-switch a:hover {
  text-decoration: underline;
}

.sidebar-user-panel {
  display: none;
}

/* Report Problems Modal */
.report-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.report-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.report-modal-card {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.report-modal-backdrop.show .report-modal-card {
  transform: scale(1);
}

.report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.report-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.report-modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.report-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.report-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-modal-body p {
  margin: 0;
  font-size: 0.88rem;
  color: #a1a1aa;
  line-height: 1.45;
}

.report-modal-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.report-modal-textarea:focus {
  border-color: #00aeec;
  box-shadow: 0 0 0 2px rgba(0, 174, 236, 0.2);
}

.report-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.report-btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.report-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

.report-btn-submit {
  background: #00aeec;
  border: 1px solid #00aeec;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.report-btn-submit:hover {
  background: #009cd3;
  transform: translateY(-1px);
}

[data-theme="light"] .report-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .report-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .report-modal-header h3 {
  color: #09090b;
}

[data-theme="light"] .report-modal-close {
  color: #71717a;
}

[data-theme="light"] .report-modal-close:hover {
  color: #09090b;
  background: #f4f4f5;
}

[data-theme="light"] .report-modal-body p {
  color: #52525b;
}

[data-theme="light"] .report-modal-textarea {
  background: #f4f4f5;
  border-color: #d4d4d8;
  color: #09090b;
}

[data-theme="light"] .report-modal-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .report-btn-cancel {
  border-color: #d4d4d8;
  color: #09090b;
}

[data-theme="light"] .report-btn-cancel:hover {
  background: #f4f4f5;
}

.nav-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 6px;
}

/* Nav */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Two-column nav grid */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 2px 0;
}

.nav-grid-item {
  display: flex;
  align-items: center;
  gap: 6.5px;
  padding: 6.5px 8.5px;
  border-radius: var(--radius-md);
  color: var(--text-primary) !important;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all var(--trans);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
}

.nav-grid-item:hover {
  background: var(--bg-hover);
  color: var(--text-white) !important;
  transform: translateY(-1px);
}

/* Light mode nav-grid-item hover, focus & click: Crisp dark text & icons (Image 2) */
[data-theme="light"] .nav-grid-item:hover,
[data-theme="light"] .nav-grid-item:focus-visible,
[data-theme="light"] .sidebar-nav .nav-grid-item:hover,
[data-theme="light"] .sidebar-nav .nav-grid-item:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
  transform: translateY(-1px);
}

[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg,
[data-theme="light"] .sidebar-nav .nav-grid-item:hover .nav-grid-icon svg,
[data-theme="light"] .sidebar-nav .nav-grid-item:focus-visible .nav-grid-icon svg {
  fill: #0f1419 !important;
}

[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item:hover .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item:focus-visible .nav-grid-icon svg[fill="none"] * {
  stroke: #0f1419 !important;
  fill: none !important;
}

/* Active tab → VIBRANT YELLOW PILL WITH BLACK TEXT (Image 1 Spec) */
.nav-grid-item.active,
.nav-grid-item.active:hover,
.nav-grid-item.active:focus,
.nav-grid-item.active:active,
[data-theme="light"] .nav-grid-item.active,
[data-theme="light"] .nav-grid-item.active:hover,
[data-theme="light"] .nav-grid-item.active:focus,
[data-theme="light"] .nav-grid-item.active:active,
.sidebar-nav .nav-grid-item.active,
.sidebar-nav .nav-grid-item.active:hover {
  color: #000000 !important;
  font-weight: 800 !important;
  background: #facc15 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
  opacity: 1 !important;
}

.nav-grid-item.active .nav-grid-icon svg,
.nav-grid-item.active:hover .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg,
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg {
  fill: #000000 !important;
}

/* Ensure stroke-based outline icons (e.g. Geopolitics globe, Social Media) stay unfilled when active */
.nav-grid-item.active .nav-grid-icon svg[fill="none"],
.nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
.nav-grid-item.active:hover .nav-grid-icon svg[fill="none"],
.nav-grid-item.active:hover .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg[fill="none"],
[data-theme="light"] .nav-grid-item.active:hover .nav-grid-icon svg[fill="none"] * {
  fill: none !important;
  stroke: #000000 !important;
}

.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg circle,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg line,
.nav-grid-item[data-category="geopolitics"] .nav-grid-icon svg path,
.nav-grid-item[data-category="news"] .nav-grid-icon svg,
.nav-grid-item[data-category="news"] .nav-grid-icon svg path {
  fill: none !important;
}

.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg circle,
.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg line,
.nav-grid-item.active[data-category="geopolitics"] .nav-grid-icon svg path,
.nav-grid-item.active[data-category="news"] .nav-grid-icon svg,
.nav-grid-item.active[data-category="news"] .nav-grid-icon svg path {
  fill: none !important;
  stroke: #000000 !important;
}

.nav-grid-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-grid-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill var(--trans);
}

.nav-grid-label {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Premium Tab — GOLD STYLE ── */
.nav-grid-item.premium-tab {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.1), rgba(0, 156, 211, 0.08));
  border: 1px solid rgba(0, 174, 236, 0.25);
  color: #00aeec !important;
  position: relative;
  overflow: hidden;
  transition: background var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.nav-grid-item.premium-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 236, 0.12), transparent);
  animation: premiumShimmer 2.5s infinite;
}

@keyframes premiumShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.nav-grid-item.premium-tab:hover {
  background: linear-gradient(135deg, rgba(0, 174, 236, 0.2), rgba(0, 156, 211, 0.15));
  border-color: rgba(0, 174, 236, 0.4);
  color: #fd765a !important;
  box-shadow: 0 2px 12px rgba(0, 174, 236, 0.15);
  transform: translateY(-2px);
}

.nav-grid-item.premium-tab:active {
  transform: scale(0.94) !important;
  box-shadow: 0 1px 4px rgba(0, 174, 236, 0.1) !important;
}

.nav-grid-item.premium-tab .nav-grid-icon svg {
  fill: #00aeec !important;
}

.nav-grid-item.premium-tab.active {
  background: linear-gradient(135deg, #009cd3, #009cd3) !important;
  border-color: #009cd3 !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 156, 211, 0.4) !important;
}

.nav-grid-item.premium-tab.active .nav-grid-icon svg {
  fill: #fff !important;
}

/* Company Details Collapsible Section */
.company-details-section {
  margin: 0;
}

.company-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--trans), color var(--trans);
  cursor: pointer;
  background: none;
  border: none;
}

.company-details-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.company-toggle-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-toggle-arrow {
  transition: transform var(--trans-slow);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.company-details-section.open .company-toggle-arrow {
  transform: rotate(180deg);
}

.company-details-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}

.company-details-section.open .company-details-content {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  opacity: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 400;
  transition: background var(--trans), color var(--trans);
  text-decoration: none;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.nav-item.compact {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.nav-item.compact .nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-item.compact.sub-link {
  padding-left: 50px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nav-item.compact.sub-link:hover {
  color: var(--text-white);
}

/* Locked Navigation Items (compact list & 2-column grid items) */
.nav-item.nav-item-locked,
.nav-grid-item.nav-item-locked {
  cursor: pointer;
  position: relative;
  opacity: 0.85;
  transition: all var(--trans, 0.2s ease);
}

.nav-item.nav-item-locked:hover,
.nav-grid-item.nav-item-locked:hover {
  opacity: 1;
  background: var(--bg-hover, rgba(255, 255, 255, 0.05));
  color: var(--text-white, #ffffff);
}

.nav-lock-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  opacity: 0.85;
  flex-shrink: 0;
  transition: all var(--trans, 0.2s ease);
}

.nav-lock-badge svg {
  width: 13px;
  height: 13px;
}

.nav-item.nav-item-locked:hover .nav-lock-badge,
.nav-grid-item.nav-item-locked:hover .nav-lock-badge {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Header pill locked */
.header-pill-btn.header-pill-locked {
  cursor: pointer;
  opacity: 0.88;
}

.header-pill-btn.header-pill-locked .header-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  color: var(--text-secondary, #94a3b8);
  transition: all var(--trans, 0.2s ease);
}

.header-pill-btn.header-pill-locked:hover .header-lock-badge {
  color: #f59e0b;
  transform: scale(1.15);
}

/* Header nav link locked */
.header-nav-link.nav-link-locked {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-nav-link.nav-link-locked .nav-lock-badge {
  margin-left: 2px;
}

.header-nav-link.nav-link-locked:hover .nav-lock-badge {
  color: #f59e0b;
}

/* Newsletter tab locked styles */
.newsletter-inline-tab.newsletter-tab-locked {
  cursor: pointer;
}

.newsletter-tab-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: #f59e0b;
  vertical-align: middle;
}

.newsletter-tab-subscribe-btn.btn-locked {
  background: #334155 !important;
  color: #f1f5f9 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.newsletter-tab-subscribe-btn.btn-locked:hover {
  background: #1e293b !important;
  color: #f59e0b !important;
  transform: scale(1.03);
}

/* Floating Toast Notification Box (Image 2 Spec) */
.toast-notification-box {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  background: #0f1419 !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transform: translateX(-50%) translateY(20px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100004 !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
}

.toast-notification-box.visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.toast-notification-box .toast-icon,
.toast-icon {
  display: none !important;
}

.toast-notification-box .toast-message,
.toast-notification-box .birdpost-toast-text {
  flex: 1 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
}

.toast-notification-box .birdpost-toast-close,
.birdpost-toast-close {
  background: none !important;
  border: none !important;
  color: #71767b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.toast-notification-box .birdpost-toast-close:hover,
.birdpost-toast-close:hover {
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-label {
  font-size: 0.92rem;
  white-space: nowrap;
}

/* Follow Us — Social Media */
.follow-us-section {
  padding: 2px 0 4px;
}

.follow-us-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px 8px;
}

.follow-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 2px 0;
}

.follow-us-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary) !important;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--trans);
  cursor: pointer;
  text-decoration: none;
}

.follow-us-item:hover {
  background: var(--bg-hover);
  border-color: transparent;
  color: var(--text-white) !important;
  transform: translateY(-1px);
}

.follow-us-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  transition: transform var(--trans);
}

.follow-us-item:hover .follow-us-icon {
  transform: scale(1.1);
}

.follow-us-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.follow-us-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit !important;
  white-space: nowrap;
}

/* ===================================================
   WELCOME & CONTRIBUTE BANNERS (Left Sidebar Cards)
   - Welcome: shown to guests
   - Contribute ("BREAK THE CAGE"): shown to logged-in users
   =================================================== */

.sidebar-welcome-banner {
  position: relative;
  margin: 16px 0 10px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fed754;
  border: 1px solid #f5c518;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.sidebar-welcome-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Inspired Bird Mascot Overlay (Images 1 & 2: Sleepy Bed Bird & Beanbag Tablet Bird) */
.welcome-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('bird_chill_overlay.webp');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.sidebar-welcome-banner:hover .welcome-banner-bg {
  opacity: 0.75;
  transform: scale(1.03);
}

/* Soft Yellow Contrast Gradient to make text razor-sharp while showcasing the characters */
.welcome-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(254, 215, 84, 0.92) 0%, rgba(254, 215, 84, 0.75) 45%, rgba(254, 215, 84, 0.35) 100%);
  pointer-events: none;
}

.welcome-banner-inner {
  position: relative;
  z-index: 2;
  padding: 16px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Star is removed */
.welcome-banner-star {
  display: none !important;
}

/* Headline: Welcome to Birdpost (Bigger & Bolder) + posts from the internet (Smaller) */
.welcome-banner-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 14px 0;
}

.welcome-banner-main {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #000000 !important;
  line-height: 1.18;
  letter-spacing: -0.4px;
}

.welcome-banner-sub {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Backward-compatibility */
.welcome-banner-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Call-to-action button: BECOME A BIRDER (Pill Shape matching 2nd/3rd Image) */
.welcome-banner-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #00a2ed;
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 162, 237, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.welcome-banner-btn:hover {
  background: #0092d6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 162, 237, 0.55);
}

.welcome-banner-btn:active {
  transform: translateY(0);
}

/* Descriptive text: found anything interesting over the internet? just post it */
.welcome-banner-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1b !important;
  line-height: 1.35;
  margin: 10px 0 0 0;
}

/* ===================================================
   LOGGED-IN "BREAK THE CAGE" BANNER (Yellow Penguin Aesthetic)
   - Cute cartoon penguins breaking out of cage
   - "JOIN THE INTERNET / Break the Cage!"
   - Interactive "CONTRIBUTE NOW" pill button
   - Interactive close (X) button
   =================================================== */

.sidebar-contribute-banner {
  position: relative;
  margin: auto 0 2px 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffdb4d;
  border: 1px solid rgba(230, 175, 0, 0.45);
  box-shadow: 0 6px 20px rgba(230, 160, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
  line-height: 0;
}

.sidebar-contribute-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 160, 0, 0.32), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.contribute-banner-card {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  line-height: 0;
}

.contribute-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  pointer-events: none;
}

/* White Capsule "Post" Button with Blue Circle & White Feather Icon (Reversed) */
/* White Capsule "Post" Button with Yellow Circle & Black Feather Icon (Image 4 & 5 Spec) */
.contribute-banner-btn {
  position: absolute;
  left: 6.8%;
  top: 68%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px;
  padding: 6px 16px 6px 6px;
  color: #000000 !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  user-select: none;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  z-index: 4;
  line-height: normal;
  box-sizing: border-box;
}

.contribute-banner-btn:hover {
  transform: translateY(-2px);
  background: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18), 0 2px 5px rgba(0, 0, 0, 0.1);
  border-color: rgba(250, 204, 21, 0.5) !important;
}

.contribute-banner-btn:active {
  transform: translateY(0);
  background: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.contribute-banner-btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}

/* Yellow icon circle on left with Black feather icon (Image 5 Spec) */
.contribute-btn-icon {
  width: 28px;
  height: 28px;
  background: #facc15 !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000000 !important;
  box-shadow: 0 2px 6px rgba(250, 204, 21, 0.45);
}

.contribute-btn-icon svg {
  display: block;
  stroke: #000000 !important;
}

.contribute-btn-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #000000 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}

/* Visibility Rules:
   - Guest visitors see .sidebar-welcome-banner
   - Logged-in users see .sidebar-contribute-banner */
.sidebar-welcome-banner {
  display: block;
}

.sidebar-contribute-banner {
  display: none;
}

html.bp-has-user .sidebar-welcome-banner,
body.bp-has-user .sidebar-welcome-banner,
.sidebar-welcome-banner.logged-in {
  display: none !important;
}

html.bp-has-user .sidebar-contribute-banner,
body.bp-has-user .sidebar-contribute-banner,
.sidebar-contribute-banner.logged-in {
  display: block !important;
}

.sidebar-left .sidebar-bottom {
  display: none !important;
}

/* Compact height screens (e.g. 1440x704, 1366x768, <= 768px height) —
   Ensures the entire left sidebar and full Break the Cage banner with all birds are 100% visible without cutting off (Matching Image 2 & 3) */
@media (max-height: 768px) {
  .sidebar-inner {
    padding: 6px 6px 2px !important;
  }

  .sidebar-top-actions {
    margin-bottom: 3px !important;
  }

  .btn-primary-full.sidebar-slider-btn {
    height: 38px !important;
    min-height: 38px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek {
    height: 38px !important;
    min-height: 38px !important;
    padding: 3px 12px 3px 5px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-icon-circle {
    width: 26px !important;
    height: 26px !important;
  }

  .btn-primary-full.sidebar-slider-btn.only-birdweek .sidebar-slider-label {
    font-size: 0.88rem !important;
  }

  .nav-grid {
    gap: 3.5px !important;
    padding: 2px 0 !important;
  }

  .nav-grid-item {
    padding: 5.6px 8px !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    gap: 6px !important;
  }

  .nav-grid-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .nav-grid-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .nav-grid-label {
    font-size: 0.83rem !important;
    font-weight: 600 !important;
  }

  .nav-divider {
    margin: 3px 6px !important;
  }

  .company-details-toggle {
    padding: 4.5px 8px !important;
    font-size: 0.82rem !important;
  }

  .follow-us-header {
    font-size: 0.72rem !important;
    padding: 2px 6px 2px !important;
  }

  .follow-us-grid {
    gap: 2px !important;
    padding: 1px 0 !important;
  }

  .follow-us-item {
    padding: 3.5px 7px !important;
    font-size: 0.76rem !important;
    gap: 5px !important;
  }

  .follow-us-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .follow-us-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .follow-us-label {
    font-size: 0.76rem !important;
  }

  .sidebar-contribute-banner {
    margin: auto 0 2px 0 !important;
  }
}

/* Sidebar Bottom */
.sidebar-bottom {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 4px;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: 0.2px;
}

.related-news-list,
.trending-news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-news-item,
.trending-news-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  align-items: flex-start;
}

.sidebar-news-item:last-child,
.trending-news-item:last-child {
  border-bottom: none;
}

.sidebar-news-thumb-wrap {
  position: relative;
  width: 78px;
  height: 52px;
  flex-shrink: 0;
}

.sidebar-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.trending-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badge for trending order */
.trending-news-item .trending-badge {
  background: var(--accent);
  color: #ffffff;
}

.sidebar-news-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar-news-headline,
.trending-headline {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.sidebar-news-author {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.sidebar-news-item:hover .sidebar-news-headline,
.trending-news-item:hover .trending-headline {
  color: var(--accent);
}

/* Sidebar Ad */
.sidebar-ad {
  margin-top: 20px;
}

.ad-placeholder-side {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.ad-side-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.ad-side-icon {
  font-size: 2rem;
}

.ad-side-mock strong {
  font-size: 0.88rem;
  color: var(--text-white);
}

[data-theme="light"] .ad-side-mock strong {
  color: var(--text-primary, #0f172a);
}

.ad-side-mock span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.ad-side-btn {
  margin-top: 8px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  transition: background var(--trans);
}

.ad-side-btn:hover {
  background: var(--accent-hover);
}

.ad-side-mock.compact {
  padding: 8px 0;
}

/* ===================================================
   ARTICLE MAIN
   =================================================== */

.article-main {
  grid-area: main;
  padding: 0;
  border-right: 1px solid var(--border-soft);
  min-width: 0;
}

/* Category Tag */
.article-category-tag {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-hover);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: none;
}

/* ===================================================
   HERO SECTION
   =================================================== */

.hero-section {
  display: none !important;
  position: relative;
  width: 100%;
  max-width: none;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-section .article-featured-img {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  height: auto;
  min-height: 330px;
  position: relative;
  border-radius: 0;
  margin-bottom: 0;
  border: none;
  overflow: hidden;
}

.hero-section .article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.hero-section .article-header {
  position: absolute;
  inset: 0;
  padding: 40px 8%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

/* Breadcrumbs in Hero */
.hero-section .breadcrumbs-container {
  margin-top: 0;
  margin-bottom: auto;
  /* Pushes the title/subtitle down to the bottom */
  color: #fff;
}

.hero-section .breadcrumb-link {
  color: #fff;
  opacity: 0.9;
}

.hero-section .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.7);
}

.hero-section .breadcrumb-current {
  color: #ffffff;
  max-width: 350px;
  /* Allow a bit more text before adding the ... */
}

.hero-section .breadcrumb-link:hover {
  opacity: 1;
}

.hero-section .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
}

/* Category Pill */
.hero-cat-pill-wrapper {
  margin-bottom: 16px;
}

.hero-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a1a1a;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-cat-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* Title */
.article-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  margin-left: 0;
}

.article-title span {
  background: none;
  color: #ffffff;
  display: inline;
  padding: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.article-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 500;
  margin-left: 0;
}

.article-subtitle span {
  background: none;
  color: #f3f4f6;
  display: inline;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.article-hero-meta {
  margin-top: 5px;
  margin-left: 0;
}

.article-hero-meta span {
  background: none;
  color: #d1d5db;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Author & Meta */
.article-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--text-secondary);
}

.article-author-label {
  color: var(--text-secondary);
}

.article-author-name,
.article-editor-name {
  color: var(--accent);
  font-weight: 600;
}

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

.article-date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-date {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.article-trust {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 500;
}

/* Action Bar */
.article-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.action-bar-left,
.action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.permanent-threads-ping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  animation: pulsePing 2s infinite ease-in-out;
}

.permanent-threads-ping strong {
  color: var(--primary);
  font-weight: 600;
}

@keyframes pulsePing {
  0% {
    border-color: var(--border-soft);
    box-shadow: 0 0 0 rgba(0, 174, 236, 0);
  }

  50% {
    border-color: rgba(0, 174, 236, 0.4);
    box-shadow: 0 0 12px rgba(0, 174, 236, 0.15);
  }

  100% {
    border-color: var(--border-soft);
    box-shadow: 0 0 0 rgba(0, 174, 236, 0);
  }
}

/* ── Author + Follow row ─────────────────────── */
.article-author-follow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ENTERPRISE FOLLOW BUTTON UNIVERSAL STYLES (MATCHING IMAGE 3 & USER SPECS)
   ========================================================================== */
.card-author-follow-btn,
.author-follow-btn,
.user-profile-follow-btn,
.profile-follow-btn,
.search-user-follow-btn,
.following-toggle-btn,
#articleAuthorMetaFollowBtn,
#userProfileFollowBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  height: 32px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  user-select: none !important;
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

/* 1. Unfollowed State in Dark Mode (Pure Solid White Capsule with Bold Black Text - Matching Image 3) */
.card-author-follow-btn:not(.following),
.author-follow-btn:not(.following),
.user-profile-follow-btn:not(.following),
.profile-follow-btn:not(.following),
.search-user-follow-btn:not(.following),
.following-toggle-btn:not(.following),
#articleAuthorMetaFollowBtn:not(.following),
#userProfileFollowBtn:not(.following),
.bottom-author-row .author-follow-btn:not(.following),
.ranker-author-name-row .author-follow-btn:not(.following),
button.card-author-follow-btn:not(.following),
button.author-follow-btn:not(.following) {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
  border-radius: 9999px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  font-weight: 700 !important;
}

.card-author-follow-btn:not(.following):hover,
.card-author-follow-btn:not(.following):active,
.author-follow-btn:not(.following):hover,
.author-follow-btn:not(.following):active,
.user-profile-follow-btn:not(.following):hover,
.user-profile-follow-btn:not(.following):active,
.profile-follow-btn:not(.following):hover,
.profile-follow-btn:not(.following):active,
.search-user-follow-btn:not(.following):hover,
.search-user-follow-btn:not(.following):active,
.following-toggle-btn:not(.following):hover,
.following-toggle-btn:not(.following):active,
#articleAuthorMetaFollowBtn:not(.following):hover,
#articleAuthorMetaFollowBtn:not(.following):active,
#userProfileFollowBtn:not(.following):hover,
#userProfileFollowBtn:not(.following):active {
  background: #e6e6e6 !important;
  color: #000000 !important;
  border-color: #e6e6e6 !important;
}

/* 2. Unfollowed State in Light Mode (Solid Black Capsule with Bold White Text) */
[data-theme="light"] .card-author-follow-btn:not(.following),
body.bp-theme-light .card-author-follow-btn:not(.following),
[data-theme="light"] .author-follow-btn:not(.following),
body.bp-theme-light .author-follow-btn:not(.following),
[data-theme="light"] .user-profile-follow-btn:not(.following),
body.bp-theme-light .user-profile-follow-btn:not(.following),
[data-theme="light"] .profile-follow-btn:not(.following),
body.bp-theme-light .profile-follow-btn:not(.following),
[data-theme="light"] .search-user-follow-btn:not(.following),
body.bp-theme-light .search-user-follow-btn:not(.following),
[data-theme="light"] .following-toggle-btn:not(.following),
body.bp-theme-light .following-toggle-btn:not(.following),
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following),
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following),
[data-theme="light"] #userProfileFollowBtn:not(.following),
body.bp-theme-light #userProfileFollowBtn:not(.following),
[data-theme="light"] .bottom-author-row .author-follow-btn:not(.following),
body.bp-theme-light .bottom-author-row .author-follow-btn:not(.following),
[data-theme="light"] .ranker-author-name-row .author-follow-btn:not(.following),
body.bp-theme-light .ranker-author-name-row .author-follow-btn:not(.following) {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  box-shadow: none !important;
}

[data-theme="light"] .card-author-follow-btn:not(.following):hover,
[data-theme="light"] .card-author-follow-btn:not(.following):active,
body.bp-theme-light .card-author-follow-btn:not(.following):hover,
body.bp-theme-light .card-author-follow-btn:not(.following):active,
[data-theme="light"] .author-follow-btn:not(.following):hover,
[data-theme="light"] .author-follow-btn:not(.following):active,
body.bp-theme-light .author-follow-btn:not(.following):hover,
body.bp-theme-light .author-follow-btn:not(.following):active,
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following):hover,
[data-theme="light"] #articleAuthorMetaFollowBtn:not(.following):active,
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following):hover,
body.bp-theme-light #articleAuthorMetaFollowBtn:not(.following):active {
  background: #18191c !important;
  color: #ffffff !important;
}

/* 3. Following State in Dark Mode (Dark capsule #1e1f24, border, user-check icon, white text) */
.card-author-follow-btn.following,
.author-follow-btn.following,
.user-profile-follow-btn.following,
.profile-follow-btn.following,
.search-user-follow-btn.following,
.following-toggle-btn.following,
#articleAuthorMetaFollowBtn.following,
#userProfileFollowBtn.following,
.bottom-author-row .author-follow-btn.following,
.ranker-author-name-row .author-follow-btn.following {
  background: #1e1f24 !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.card-author-follow-btn.following svg,
.author-follow-btn.following svg,
.user-profile-follow-btn.following svg,
.profile-follow-btn.following svg,
.search-user-follow-btn.following svg,
.following-toggle-btn.following svg,
#articleAuthorMetaFollowBtn.following svg,
#userProfileFollowBtn.following svg,
.bottom-author-row .author-follow-btn.following svg,
.ranker-author-name-row .author-follow-btn.following svg {
  stroke: #e5e7eb !important;
  color: #e5e7eb !important;
  stroke-width: 2.5 !important;
}

.card-author-follow-btn.following:hover,
.card-author-follow-btn.following:active,
.card-author-follow-btn.following:focus,
.author-follow-btn.following:hover,
.author-follow-btn.following:active,
.author-follow-btn.following:focus,
#articleAuthorMetaFollowBtn.following:hover,
#articleAuthorMetaFollowBtn.following:active,
#articleAuthorMetaFollowBtn.following:focus,
.bottom-author-row .author-follow-btn.following:hover,
.bottom-author-row .author-follow-btn.following:active,
.bottom-author-row .author-follow-btn.following:focus,
.ranker-author-name-row .author-follow-btn.following:hover,
.ranker-author-name-row .author-follow-btn.following:active,
.ranker-author-name-row .author-follow-btn.following:focus {
  background: #282a30 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
}

.card-author-follow-btn.following:hover svg,
.card-author-follow-btn.following:active svg,
.card-author-follow-btn.following:focus svg,
.author-follow-btn.following:hover svg,
.author-follow-btn.following:active svg,
.author-follow-btn.following:focus svg,
#articleAuthorMetaFollowBtn.following:hover svg,
#articleAuthorMetaFollowBtn.following:active svg,
#articleAuthorMetaFollowBtn.following:focus svg,
.bottom-author-row .author-follow-btn.following:hover svg,
.bottom-author-row .author-follow-btn.following:active svg,
.bottom-author-row .author-follow-btn.following:focus svg,
.ranker-author-name-row .author-follow-btn.following:hover svg,
.ranker-author-name-row .author-follow-btn.following:active svg,
.ranker-author-name-row .author-follow-btn.following:focus svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* 4. Following State in Light Mode */
[data-theme="light"] .card-author-follow-btn.following,
body.bp-theme-light .card-author-follow-btn.following,
[data-theme="light"] .author-follow-btn.following,
body.bp-theme-light .author-follow-btn.following,
[data-theme="light"] #articleAuthorMetaFollowBtn.following,
body.bp-theme-light #articleAuthorMetaFollowBtn.following,
[data-theme="light"] .bottom-author-row .author-follow-btn.following,
body.bp-theme-light .bottom-author-row .author-follow-btn.following,
[data-theme="light"] .ranker-author-name-row .author-follow-btn.following,
body.bp-theme-light .ranker-author-name-row .author-follow-btn.following {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #334155 !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .card-author-follow-btn.following svg,
body.bp-theme-light .card-author-follow-btn.following svg,
[data-theme="light"] .author-follow-btn.following svg,
body.bp-theme-light .author-follow-btn.following svg,
[data-theme="light"] #articleAuthorMetaFollowBtn.following svg,
body.bp-theme-light #articleAuthorMetaFollowBtn.following svg,
[data-theme="light"] .bottom-author-row .author-follow-btn.following svg,
body.bp-theme-light .bottom-author-row .author-follow-btn.following svg,
[data-theme="light"] .ranker-author-name-row .author-follow-btn.following svg,
body.bp-theme-light .ranker-author-name-row .author-follow-btn.following svg {
  stroke: #334155 !important;
  color: #334155 !important;
}

[data-theme="light"] .card-author-follow-btn.following:hover,
[data-theme="light"] .card-author-follow-btn.following:active,
[data-theme="light"] .card-author-follow-btn.following:focus,
body.bp-theme-light .card-author-follow-btn.following:hover,
body.bp-theme-light .card-author-follow-btn.following:active,
body.bp-theme-light .card-author-follow-btn.following:focus,
[data-theme="light"] .author-follow-btn.following:hover,
[data-theme="light"] .author-follow-btn.following:active,
[data-theme="light"] .author-follow-btn.following:focus,
body.bp-theme-light .author-follow-btn.following:hover,
body.bp-theme-light .author-follow-btn.following:active,
body.bp-theme-light .author-follow-btn.following:focus,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:hover,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:active,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:focus,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:hover,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:active,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:focus,
[data-theme="light"] .bottom-author-row .author-follow-btn.following:hover,
[data-theme="light"] .bottom-author-row .author-follow-btn.following:active,
[data-theme="light"] .bottom-author-row .author-follow-btn.following:focus,
body.bp-theme-light .bottom-author-row .author-follow-btn.following:hover,
body.bp-theme-light .bottom-author-row .author-follow-btn.following:active,
body.bp-theme-light .bottom-author-row .author-follow-btn.following:focus,
[data-theme="light"] .ranker-author-name-row .author-follow-btn.following:hover,
[data-theme="light"] .ranker-author-name-row .author-follow-btn.following:active,
[data-theme="light"] .ranker-author-name-row .author-follow-btn.following:focus,
body.bp-theme-light .ranker-author-name-row .author-follow-btn.following:hover,
body.bp-theme-light .ranker-author-name-row .author-follow-btn.following:active,
body.bp-theme-light .ranker-author-name-row .author-follow-btn.following:focus {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
}

[data-theme="light"] .card-author-follow-btn.following:hover svg,
[data-theme="light"] .card-author-follow-btn.following:active svg,
[data-theme="light"] .card-author-follow-btn.following:focus svg,
body.bp-theme-light .card-author-follow-btn.following:hover svg,
body.bp-theme-light .card-author-follow-btn.following:active svg,
body.bp-theme-light .card-author-follow-btn.following:focus svg,
[data-theme="light"] .author-follow-btn.following:hover svg,
[data-theme="light"] .author-follow-btn.following:active svg,
[data-theme="light"] .author-follow-btn.following:focus svg,
body.bp-theme-light .author-follow-btn.following:hover svg,
body.bp-theme-light .author-follow-btn.following:active svg,
body.bp-theme-light .author-follow-btn.following:focus svg,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:hover svg,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:active svg,
[data-theme="light"] #articleAuthorMetaFollowBtn.following:focus svg,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:hover svg,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:active svg,
body.bp-theme-light #articleAuthorMetaFollowBtn.following:focus svg {
  stroke: #0f172a !important;
  color: #0f172a !important;
}

/* ── Subscribe pill ──────────────────────────── */
.yt-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.yt-subscribe-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.yt-subscribe-btn.subscribed {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-color: var(--border-soft);
}

/* ── Grouped Like | Dislike pill ─────────────── */
.yt-pill-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.yt-pill-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Generic pill button ─────────────────────── */
.yt-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.yt-pill-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Standalone pill (independent rounded container) */
.yt-pill-btn.standalone {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
}

.yt-pill-btn.standalone:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
  color: var(--text-white);
}

/* Threads button — WHITE fill, BLACK text (first position) */
.yt-pill-btn.threads-first {
  background: #ffffff;
  color: #0f0f0f;
  border: 1.5px solid #ffffff;
  border-radius: 50px;
  font-weight: 800;
}

.yt-pill-btn.threads-first svg {
  stroke: #0f0f0f;
}

.yt-pill-btn.threads-first .action-count {
  color: #0f0f0f;
  opacity: 0.65;
}

.yt-pill-btn.threads-first:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* Views pill — non-interactive display */
.yt-pill-btn.views-pill {
  cursor: default;
  pointer-events: none;
  color: var(--text-muted);
  border-color: var(--border-soft);
}

/* Like active state */
.yt-pill-btn.liked {
  color: var(--accent) !important;
}

.yt-pill-btn.liked svg {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Dislike active state */
.yt-pill-btn.disliked {
  color: #ff6060 !important;
}

.yt-pill-btn.disliked svg {
  fill: #ff6060;
  stroke: #ff6060;
}

/* Save active state */
.yt-pill-btn.saved {
  color: var(--accent) !important;
}

.yt-pill-btn.saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.action-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
}

/* =====================================================
   NEW CIRCULAR ACTION BAR BUTTONS
   ===================================================== */

/* Base: icon circle + text label pill together */
.ab-circle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.ab-circle-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  color: var(--text-secondary);
}

.ab-circle-label {
  padding: 0 14px 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 50px 50px 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

/* Merged appearance: icon circle blends into label */
.ab-circle-btn .ab-circle-icon {
  border-radius: 50px 0 0 50px;
  border-right: none;
}

.ab-circle-btn:hover .ab-circle-icon,
.ab-circle-btn:hover .ab-circle-label {
  background: var(--bg-hover);
  color: var(--text-white);
}

.ab-circle-btn:hover .ab-circle-icon svg {
  stroke: var(--text-white);
}

/* Threads: WHITE fill, BLACK icon */
.ab-circle-btn.threads-circle .ab-circle-icon {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f0f0f;
}

.ab-circle-btn.threads-circle .ab-circle-icon svg {
  stroke: #0f0f0f;
}

.ab-circle-btn.threads-circle .ab-circle-label {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f0f0f;
}

.ab-circle-btn.threads-circle .ab-cnt {
  color: #0f0f0f;
  opacity: 0.6;
}

.ab-circle-btn.threads-circle:hover .ab-circle-icon,
.ab-circle-btn.threads-circle:hover .ab-circle-label,
.ab-circle-btn.threads-circle:active .ab-circle-icon,
.ab-circle-btn.threads-circle:active .ab-circle-label {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #0f0f0f;
  transition: none;
}

/* Share button — accent tint */
.ab-circle-btn.share-circle .ab-circle-icon {
  background: var(--bg-card);
  border-color: var(--border);
}

.ab-circle-btn.share-circle:hover .ab-circle-icon,
.ab-circle-btn.share-circle:hover .ab-circle-label,
.ab-circle-btn.share-circle:active .ab-circle-icon,
.ab-circle-btn.share-circle:active .ab-circle-label {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transition: none;
}

.ab-circle-btn.share-circle:hover .ab-circle-icon svg,
.ab-circle-btn.share-circle:active .ab-circle-icon svg {
  stroke: #fff;
}

/* Views: non-interactive, muted */
.ab-circle-btn.views-display {
  cursor: default;
  pointer-events: none;
}

.ab-circle-btn.views-display .ab-circle-icon,
.ab-circle-btn.views-display .ab-circle-label {
  color: var(--text-muted);
  border-color: var(--border-soft);
}

/* Grouped Like | Dislike pill */
.ab-group-pill {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.ab-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.ab-group-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  transition: none;
}

.ab-group-btn.liked {
  color: var(--accent) !important;
}

.ab-group-btn.liked svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.ab-group-btn.disliked {
  color: #ff6060 !important;
}

.ab-group-btn.disliked svg {
  fill: #ff6060;
  stroke: #ff6060;
}

.ab-group-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.ab-cnt {
  font-size: 0.82rem;
  font-weight: 700;
}

/* =====================================================
   SHARE MODAL
   ===================================================== */

.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: shareOverlayIn 0.22s ease;
}

@keyframes shareOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.share-modal-box {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 460px;
  padding: 28px 24px 32px;
  animation: shareBoxPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

@keyframes shareBoxPop {
  from {
    transform: scale(0.88);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.share-modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.share-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.share-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.share-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Platform grid: 4 columns */
.share-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
}

.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 14px;
  transition: transform 0.18s, background 0.18s;
}

.share-platform-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.share-plat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.18s;
}

.share-platform-btn:hover .share-plat-icon {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.share-plat-icon.clip-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.share-platform-btn span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.share-platform-btn.copied .share-plat-icon.clip-icon {
  background: rgba(0, 186, 124, 0.15);
  border-color: #00ba7c;
}

/* Featured Image */
.article-featured-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  background: var(--bg-card);
}

.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

/* Article Body */
/* Table of Contents Box */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all var(--trans);
}

.article-card-wrapper .article-toc {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 24px 0 0 0;
  margin-top: 24px;
  margin-bottom: 0;
  box-shadow: none;
}

.article-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.article-toc-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-toc-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.article-toc-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-hover);
  border: 1.5px solid var(--border);
  transition: all var(--trans);
}

.article-toc-toggle:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.article-toc-toggle-arrow {
  transition: transform var(--trans);
  display: inline-block;
}

.article-toc.collapsed .article-toc-toggle-arrow {
  transform: rotate(-180deg);
}

.article-toc-body {
  margin-top: 16px;
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), opacity 0.25s ease, margin-top 0.25s ease;
  opacity: 1;
}

.article-toc.collapsed .article-toc-body {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.article-toc-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-toc-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.article-toc-number {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
  font-family: var(--font);
}

.article-toc-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--trans);
  display: inline-block;
}

.article-toc-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.article-body {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body>p:first-of-type::first-letter {
  float: left;
  font-size: 4.4rem;
  line-height: 0.85;
  margin-right: 6px;
  margin-top: 2px;
  padding: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 28px 0 12px;
  scroll-margin-top: 110px;
  /* Offset for sticky header when scrolling to section */
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.article-tag-pill {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-hover);
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--trans), background var(--trans);
}

.article-tag-pill:hover {
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ===================================================
   ARTICLE NEWSLETTER BLOCK
   =================================================== */
.article-newsletter-block {
  position: relative;
  background: var(--accent, #00aeec);
  padding: 24px 28px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: none;
}

.an-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 4px;
  line-height: 1.3;
}

.an-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 18px;
  line-height: 1.4;
}

.an-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.an-form-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.an-input {
  flex: 1;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #111;
  font-family: var(--font), sans-serif;
  outline: none;
  margin: 0;
  transition: box-shadow 0.2s ease;
}

.an-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.an-input::placeholder {
  color: #777;
}

.an-btn {
  background: #ffffff;
  color: #111111;
  border: none;
  border-radius: 8px;
  font-weight: 400;
  font-size: 1rem;
  font-family: var(--font), sans-serif;
  padding: 0 24px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.an-btn:hover {
  background: #f0f2f5;
}

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

@media (max-width: 600px) {
  .article-newsletter-block {
    padding: 24px;
  }

  .an-form {
    flex-direction: column;
    gap: 12px;
  }

  .an-input {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .an-input:focus {
    border-color: #aaa;
  }

  .an-btn {
    padding: 14px;
    border-radius: 4px;
  }
}

/* ===================================================
   COMMENT SECTION (REDDIT STYLE)
   =================================================== */

.comment-section {
  margin-top: 8px;
}

.comment-section-header {
  margin-bottom: 16px;
}

.comment-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

.comment-total {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Comment Form Auth States */
.comment-form-container {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.comment-unauth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--bg-card);
}

.comment-unauth p {
  color: var(--text-secondary);
  font-weight: 500;
}

.unauth-actions {
  display: flex;
  gap: 8px;
}

.comment-login-btn,
.comment-signup-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--trans);
}

.comment-login-btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.comment-signup-btn {
  background: var(--text-primary);
  color: var(--bg);
  border: none;
}

.comment-signup-btn:hover {
  opacity: 0.9;
}

.comment-form.auth-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--bg-card);
}

.comment-form-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.comment-form-username {
  font-weight: 600;
  color: var(--text-white);
}

.comment-form-input-wrap textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  resize: vertical;
  min-height: 60px;
  outline: none;
  font-size: 0.9rem;
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.comment-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
}

.comment-submit-btn.reply-btn {
  background: var(--text-primary);
  color: var(--bg);
  font-size: 0.75rem;
  padding: 4px 12px;
}

/* Recursive Threaded Comments */
.comments-list {
  display: flex;
  flex-direction: column;
}

.comment-thread-wrapper {
  display: flex;
  flex-direction: column;
}

.comment-node {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.comment-content-wrap {
  display: flex;
  gap: 12px;
}

.comment-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 32px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: var(--accent);
  cursor: default;
}

.thread-line-wrap {
  flex: 1;
  width: 16px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  padding-top: 8px;
  padding-bottom: 4px;
}

.thread-line {
  width: 2px;
  height: 100%;
  background: var(--border-soft);
  transition: background var(--trans);
}

.thread-line-wrap:hover .thread-line {
  background: var(--accent);
}

/* Right Col: Content */
.comment-right-col {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.comment-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  transition: color var(--trans);
  cursor: default;
}

.comment-flair {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
}

.comment-meta-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 6px;
}

.comment-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--trans);
}

.comment-action-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.comment-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.comment-action-btn.upvoted {
  color: #ffffff;
}

.comment-action-btn.upvoted svg {
  stroke: currentColor;
  fill: currentColor;
}

[data-theme="light"] .comment-action-btn.upvoted {
  color: #000000;
}

.comment-action-btn.downvoted {
  color: #ffffff;
}

.comment-action-btn.downvoted svg {
  stroke: currentColor;
  fill: currentColor;
}

[data-theme="light"] .comment-action-btn.downvoted {
  color: #000000;
}

/* Emoji Reactions */
.comment-emoji-reactions {
  display: inline-flex;
  gap: 6px;
  margin-left: 12px;
  align-items: center;
}

.comment-emoji-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  transition: all 0.2s ease-in-out;
  line-height: 1;
}

.comment-emoji-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

.comment-emoji-btn.active {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.comment-emoji-btn.active .emoji-count {
  color: var(--accent);
  font-weight: 700;
}

.comment-emoji-btn .emoji-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Replies */
.comment-replies {
  padding-left: 0;
}

.comment-reply-box {
  margin-top: 8px;
  margin-bottom: 12px;
}

/* Collapsed State */
.comment-collapsed .comment-text,
.comment-collapsed .comment-action-bar,
.comment-collapsed .comment-replies,
.comment-collapsed .thread-line-wrap {
  display: none !important;
}

.comment-collapsed .comment-header::after {
  content: '...';
  color: var(--text-secondary);
  margin-left: 4px;
}

.comment-expand-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
}

.comment-collapsed .comment-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-collapsed .comment-avatar {
  display: none;
}

/* Soft Deletes styling */
.comment-username.author-deleted {
  color: var(--text-secondary) !important;
  font-style: italic;
  font-weight: 400;
  opacity: 0.6;
}

.comment-text.text-deleted {
  color: var(--text-secondary) !important;
  font-style: italic;
  opacity: 0.6;
}


/* Login Modal */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.login-modal-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-modal-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  margin-bottom: 16px;
  outline: none;
}

.login-modal-input:focus {
  border-color: var(--accent);
}

.login-modal-flair-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.login-modal-flair-select label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.login-modal-flair-select select {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
}

.login-modal-submit {
  width: 100%;
  padding: 12px;
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

/* ===================================================
   RIGHT SIDEBAR
   =================================================== */

.article-sidebar-right {
  grid-area: right;
  padding: 24px 20px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  box-sizing: border-box;
}

.article-sidebar-right::-webkit-scrollbar {
  display: none;
}

/* ── Sidebar Ad Card (Mascot System) ── */
.sidebar-ad-card {
  width: 100%;
  background: var(--bg-card, #000000);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  user-select: none;
}

.sidebar-ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 236, 0.45);
  box-shadow: 0 10px 32px rgba(0, 174, 236, 0.2), 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .sidebar-ad-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sidebar-ad-card:hover {
  border-color: rgba(0, 174, 236, 0.5);
  box-shadow: 0 10px 30px rgba(0, 174, 236, 0.16);
}

.sidebar-ad-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 782 / 1024;
  overflow: hidden;
  background: #546e1e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-ad-bird-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-ad-card:hover .sidebar-ad-bird-img {
  transform: scale(1.05) rotate(-1deg);
}

.sidebar-ad-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #00aeec;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(0, 174, 236, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sidebar-ad-speech-bubble {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  animation: bubbleFloat 2.6s ease-in-out infinite alternate;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-4px);
  }
}

.sidebar-ad-body {
  padding: 16px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-ad-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sidebar-ad-verified-badge svg {
  fill: #facc15 !important;
}

.sidebar-ad-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.2px;
}

[data-theme="light"] .sidebar-ad-title {
  color: #0f1419;
}

.sidebar-ad-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.48;
  margin: 0;
}

.sidebar-ad-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 10px 8px;
  margin: 2px 0;
}

[data-theme="light"] .sidebar-ad-metrics {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.sidebar-ad-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.sidebar-ad-metric .metric-val {
  font-size: 0.98rem;
  font-weight: 850;
  color: #00aeec;
  line-height: 1;
}

.sidebar-ad-metric .metric-lbl {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-ad-metric-divider {
  width: 1px;
  height: 24px;
  background: var(--border-soft, rgba(255, 255, 255, 0.08));
}

.sidebar-ad-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.sidebar-ad-cta-btn {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  background: #facc15;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
  text-decoration: none;
  outline: none;
}

.sidebar-ad-cta-btn svg {
  stroke: #000000;
}

.sidebar-ad-cta-btn:hover {
  background: #eab308;
  color: #000000;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.48);
}

.sidebar-ad-link-btn {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-secondary, #94a3b8);
  text-align: center;
  text-decoration: none;
  transition: color 0.18s ease;
  padding: 4px 0;
  display: inline-block;
}

.sidebar-ad-link-btn:hover {
  color: var(--accent, #00aeec);
}

/* ── Advertise Modal (Campaign Planner) ── */
.ad-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: adFadeIn 0.2s ease;
}

.ad-modal-card {
  background: var(--bg-panel, #000000);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  animation: adFadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .ad-modal-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

.ad-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  z-index: 10;
}

.ad-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: scale(1.1);
}

.ad-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-right: 36px;
}

.ad-modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #f97316;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 174, 236, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.ad-modal-bird-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.ad-modal-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: var(--text-white, #fff);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

[data-theme="light"] .ad-modal-title {
  color: #0f1419;
}

.ad-modal-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.45;
  margin: 0;
}

.ad-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ad-form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  letter-spacing: 0.01em;
}

[data-theme="light"] .ad-form-label {
  color: #334155;
}

.ad-format-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ad-chip-label {
  cursor: pointer;
  position: relative;
  display: flex;
}

.ad-chip-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ad-chip-pill {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary, #94a3b8);
  transition: all 0.18s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

[data-theme="light"] .ad-chip-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ad-chip-label input:checked+.ad-chip-pill {
  background: rgba(0, 174, 236, 0.14);
  border-color: #00aeec;
  color: #00aeec;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 174, 236, 0.2);
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {

  .ad-form-row,
  .ad-format-chips {
    grid-template-columns: 1fr;
  }
}

.ad-form-input,
.ad-form-select,
.ad-form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  transition: all 0.18s ease;
  outline: none;
}

[data-theme="light"] .ad-form-input,
[data-theme="light"] .ad-form-select,
[data-theme="light"] .ad-form-textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.ad-form-input:focus,
.ad-form-select:focus,
.ad-form-textarea:focus {
  border-color: #00aeec;
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.ad-form-textarea {
  resize: vertical;
  min-height: 72px;
}

.ad-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ad-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00aeec, #009cd3);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.4);
}

.ad-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(0, 174, 236, 0.5);
  filter: brightness(1.08);
}

.ad-direct-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}

.ad-email-link {
  color: #00aeec;
  text-decoration: none;
  font-weight: 700;
}

/* Contact Card for Ad Inquiries */
.ad-contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

[data-theme="light"] .ad-contact-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ad-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00aeec !important;
  color: #ffffff !important;
  border: 1px solid #00aeec !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
}

[data-theme="light"] .ad-contact-badge {
  background: #00aeec !important;
  color: #ffffff !important;
  border-color: #00aeec !important;
}

.ad-contact-msg {
  font-size: 0.95rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.ad-email-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f1419;
  border: 1px solid rgba(0, 174, 236, 0.35);
  border-radius: 12px;
  padding: 8px 10px 8px 16px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

[data-theme="light"] .ad-email-highlight {
  background: #ffffff;
  border-color: #cbd5e1;
}

.ad-email-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

[data-theme="light"] .ad-email-copy-btn {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.ad-email-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ad-email-copy-btn.copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

.ad-contact-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 440px;
}

.ad-contact-primary-btn {
  flex: 1;
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.35);
  transition: all 0.18s ease;
}

.ad-contact-primary-btn:hover {
  background: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 174, 236, 0.45);
}

.ad-email-link:hover {
  text-decoration: underline;
}

@keyframes adFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes adFadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===================================================
   FLOATING BOTTOM BAR
   =================================================== */

.floating-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.floating-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.floating-bar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.floating-bar-icon {
  font-size: 1.1rem;
}

.floating-bar-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.floating-bar-label strong {
  color: var(--red);
}

.floating-bar-scroll-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
}

.floating-bar-scroll {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-bar-scroll::-webkit-scrollbar {
  display: none;
}

.floating-bar-items {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.floating-bar-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  max-width: 320px;
  transition: background var(--trans), border-color var(--trans);
}

.floating-bar-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.floating-bar-card-img {
  width: 48px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.floating-bar-card-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: normal;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.floating-bar-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-white);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--trans), border-color var(--trans);
  cursor: pointer;
}

.floating-bar-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===================================================
   FOOTER
   =================================================== */

.article-footer {
  display: none !important;
  border-top: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-white);
  -webkit-text-fill-color: var(--text-white);
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color var(--trans), background var(--trans), border-color var(--trans);
}

.footer-socials a:hover {
  color: var(--text-white);
  background: var(--bg-hover);
  border-color: var(--accent);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .article-layout {
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    grid-template-areas: "left main right";
  }

  .sidebar-left,
  .article-sidebar-left {
    width: 260px;
  }
}

/* ===================================================
   MOBILE
   =================================================== */

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    grid-template-areas: "main right";
  }

  .sidebar-left,
  .article-sidebar-left {
    position: fixed;
    left: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 600;
    transition: left var(--trans-slow);
    display: flex !important;
  }

  .sidebar-left.open,
  .article-sidebar-left.open {
    left: -4px !important;
  }
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
  }

  .article-sidebar-right {
    display: none;
  }

  .article-main {
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-title {
    font-size: 2.2rem;
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  .header-right {
    display: none;
  }

  .header-mobile-menu {
    display: flex;
  }

  .header-search {
    max-width: 100%;
  }

  .ad-mock {
    flex-direction: column;
    align-items: flex-start;
  }

  .ad-mock-pills {
    margin-left: 0;
  }

  .floating-bar-header {
    display: none;
  }
}


/* Container for 9GAG-Style 50-Word News & Discussions — expanded wider reading card */
#threadsCustomArticle {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================================================
   SUBCATEGORY SCROLLER BAR (Sticky in Article)
   =================================================== */

.feed-top-sticky {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .feed-top-sticky {
  background: rgba(245, 245, 247, 0.92);
}

.subcats-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.subcats-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 0 4px;
}

.subcats-scroll::-webkit-scrollbar {
  display: none;
}

.subcats-inner {
  display: flex;
  align-items: center;
  padding: 2px 14px;
  white-space: nowrap;
  gap: 8px;
}

.subcat-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

.subcat-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.subcat-tab.active,
.subcat-tab.active:hover,
.subcat-tab.active:focus,
.subcat-tab.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  box-shadow: 0 2px 8px var(--accent-glow) !important;
}

[data-theme="light"] .subcat-tab {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .subcat-tab:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.05);
}

.subcat-tab.active,
.subcat-tab.active:hover,
.subcat-tab.active:focus,
.subcat-tab.active:visited,
[data-theme="light"] .subcat-tab.active,
[data-theme="light"] .subcat-tab.active:hover,
[data-theme="light"] .subcat-tab.active:focus,
[data-theme="light"] .subcat-tab.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  box-shadow: 0 2px 8px var(--accent-glow) !important;
}

/* Scroll arrow buttons */
.subcats-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}

.subcats-arrow.visible {
  opacity: 1;
  pointer-events: all;
}

.subcats-arrow:hover {
  background: var(--accent);
  color: #ffffff;
}

.subcats-arrow.left {
  left: 4px;
}

.subcats-arrow.right {
  right: 4px;
}

/* ===================================================
   9GAG-STYLE ARTICLE READING SPACE
   =================================================== */

.ninegag-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #000000);
  border-radius: 0;
  padding: 20px 20px 0;
  margin-bottom: 12px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-top: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.ninegag-post-card .ninegag-action-bar {
  margin-bottom: 12px !important;
}

[data-theme="light"] .ninegag-post-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.post-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
}

[data-theme="light"] .post-detail-nav-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Sponsored Banner directly after the breadcrumbs (User request Image 2) */
.article-breadcrumbs-badges {
  margin: -10px 0 16px 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.article-breadcrumbs-badges:empty {
  display: none !important;
  margin: 0 !important;
}

/* Hide the inner "Back to …" button inside the article card */
.post-back-to-feed-btn,
#newsStoryBackBtn {
  display: none !important;
}

/* Circular Back to Feed Button (Matching User Reference Image) */
.article-round-back-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #232730;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
  margin-right: 2px;
}

.article-round-back-btn:hover {
  background: #313642;
  transform: translateX(-2px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.article-round-back-btn:active {
  transform: scale(0.92);
}

.article-round-back-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.4;
  display: block;
}

[data-theme="light"] .article-round-back-btn {
  background: #f1f3f7;
  border-color: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

[data-theme="light"] .article-round-back-btn:hover {
  background: #e2e5eb;
  border-color: rgba(0, 0, 0, 0.18);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 1. 9GAG Header (Channel Avatar, Name, Author, 3-dots) */
.ninegag-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ninegag-channel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  border: 2px solid #000000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .ninegag-channel-avatar {
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ninegag-channel-avatar svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ninegag-channel-avatar.cat-bg-social,
.ninegag-channel-avatar.cat-bg-social-media {
  background: #facc15 !important;
  color: #000000 !important;
}

.ninegag-channel-avatar.cat-bg-social svg,
.ninegag-channel-avatar.cat-bg-social-media svg {
  stroke: #000000 !important;
  color: #000000 !important;
}

.ninegag-channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ninegag-channel-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .ninegag-channel-name {
  color: #0f172a;
}

.ninegag-channel-meta {
  font-size: 0.82rem;
  color: var(--text-secondary, #94a3b8);
}

.ninegag-channel-meta a.news-post-author-link,
.news-post-author-link,
a.news-post-author-link,
.ranker-author-name a,
#articleAuthorMetaName a,
#newsPostAuthorLink {
  color: #ffffff !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 3px !important;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.ninegag-channel-meta a.news-post-author-link:hover,
.news-post-author-link:hover,
a.news-post-author-link:hover,
.ranker-author-name a:hover,
#articleAuthorMetaName a:hover,
#newsPostAuthorLink:hover,
.news-post-author-link.popover-active,
.ranker-author-name a.popover-active {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

[data-theme="light"] .ninegag-channel-meta a.news-post-author-link,
[data-theme="light"] .news-post-author-link,
[data-theme="light"] a.news-post-author-link,
[data-theme="light"] .ranker-author-name a,
[data-theme="light"] #articleAuthorMetaName a,
[data-theme="light"] #newsPostAuthorLink {
  color: #0f1419 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

[data-theme="light"] .ninegag-channel-meta a.news-post-author-link:hover,
[data-theme="light"] .news-post-author-link:hover,
[data-theme="light"] a.news-post-author-link:hover,
[data-theme="light"] .ranker-author-name a:hover,
[data-theme="light"] #articleAuthorMetaName a:hover,
[data-theme="light"] #newsPostAuthorLink:hover,
[data-theme="light"] .news-post-author-link.popover-active,
[data-theme="light"] .ranker-author-name a.popover-active {
  color: #d97706 !important;
  text-decoration: underline !important;
  text-decoration-color: #d97706 !important;
}

/* Standalone Yellow Birdpost Bird Logo (No Circle - Like Twitter in Image 3) */
.header-bird-standalone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 1;
  transform: translate(2px, -7px);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  flex-shrink: 0;
}

.header-bird-standalone:hover {
  transform: translate(2px, -7px) scale(1.15) rotate(-3deg);
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.65));
}

.header-bird-standalone-img {
  width: 28px;
  height: 25px;
  object-fit: contain;
  display: block;
  background: transparent !important;
  border-radius: 0 !important;
  content: url('birdpost-bird-yellow.webp?v=20261108whitestrip');
}

[data-theme="light"] .header-bird-standalone-img {
  content: url('birdpost-bird-yellow-light.webp?v=20261108whitestrip') !important;
}

.ninegag-post-header .header-bird-standalone+.visit-category-tab-btn {
  margin-left: 5px !important;
}

@media (max-width: 640px) {
  .ninegag-post-header {
    width: 100% !important;
    gap: 8px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
  }

  .article-round-back-btn {
    display: none !important;
  }

  .ninegag-channel-avatar {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .ninegag-channel-info {
    min-width: 0 !important;
    flex: 1 !important;
  }

  .ninegag-channel-name {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .ninegag-channel-meta {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header-bird-standalone {
    flex-shrink: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    transform: translate(2px, -5px) !important;
  }

  .header-bird-standalone-img {
    width: 20px !important;
    height: 18px !important;
  }

  .ninegag-post-header .header-bird-standalone+.visit-category-tab-btn {
    margin-left: 4px !important;
  }

  .visit-category-tab-btn {
    padding: 5px 11px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: translate(2px, -5px) !important;
  }
}

/* Visit Category Tab Button (Solid Yellow with Black Text - Image 2) */
.visit-category-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #000000 !important;
  background: var(--accent, #facc15) !important;
  border: 1px solid var(--accent, #facc15) !important;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: 0;
  margin-right: 0;
  transform: translate(2px, -7px);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.visit-category-tab-btn:hover {
  background: var(--accent-hover, #eab308) !important;
  border-color: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  transform: translate(2px, -8px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.visit-category-tab-btn svg {
  stroke: #000000 !important;
  transition: transform 0.2s ease;
}

.visit-category-tab-btn:hover svg {
  transform: translateX(2px);
}

[data-theme="light"] .visit-category-tab-btn {
  background: var(--accent, #facc15) !important;
  border-color: var(--accent, #facc15) !important;
  color: #000000 !important;
}

[data-theme="light"] .visit-category-tab-btn:hover {
  background: var(--accent-hover, #eab308) !important;
  border-color: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
}

.ninegag-more-btn {
  display: none !important;
}

/* ===================================================
   MEDIA & STORY CARD (Matching Image 1: Image first, text & contents after)
   =================================================== */

.ninegag-media-box {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-card, #000000);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .ninegag-media-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ninegag-media-box .ninegag-img-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--bg-card, #000000);
}

.ninegag-media-box .ninegag-img-wrap::after {
  display: none !important;
}

.ninegag-media-box .ninegag-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Floating Plus Button on bottom-right of image (Matching Image 1 & 3) */
.image-source-toggle-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.image-source-toggle-btn:hover {
  transform: scale(1.1);
  background: #0a0a0e;
  border-color: #ffffff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.85);
}

.image-source-toggle-btn .plus-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.image-source-toggle-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.image-source-toggle-btn.active .plus-icon {
  transform: rotate(45deg);
  stroke: #000000;
}

/* Floating Image Source Popup */
.image-source-popup {
  position: absolute;
  bottom: 18px;
  right: 68px;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px) scale(0.96);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.image-source-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.image-source-popup svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.image-source-popup .img-source-label {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.image-source-popup .img-source-val {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===================================================
   Floating Comments Capsule on Article Image (Matching Images 1 & 3)
   =================================================== */
.article-floating-comments-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  padding: 6px 20px 6px 7px;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
  outline: none;
  font-family: inherit;
}

.article-floating-comments-badge:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.14);
}

.article-floating-comments-badge:active {
  transform: translateY(0);
}

.afc-icon-circle {
  width: 36px;
  height: 36px;
  background: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.afc-icon-circle svg {
  display: block;
}

.afc-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.25;
  text-align: left;
}

.afc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  font-family: var(--font, 'Inter', -apple-system, sans-serif);
}

.afc-subtitle {
  font-size: 0.76rem;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.01em;
  font-family: var(--font, 'Inter', -apple-system, sans-serif);
}

@media (max-width: 768px) {
  .article-floating-comments-badge,
  .ranker-floating-comments-badge {
    top: 10px !important;
    left: 10px !important;
    padding: 3px 10px 3px 4px !important;
    gap: 6px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  }

  .article-floating-comments-badge .afc-icon-circle,
  .ranker-floating-comments-badge .afc-icon-circle {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
  }

  .article-floating-comments-badge .afc-icon-circle svg,
  .ranker-floating-comments-badge .afc-icon-circle svg {
    width: 11px !important;
    height: 11px !important;
    stroke-width: 2.2 !important;
  }

  .article-floating-comments-badge .afc-text-block,
  .ranker-floating-comments-badge .afc-text-block {
    line-height: 1.15 !important;
  }

  .article-floating-comments-badge .afc-title,
  .ranker-floating-comments-badge .afc-title {
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }

  .article-floating-comments-badge .afc-subtitle,
  .ranker-floating-comments-badge .afc-subtitle {
    font-size: 0.56rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    margin-top: 1px !important;
  }
}

@media (max-width: 480px) {
  .article-floating-comments-badge,
  .ranker-floating-comments-badge {
    top: 8px !important;
    left: 8px !important;
    padding: 2.5px 8px 2.5px 3.5px !important;
    gap: 5px !important;
  }

  .article-floating-comments-badge .afc-icon-circle,
  .ranker-floating-comments-badge .afc-icon-circle {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  .article-floating-comments-badge .afc-icon-circle svg,
  .ranker-floating-comments-badge .afc-icon-circle svg {
    width: 10px !important;
    height: 10px !important;
  }

  .article-floating-comments-badge .afc-title,
  .ranker-floating-comments-badge .afc-title {
    font-size: 0.66rem !important;
  }

  .article-floating-comments-badge .afc-subtitle,
  .ranker-floating-comments-badge .afc-subtitle {
    font-size: 0.52rem !important;
  }
}

/* Birdchat inline comments capsule button (Image 2 style) */
.birdchat-comments-capsule-btn {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  padding: 6px 20px 6px 7px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  text-decoration: none !important;
  font-family: inherit !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
}

.birdchat-comments-capsule-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
}

.birdchat-comments-capsule-btn:active {
  transform: translateY(0) !important;
}

/* Ranker floating comments badge on 1st ranking item image */
.ranker-floating-comments-badge {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  z-index: 15 !important;
  cursor: pointer !important;
}

/* Remove 2nd image comment button from action bars on article page */
.ninegag-action-bar .ninegag-comments-btn,
.poll-action-bar .ninegag-comments-btn,
.ranker-action-bar .ninegag-comments-btn,
.ninegag-comments-btn {
  display: none !important;
}

/* ===================================================
   50-Word Story Card (Matching Image 1 Design with Scalloped Edge + Contents of Image 2)
   =================================================== */
.story-50-outer-card {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(250, 204, 21, 0.35), 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-top: -46px;
  /* Overlaps bottom of the hero image */
  margin-bottom: 26px;
  z-index: 3;
  padding: 28px 46px 24px 28px;
  transition: box-shadow 0.2s ease;
}

[data-theme="light"] .story-50-outer-card {
  background: linear-gradient(135deg, #facc15 0%, #eab308 100%) !important;
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.3), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===================================================
   Article Story Narrative (BoredPanda-Inspired Editorial Format)
   =================================================== */
.article-story-narrative {
  margin: 12px 0 32px 0;
  padding: 10px 4px 0 4px;
  position: relative;
  z-index: 2;
}

.article-narrative-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.16rem;
  /* ~18.5px, crisp editorial body font */
  line-height: 1.8;
  color: #e2e8f0;
  letter-spacing: -0.003em;
  font-weight: 400;
}

[data-theme="light"] .article-narrative-body {
  color: #24292f;
}

/* Paragraph spacing matching Image 1 & Bored Panda */
.article-narrative-paragraph {
  margin: 0 0 24px 0;
  line-height: 1.82;
  word-break: break-word;
}

.article-narrative-paragraph:last-child {
  margin-bottom: 0;
}

/* Inline Article Images: Equal Top & Bottom Spacing + Rounded Corners (Matching User Request) */
.article-narrative-body img,
.article-story-narrative img,
.article-narrative-paragraph img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
}

.article-narrative-body figure,
.article-story-narrative figure {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.article-narrative-body figure img,
.article-story-narrative figure img {
  border-radius: 14px !important;
  margin: 0 auto !important;
}

/* Image 2: Bold Classic Serif Drop Cap on the First Letter */
.article-narrative-body .drop-cap-letter {
  float: left;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 4.8rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  margin-right: 6px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  display: block;
}

[data-theme="light"] .article-narrative-body .drop-cap-letter {
  color: #111111;
}

/* CSS pseudo-element fallback for drop cap */
.article-narrative-body>.article-narrative-paragraph:first-child:not(:has(.drop-cap-letter))::first-letter {
  float: left;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 4.8rem;
  line-height: 0.8;
  padding-top: 4px;
  padding-right: 12px;
  padding-bottom: 2px;
  margin-right: 6px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

[data-theme="light"] .article-narrative-body>.article-narrative-paragraph:first-child:not(:has(.drop-cap-letter))::first-letter {
  color: #111111;
}

/* Vibrant Yellow Links inside story body (Matching Image 3 Spec) */
#articleNarrativeBody a,
.article-narrative-body a,
.article-narrative-paragraph a,
.article-story-narrative a {
  color: #facc15 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

#articleNarrativeBody a:hover,
.article-narrative-body a:hover,
.article-narrative-paragraph a:hover,
.article-story-narrative a:hover {
  color: #fde047 !important;
  text-decoration-color: #fde047 !important;
}

[data-theme="light"] #articleNarrativeBody a,
[data-theme="light"] .article-narrative-body a,
[data-theme="light"] .article-narrative-paragraph a,
[data-theme="light"] .article-story-narrative a {
  color: #ca8a04 !important;
  text-decoration-color: #ca8a04 !important;
}

[data-theme="light"] #articleNarrativeBody a:hover,
[data-theme="light"] .article-narrative-body a:hover,
[data-theme="light"] .article-narrative-paragraph a:hover,
[data-theme="light"] .article-story-narrative a:hover {
  color: #a16207 !important;
  text-decoration-color: #a16207 !important;
}

/* Image 1: Bold editorial display serif subheadings */
.article-narrative-body h2,
.article-narrative-body h3,
.article-narrative-subheading {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.28;
  margin: 36px 0 16px 0;
  color: #ffffff;
  letter-spacing: -0.015em;
  display: block;
}

[data-theme="light"] .article-narrative-body h2,
[data-theme="light"] .article-narrative-body h3,
[data-theme="light"] .article-narrative-subheading {
  color: #111111;
}

/* Photo attribution caption matching top of Image 1 */
.article-narrative-body .caption-credit {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: -8px 0 18px 0;
  font-style: normal;
}

[data-theme="light"] .article-narrative-body .caption-credit {
  color: #71767b;
}

/* Strong / bold keywords */
.article-narrative-body strong,
.article-narrative-body b {
  font-weight: 700;
  color: #ffffff;
}

[data-theme="light"] .article-narrative-body strong,
[data-theme="light"] .article-narrative-body b {
  color: #111111;
}

/* Italicized quotes and outlets */
.article-narrative-body em,
.article-narrative-body i {
  font-style: italic;
  color: inherit;
}


/* ===================================================
   No-Image Article Handling & Overlap Glitch Prevention
   =================================================== */
.has-no-image #newsStoryCardMedia,
#newsStoryCardMedia.no-image,
#newsStoryCardMedia.is-hidden,
.ninegag-media-box.no-image,
.ninegag-media-box.is-hidden,
.ninegag-media-box:has(#newsStoryImg:not([src])),
.ninegag-media-box:has(#newsStoryImg[src=""]),
.ninegag-media-box:has(#newsStoryImg[src="about:blank"]) {
  display: none !important;
}

.has-no-image #story50OuterCard,
.has-no-image .story-50-outer-card,
.story-50-outer-card.no-hero-image,
#newsStoryCardMedia.no-image+#story50OuterCard,
#newsStoryCardMedia.is-hidden+#story50OuterCard,
#newsStoryCardMedia[style*="display: none"]+#story50OuterCard,
#newsStoryCardMedia.no-image+.story-50-outer-card,
#newsStoryCardMedia.is-hidden+.story-50-outer-card,
#newsStoryCardMedia[style*="display: none"]+.story-50-outer-card,
.ninegag-media-box.no-image+.story-50-outer-card,
.ninegag-media-box.is-hidden+.story-50-outer-card,
.ninegag-media-box[style*="display: none"]+.story-50-outer-card,
.ninegag-media-box:has(#newsStoryImg:not([src]))+.story-50-outer-card,
.ninegag-media-box:has(#newsStoryImg[src=""])+.story-50-outer-card,
.ninegag-media-box:has(#newsStoryImg[src="about:blank"])+.story-50-outer-card {
  margin-top: 18px !important;
  transition: none !important;
  animation: none !important;
}

.has-no-image .ninegag-action-bar .ninegag-comments-btn,
#newsStoryCardMedia.no-image~.ninegag-action-bar .ninegag-comments-btn,
#newsStoryCardMedia.is-hidden~.ninegag-action-bar .ninegag-comments-btn,
#newsStoryCardMedia[style*="display: none"]~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box.no-image~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box.is-hidden~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box[style*="display: none"]~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box:has(#newsStoryImg:not([src]))~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box:has(#newsStoryImg[src=""])~.ninegag-action-bar .ninegag-comments-btn,
.ninegag-media-box:has(#newsStoryImg[src="about:blank"])~.ninegag-action-bar .ninegag-comments-btn {
  display: inline-flex !important;
}

/* Remove category highlighter badge inside article */
#articleMetaTag,
#articleMetaTagDot,
.article-byline-bar #articleMetaTag,
.article-byline-bar .card-tag,
#articleMetaTag+.byline-dot,
.article-byline-left .card-tag:first-child,
.article-byline-left .card-tag:first-child+.byline-dot {
  display: none !important;
}

/* Scalloped wavy edge on right with white translucent fill matching Image 1 */
.story-50-scallop-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4,0 C12,0 18,5.4 18,12 C18,18.6 12,24 4,24 L24,24 L24,0 Z' fill='%23ffffff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right top;
  pointer-events: none;
  z-index: 2;
}

.story-50-card-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

/* 1. Supertag Pill on Top (from Image 2) - Removed as requested */
.supertag-wrapper {
  display: none !important;
  margin-bottom: 0 !important;
  position: relative;
}

.supertag-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.supertag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  /* Crisp white pill matching user request */
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 5px 18px 5px 5px;
  color: #0f172a;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  max-width: 100%;
}

.supertag-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
  background: #f8fafc;
}

.supertag-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #00aeec;
  /* Brand accent circle to pop on white pill */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
}

.supertag-icon-circle svg {
  transition: transform 0.4s ease;
}

.supertag-pill:hover .supertag-icon-circle svg {
  transform: rotate(180deg);
}

.supertag-text {
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Story Description (crisp black typography on vibrant yellow card) */
.story-50-desc {
  font-size: 1.05rem;
  line-height: 1.62;
  color: #000000 !important;
  margin: 0 0 20px 0;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-shadow: none !important;
  max-width: 820px;
}

[data-theme="light"] .story-50-desc {
  color: #000000 !important;
  text-shadow: none !important;
}

/* 3. Actions Row (Read Full Story button + View All Stories link) */
.story-50-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.story-50-tab-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.story-50-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #18191d;
  /* Dark capsule pill on orange card */
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 5px 16px 5px 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.story-50-tab-btn:hover {
  background: #252830;
  color: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.story-50-tab-btn:active {
  transform: scale(0.98);
}

.story-tab-logo-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #facc15 !important;
  border: 1px solid #eab308 !important;
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.4) !important;
}

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

.story-tab-label {
  white-space: nowrap;
}

/* Coming Soon Floating Mini-Popup */
.story-tab-popup {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(-6px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.22s;
  pointer-events: none;
  z-index: 60;
}

.story-tab-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0) scale(1);
  pointer-events: auto;
}

.story-popup-icon {
  font-size: 1rem;
  line-height: 1;
}

.story-popup-text {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.story-popup-arrow {
  position: absolute;
  left: -5px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: #111317;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}

/* 4. Footer Link ("View All ... Stories") - Removed per user request */
.story-50-footer-link {
  display: none !important;
}

@media (max-width: 640px) {
  .story-50-outer-card {
    border-radius: 16px;
    padding: 20px 34px 18px 18px;
    margin-top: -36px;
  }

  .story-50-desc {
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .story-50-actions-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .image-source-toggle-btn {
    bottom: 16px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .image-source-popup {
    right: 58px !important;
    bottom: 16px !important;
    max-width: calc(100% - 76px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .story-tab-popup {
    left: 0;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(6px) scale(0.92);
  }

  .story-tab-popup.show {
    transform: translateY(0) scale(1);
  }

  .story-popup-arrow {
    left: 20px;
    top: auto;
    bottom: -5px;
    border-left: none;
    border-right: 1px solid rgba(0, 174, 236, 0.5);
    border-bottom: 1px solid rgba(0, 174, 236, 0.5);
  }
}

/* 2. Headline, Subtitle & Meta Row ABOVE the Image (Matching 2nd Image) */
.article-content-above-image {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.card-headline,
.ninegag-post-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.16;
  color: var(--text-white, #ffffff);
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
}

[data-theme="light"] .card-headline,
[data-theme="light"] .ninegag-post-title {
  color: #0f172a;
}

.card-summary,
.threads-card-prompt-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
  margin: 0 0 18px 0;
  letter-spacing: 0.05px;
}

[data-theme="light"] .card-summary,
[data-theme="light"] .threads-card-prompt-text {
  color: #475569;
}

@media (max-width: 768px) {
  .article-round-back-btn {
    display: none !important;
  }

  /* Expand post card wider to cover black space on left & right */
  .ninegag-post-card {
    padding: 14px 12px 0 12px !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Part 1: Headline & Subtitle widened across the screen */
  .article-content-above-image {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-headline,
  .ninegag-post-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-summary,
  .threads-card-prompt-text {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
    margin: 0 0 14px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Part 2: Author Row & Share Row widened across the screen */
  .ranker-author-meta-row {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
  }

  .article-byline-bar {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 8px 0 14px 0 !important;
  }

  /* Part 3: Full-bleed edge-to-edge media image matching Image 4 */
  .ninegag-media-box,
  .card-media.ninegag-media-box {
    width: calc(100% + 24px) !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .ninegag-media-box .ninegag-img-wrap {
    border-radius: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .ninegag-media-box .ninegag-img {
    border-radius: 0 !important;
    width: 100% !important;
    display: block !important;
  }

  /* Part 3: Widened Yellow 50-word note card */
  .story-50-outer-card {
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    padding: 20px 34px 18px 18px !important;
    margin-top: -36px !important;
    margin-bottom: 22px !important;
  }

  /* Part 3: Editorial narrative text widened with comfortable reading margins */
  .article-story-narrative {
    padding: 4px 2px 0 2px !important;
    margin: 6px 0 24px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .article-narrative-body {
    font-size: 1.12rem !important;
    line-height: 1.76 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .ninegag-action-bar {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 0 10px 0 !important;
  }

  .ninegag-tabs-row {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .bp-comments-view {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  .article-breadcrumbs-strip {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .ninegag-post-card {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .ninegag-media-box,
  .card-media.ninegag-media-box {
    width: calc(100% + 20px) !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
  }

  .card-headline,
  .ninegag-post-title {
    font-size: 1.7rem !important;
    line-height: 1.2 !important;
  }

  .card-summary,
  .threads-card-prompt-text {
    font-size: 1rem !important;
    line-height: 1.52 !important;
  }

  .story-50-outer-card {
    padding: 18px 30px 16px 14px !important;
  }

  .ninegag-tabs-row,
  .bp-comments-view,
  .article-breadcrumbs-strip {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Card Meta Row (Matching Image 1: Solid category fill with white text) */
.article-content-above-image .card-meta,
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Card Tag Pills - Vibrant Yellow with Black Text (Matching Image 1 Theme Spec) */
.article-content-above-image .card-tag,
.card-tag,
.card-tag[data-cat] {
  font-size: 0.72rem;
  font-weight: 800 !important;
  color: #000000 !important;
  background: #facc15 !important;
  padding: 4px 12px;
  border-radius: var(--radius-pill, 999px);
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
}

.article-content-above-image .card-tag:hover,
.card-tag:hover,
.card-tag[data-cat]:hover {
  filter: brightness(1.05);
  background: #eab308 !important;
  color: #000000 !important;
}

.card-tag[data-cat="sports"],
.card-tag[data-cat="geopolitics"],
.card-tag[data-cat="tech"],
.card-tag[data-cat="finance"],
.card-tag[data-cat="entertainment"],
.card-tag[data-cat="business"],
.card-tag[data-cat="science"],
.card-tag[data-cat="social"],
.card-tag[data-cat="social-media"],
.card-tag[data-cat="ranker"],
.card-tag[data-cat="polls"] {
  background: #facc15 !important;
  color: #000000 !important;
}

.article-content-above-image .card-stat,
.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-secondary, #cbd5e1);
  font-weight: 500;
}

[data-theme="light"] .article-content-above-image .card-stat,
[data-theme="light"] .card-stat {
  color: #334155;
}

#articleMetaReadTime {
  display: none !important;
}

.article-content-above-image .card-date,
.card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #e2e8f0 !important;
  font-weight: 500;
}

[data-theme="light"] .article-content-above-image .card-date,
[data-theme="light"] .card-date {
  color: #334155 !important;
}

.card-date svg {
  width: 13px;
  height: 13px;
  opacity: 0.85;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ===================================================
   ARTICLE BYLINE & SHARE STRIP (Exact Image 1 Match)
   =================================================== */
.article-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
}

[data-theme="light"] .article-byline-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.article-byline-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-byline-author {
  font-size: 0.84rem;
  font-style: normal;
  color: var(--text-secondary, #94a3b8);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-byline-author span {
  font-style: normal;
  font-weight: 700;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .article-byline-author span {
  color: #0f172a;
}

.byline-dot {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
}

.article-share-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .article-byline-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .article-share-strip {
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

.share-strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff !important;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.share-strip-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.share-strip-btn:active {
  transform: translateY(0);
}

.share-strip-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.share-strip-btn:not(.share-btn-fb):not(.share-btn-reddit):not(.share-btn-copy) svg {
  fill: currentColor;
}

/* Individual Button Colors matching 8-Icon Strip */
.share-strip-btn.share-btn-tw,
.share-strip-btn.share-btn-x {
  background: #000000 !important;
  /* 1. X (Black in light mode) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-bluesky {
  background: #1185fe !important;
  /* 2. Bluesky (Vibrant Blue) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-mastodon {
  background: #5c4ee5 !important;
  /* 3. Mastodon (Purple) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-threads {
  background: #000000 !important;
  /* 4. Threads (Black in light mode) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-fb {
  background: #1877f2 !important;
  /* 5. Facebook (Blue) */
}

.share-strip-btn.share-btn-reddit {
  background: #ff4500 !important;
  /* 6. Reddit (Red-Orange) */
}

.share-strip-btn.share-btn-gmail {
  background: #ea4335 !important;
  /* 7. Gmail (Red) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-copy {
  background: #ff5722 !important;
  /* 8. Copy Link (Orange) */
  color: #ffffff !important;
}

.share-strip-btn.share-btn-copy svg {
  stroke: #ffffff;
  fill: none;
}

.share-strip-btn.share-btn-fb svg,
.share-strip-btn.share-btn-reddit svg {
  width: 24px;
  height: 24px;
}

.share-strip-btn.share-btn-gmail svg {
  width: 20px;
  height: 20px;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .share-strip-btn.share-btn-tw,
html:not([data-theme="light"]) .share-strip-btn.share-btn-x,
[data-theme="dark"] .share-strip-btn.share-btn-tw,
[data-theme="dark"] .share-strip-btn.share-btn-x,
html:not([data-theme="light"]) .share-strip-btn.share-btn-threads,
[data-theme="dark"] .share-strip-btn.share-btn-threads {
  background: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .share-strip-btn.share-btn-tw svg,
html:not([data-theme="light"]) .share-strip-btn.share-btn-x svg,
[data-theme="dark"] .share-strip-btn.share-btn-tw svg,
[data-theme="dark"] .share-strip-btn.share-btn-x svg,
html:not([data-theme="light"]) .share-strip-btn.share-btn-threads svg,
[data-theme="dark"] .share-strip-btn.share-btn-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .share-strip-btn.share-btn-tw,
[data-theme="light"] .share-strip-btn.share-btn-x,
[data-theme="light"] .share-strip-btn.share-btn-threads {
  background: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .share-strip-btn.share-btn-tw svg,
[data-theme="light"] .share-strip-btn.share-btn-x svg,
[data-theme="light"] .share-strip-btn.share-btn-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.threads-card-subprompt-text {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
}

.threads-card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.threads-card-comments-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #f43f5e;
}

.threads-comments-icon svg {
  fill: #f43f5e;
  display: inline-block;
  vertical-align: middle;
}

.threads-comments-num {
  line-height: 1;
}

.threads-card-shares {
  display: flex;
  align-items: center;
  gap: 8px;
}

.threads-share-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  color: #ffffff !important;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.threads-share-circle svg {
  width: 15px;
  height: 15px;
  display: block;
}

.threads-share-circle:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.threads-share-circle.threads-share-x {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-bs {
  background-color: #1185fe !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-mastodon {
  background-color: #5c4ee5 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-threads {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-fb {
  background-color: #1877f2 !important;
}

.threads-share-circle.threads-share-reddit {
  background-color: #ff4500 !important;
}

.threads-share-circle.threads-share-email {
  background-color: #ea4335 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-link {
  background-color: #ff5722 !important;
  color: #ffffff !important;
}

.threads-share-circle.threads-share-fb svg,
.threads-share-circle.threads-share-reddit svg {
  width: 24px;
  height: 24px;
}

.threads-share-circle.threads-share-email svg {
  width: 20px;
  height: 20px;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .threads-share-circle.threads-share-x,
[data-theme="dark"] .threads-share-circle.threads-share-x,
html:not([data-theme="light"]) .threads-share-circle.threads-share-threads,
[data-theme="dark"] .threads-share-circle.threads-share-threads {
  background-color: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .threads-share-circle.threads-share-x svg,
[data-theme="dark"] .threads-share-circle.threads-share-x svg,
html:not([data-theme="light"]) .threads-share-circle.threads-share-threads svg,
[data-theme="dark"] .threads-share-circle.threads-share-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .threads-share-circle.threads-share-x,
[data-theme="light"] .threads-share-circle.threads-share-threads {
  background-color: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .threads-share-circle.threads-share-x svg,
[data-theme="light"] .threads-share-circle.threads-share-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* 4. Tags Row (Image 1 style) */
.ninegag-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 12px 0;
}

.ninegag-tag-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ninegag-tag-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

[data-theme="light"] .ninegag-tag-pill {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .ninegag-tag-pill:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

/* 5. Action / Engagement Bar: 9GAG-Style Bar (Matching Image 1: strictly single row, never wrapped) */
.ninegag-action-bar {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 12px 0 10px 0 !important;
  border-top: none !important;
  border-bottom: none !important;
  margin-bottom: 22px !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ninegag-action-bar::-webkit-scrollbar {
  display: none !important;
}

.ranker-action-bar {
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
}

[data-theme="light"] .ranker-action-bar {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.ninegag-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  .ninegag-action-bar {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .ninegag-action-left {
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .ninegag-action-btn.ninegag-google-btn,
  #threadsRecGoogleBtn {
    max-width: 100% !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }
}

.ninegag-action-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0 !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

/* Google Preferred Source Button (in Action Bar with Google Theme Color) */
.ninegag-action-btn.ninegag-google-btn,
#threadsRecGoogleBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 16px !important;
  background: #1a73e8 !important;
  border: 1px solid #1a73e8 !important;
  border-radius: 9999px !important;
  font-family: var(--font), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.28) !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .ninegag-action-btn.ninegag-google-btn,
[data-theme="light"] #threadsRecGoogleBtn {
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
  color: #ffffff !important;
}

.ninegag-action-btn.ninegag-google-btn:hover,
#threadsRecGoogleBtn:hover {
  background: #1557b0 !important;
  border-color: #1557b0 !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.45) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

.ninegag-action-btn.ninegag-google-btn:active,
#threadsRecGoogleBtn:active {
  background: #174ea6 !important;
  transform: translateY(0) !important;
}

.google-btn-icon-circle {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

.google-btn-icon-circle svg {
  display: block !important;
}

.ninegag-google-text {
  display: inline-flex !important;
  align-items: center !important;
}

.ninegag-google-text-short {
  display: none !important;
}

@media (max-width: 1280px) {
  .ninegag-google-text-full {
    display: none !important;
  }

  .ninegag-google-text-short {
    display: inline !important;
  }
}

/* Poll Google button — small size matching ranker and birdchat */
.poll-action-bar .ninegag-action-btn.ninegag-google-btn,
#pollGoogleBtn,
.poll-google-icon-btn.ninegag-action-btn.ninegag-google-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  gap: 6px !important;
}

.poll-action-bar .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
#pollGoogleBtn .google-btn-icon-circle,
.poll-google-icon-btn .google-btn-icon-circle {
  width: 18px !important;
  height: 18px !important;
}

/* 1. Upvote / Downvote Group: [ ⇧ 4.3K ⇩ ] */
.ninegag-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  height: 38px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  user-select: none !important;
  transition: background 0.18s ease, border-color 0.15s ease !important;
}

[data-theme="light"] .ninegag-vote-pill {
  background: #eaedf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.ninegag-vote-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .ninegag-vote-pill:hover {
  background: #dfe3e7 !important;
}

.ninegag-vote-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  transition: transform 0.1s ease, color 0.15s ease !important;
  flex-shrink: 0 !important;
}

.ninegag-vote-btn svg {
  stroke: #94a3b8 !important;
  fill: none !important;
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

[data-theme="light"] .ninegag-vote-btn svg {
  stroke: #64748b !important;
}

.ninegag-vote-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
  transform: scale(1.12) !important;
}

.ninegag-vote-btn:hover svg {
  stroke: #facc15 !important;
}

.ninegag-vote-btn.vote-down-btn:hover,
.ninegag-vote-btn.ninegag-vote-down:hover {
  background: transparent !important;
  color: #ef4444 !important;
  transform: scale(1.12) !important;
}

.ninegag-vote-btn.vote-down-btn:hover svg,
.ninegag-vote-btn.ninegag-vote-down:hover svg {
  stroke: #ef4444 !important;
}

[data-theme="light"] .ninegag-vote-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
}

[data-theme="light"] .ninegag-vote-btn.vote-down-btn:hover,
[data-theme="light"] .ninegag-vote-btn.ninegag-vote-down:hover {
  color: #ef4444 !important;
  background: transparent !important;
}

@keyframes instagramLikePop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.4) rotate(-8deg);
  }

  60% {
    transform: scale(0.9) rotate(3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.ninegag-vote-btn.active-up,
.ninegag-vote-btn.active-like {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.ninegag-vote-btn.active-up svg,
.ninegag-vote-btn.active-like svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.ninegag-vote-btn.active-down,
.ninegag-vote-btn.active-dislike {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.ninegag-vote-btn.active-down svg,
.ninegag-vote-btn.active-dislike svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

.ninegag-vote-count {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  padding: 0 2px !important;
  min-width: 20px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
  user-select: none !important;
}

[data-theme="light"] .ninegag-vote-count {
  color: #0f172a !important;
}

/* 2. Action Buttons: Comments, Coffee, Save, Share */
.ninegag-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--font, inherit) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .ninegag-action-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #334155 !important;
}

.ninegag-action-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .ninegag-action-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

.ninegag-action-btn:active {
  transform: translateY(0) !important;
}

.ninegag-action-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}

.ninegag-save-btn {
  border-radius: 9999px !important;
  padding: 0 16px !important;
}

/* ===================================================
   ARTICLE PAGE COFFEE BUTTON (Matching Image 1 & Image 2):
   - Default: Pill matching Image 2
   - Hover: Peach warm glow + cup tilt animation
   - Active: Solid vibrant orange pill (#009cd3) with shadow
   =================================================== */
@keyframes coffeePopAnimation {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.ninegag-action-btn.ninegag-coffee-btn,
.ninegag-coffee-btn,
#ninegagCoffeeBtn,
#pollCoffeeBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-family: var(--font, inherit) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  user-select: none !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn,
[data-theme="light"] .ninegag-coffee-btn,
[data-theme="light"] #ninegagCoffeeBtn,
[data-theme="light"] #pollCoffeeBtn {
  background: #f1f2f4 !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.ninegag-action-btn.ninegag-coffee-btn svg,
.ninegag-coffee-btn svg,
#ninegagCoffeeBtn svg,
#pollCoffeeBtn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease !important;
}

/* Ninegag coffee button: Normal style */
.ninegag-action-btn.ninegag-coffee-btn svg,
.ninegag-coffee-btn svg,
#ninegagCoffeeBtn svg,
#pollCoffeeBtn svg {
  stroke: currentColor !important;
  transform: none !important;
}

/* Hover, Focus, Active, Selected: Yellow vibrant glow + gold border (NO BLUE) */
.ninegag-action-btn.ninegag-coffee-btn:hover,
.ninegag-coffee-btn:hover,
#ninegagCoffeeBtn:hover,
#pollCoffeeBtn:hover,
.ninegag-action-btn.ninegag-coffee-btn:focus,
.ninegag-coffee-btn:focus,
#ninegagCoffeeBtn:focus,
#pollCoffeeBtn:focus,
.ninegag-action-btn.ninegag-coffee-btn:active,
.ninegag-coffee-btn:active,
#ninegagCoffeeBtn:active,
#pollCoffeeBtn:active,
.ninegag-action-btn.ninegag-coffee-btn.active-coffee,
.ninegag-coffee-btn.active-coffee,
#ninegagCoffeeBtn.active-coffee,
#pollCoffeeBtn.active-coffee {
  background: rgba(250, 204, 21, 0.14) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45) !important;
}

[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:hover,
[data-theme="light"] .ninegag-coffee-btn:hover,
[data-theme="light"] #ninegagCoffeeBtn:hover,
[data-theme="light"] #pollCoffeeBtn:hover,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:focus,
[data-theme="light"] .ninegag-coffee-btn:focus,
[data-theme="light"] #ninegagCoffeeBtn:focus,
[data-theme="light"] #pollCoffeeBtn:focus,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:active,
[data-theme="light"] .ninegag-coffee-btn:active,
[data-theme="light"] #ninegagCoffeeBtn:active,
[data-theme="light"] #pollCoffeeBtn:active,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn.active-coffee,
[data-theme="light"] .ninegag-coffee-btn.active-coffee,
[data-theme="light"] #ninegagCoffeeBtn.active-coffee,
[data-theme="light"] #pollCoffeeBtn.active-coffee {
  background: rgba(250, 204, 21, 0.16) !important;
  border: 1.5px solid #d97706 !important;
  color: #b45309 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3) !important;
}

.ninegag-action-btn.ninegag-coffee-btn:hover svg,
.ninegag-coffee-btn:hover svg,
#ninegagCoffeeBtn:hover svg,
#pollCoffeeBtn:hover svg,
.ninegag-action-btn.ninegag-coffee-btn:focus svg,
.ninegag-coffee-btn:focus svg,
#ninegagCoffeeBtn:focus svg,
#pollCoffeeBtn:focus svg,
.ninegag-action-btn.ninegag-coffee-btn:active svg,
.ninegag-coffee-btn:active svg,
#ninegagCoffeeBtn:active svg,
#pollCoffeeBtn:active svg,
.ninegag-action-btn.ninegag-coffee-btn.active-coffee svg,
.ninegag-coffee-btn.active-coffee svg,
#ninegagCoffeeBtn.active-coffee svg,
#pollCoffeeBtn.active-coffee svg {
  transform: rotate(-10deg) scale(1.12) !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:hover svg,
[data-theme="light"] .ninegag-coffee-btn:hover svg,
[data-theme="light"] #ninegagCoffeeBtn:hover svg,
[data-theme="light"] #pollCoffeeBtn:hover svg,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:focus svg,
[data-theme="light"] .ninegag-coffee-btn:focus svg,
[data-theme="light"] #ninegagCoffeeBtn:focus svg,
[data-theme="light"] #pollCoffeeBtn:focus svg,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn:active svg,
[data-theme="light"] .ninegag-coffee-btn:active svg,
[data-theme="light"] #ninegagCoffeeBtn:active svg,
[data-theme="light"] #pollCoffeeBtn:active svg,
[data-theme="light"] .ninegag-action-btn.ninegag-coffee-btn.active-coffee svg,
[data-theme="light"] .ninegag-coffee-btn.active-coffee svg,
[data-theme="light"] #ninegagCoffeeBtn.active-coffee svg,
[data-theme="light"] #pollCoffeeBtn.active-coffee svg {
  stroke: #b45309 !important;
}

/* When Saved: Image 4 Specification (Yellow border, Yellow filled bookmark ribbon, Yellow Saved text) */
.ninegag-save-btn.active-saved,
.card-save-btn.active-saved,
.card-action-btn.card-save-btn.active-saved {
  background: rgba(250, 204, 21, 0.06) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

[data-theme="light"] .ninegag-save-btn.active-saved,
[data-theme="light"] .card-save-btn.active-saved,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved {
  background: rgba(234, 179, 8, 0.1) !important;
  border: 1.5px solid #ca8a04 !important;
  color: #a16207 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.2) !important;
}

.ninegag-save-btn.active-saved:hover,
.card-save-btn.active-saved:hover,
.card-action-btn.card-save-btn.active-saved:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: #fde047 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.4) !important;
  transform: translateY(-1px) !important;
}

.ninegag-save-btn.active-saved svg,
.card-save-btn.active-saved svg,
.card-action-btn.card-save-btn.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .ninegag-save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active-saved svg,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

.ninegag-save-btn.active-saved span,
.card-save-btn.active-saved span,
.card-action-btn.card-save-btn.active-saved span,
.card-action-btn.card-save-btn.active-saved .save-btn-text {
  color: #facc15 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .ninegag-save-btn.active-saved span,
[data-theme="light"] .card-save-btn.active-saved span,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved span,
[data-theme="light"] .card-action-btn.card-save-btn.active-saved .save-btn-text {
  color: #a16207 !important;
}

/* 3. Circular Share Icons (WhatsApp & Messenger) */
.ninegag-circle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .ninegag-circle-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}

.ninegag-circle-btn:hover {
  transform: translateY(-1px) !important;
}

.ninegag-circle-btn:active {
  transform: translateY(0) !important;
}

.ninegag-circle-btn.whatsapp:hover,
.ninegag-whatsapp-btn:hover {
  background: #25D366 !important;
  color: #ffffff !important;
}

.ninegag-circle-btn.messenger:hover,
.ninegag-messenger-btn:hover {
  background: #0084FF !important;
  color: #ffffff !important;
}

.card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none !important;
  margin-bottom: 0 !important;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================
   Unified Card Vote Pill Capsule (.card-vote-pill)
/* ==========================================
   YouTube-Style Action Pills (Matching Image 1)
   [ 👍 16K | 👎 ] [ ➦ Share ] [ ✦ Ask ] [ ⤓ Download ] [ ••• ]
   ========================================== */
.card-vote-pill,
.vote-pill-tab,
.ninegag-tab-pill-group.vote-pill-tab {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: 36px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  gap: 0 !important;
  vertical-align: middle !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill,
[data-theme="light"] .vote-pill-tab,
[data-theme="light"] .ninegag-tab-pill-group.vote-pill-tab {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.card-vote-pill:hover,
.vote-pill-tab:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.card-vote-pill,
.vote-pill-tab,
.ninegag-tab-pill-group.vote-pill-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill,
[data-theme="light"] .vote-pill-tab,
[data-theme="light"] .ninegag-tab-pill-group.vote-pill-tab {
  background: #eaedf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.card-vote-pill:hover,
.vote-pill-tab:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .card-vote-pill:hover,
[data-theme="light"] .vote-pill-tab:hover {
  background: #dfe3e7 !important;
}

.card-vote-pill .vote-up-btn,
.vote-pill-tab .vote-up-btn,
.vote-pill-btn.vote-up-btn,
.card-vote-pill .vote-down-btn,
.vote-pill-tab .vote-down-btn,
.vote-pill-btn.vote-down-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: inherit !important;
  height: 24px !important;
  width: 24px !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  border-radius: 0 !important;
  transition: transform 0.1s ease, color 0.15s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn,
[data-theme="light"] .vote-pill-tab .vote-up-btn,
[data-theme="light"] .vote-pill-btn.vote-up-btn,
[data-theme="light"] .card-vote-pill .vote-down-btn,
[data-theme="light"] .vote-pill-tab .vote-down-btn,
[data-theme="light"] .vote-pill-btn.vote-down-btn {
  color: inherit !important;
  background: transparent !important;
}

/* No vertical divider between upvote and downvote */
.card-vote-pill .vote-up-btn::after,
.card-vote-pill .vote-down-btn::after,
.vote-pill-divider {
  display: none !important;
  content: none !important;
}

.card-vote-pill .vote-up-btn svg,
.vote-pill-tab .vote-up-btn svg,
.vote-pill-btn.vote-up-btn svg,
.card-vote-pill .vote-down-btn svg,
.vote-pill-tab .vote-down-btn svg,
.vote-pill-btn.vote-down-btn svg {
  stroke: #94a3b8 !important;
  fill: none !important;
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn svg,
[data-theme="light"] .vote-pill-tab .vote-up-btn svg,
[data-theme="light"] .vote-pill-btn.vote-up-btn svg,
[data-theme="light"] .card-vote-pill .vote-down-btn svg,
[data-theme="light"] .vote-pill-tab .vote-down-btn svg,
[data-theme="light"] .vote-pill-btn.vote-down-btn svg {
  stroke: #64748b !important;
}

.card-vote-pill .vote-up-btn:hover,
.vote-pill-tab .vote-up-btn:hover,
.vote-pill-btn.vote-up-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-up-btn:hover svg,
.vote-pill-tab .vote-up-btn:hover svg,
.vote-pill-btn.vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn:hover,
.vote-pill-tab .vote-down-btn:hover,
.vote-pill-btn.vote-down-btn:hover {
  background: transparent !important;
  color: #ef4444 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-down-btn:hover svg,
.vote-pill-tab .vote-down-btn:hover svg,
.vote-pill-btn.vote-down-btn:hover svg {
  stroke: #ef4444 !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn:hover,
[data-theme="light"] .vote-pill-tab .vote-up-btn:hover,
[data-theme="light"] .vote-pill-btn.vote-up-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
}

[data-theme="light"] .card-vote-pill .vote-down-btn:hover,
[data-theme="light"] .vote-pill-tab .vote-down-btn:hover,
[data-theme="light"] .vote-pill-btn.vote-down-btn:hover {
  background: transparent !important;
  color: #ef4444 !important;
}

.card-vote-pill .vote-up-btn.active-up,
.vote-pill-tab .vote-up-btn.active-up,
.vote-pill-btn.vote-up-btn.active-up {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.card-vote-pill .vote-up-btn.active-up svg,
.vote-pill-tab .vote-up-btn.active-up svg,
.vote-pill-btn.vote-up-btn.active-up svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn.active-up,
[data-theme="light"] .vote-pill-tab .vote-up-btn.active-up,
[data-theme="light"] .vote-pill-btn.vote-up-btn.active-up {
  color: #facc15 !important;
}

.card-vote-pill .vote-down-btn.active-down,
.vote-pill-tab .vote-down-btn.active-down,
.vote-pill-btn.vote-down-btn.active-down {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.card-vote-pill .vote-down-btn.active-down svg,
.vote-pill-tab .vote-down-btn.active-down svg,
.vote-pill-btn.vote-down-btn.active-down svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

[data-theme="light"] .card-vote-pill .vote-down-btn.active-down,
[data-theme="light"] .vote-pill-tab .vote-down-btn.active-down,
[data-theme="light"] .vote-pill-btn.vote-down-btn.active-down {
  color: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

.card-vote-pill .up-num,
.vote-pill-tab .up-num {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  user-select: none !important;
  padding: 0 2px !important;
}

[data-theme="light"] .card-vote-pill .up-num,
[data-theme="light"] .vote-pill-tab .up-num {
  color: #0f172a !important;
}

/* Hide downvote count by default matching YouTube pill in image 1 */
.card-vote-pill .down-num,
.vote-pill-tab .down-num {
  display: none !important;
}

/* Generic YouTube-style Action Pills */
.card-action-btn.coffee-btn,
.card-action-btn.comments-btn,
.coffee-pill-tab,
.ninegag-save-btn,
.card-action-btn.card-save-btn,
.card-action-btn.yt-action-pill,
.yt-action-pill,
.share-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 0 16px !important;
  height: 36px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  user-select: none !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

[data-theme="light"] .card-action-btn.coffee-btn,
[data-theme="light"] .card-action-btn.comments-btn,
[data-theme="light"] .coffee-pill-tab,
[data-theme="light"] .ninegag-save-btn,
[data-theme="light"] .card-action-btn.card-save-btn,
[data-theme="light"] .card-action-btn.yt-action-pill,
[data-theme="light"] .yt-action-pill,
[data-theme="light"] .share-trigger-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f0f0f !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.card-action-btn.coffee-btn:hover,
.card-action-btn.comments-btn:hover,
.coffee-pill-tab:hover,
.ninegag-save-btn:hover,
.card-action-btn.card-save-btn:hover,
.card-action-btn.yt-action-pill:hover,
.yt-action-pill:hover,
.share-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .card-action-btn.coffee-btn:hover,
[data-theme="light"] .card-action-btn.comments-btn:hover,
[data-theme="light"] .coffee-pill-tab:hover,
[data-theme="light"] .ninegag-save-btn:hover,
[data-theme="light"] .card-action-btn.card-save-btn:hover,
[data-theme="light"] .card-action-btn.yt-action-pill:hover,
[data-theme="light"] .yt-action-pill:hover,
[data-theme="light"] .share-trigger-btn:hover {
  background: rgba(0, 0, 0, 0.09) !important;
  color: #0f0f0f !important;
}

.coffee-pill-tab.active-coffee,
.card-action-btn.coffee-btn.active-coffee {
  background: rgba(250, 204, 21, 0.18) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.45) !important;
}

[data-theme="light"] .coffee-pill-tab.active-coffee,
[data-theme="light"] .card-action-btn.coffee-btn.active-coffee {
  background: rgba(250, 204, 21, 0.16) !important;
  border: 1.5px solid #d97706 !important;
  color: #b45309 !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3) !important;
}

.coffee-pill-tab.active-coffee svg,
.card-action-btn.coffee-btn.active-coffee svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .coffee-pill-tab.active-coffee svg,
[data-theme="light"] .card-action-btn.coffee-btn.active-coffee svg {
  stroke: #b45309 !important;
}

/* More options circular button */
.more-options-btn,
.yt-action-pill.more-options-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.card-action-btn svg,
.ninegag-action-btn svg,
.share-trigger-btn svg,
.yt-action-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.card-share-container .inline-share-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(15px);
  transition: opacity 0.25s ease, max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  pointer-events: none;
  flex-wrap: nowrap;
}

.card-share-container.active .inline-share-bar {
  opacity: 1;
  max-width: 500px;
  transform: translateX(0);
  pointer-events: auto;
}

.share-back-btn:hover {
  background: var(--bg-hover, #22262b) !important;
  border-color: var(--border, #272b2f) !important;
  color: var(--text-primary, #ffffff) !important;
}

.card-share-container.active .share-icon-btn {
  animation: shareIconPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.card-share-container.active .share-icon-btn:nth-child(1) {
  animation-delay: 0.02s;
}

.card-share-container.active .share-icon-btn:nth-child(2) {
  animation-delay: 0.05s;
}

.card-share-container.active .share-icon-btn:nth-child(3) {
  animation-delay: 0.08s;
}

.card-share-container.active .share-icon-btn:nth-child(4) {
  animation-delay: 0.11s;
}

.card-share-container.active .share-icon-btn:nth-child(5) {
  animation-delay: 0.14s;
}

.card-share-container.active .share-icon-btn:nth-child(6) {
  animation-delay: 0.17s;
}

.card-share-container.active .share-icon-btn:nth-child(7) {
  animation-delay: 0.20s;
}

.card-share-container.active .share-icon-btn:nth-child(8) {
  animation-delay: 0.23s;
}

.card-share-container.active .share-icon-btn:nth-child(9) {
  animation-delay: 0.26s;
}

@keyframes shareIconPop {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(4px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 6. 9GAG Tabs Row (Comments 141 & Related) */
.ninegag-tabs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ninegag-tab-pill {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #94a3b8);
}

.ninegag-tab-pill.active,
#tabCommentsBtn.active,
#tabRelatedBtn.active {
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-color: var(--accent, #facc15) !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.4) !important;
}

.ninegag-tab-pill.active *,
#tabCommentsBtn.active *,
#tabRelatedBtn.active * {
  color: #000000 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .ninegag-tab-pill.active,
[data-theme="light"] #tabCommentsBtn.active,
[data-theme="light"] #tabRelatedBtn.active {
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-color: var(--accent, #facc15) !important;
}

[data-theme="light"] .ninegag-tab-pill.active *,
[data-theme="light"] #tabCommentsBtn.active *,
[data-theme="light"] #tabRelatedBtn.active * {
  color: #000000 !important;
  font-weight: 800 !important;
}

.ninegag-tab-pill:hover:not(.active) {
  background: rgba(0, 174, 236, 0.12);
  border-color: rgba(0, 174, 236, 0.3);
  color: var(--text-primary, #ffffff);
}

/* Related Stories Grid */
.ninegag-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.ninegag-related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.ninegag-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.ninegag-related-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.ninegag-related-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ninegag-related-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ninegag-related-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Comment Composer */
.threads-comment-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

#threadsCommentInput {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}

#threadsCommentInput:focus {
  border-color: var(--accent, #00aeec);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.threads-join-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--accent, #00aeec);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color var(--trans), transform 0.1s ease;
}

.threads-join-btn:hover {
  background-color: var(--accent-hover, #009cd3);
}

.threads-join-btn:active {
  transform: scale(0.985);
}

.threads-guidelines-text {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-align: center;
}

.threads-guidelines-text .guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  font-weight: 500;
}

.threads-guidelines-text .guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* Comments Header */
.threads-comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.threads-comments-count-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
}

.threads-sort-menu {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.threads-sort-value {
  color: #7c3aed;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Custom Comments List styling */
.threads-comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.threads-comment-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.threads-comment-item:last-child {
  border-bottom: none;
}

.threads-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  background-color: var(--bg-panel);
  border: 2px solid var(--avatar-border);
  color: var(--avatar-border);
}

.threads-comment-main {
  flex: 1;
  min-width: 0;
}

.threads-comment-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.threads-comment-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.threads-comment-username {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
}

.threads-comment-time-ago {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.threads-comment-more-btn {
  color: #7c3aed;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.threads-comment-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.threads-comment-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.threads-comment-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--trans);
}

.threads-comment-footer-btn:hover {
  color: #7c3aed;
}

.threads-comment-footer-btn.liked {
  color: #ffffff;
}

.threads-comment-footer-btn.liked svg {
  fill: currentColor;
  stroke: currentColor;
}

[data-theme="light"] .threads-comment-footer-btn.liked {
  color: #000000;
}

.threads-comment-footer-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ===================================================
   BP COMMENTS — Redesigned (Matches Photo 1 & Photo 2)
   - Photo 1: Hot comments header, Text+Picture composer (5-7MB, 8000px), Up/Down vote scores, Replies toggle
   - Photo 2: Threads-style curved tree connecting parent avatar to replies, Up/Down voting instead of hearts
   =================================================== */

.bp-comments-view {
  margin-top: 14px;
  padding: 0 20px 40px;
}

/* Comments Header */
.bp-comments-top-bar {
  margin-bottom: 18px;
}

.bp-comments-prompt-title {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-comments-prompt-title {
  color: #0f172a !important;
}

.bp-guidelines-note {
  font-size: 0.88rem;
  color: var(--text-secondary, #9ca3af);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
}

[data-theme="light"] .bp-guidelines-note {
  color: #64748b !important;
}

/* Sort Row directly under composer box (Matching Image 1: Top comments ▾) */
.bp-comments-sort-row {
  display: flex;
  align-items: center;
  margin: 10px 0 0 0;
}

.bp-hot-comments-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.bp-hot-comments-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #f4f4f5);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px 4px 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

[data-theme="light"] .bp-hot-comments-btn {
  color: #0f172a !important;
}

.bp-hot-comments-btn:hover {
  color: #ffffff;
  opacity: 0.9;
}

[data-theme="light"] .bp-hot-comments-btn:hover {
  color: #000000 !important;
}

.bp-chevron-icon {
  transition: transform 0.2s ease;
  fill: currentColor;
  opacity: 0.9;
}

.bp-hot-comments-dropdown-wrap.open .bp-chevron-icon {
  transform: rotate(180deg);
}

.bp-sort-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card, #000000);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px;
  min-width: 170px;
  z-index: 100;
}

[data-theme="light"] .bp-sort-dropdown-menu {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.bp-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary, #a1a1aa);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .bp-sort-option {
  color: #475569 !important;
}

.bp-sort-option:hover,
.bp-sort-option.active {
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .bp-sort-option:hover,
[data-theme="light"] .bp-sort-option.active {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.bp-guidelines-note {
  font-size: 0.88rem;
  color: var(--text-secondary, #9ca3af);
  margin-top: 6px;
  margin-bottom: 0;
  line-height: 1.45;
}

.bp-guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.bp-guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* Main Comment Composer */
.bp-composer {
  display: flex;
  gap: 14px;
  margin: 18px 0 24px;
  align-items: flex-start;
}

.bp-composer-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.bp-composer-avatar-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cfd4dc;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bp-composer-avatar-icon:hover {
  transform: scale(1.04);
}

[data-theme="light"] .bp-composer-avatar-icon {
  background: #cbd5e1;
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.bp-composer-avatar-icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
  width: 22px;
  height: 22px;
  display: block;
}

.bp-composer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-panel, #202020);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
}

.bp-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg, #000000);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.bp-composer-form {
  flex: 1;
  min-width: 0;
}

.bp-composer-input-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.bp-composer-input-box:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent, #00aeec);
  box-shadow: 0 0 0 2px rgba(0, 174, 236, 0.15);
}

[data-theme="light"] .bp-composer-input-box {
  background: #ffffff;
  border-color: #e5e7eb;
}

[data-theme="light"] .bp-composer-input-box:focus-within {
  border-color: var(--accent, #00aeec);
  box-shadow: 0 0 0 2px rgba(0, 174, 236, 0.2);
}

.bp-composer-textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary, #f4f4f5);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  min-height: 28px;
  max-height: 180px;
}

.bp-composer-textarea::placeholder {
  color: var(--text-muted, #71717a);
}

.bp-composer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.06));
}

.bp-tools-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
}

.bp-tool-btn:hover {
  color: var(--text-white, #ffffff);
  background: rgba(255, 255, 255, 0.08);
}

.bp-file-limit-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #71717a);
}

.bp-post-btn,
#bpPostCommentBtn {
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill, 9999px);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bp-post-btn:hover:not(:disabled),
#bpPostCommentBtn:hover:not(:disabled) {
  background: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  transform: translateY(-1px);
}

.bp-post-btn:disabled,
#bpPostCommentBtn:disabled {
  opacity: 0.45;
  color: #000000 !important;
  cursor: not-allowed;
  transform: none;
}

/* Image Preview Card */
.bp-image-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 10px;
}

.bp-preview-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-remove-img-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: transform 0.15s ease;
}

.bp-remove-img-btn:hover {
  transform: scale(1.15);
  background: #ef4444;
}

.bp-preview-info {
  flex: 1;
  min-width: 0;
}

.bp-preview-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-preview-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.bp-preview-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 174, 236, 0.15);
  color: var(--accent, #00aeec);
}

.bp-composer-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 6px;
  font-weight: 600;
}

/* Comment Item Card (Photo 1) */
.bp-comments-list {
  display: flex;
  flex-direction: column;
}

.bp-comment-card {
  display: flex;
  gap: 16px;
  padding: 12px 0 16px;
  position: relative;
  border-bottom: none;
}

.bp-comment-card:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

/* Comment Jump & Highlight Pulse Effect (Targeted Navigation from Profile Tag) */
@keyframes bpCommentHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.85), 0 0 24px rgba(250, 204, 21, 0.45);
    background-color: rgba(250, 204, 21, 0.2);
  }

  35% {
    box-shadow: 0 0 0 10px rgba(250, 204, 21, 0.45), 0 0 32px rgba(250, 204, 21, 0.35);
    background-color: rgba(250, 204, 21, 0.14);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(250, 204, 21, 0), 0 0 16px rgba(250, 204, 21, 0.18);
    background-color: rgba(250, 204, 21, 0.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    background-color: transparent;
  }
}

.bp-comment-card.bp-comment-highlight-pulse,
.bp-reply-item.bp-comment-highlight-pulse,
.bp-thread-reply-item.bp-comment-highlight-pulse {
  border-radius: 12px;
  animation: bpCommentHighlightPulse 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: background-color 0.3s ease;
}

/* ── Main Comments Thread Spine Column (Image 1 & Image 2) ───── */
.bp-main-thread-col {
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
  margin: -12px 0 -16px 0;
  z-index: 1;
}

/* Vertical solid line above the node */
.bp-main-thread-line-top {
  width: 2px;
  height: 26px;
  flex-shrink: 0;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

[data-theme="light"] .bp-main-thread-line-top {
  background-color: #000000;
}

/* Thread Node Concentric Circle (◎) (Image 1 & Image 2) */
.bp-main-thread-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-card, #0a0a0a);
  border: 2px solid #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 0;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bp-main-thread-node::after {
  content: '';
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background-color: #ffffff;
  display: block;
  transition: background-color 0.2s ease;
}

.bp-main-thread-node:hover {
  transform: scale(1.2);
  border-color: var(--accent, #00aeec);
}

.bp-main-thread-node:hover::after {
  background-color: var(--accent, #00aeec);
}

[data-theme="light"] .bp-main-thread-node {
  background: var(--bg-card, #ffffff);
  border-color: #000000;
}

[data-theme="light"] .bp-main-thread-node::after {
  background-color: #000000;
}

[data-theme="light"] .bp-main-thread-node:hover {
  border-color: var(--accent, #00aeec);
}

[data-theme="light"] .bp-main-thread-node:hover::after {
  background-color: var(--accent, #00aeec);
}

/* Vertical solid line below the node connecting to next comment with zero gap */
.bp-main-thread-line-bottom {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

[data-theme="light"] .bp-main-thread-line-bottom {
  background-color: #000000;
}

/* Hide top line on first comment (keeps height reserved for node alignment) */
.bp-comment-card.bp-first-comment .bp-main-thread-line-top,
.bp-comment-card:first-child .bp-main-thread-line-top {
  visibility: hidden;
}

/* Hide bottom line on last comment */
.bp-comment-card.bp-last-comment .bp-main-thread-line-bottom,
.bp-comment-card:last-child .bp-main-thread-line-bottom {
  display: none;
}

/* ── Comment Content Column (Avatars on top + Body below) ─────── */
.bp-comment-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Avatar Wrap on Top */
.bp-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Stacked Avatars (Like Image 3 & Image 4, max 3 profiles) */
.bp-stacked-avatars {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 2px 0;
  user-select: none;
}

.bp-stacked-avatar {
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.bp-stacked-avatar:hover {
  transform: scale(1.14) translateY(-2px);
  z-index: 25 !important;
}

/* Primary Author Avatar (Front) */
.bp-stacked-avatar-1 {
  width: 44px;
  height: 44px;
}

/* 2nd Profile (1st Replier, overlapping behind) */
.bp-stacked-avatar-2 {
  width: 38px;
  height: 38px;
  margin-left: -13px;
}

/* 3rd Profile (2nd Replier, overlapping behind) */
.bp-stacked-avatar-3 {
  width: 34px;
  height: 34px;
  margin-left: -11px;
}

.bp-stacked-avatar .bp-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-hover, #262626);
  border: 2.5px solid var(--bg-card, #121212);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .bp-stacked-avatar .bp-avatar-img {
  border-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

/* Single Profile Avatar (when no replies) */
.bp-avatar-single {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover, #262626);
  border: 2px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  display: block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .bp-avatar-single {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.bp-comment-main {
  flex: 1;
  min-width: 0;
}

.bp-comment-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 6px;
}

.bp-user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bp-user-tagline {
  display: none !important;
}

[data-theme="light"] .bp-user-tagline {
  display: none !important;
}

.bp-degree-badge {
  display: none !important;
}

.bp-avatar-link {
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bp-avatar-link:hover {
  opacity: 0.92;
  transform: scale(1.03);
}

.bp-username {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  text-decoration: none;
}

[data-theme="light"] .bp-username {
  color: #0f172a;
}

.bp-username:hover {
  text-decoration: underline;
}

[data-theme="light"] .bp-username:hover {
  color: #00aeec;
}

.bp-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.95rem;
}

.bp-time {
  font-size: 0.82rem;
  color: var(--text-secondary, #71717a);
}

[data-theme="light"] .bp-time {
  color: #64748b;
}

.bp-content-text {
  font-size: 0.96rem;
  font-weight: 500;
  /* Little bold not plain text matching Image 5 */
  line-height: 1.55;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 4px 0 10px;
  letter-spacing: -0.005em;
}

[data-theme="light"] .bp-content-text {
  color: #0f172a;
}

/* Comment Image (Meme / Comic / 8000px long images) */
.bp-comment-img-container {
  position: relative;
  margin: 8px 0 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  width: fit-content;
  max-width: 240px;
  background: #000000;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bp-comment-img-container:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #00aeec);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.bp-comment-img {
  width: auto;
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.bp-long-img-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill, 9999px);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bp-long-img-badge svg {
  width: 10px;
  height: 10px;
}

/* Comment Actions (Circular buttons matching Image 2: Love, Reply, Worm gift, • X replies, 3 dots) */
.bp-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  user-select: none;
  flex-wrap: wrap;
}

.bp-action-btn-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-circle-action-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #a1a1aa;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  user-select: none;
  position: relative;
}

.bp-circle-action-btn:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.bp-circle-action-btn:active {
  transform: scale(0.94);
}

/* 1. Love Button */
.bp-circle-action-btn.bp-action-love {
  color: #a1a1aa;
}

.bp-circle-action-btn.bp-action-love:hover {
  border-color: rgba(250, 204, 21, 0.7);
  color: #facc15;
}

.bp-circle-action-btn.bp-action-love.active {
  border-color: #facc15 !important;
  background: #facc15 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.bp-circle-action-btn.bp-action-love.active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* 2. Reply Button */
.bp-circle-action-btn.bp-action-reply-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* 3. Worm Gift Button */
.bp-circle-action-btn.bp-action-worm-btn {
  font-size: 15px;
}

.bp-circle-action-btn.bp-action-worm-btn.has-worms {
  border: 1.8px solid #ca8a04;
  background: rgba(202, 138, 4, 0.12);
}

.bp-circle-action-btn.bp-action-worm-btn.max-worms {
  border: 2px solid #eab308;
  background: rgba(234, 179, 8, 0.18);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

.bp-circle-action-btn.bp-action-worm-btn:hover {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.2);
  transform: scale(1.08);
}

.bp-worm-emoji {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
  user-select: none;
}

.worm-wiggle .bp-worm-emoji {
  animation: bpWormWiggle 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.worm-limit-shake {
  animation: bpWormLimitShake 0.4s ease-in-out both;
}

@keyframes bpWormLimitShake {

  0%,
  100% {
    transform: scale(1) translateX(0);
  }

  25% {
    transform: scale(1.08) translateX(-4px);
  }

  50% {
    transform: scale(1.08) translateX(4px);
  }

  75% {
    transform: scale(1.04) translateX(-2px);
  }
}

@keyframes bpWormWiggle {
  0% {
    transform: scale(1) rotate(0deg);
  }

  20% {
    transform: scale(1.3) rotate(-18deg);
  }

  40% {
    transform: scale(1.3) rotate(18deg);
  }

  60% {
    transform: scale(1.2) rotate(-10deg);
  }

  80% {
    transform: scale(1.1) rotate(6deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Counts beside action buttons */
.bp-action-count {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1;
  user-select: none;
}

.bp-love-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e4e4e7;
}

.bp-action-love-wrap .bp-action-love.active+.bp-love-count {
  color: #facc15 !important;
  font-weight: 700;
}

.bp-worm-count {
  color: #facc15;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.bp-worm-count.count-gold {
  color: #facc15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
}

/* 4. Replies Indicator Button (Image 5: • 29 replies) */
.bp-replies-indicator-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  margin-left: 2px;
  margin-right: 2px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #82959b;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.bp-replies-indicator-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Light mode overrides for circular comment action buttons */
[data-theme="light"] .bp-circle-action-btn {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.03);
  color: #64748b;
}

[data-theme="light"] .bp-circle-action-btn:hover {
  border-color: rgba(0, 0, 0, 0.45);
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .bp-circle-action-btn.bp-action-love.active {
  border-color: #facc15 !important;
  background: #facc15 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

[data-theme="light"] .bp-circle-action-btn.bp-action-love.active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

[data-theme="light"] .bp-action-love-wrap .bp-action-love.active+.bp-love-count {
  color: #d97706 !important;
}

[data-theme="light"] .bp-circle-action-btn.bp-action-worm-btn.has-worms {
  border: 1.8px solid #d97706;
  background: rgba(254, 240, 138, 0.25);
}

[data-theme="light"] .bp-circle-action-btn.bp-action-worm-btn.max-worms {
  border: 2px solid #ca8a04;
  background: rgba(254, 240, 138, 0.45);
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.2);
}

[data-theme="light"] .bp-action-count {
  color: #1e293b;
}

[data-theme="light"] .bp-love-count {
  color: #1e293b;
}

[data-theme="light"] .bp-worm-count {
  color: #ca8a04;
  font-weight: 800;
}

[data-theme="light"] .bp-worm-count.count-gold {
  color: #b45309;
}

[data-theme="light"] .bp-replies-indicator-btn {
  color: #64748b;
}

[data-theme="light"] .bp-replies-indicator-btn:hover {
  color: #0f172a;
}

/* Floating Worm Gift Toast Notification (Sleek, Long & Wide Pill Capsule) */
.bp-worm-toast {
  position: fixed;
  bottom: clamp(20px, 4vh, 36px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18, 18, 22, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(250, 204, 21, 0.28);
  color: #fef08a;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 9999px;
  z-index: 9999999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  min-width: min(340px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
  text-align: center;
}

.bp-worm-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bp-worm-toast > span:not(.bp-worm-toast-icon) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  vertical-align: middle;
}

[data-theme="light"] .bp-worm-toast {
  background: rgba(255, 255, 255, 0.98);
  color: #854d0e;
  border-color: rgba(234, 179, 8, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 20px rgba(250, 204, 21, 0.35);
}

.bp-worm-toast-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bpWormWiggle 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .bp-worm-toast {
    width: max-content;
    min-width: min(330px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 10px 20px;
    font-size: 0.82rem;
    gap: 8px;
    bottom: 24px;
    white-space: nowrap;
  }

  .bp-worm-toast > span:not(.bp-worm-toast-icon) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.bp-reply-action-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bp-action-divider {
  display: inline-block;
  color: var(--border-soft, rgba(255, 255, 255, 0.22));
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1;
  margin: 0 1px;
  user-select: none;
}

[data-theme="light"] .bp-action-divider {
  color: rgba(0, 0, 0, 0.25);
}

.bp-action-dot {
  display: inline-block;
  color: var(--text-secondary, #71717a);
  font-weight: 700;
  font-size: 0.85rem;
  user-select: none;
}

.bp-action-replies-count {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary, #a1a1aa);
  cursor: pointer;
  transition: color 0.15s ease, text-decoration 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.bp-action-replies-count:hover {
  color: var(--text-white, #ffffff);
  text-decoration: underline;
}

[data-theme="light"] .bp-action-replies-count {
  color: #64748b;
}

[data-theme="light"] .bp-action-replies-count:hover {
  color: #0f172a;
}

.bp-action-reply {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary, #a1a1aa);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.bp-action-reply:hover {
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .bp-action-reply {
  color: #64748b;
}

[data-theme="light"] .bp-action-reply:hover {
  color: #0f172a;
}

.bp-like-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bp-reactions-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: -6px;
  background: #191c20;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  animation: bpRxnPopIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: bottom left;
  pointer-events: auto;
  white-space: nowrap;
}

[data-theme="light"] .bp-reactions-popup {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
}

@keyframes bpRxnPopIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(6px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bp-rxn-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.bp-rxn-btn:hover {
  transform: scale(1.35) translateY(-6px);
  z-index: 10;
}

.bp-rxn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.bp-rxn-circle img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.bp-rxn-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bp-rxn-btn:hover .bp-rxn-tooltip {
  opacity: 1;
}

/* Comment Vote Pill (Matching Image 1) */
.card-vote-pill.bp-comment-vote-pill,
.bp-vote-group .card-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 0 10px !important;
  height: 32px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  gap: 7px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill.bp-comment-vote-pill,
[data-theme="light"] .bp-vote-group .card-vote-pill {
  background: #eaedf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.card-vote-pill.bp-comment-vote-pill:hover,
.bp-vote-group .card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .card-vote-pill.bp-comment-vote-pill:hover,
[data-theme="light"] .bp-vote-group .card-vote-pill:hover {
  background: #dfe3e7 !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn,
.card-vote-pill.bp-comment-vote-pill .vote-down-btn,
.bp-vote-group .vote-up-btn,
.bp-vote-group .vote-down-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  color: inherit !important;
  height: 20px !important;
  width: 20px !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  border-radius: 0 !important;
  transition: transform 0.1s ease, color 0.15s ease !important;
  user-select: none !important;
  text-decoration: none !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn svg,
.card-vote-pill.bp-comment-vote-pill .vote-down-btn svg,
.bp-vote-group .vote-up-btn svg,
.bp-vote-group .vote-down-btn svg {
  stroke: #94a3b8 !important;
  fill: none !important;
  width: 15px !important;
  height: 15px !important;
  display: block !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

[data-theme="light"] .card-vote-pill.bp-comment-vote-pill .vote-up-btn svg,
[data-theme="light"] .card-vote-pill.bp-comment-vote-pill .vote-down-btn svg,
[data-theme="light"] .bp-vote-group .vote-up-btn svg,
[data-theme="light"] .bp-vote-group .vote-down-btn svg {
  stroke: #64748b !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn:hover,
.bp-vote-group .vote-up-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn:hover svg,
.bp-vote-group .vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-down-btn:hover,
.bp-vote-group .vote-down-btn:hover {
  background: transparent !important;
  color: #ef4444 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-down-btn:hover svg,
.bp-vote-group .vote-down-btn:hover svg {
  stroke: #ef4444 !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn.active-up,
.card-vote-pill.bp-comment-vote-pill .vote-up-btn.active-like,
.bp-vote-group .vote-up-btn.active-up,
.bp-vote-group .vote-up-btn.active-like {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-up-btn.active-up svg,
.card-vote-pill.bp-comment-vote-pill .vote-up-btn.active-like svg,
.bp-vote-group .vote-up-btn.active-up svg,
.bp-vote-group .vote-up-btn.active-like svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-down-btn.active-down,
.card-vote-pill.bp-comment-vote-pill .vote-down-btn.active-dislike,
.bp-vote-group .vote-down-btn.active-down,
.bp-vote-group .vote-down-btn.active-dislike {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.card-vote-pill.bp-comment-vote-pill .vote-down-btn.active-down svg,
.card-vote-pill.bp-comment-vote-pill .vote-down-btn.active-dislike svg,
.bp-vote-group .vote-down-btn.active-down svg,
.bp-vote-group .vote-down-btn.active-dislike svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

.card-vote-pill.bp-comment-vote-pill .up-num,
.bp-vote-group .up-num {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  user-select: none !important;
  padding: 0 1px !important;
}

[data-theme="light"] .card-vote-pill.bp-comment-vote-pill .up-num,
[data-theme="light"] .bp-vote-group .up-num {
  color: #0f172a !important;
}

.bp-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bp-action-vote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0;
  transition: all 0.15s ease;
}

.bp-action-vote svg {
  width: 16px;
  height: 16px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.bp-action-vote:hover {
  color: #facc15;
}

.bp-action-vote:hover svg {
  stroke: #facc15;
  transform: scale(1.12);
}

[data-theme="light"] .bp-action-vote {
  color: #64748b;
}

[data-theme="light"] .bp-action-vote:hover {
  color: #0f172a;
}

.bp-action-vote.active-up {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.bp-action-vote.active-up svg {
  stroke: #facc15 !important;
  fill: #facc15 !important;
}

[data-theme="light"] .bp-action-vote.active-up {
  color: #facc15 !important;
}

.bp-action-vote.active-down {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

.bp-action-vote.active-down svg {
  stroke: #ef4444 !important;
  fill: #ef4444 !important;
}

[data-theme="light"] .bp-action-vote.active-down {
  color: #ef4444 !important;
}

.bp-action-more {
  background: none;
  border: none;
  color: var(--text-secondary, #71717a);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
  transition: color 0.15s ease;
}

.bp-action-more:hover {
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .bp-action-more {
  color: #64748b;
}

[data-theme="light"] .bp-action-more:hover {
  color: #0f172a;
}

/* ── Contextual 3-Dots Dropdown Menu (Image 3 & Image 4) ──────── */
.bp-more-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bp-more-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #252525;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 6px;
  min-width: 144px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: bpMenuPopup 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bpMenuPopup {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bp-more-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.bp-more-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.bp-more-menu-item .bp-menu-icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.bp-more-menu-item.bp-menu-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

[data-theme="light"] .bp-more-dropdown-menu {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .bp-more-menu-item {
  color: #18181b;
}

[data-theme="light"] .bp-more-menu-item:hover {
  background: #f4f4f5;
}

[data-theme="light"] .bp-more-menu-item.bp-menu-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* ===================================================
   DELETE COMMENT CONFIRMATION MODAL (Matching Image 2)
   =================================================== */

.bp-delete-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  padding: 16px;
  box-sizing: border-box;
}

.bp-delete-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-delete-modal-card {
  background: #282828;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  padding: 24px 24px 18px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transform: scale(0.93) translateY(6px);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.bp-delete-modal-overlay.active .bp-delete-modal-card {
  transform: scale(1) translateY(0);
}

[data-theme="light"] .bp-delete-modal-card {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bp-delete-modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 16px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-delete-modal-title {
  color: #0f172a;
}

.bp-delete-modal-desc {
  font-size: 0.96rem;
  color: #9e9e9e;
  margin: 0 0 28px 0;
  line-height: 1.45;
  font-weight: 400;
}

[data-theme="light"] .bp-delete-modal-desc {
  color: #64748b;
}

.bp-delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.bp-delete-modal-btn {
  background: transparent;
  border: none;
  color: #3ea6ff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
  user-select: none;
}

.bp-delete-modal-btn:hover {
  background: rgba(62, 166, 255, 0.12);
}

[data-theme="light"] .bp-delete-modal-btn {
  color: #0284c7;
}

[data-theme="light"] .bp-delete-modal-btn:hover {
  background: rgba(2, 132, 199, 0.08);
}

/* ── Community Report Confirmation Modal (Image 2) ────────────────────────── */
.bp-report-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
  box-sizing: border-box;
}

.bp-report-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bp-report-modal-card {
  background: #212121;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  padding: 24px 28px 28px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  transform: scale(0.93) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #f1f1f1;
}

.bp-report-modal-overlay.active .bp-report-modal-card {
  transform: scale(1) translateY(0);
}

[data-theme="light"] .bp-report-modal-card {
  background: #ffffff;
  color: #0f0f0f;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bp-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bp-report-modal-title {
  font-size: 1.32rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-modal-title {
  color: #0f0f0f;
}

.bp-report-modal-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f1f1f1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bp-report-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .bp-report-modal-close {
  color: #0f0f0f;
}

[data-theme="light"] .bp-report-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.bp-report-illustration-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  text-align: center;
  width: 100%;
}

.bp-report-illustration-img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.bp-report-content {
  display: flex;
  flex-direction: column;
}

.bp-report-community-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-community-title {
  color: #0f0f0f;
}

.bp-report-desc {
  font-size: 0.94rem;
  color: #aaaaaa;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-weight: 400;
}

[data-theme="light"] .bp-report-desc {
  color: #606060;
}

.bp-report-expect-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f1f1;
  margin: 24px 0 14px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

[data-theme="light"] .bp-report-expect-title {
  color: #0f0f0f;
}

.bp-report-expect-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.bp-report-expect-icon {
  flex-shrink: 0;
  color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

[data-theme="light"] .bp-report-expect-icon {
  color: #0f0f0f;
}

.bp-report-expect-text {
  font-size: 0.94rem;
  color: #aaaaaa;
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .bp-report-expect-text {
  color: #606060;
}

.bp-report-actions {
  display: flex;
  width: 100%;
}

.bp-report-ok-btn {
  width: 100%;
  height: 44px;
  border-radius: 9999px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.1s ease;
  user-select: none;
}

.bp-report-ok-btn:hover {
  background: #ffffff;
}

.bp-report-ok-btn:active {
  transform: scale(0.985);
}

[data-theme="light"] .bp-report-ok-btn {
  background: #0f0f0f;
  color: #ffffff;
}

[data-theme="light"] .bp-report-ok-btn:hover {
  background: #272727;
}

/* ── Report Submitted Notification Popup ────────────────────────── */
.bp-report-submitted-popup {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1f2227;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 12px 20px 12px 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 100000;
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  max-width: 92vw;
  font-family: inherit;
}

.bp-report-submitted-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-theme="light"] .bp-report-submitted-popup {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.bp-report-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bp-report-popup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.bp-report-popup-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

[data-theme="light"] .bp-report-popup-title {
  color: #0f172a;
}

.bp-report-popup-sub {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.25;
}

[data-theme="light"] .bp-report-popup-sub {
  color: #64748b;
}

.bp-report-popup-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
  margin-left: 4px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.bp-report-popup-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bp-report-popup-close {
  color: #64748b;
}

[data-theme="light"] .bp-report-popup-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
}

/* Inline Comment Editing */
.bp-inline-edit-wrap {
  margin-top: 8px;
  margin-bottom: 8px;
}

.bp-inline-edit-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-primary, #ffffff);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.bp-inline-edit-textarea:focus {
  border-color: var(--accent, #00aeec);
}

[data-theme="light"] .bp-inline-edit-textarea {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.bp-inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.bp-edit-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary, #a1a1aa);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bp-edit-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="light"] .bp-edit-cancel-btn {
  border-color: #d1d5db;
  color: #4b5563;
}

[data-theme="light"] .bp-edit-cancel-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.bp-edit-save-btn {
  background: var(--accent, #00aeec);
  border: none;
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.bp-edit-save-btn:hover {
  opacity: 0.9;
}

/* Thread Replies Toggle (Photo 1 & Photo 2) */
.bp-replies-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #579bfc;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0 4px;
  transition: color 0.15s ease;
}

.bp-replies-trigger:hover {
  color: #8ab4f8;
}

[data-theme="light"] .bp-replies-trigger {
  color: #1a73e8;
}

[data-theme="light"] .bp-replies-trigger:hover {
  color: #1557b0;
}

.bp-replies-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.bp-replies-trigger.open svg {
  transform: rotate(180deg);
}

/* ===================================================
   THREADS-STYLE CONNECTED REPLIES (Photo 2)
   Curved branch lines connecting parent avatar to replies
   =================================================== */

:root {
  /* Solid, opaque color ensures 100% uniform tone everywhere with zero discoloration */
  --tree-line-color: #52525b;
}

[data-theme="light"] {
  --tree-line-color: #cbd5e1;
}

/* Tree Container - NO border-left to completely eliminate double lines */
.bp-threads-tree {
  position: relative;
  margin-top: 0;
}

/* Level 1 Tree (Direct replies to top comment) */
.bp-threads-tree.bp-level1-tree {
  --tree-stem-x: -20px;
  --tree-stem-w: 20px;
  margin-left: 7px;
  padding-left: 20px;
  margin-top: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Level 2 Nested Tree (Subthreads directly under a reply) */
.bp-threads-tree.bp-nested-tree {
  --tree-stem-x: -20px;
  --tree-stem-w: 20px;
  margin-left: 15px;
  padding-left: 20px;
  margin-top: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Level 3 Nested Tree */
.bp-threads-tree.bp-nested-tree.bp-depth2-tree {
  --tree-stem-x: -20px;
  --tree-stem-w: 20px;
  margin-left: 15px;
  padding-left: 20px;
  margin-top: 0;
}

/* Level 4+ Deep Nested Tree: FLAT TREE (Capped Depth - Prevents comments going out of frame) */
.bp-threads-tree.bp-flat-tree {
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

/* In flat tree, the vertical stem runs straight down between avatars */
.bp-flat-tree>.bp-thread-reply-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15px;
  /* Aligns exactly with 32px avatar center */
  width: 2px;
  height: 25px;
  background: var(--tree-line-color);
  border: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  z-index: 1;
}

.bp-flat-tree>.bp-thread-reply-item:not(:last-child)::after,
.bp-flat-tree>.bp-thread-reply-item.has-subthreads::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 15px;
  width: 2px;
  background: var(--tree-line-color);
  pointer-events: none;
  z-index: 1;
}

/* Defensive constraints across all reply containers */
.bp-thread-reply-item {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.bp-thread-reply-item.has-subthreads {
  display: flex;
  flex-direction: column;
}

/* Reply Row containing avatar and content of the reply itself */
.bp-reply-row {
  display: flex;
  gap: 12px;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 0 10px;
  box-sizing: border-box;
}

/* Avatar Column with continuous vertical stem */
.bp-reply-avatar-col {
  position: relative;
  width: 32px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp-reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover, #262626);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  position: relative;
  z-index: 2;
}

/* Stem line descending from parent avatar down past its text into subthreads */
.bp-subthread-stem {
  position: absolute;
  top: 40px;
  /* starts directly at bottom edge of 32px avatar (8px padding-top + 32px) */
  bottom: -11px;
  /* reaches completely through bottom padding of .bp-reply-row to meet child with zero gap */
  left: 15px;
  /* Center of 32px avatar (15px to 17px) */
  width: 2px;
  background: var(--tree-line-color);
  z-index: 1;
  pointer-events: none;
}

/* The curved branch line connecting from stem into child avatar */
.bp-nested-tree>.bp-thread-reply-item::before,
.bp-level1-tree>.bp-thread-reply-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--tree-stem-x, -20px);
  width: var(--tree-stem-w, 20px);
  height: 25px;
  /* curves directly into center of 32px avatar (8px + 16px = 24px) */
  border-left: 2px solid var(--tree-line-color);
  border-bottom: 2px solid var(--tree-line-color);
  border-bottom-left-radius: 12px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

/* Extension at the very top of Level-1 to reach Hide replies toggle */
.bp-level1-tree>.bp-thread-reply-item:first-child::before {
  top: -12px;
  height: 37px;
}

.bp-level1-tree>.bp-thread-reply-item:first-child::after {
  top: -12px;
}

/* Extension at the very top of Level-2 subthreads to meet parent stem seamlessly with ZERO gap */
.bp-nested-tree>.bp-thread-reply-item:first-child::before {
  top: -11px;
  height: 36px;
}

.bp-nested-tree>.bp-thread-reply-item:first-child::after {
  top: -11px;
}

/* CONTINUOUS vertical stem line through the entire item (ZERO GAPS) */
.bp-nested-tree>.bp-thread-reply-item:not(:last-child)::after,
.bp-level1-tree>.bp-thread-reply-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--tree-stem-x, -20px);
  width: 2px;
  background: var(--tree-line-color);
  pointer-events: none;
  z-index: 1;
}

/* Reply Context Badge for flattened deep replies */
.bp-reply-context {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.3;
  width: fit-content;
}

[data-theme="light"] .bp-reply-context {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.bp-reply-context-icon {
  color: var(--accent, #facc15);
  flex-shrink: 0;
}

.bp-reply-context-user {
  color: var(--text-primary, #ffffff);
  font-weight: 600;
}

[data-theme="light"] .bp-reply-context-user {
  color: #0f172a;
}

.bp-reply-main {
  flex: 1;
  min-width: 0;
}

.bp-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bp-reply-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.bp-reply-username {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  text-decoration: none;
}

[data-theme="light"] .bp-reply-username {
  color: #0f172a;
}

.bp-reply-username:hover {
  text-decoration: underline;
}

[data-theme="light"] .bp-reply-username:hover {
  color: #00aeec;
}

.bp-reply-time {
  font-size: 0.8rem;
  color: var(--text-secondary, #71717a);
}

[data-theme="light"] .bp-reply-time {
  color: #64748b;
}

.bp-reply-text {
  font-size: 0.92rem;
  font-weight: 500;
  /* Little bold not plain text matching Image 5 */
  line-height: 1.5;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 3px 0 8px;
  letter-spacing: -0.005em;
}

[data-theme="light"] .bp-reply-text {
  color: #0f172a;
}

.bp-read-more-link {
  color: #facc15 !important;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.bp-read-more-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* Inline Reply Composer */
.bp-inline-reply-box {
  margin-top: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 10px 12px;
}

.bp-inline-reply-textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary, #ffffff);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  min-height: 24px;
}

.bp-inline-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.06));
}

.bp-inline-cancel-btn {
  background: none;
  border: none;
  color: var(--text-muted, #71717a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.bp-inline-cancel-btn:hover {
  color: var(--text-primary, #ffffff);
}

/* Fullscreen High-Res Lightbox Modal (8,000px long images) */
.bp-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bp-lightbox-container {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 960px;
  height: 90vh;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.bp-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #18181c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bp-lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bp-lightbox-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.bp-lightbox-dims {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 174, 236, 0.15);
  color: var(--accent, #00aeec);
}

.bp-lightbox-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-lightbox-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.bp-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.bp-lightbox-btn.bp-lightbox-close:hover {
  background: #ef4444;
}

.bp-lightbox-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #09090b;
}

.bp-lightbox-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

/* ===================================================
   RANKED CARD STYLING (Modern Premium Dynamic Card)
   =================================================== */
.ranked-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.ranked-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border-color: var(--accent);
}

[data-theme="dark"] .ranked-card {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .ranked-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ranked-card-rank-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #ffffff !important;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-family: var(--font);
  line-height: 1;
  transition: transform 0.3s ease;
}

.ranked-card:hover .ranked-card-rank-label {
  transform: scale(1.08);
}

.ranked-card-img-wrap {
  padding: 0;
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
}

.ranked-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ranked-card:hover .ranked-card-img {
  transform: scale(1.04);
}

.ranked-card-desc {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary) !important;
  padding: 24px 24px 20px 24px;
  margin: 0;
}

.ranked-card-footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-panel);
  gap: 16px;
}

.ranked-card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.ranked-card-meta-row span {
  font-style: italic;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranked-card-meta-row a {
  color: var(--text-secondary);
  text-decoration: none;
}

.ranked-card-meta-row a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.ranked-card-report-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ranked-card-report-btn:hover {
  color: var(--red);
}

.ranked-card-vote-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranked-vote-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ranked-vote-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.ranked-vote-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ranked-vote-btn.active-up {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ranked-vote-btn.active-up:hover {
  color: #ffffff;
  border-color: var(--green);
}

.ranked-vote-btn.active-down {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ranked-vote-btn.active-down:hover {
  color: #ffffff;
  border-color: var(--red);
}

.ranked-card-score {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  margin-left: 4px;
  min-width: 28px;
  text-align: center;
}

@media (max-width: 600px) {
  .ranked-card-img-wrap {
    height: 260px;
  }

  .ranked-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ranked-card-meta-row {
    justify-content: space-between;
  }
}

/* ===================================================
   HEADER DROPDOWN & SIGN UP BUTTON
   =================================================== */

.header-dropdown {
  position: relative;
  display: inline-block;
}

.header-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-hover);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans);
  height: 34px;
  box-sizing: border-box;
}

.header-dropdown-btn:hover {
  background: var(--border-soft);
  border-color: var(--border);
  color: var(--text-white);
}

.header-search-btn-icon {
  transition: transform var(--trans);
}

/* ── Search Auto-Complete Dropdown (Image 4 Command Palette / Spotlight Popover) ── */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  min-width: 420px;
  max-width: 540px;
  max-height: min(520px, calc(100vh - 90px));
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #141416 !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  clip-path: inset(0 round 20px) !important;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  z-index: 10000;
  display: none;
  flex-direction: column;
  padding: 12px 10px 10px 10px;
  animation: bpSearchFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="light"] .search-results-dropdown,
html[data-theme="light"] .search-results-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .search-results-dropdown,
html[data-theme="dark"] .search-results-dropdown {
  background: #141416 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent !important;
  margin: 14px 0 !important;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

[data-theme="light"] .search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .search-results-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.32);
}

@keyframes bpSearchFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Image 4 Scope Bar ("I'm looking for...") ── */
.bp-search-scope-bar {
  padding: 4px 6px 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

[data-theme="light"] .bp-search-scope-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.bp-search-scope-label {
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 4px;
}

[data-theme="light"] .bp-search-scope-label {
  color: #71717a;
}

.bp-search-scope-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-scope-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

[data-theme="light"] .bp-scope-pill {
  background: #f4f4f5;
  color: #52525b;
  border-color: rgba(0, 0, 0, 0.08);
}

.bp-scope-pill:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .bp-scope-pill:hover:not(.active) {
  background: #e4e4e7;
  color: #18181b;
}

.bp-scope-pill.active {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  font-weight: 750;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bp-scope-pill.active {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

.bp-scope-count {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
}

.bp-scope-pill:not(.active) .bp-scope-count {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .bp-scope-pill:not(.active) .bp-scope-count {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Group & Titles (Image 4 Category Headers) ── */
.bp-search-group {
  margin-bottom: 12px;
}

.bp-search-group-title {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  padding: 6px 12px 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .bp-search-group-title {
  color: #71717a;
}

.bp-search-group-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

[data-theme="light"] .bp-search-group-count {
  background: rgba(0, 0, 0, 0.06);
  color: #71717a;
}

.bp-search-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Row Items (Rounded, Modern Command Palette) ── */
.bp-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin: 1px 0;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}

.bp-search-item:hover,
.bp-search-item.bp-item-active {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .bp-search-item:hover,
[data-theme="light"] .bp-search-item.bp-item-active {
  background: rgba(0, 0, 0, 0.05);
}

.bp-search-item-action {
  margin-left: auto;
  font-size: 0.75rem;
  color: #71717a;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bp-search-item:hover .bp-search-item-action,
.bp-search-item.bp-item-active .bp-search-item-action {
  opacity: 1;
}

.bp-search-item-shortcut {
  margin-left: auto;
  font-size: 0.78rem;
  color: #71717a;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: inherit;
}

[data-theme="light"] .bp-search-item-shortcut {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #71717a;
}

/* Tag Item */
.search-tag-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.search-tag-symbol {
  font-size: 1rem;
  font-weight: 800;
}

.bp-search-tag-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  font-family: inherit;
}

[data-theme="light"] .bp-search-tag-text {
  color: #18181b;
}

/* Post Item */
.search-post-thumb-wrap {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
}

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

.bp-search-post-headline {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e4e4e7;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .bp-search-post-headline {
  color: #18181b;
}

/* User Item */
.search-user-avatar-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272a;
}

.search-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-user-avatar-fallback {
  background: linear-gradient(135deg, #00aeec, #6366f1);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bp-search-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.bp-search-user-name-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bp-search-user-name {
  font-size: 0.92rem;
  font-weight: 750;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .bp-search-user-name {
  color: #18181b;
}

.bp-search-user-handle {
  font-size: 0.82rem;
  font-weight: 400;
  color: #71767b;
  margin-top: 1px;
}

[data-theme="light"] .bp-search-user-handle {
  color: #536471;
}

/* Match Highlighting */
.search-match {
  color: #ffffff !important;
  font-weight: 750;
}

html[data-theme="light"] .search-match {
  color: #0f172a !important;
  font-weight: 800;
}

/* ── Footer ── */
.bp-search-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.15s ease;
  color: inherit;
}

[data-theme="light"] .bp-search-footer-link {
  border-top-color: rgba(0, 0, 0, 0.08);
}

.bp-search-footer-text {
  font-size: 0.82rem;
  color: #a1a1aa;
}

[data-theme="light"] .bp-search-footer-text {
  color: #52525b;
}

.bp-search-footer-badge {
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="light"] .bp-search-footer-badge {
  background: #18181b;
  color: #ffffff;
}

.bp-search-footer-link:hover,
.bp-search-footer-link.bp-item-active {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bp-search-footer-link:hover,
[data-theme="light"] .bp-search-footer-link.bp-item-active {
  background: rgba(0, 0, 0, 0.04);
}


.bp-search-empty {
  padding: 24px 16px;
  text-align: center;
}

.bp-search-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.bp-search-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.bp-search-empty-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Legacy support styles */
.search-results-header {
  display: none;
}

.search-results-list {
  display: none;
}


.search-result-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dropdown-arrow-icon {
  transition: transform var(--trans);
}

.header-dropdown.open .dropdown-arrow-icon {
  transform: rotate(180deg);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.header-dropdown.open .header-dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--trans);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item svg {
  fill: var(--text-muted);
  transition: fill var(--trans);
}

.dropdown-item:hover svg {
  fill: var(--accent);
}

/* Header Sign Up Button */
.header-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-hover);
  border: 1px solid var(--border-soft);
  color: var(--text-primary) !important;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  text-decoration: none;
  height: 34px;
  box-sizing: border-box;
}

.header-signup:hover {
  background: var(--border-soft);
  border-color: var(--border);
  color: var(--text-white) !important;
}

.header-signup:active {
  transform: scale(0.95);
}



/* Header Home Button — Removed */
.header-home-btn {
  display: none !important;
}

/* Breadcrumbs System */
.breadcrumbs-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 2px 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--trans);
  cursor: pointer;
}

.breadcrumb-link:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.breadcrumb-separator {
  color: var(--text-muted);
  margin: 0 6px;
  user-select: none;
  font-size: 0.7rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

/* ===================================================
   PREMIUM RECOMMENDATIONS SECTION (CAROUSEL & GRID)
   =================================================== */
.rec-section {
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
  border: none !important;
  margin: 32px 0 0 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Top bar (Google Buttons) */
.rec-top-bar {
  background: transparent !important;
  padding: 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid var(--border-soft) !important;
}

.rec-top-bar-inner {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.rec-google-btn,
.rec-gnews-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--font), sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer !important;
  transition: all var(--trans) !important;
  box-sizing: border-box !important;
}

.rec-google-btn,
.rec-gnews-btn {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

.rec-google-btn:hover,
.rec-gnews-btn:hover {
  background: var(--bg-hover) !important;
  border-color: var(--accent) !important;
  color: var(--text-white) !important;
  transform: translateY(-1px) !important;
}

/* Recommended Section (Google News Bar + 2-Column Grid directly after) */
.threads-rec-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* Bottom Section (2-Column Grid) */
/* Bottom Section (Related Feed Matching Main Feed) */
.rec-bottom-section {
  background: transparent !important;
  padding: 8px 0 16px 0 !important;
  border-top: none !important;
}

.related-feed-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 14px 0 20px 0 !important;
  width: 100% !important;
  text-align: center !important;
}

.related-feed-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 28px !important;
  background: var(--bg-card, #141722) !important;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12)) !important;
  border-radius: var(--radius-pill, 999px) !important;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--text-primary, #ffffff) !important;
  letter-spacing: -0.2px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.related-feed-more-btn:hover {
  background: var(--bg-hover, #1e2230) !important;
  border-color: var(--accent, #00aeec) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 174, 236, 0.2) !important;
}

.related-feed-more-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .related-feed-more-btn {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .related-feed-more-btn:hover {
  background: #f8fafc !important;
  border-color: var(--accent, #00aeec) !important;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.15) !important;
}

.rec-grid,
.ninegag-related-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden !important;
}

[data-theme="light"] .rec-grid,
[data-theme="light"] .ninegag-related-grid {
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

/* Related Feed Card — Full Feed Card Matching Main Feed (No Space Between Cards) */
.related-feed-card.news-card {
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-card, #141722) !important;
  border: none !important;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 0 !important;
  padding: 20px 20px 16px 20px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  position: relative !important;
}

.related-feed-card.news-card:last-child {
  border-bottom: none !important;
}

[data-theme="light"] .related-feed-card.news-card {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: none !important;
}

.related-feed-card.news-card:hover {
  background: var(--bg-hover, rgba(255, 255, 255, 0.04)) !important;
}

[data-theme="light"] .related-feed-card.news-card:hover {
  background: #f8fafc !important;
}

.related-feed-card .news-card-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Card Author Header */
.related-feed-card .card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 2px !important;
}

.related-feed-card .card-author-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.related-feed-card .card-author-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid var(--border, #272b2f) !important;
  display: block !important;
}

.related-feed-card .card-author-name {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--text-primary, #ffffff) !important;
}

[data-theme="light"] .related-feed-card .card-author-name {
  color: #0f172a !important;
}

.related-feed-card .card-meta-dot {
  font-size: 0.8rem !important;
  color: #64748b !important;
}

.related-feed-card .publisher-handle {
  font-size: 0.8rem !important;
  color: #8b8fa3 !important;
}

[data-theme="light"] .related-feed-card .publisher-handle {
  color: #64748b !important;
}

/* Headline */
.related-feed-card .card-headline {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text-white, #ffffff) !important;
  line-height: 1.38 !important;
  margin: 2px 0 0 0 !important;
  letter-spacing: -0.015em !important;
  transition: color 0.15s ease !important;
}

[data-theme="light"] .related-feed-card .card-headline {
  color: #0f172a !important;
}

.related-feed-card:hover .card-headline {
  color: var(--accent, #00aeec) !important;
}

/* Summary */
.related-feed-card .card-summary {
  font-size: 0.92rem !important;
  color: #94a3b8 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

[data-theme="light"] .related-feed-card .card-summary {
  color: #475569 !important;
}

/* Card Meta Tags Footer */
.related-feed-card .card-footer {
  padding: 0 !important;
  margin: 2px 0 4px 0 !important;
}

.related-feed-card .card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.related-feed-card .card-tag.card-tag-pill {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.02em !important;
}

.related-feed-card .card-stat,
.related-feed-card .card-date {
  font-size: 0.8rem !important;
  color: #8b8fa3 !important;
  font-weight: 500 !important;
}

[data-theme="light"] .related-feed-card .card-stat,
[data-theme="light"] .related-feed-card .card-date {
  color: #64748b !important;
}

/* Media Image */
.related-feed-card .card-media {
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #11131c !important;
  aspect-ratio: 16/9 !important;
  width: 100% !important;
  margin: 4px 0 !important;
}

.related-feed-card .card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.related-feed-card:hover .card-media img {
  transform: scale(1.02) !important;
}

/* ==========================================================================
   More from Stories / Related Feed Cards Action Bar (Matching Image 2)
   [ ↑ 1.8K ↓ ] [ 💬 24.0K Comments ] [ ☕ Coffee ] [ ↗ Share ]
   ========================================================================== */
.related-feed-card .card-action-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 0 0 0 !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  border-bottom: none !important;
  width: 100% !important;
}

.related-feed-card .card-action-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

.related-feed-card .card-action-row,
.related-feed-card .card-action-row-top,
.related-feed-card .card-action-row-bottom {
  display: contents !important;
}

.related-feed-card .card-vote-pill,
.related-feed-card .card-action-btn,
.related-feed-card .card-share-container {
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {
  .related-feed-card .card-action-left {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

/* 1. Vote Pill Capsule */
.related-feed-card .card-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill {
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
}

.related-feed-card .card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill:hover {
  background: rgba(0, 0, 0, 0.09) !important;
}

.related-feed-card .card-vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 0 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  gap: 8px !important;
  vertical-align: middle !important;
  transition: background 0.15s ease !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill {
  background: #eaedf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.related-feed-card .card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill:hover {
  background: #dfe3e7 !important;
}

.related-feed-card .card-vote-pill button,
.related-feed-card .card-vote-pill .vote-up-btn,
.related-feed-card .card-vote-pill .vote-down-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  width: 24px !important;
  height: 24px !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: color 0.15s ease, transform 0.1s ease !important;
  user-select: none !important;
  position: relative !important;
  text-decoration: none !important;
  line-height: normal !important;
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

.related-feed-card .card-vote-pill .vote-up-btn svg,
.related-feed-card .card-vote-pill .vote-down-btn svg {
  fill: none !important;
  stroke: #94a3b8 !important;
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill .vote-up-btn svg,
[data-theme="light"] .related-feed-card .card-vote-pill .vote-down-btn svg {
  stroke: #64748b !important;
}

/* Eliminate vertical divider line */
.related-feed-card .card-vote-pill .vote-up-btn::after,
.related-feed-card .card-vote-pill .vote-pill-divider {
  display: none !important;
}

.related-feed-card .card-vote-pill .vote-up-btn:hover {
  color: #facc15 !important;
  background: transparent !important;
  transform: scale(1.12) !important;
}

.related-feed-card .card-vote-pill .vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.related-feed-card .card-vote-pill .vote-down-btn:hover {
  color: #ef4444 !important;
  background: transparent !important;
  transform: scale(1.12) !important;
}

.related-feed-card .card-vote-pill .vote-down-btn:hover svg {
  stroke: #ef4444 !important;
}

.related-feed-card .card-vote-pill .vote-up-btn.active-up,
.related-feed-card .card-vote-pill .vote-up-btn.active-like {
  color: #facc15 !important;
  background: transparent !important;
  animation: instagramLikePop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.related-feed-card .card-vote-pill .vote-up-btn.active-up svg,
.related-feed-card .card-vote-pill .vote-up-btn.active-like svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.related-feed-card .card-vote-pill .vote-down-btn.active-down,
.related-feed-card .card-vote-pill .vote-down-btn.active-dislike {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
}

.related-feed-card .card-vote-pill .vote-down-btn.active-down svg,
.related-feed-card .card-vote-pill .vote-down-btn.active-dislike svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

.related-feed-card .card-vote-pill .up-num {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  user-select: none !important;
  padding: 0 2px !important;
  cursor: pointer !important;
}

[data-theme="light"] .related-feed-card .card-vote-pill .up-num {
  color: #0f172a !important;
}

.related-feed-card .card-vote-pill .down-num {
  display: none !important;
}

.related-feed-card .card-vote-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* 2. Action Pill Buttons: Comments, Coffee, Save, Share (Matching Image 1 & 2) */
.related-feed-card .card-action-btn.card-comments-btn,
.related-feed-card .card-action-btn.comments-btn,
.related-feed-card .card-action-btn.card-coffee-btn,
.related-feed-card .card-action-btn.coffee-btn,
.related-feed-card .card-action-btn.card-save-btn,
.related-feed-card .card-action-btn.save-btn,
.related-feed-card .card-save-btn,
.related-feed-card .card-action-btn.share-trigger-btn,
.related-feed-card .share-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 0 16px !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  user-select: none !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* Pill shape for Coffee and Save buttons matching Image 1 & Image 2 */
.related-feed-card .card-action-btn.card-coffee-btn,
.related-feed-card .card-action-btn.coffee-btn,
.related-feed-card .card-action-btn.card-save-btn,
.related-feed-card .card-action-btn.save-btn,
.related-feed-card .card-save-btn {
  border-radius: 9999px !important;
  padding: 0 16px !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-comments-btn,
[data-theme="light"] .related-feed-card .card-action-btn.comments-btn,
[data-theme="light"] .related-feed-card .card-action-btn.card-coffee-btn,
[data-theme="light"] .related-feed-card .card-action-btn.coffee-btn,
[data-theme="light"] .related-feed-card .card-action-btn.card-save-btn,
[data-theme="light"] .related-feed-card .card-action-btn.save-btn,
[data-theme="light"] .related-feed-card .card-save-btn,
[data-theme="light"] .related-feed-card .card-action-btn.share-trigger-btn,
[data-theme="light"] .related-feed-card .share-trigger-btn {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
  border: none !important;
}

.related-feed-card .card-action-btn.card-comments-btn:hover,
.related-feed-card .card-action-btn.comments-btn:hover,
.related-feed-card .card-action-btn.card-coffee-btn:hover,
.related-feed-card .card-action-btn.coffee-btn:hover,
.related-feed-card .card-action-btn.card-save-btn:hover,
.related-feed-card .card-action-btn.save-btn:hover,
.related-feed-card .card-save-btn:hover,
.related-feed-card .card-action-btn.share-trigger-btn:hover,
.related-feed-card .share-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Coffee button: Normal styling matching Save button (Image 2) - No animation */
.related-feed-card .card-action-btn.card-coffee-btn,
.related-feed-card .card-action-btn.coffee-btn {
  animation: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.related-feed-card .card-action-btn.card-coffee-btn:hover,
.related-feed-card .card-action-btn.coffee-btn:hover {
  animation: none !important;
  transform: none !important;
}

.related-feed-card .card-action-btn.card-coffee-btn svg,
.related-feed-card .card-action-btn.coffee-btn svg {
  stroke: #ffffff !important;
  fill: none !important;
  color: #ffffff !important;
  width: 18px !important;
  height: 18px !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-coffee-btn svg,
[data-theme="light"] .related-feed-card .card-action-btn.coffee-btn svg {
  stroke: #0f172a !important;
  color: #0f172a !important;
}

.related-feed-card .card-action-btn.card-coffee-btn span,
.related-feed-card .card-action-btn.coffee-btn span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-coffee-btn span,
[data-theme="light"] .related-feed-card .card-action-btn.coffee-btn span {
  color: #0f172a !important;
}


/* Active Saved / Bookmarked state: Image 4 Specification */
.related-feed-card .card-action-btn.card-save-btn.active-saved,
.related-feed-card .card-action-btn.save-btn.active-saved,
.related-feed-card .card-save-btn.active-saved {
  background: rgba(250, 204, 21, 0.06) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25) !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-save-btn.active-saved,
[data-theme="light"] .related-feed-card .card-action-btn.save-btn.active-saved,
[data-theme="light"] .related-feed-card .card-save-btn.active-saved {
  background: rgba(234, 179, 8, 0.1) !important;
  border: 1.5px solid #ca8a04 !important;
  color: #a16207 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.2) !important;
}

.related-feed-card .card-action-btn.card-save-btn.active-saved svg,
.related-feed-card .card-action-btn.save-btn.active-saved svg,
.related-feed-card .card-save-btn.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .related-feed-card .card-action-btn.save-btn.active-saved svg,
[data-theme="light"] .related-feed-card .card-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

.related-feed-card .card-action-btn.card-save-btn.active-saved span,
.related-feed-card .card-action-btn.card-save-btn.active-saved .save-btn-text {
  color: #facc15 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .related-feed-card .card-action-btn.card-save-btn.active-saved span,
[data-theme="light"] .related-feed-card .card-action-btn.card-save-btn.active-saved .save-btn-text {
  color: #a16207 !important;
}

/* 3. Share Container & Circular Sharables */
.related-feed-card .card-share-container {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.related-feed-card .card-share-container.active .share-trigger-btn {
  opacity: 1 !important;
  max-width: 140px !important;
  pointer-events: auto !important;
}

.related-feed-card .card-share-container .inline-share-bar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  opacity: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
  transform: translateX(10px) !important;
  transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease !important;
  pointer-events: none !important;
  flex-wrap: nowrap !important;
}

.related-feed-card .card-share-container.active .inline-share-bar {
  opacity: 1 !important;
  max-width: 500px !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

.related-feed-card .card-share-container .share-icon-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

[data-theme="dark"] .related-feed-card .card-share-container .share-icon-btn {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.related-feed-card .card-share-container .share-icon-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.related-feed-card .card-share-container .share-icon-btn.share-back-btn svg {
  stroke: currentColor !important;
  fill: none !important;
}

.related-feed-card .card-share-container .share-icon-btn:hover {
  transform: translateY(-2px) !important;
}

.related-feed-card .card-share-container .share-back-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.related-feed-card .card-share-container .share-twitter:hover {
  background: #00aeec !important;
  color: #ffffff !important;
  border-color: #00aeec !important;
}

.related-feed-card .card-share-container .share-facebook:hover {
  background: #1877F2 !important;
  color: #ffffff !important;
  border-color: #1877F2 !important;
}

.related-feed-card .card-share-container .share-bluesky:hover {
  background: #0085ff !important;
  color: #ffffff !important;
  border-color: #0085ff !important;
}

.related-feed-card .card-share-container .share-whatsapp:hover {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
}

.related-feed-card .card-share-container .share-reddit:hover {
  background: #FF4500 !important;
  color: #ffffff !important;
  border-color: #FF4500 !important;
}

.related-feed-card .card-share-container .share-copy:hover {
  background: var(--accent, #00aeec) !important;
  color: #ffffff !important;
  border-color: var(--accent, #00aeec) !important;
}

.related-feed-card .bookmark-btn svg {
  stroke: currentColor !important;
  fill: none !important;
}

.related-feed-card .bookmark-btn.bookmarked svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Post Compact Card (Exact Match to Image 2) */
.post-compact-card.rec-compact-card {
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  background: #141722 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, box-shadow 0.18s ease !important;
  min-width: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

.post-compact-card.rec-compact-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card:hover {
  border-color: var(--accent, #00aeec) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}

.post-compact-card.rec-compact-card .post-compact-thumb {
  width: 96px !important;
  height: 64px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #1e1e24 !important;
}

.post-compact-card.rec-compact-card .post-compact-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 6px !important;
}

.post-compact-card.rec-compact-card .post-compact-title {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.32 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.15s ease !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .post-compact-title {
  color: #0f172a !important;
}

.post-compact-card.rec-compact-card:hover .post-compact-title {
  color: var(--accent, #00aeec) !important;
}

.post-compact-card.rec-compact-card .post-compact-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
}

.post-compact-card.rec-compact-card .post-compact-sub {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .post-compact-sub {
  color: #64748b !important;
}

/* Compact Action Capsule Bar for Rec Cards (Coffee Pill Widget) */
.post-compact-card.rec-compact-card .action-capsule-bar {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  line-height: 1 !important;
}

.post-compact-card.rec-compact-card .capsule-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 24px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 9999px !important;
  color: #cbd5e1 !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
}

.post-compact-card.rec-compact-card .capsule-pill svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  fill: none !important;
  transition: transform 0.2s ease !important;
}

.post-compact-card.rec-compact-card .capsule-pill:hover {
  background: rgba(0, 174, 236, 0.15) !important;
  border-color: rgba(0, 174, 236, 0.45) !important;
  color: #ff7a59 !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .capsule-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #475569 !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .capsule-pill:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  color: #b45309 !important;
}

.post-compact-card.rec-compact-card .capsule-pill.active-coffee,
[data-theme="light"] .post-compact-card.rec-compact-card .capsule-pill.active-coffee {
  background: rgba(250, 204, 21, 0.18) !important;
  border: 1.5px solid #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4) !important;
}

.post-compact-card.rec-compact-card .capsule-pill.active-coffee svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .capsule-pill.active-coffee {
  border-color: #d97706 !important;
  color: #b45309 !important;
}

[data-theme="light"] .post-compact-card.rec-compact-card .capsule-pill.active-coffee svg {
  stroke: #b45309 !important;
}

/* Toast Notification (Image 2 Spec) */
.kr-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translate(-50%, 20px) !important;
  background: #0f1419 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 100004 !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

[data-theme="light"] .kr-toast {
  background: #0f1419 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.kr-toast.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}

/* ===================================================
   ARTICLE HERO CARD LAYOUT
   =================================================== */

.article-card-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card-wrapper .article-header {
  margin-bottom: 10px;
}

.article-card-wrapper .article-featured-img {
  margin-bottom: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}



.read-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.read-time-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.read-time-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rt-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--trans);
}

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

.rt-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--trans);
}

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

/* ===================================================
   BOTTOM ARTICLE META (IMAGE 2 STYLE)
   =================================================== */

.bottom-article-meta {
  margin-top: 16px;
  margin-bottom: 12px;
}

.bottom-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.bottom-author-row .article-author-label {
  color: #9ca3af;
  font-size: 0.9rem;
}

.bottom-author-row .article-author-name {
  color: var(--accent, #00aeec);
  font-weight: 700;
  font-size: 0.95rem;
}

.bottom-author-row .article-author-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}



.bottom-date-row {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.bottom-action-bar {
  border-top: none;
  border-bottom: none;
  padding: 0;
  margin-bottom: 0;
}

.share-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background-color: var(--bg-popover) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px !important;
  padding: 8px 0;
  width: 220px;
  box-shadow: var(--shadow-popover) !important;
  display: none;
  z-index: 100;
  border: 1px solid var(--popover-border) !important;
}

.share-dd-divider {
  height: 1px;
  background-color: var(--popover-border);
  margin: 6px 0;
}

/* ===================================================
   INLINE MORE STORIES (Scroller)
   =================================================== */
.inline-more-stories {
  margin: 40px -24px;
  padding: 32px 24px;
  background-color: #f4f5f7;
  border-radius: 0;
}

[data-theme="dark"] .inline-more-stories {
  background-color: #16181c;
}

.ims-header {
  margin-bottom: 20px;
}

.ims-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.ims-scroller-wrap {
  position: relative;
  overflow: visible;
}

.ims-scroller {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 600px) {
  .ims-scroller {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ims-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.ims-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .ims-card {
  background-color: #202327;
  box-shadow: none;
  border: 1px solid #2f3336;
}

.ims-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.ims-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ims-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1419;
  margin: 0 0 16px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .ims-card-title {
  color: #e7e9ea;
}

.ims-card-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, #00aeec);
  margin: auto 0 0 0;
}

@keyframes popUpDropdown {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.share-dropdown.show {
  display: flex;
  flex-direction: column;
  animation: popUpDropdown 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: bottom right;
}

.share-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary) !important;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 9px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: none !important;
  cursor: pointer;
}

.share-dd-item svg {
  color: var(--text-primary) !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.share-dd-item:hover {
  background-color: var(--popover-hover) !important;
}



/* Match Image 1 dark pill styling */
.bottom-action-bar .ab-circle-btn,
.bottom-action-bar .ab-group-pill {
  background: var(--bg-hover) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: 50px !important;
  color: var(--text-white) !important;
}

.bottom-action-bar .ab-group-divider {
  background: var(--border-soft) !important;
}

.bottom-action-bar .threads-circle {
  background: #ffffff !important;
  color: #000000 !important;
}

.bottom-action-bar .threads-circle svg {
  stroke: #000000 !important;
}

/* ── Share Popup ── */
.share-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

[data-theme="light"] .share-popup-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.share-popup {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.share-popup-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  text-align: center;
}

.share-popup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.share-popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  border: 1px solid transparent;
}

.share-popup-item:hover {
  background: var(--bg-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}

.share-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-popup-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.share-popup-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Share icon colors */
.share-facebook .share-popup-icon {
  background: #1877F2;
}

.share-twitter .share-popup-icon {
  background: #00aeec;
}

.share-whatsapp .share-popup-icon {
  background: #25D366;
}

.share-linkedin .share-popup-icon {
  background: #0A66C2;
}

.share-reddit .share-popup-icon {
  background: #FF4500;
}

.share-email .share-popup-icon {
  background: #6b7085;
}

.share-copy .share-popup-icon {
  background: var(--accent);
}

.share-telegram .share-popup-icon {
  background: #229ED9;
}

.share-popup-close {
  display: block;
  margin: 16px auto 0;
  padding: 8px 24px;
  background: var(--bg-hover);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--trans);
}

.share-popup-close:hover {
  background: var(--bg-active);
}

/* Copy link toast (Image 2 Spec) */
.copy-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #0f1419 !important;
  color: #ffffff !important;
  padding: 13px 22px !important;
  border-radius: 8px !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  z-index: 100004 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  min-width: 320px !important;
  max-width: 92vw !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ── Inline Share Bar & Share Buttons (Restored) ── */
.inline-share-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2d2e3;
  background: #ffffff;
  cursor: pointer;
  transition: all var(--trans);
  color: #4e4e61;
  padding: 0;
  flex-shrink: 0;
}

[data-theme="dark"] .share-icon-btn {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
}

.share-icon-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.share-icon-btn:hover svg {
  transform: scale(1.15);
}

.share-icon-btn:hover {
  color: #ffffff;
}

.share-twitter:hover {
  background: #00aeec;
  border-color: #00aeec;
}

.share-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeB 90%);
  border-color: #d6249f;
}

.share-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.share-bluesky:hover {
  background: #0085ff;
  border-color: #0085ff;
}

.share-mastodon:hover {
  background: #6364ff;
  border-color: #6364ff;
}

.share-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
}

.share-reddit:hover {
  background: #FF4500;
  border-color: #FF4500;
}

.share-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Article Section Thread System ── */
.article-body {
  counter-reset: section-counter;
}

.article-section {
  position: relative;
  padding-left: 54px;
  margin-top: 36px;
  margin-bottom: 36px;
}

/* The vertical thread line */
.article-section::before {
  content: '';
  position: absolute;
  left: 16px;
  /* Centered relative to the 34px circle */
  top: 30px;
  /* Starts below the circle */
  bottom: -40px;
  /* Extends to connect to the next circle */
  border-left: 2px dotted #d2d2e3;
  z-index: 1;
}

[data-theme="dark"] .article-section::before {
  border-left-color: var(--border);
}

/* Hide the thread line on the last section */
.article-section:last-of-type::before {
  display: none;
}

/* Heading reset and numbering */
.article-section h2 {
  position: relative;
  counter-increment: section-counter;
  margin-top: 0 !important;
  padding-top: 0;
}

.article-section h2::before {
  content: counter(section-counter);
  position: absolute;
  left: -54px;
  /* Align precisely in the padded area */
  top: -4px;
  /* Center circle vertically with first line of h2 text */
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #d2d2e3;
  background: #ffffff;
  color: #4e4e61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font), sans-serif;
  z-index: 2;
  /* above the thread line */
}

[data-theme="dark"] .article-section h2::before {
  border-color: var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

/* ===================================================
   GIFT ARTICLE BUTTON & POPUP
   =================================================== */
.gift-container {
  position: relative;
  display: inline-block;
}

.gift-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--trans);
}

.gift-btn svg {
  stroke: var(--text-primary);
  transition: stroke var(--trans);
}

.gift-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-primary);
}

.gift-btn.active {
  background: var(--accent-subtle);
  /* red accent subtle background */
  border-color: var(--accent);
  color: var(--accent);
}

.gift-btn.active svg {
  stroke: var(--accent);
}

/* Gift Popup Tooltip */
.gift-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 310px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 22px 20px;
  display: none;
  text-align: left;
}

@media (max-width: 600px) {
  .gift-popup {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    width: min(310px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    box-sizing: border-box !important;
  }

  .gift-popup::before {
    left: auto !important;
    right: 14px !important;
    transform: rotate(45deg) !important;
  }
}

/* Show state */
.gift-popup.active {
  display: block;
}

/* Arrow pointing up to the button */
.gift-popup::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-top: 1.5px solid var(--border-soft);
  border-left: 1.5px solid var(--border-soft);
}

.gift-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.gift-popup-close:hover {
  color: var(--text-primary);
}

.gift-popup-title {
  font-family: var(--font), sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  letter-spacing: 0.03em;
}

.gift-popup-text {
  font-family: var(--font), sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
}

.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn:visited,
a.gift-popup-btn:visited,
.gift-popup-btn:focus,
a.gift-popup-btn:focus,
.gift-popup-btn:active,
a.gift-popup-btn:active {
  display: block;
  width: 100%;
  background: var(--accent, #facc15) !important;
  color: #000000 !important;
  border: none;
  border-radius: 50px;
  padding: 10px;
  font-family: var(--font), sans-serif;
  font-size: 0.9rem;
  font-weight: 800 !important;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  text-decoration: none !important;
  transition: all var(--trans);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.4);
}

.gift-popup-btn:hover,
a.gift-popup-btn:hover {
  background: var(--accent-hover, #eab308) !important;
  color: #000000 !important;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.5);
}

.gift-popup-signin {
  font-family: var(--font), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.03em;
}

.gift-popup-signin-link {
  color: var(--accent);
  text-decoration: underline;
  transition: color var(--trans);
}

.gift-popup-signin-link:hover {
  color: var(--accent-hover);
}

/* Responsive Media Queries for Recommendations Section */
@media (max-width: 768px) {
  .rec-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .rec-card {
    width: calc((100% - 2 * 12px) / 3) !important;
    height: 100px !important;
  }

  .rec-card-title {
    padding: 0 10px !important;
    font-size: 0.8rem !important;
    max-height: 2.7em !important;
    bottom: 8px !important;
  }

  .rec-top-bar {
    padding: 12px 0 !important;
  }

  .rec-middle-section,
  .rec-bottom-section {
    padding: 16px 0 !important;
  }

  .rec-carousel-arrow {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .rec-card {
    width: calc((100% - 1 * 8px) / 2) !important;
    height: 90px !important;
  }

  .rec-card-title {
    padding: 0 8px !important;
    font-size: 0.75rem !important;
    max-height: 2.7em !important;
    bottom: 6px !important;
  }
}

/* ===================================================
   IMDb RATING WIDGET & MODAL (BLUE THEME)
   =================================================== */
.imdb-rating-widget {
  margin: 32px 0;
  padding: 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imdb-widget-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #579bfc;
  /* Birdpost Blue */
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.imdb-widget-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background-color: #579bfc;
  border-radius: 2px;
}

.imdb-widget-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.imdb-rating-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imdb-box-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.05em;
}

.imdb-rating-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.imdb-star-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.imdb-star-icon.blue {
  color: #579bfc;
}

.imdb-star-icon.blue.filled {
  fill: #579bfc;
}

.imdb-rating-numbers {
  display: flex;
  align-items: baseline;
  font-family: 'Inter', sans-serif;
}

.imdb-rating-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.imdb-rating-denom {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.imdb-rating-count {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-left: 2px;
}

/* Rate Button */
.imdb-rate-button {
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #579bfc;
}

.imdb-rate-button:hover {
  background-color: rgba(87, 155, 252, 0.1);
  border-color: #579bfc;
  transform: translateY(-1px);
}

.imdb-rate-button.rated {
  background-color: rgba(87, 155, 252, 0.05);
  border-color: rgba(87, 155, 252, 0.3);
}

/* Modal Overlay */
.imdb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.imdb-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.imdb-modal-box {
  background-color: #1f1f1f;
  /* IMDb Dark Modal style */
  color: #ffffff;
  width: 90%;
  max-width: 460px;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.imdb-modal-overlay.active .imdb-modal-box {
  transform: translateY(0);
}

.imdb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.imdb-modal-close:hover {
  color: #ffffff;
}

.imdb-modal-star-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.imdb-modal-star {
  color: #3f3f3f;
  transition: all 0.2s ease;
}

.imdb-modal-star.filled {
  color: #579bfc;
  fill: #579bfc;
}

.imdb-modal-star.active-hover {
  color: #579bfc;
  fill: #579bfc;
  transform: scale(1.1);
}

.imdb-modal-score {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.imdb-modal-title {
  color: #579bfc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 6px 0;
}

.imdb-modal-headline {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  line-height: 1.4;
  color: #ffffff;
  max-width: 320px;
}

.imdb-modal-stars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
  margin-bottom: 24px;
}

.imdb-stars-row {
  display: flex;
  gap: 6px;
}

.imdb-star-picker-icon {
  width: 28px;
  height: 28px;
  color: #555555;
  cursor: pointer;
  transition: all 0.15s ease;
}

.imdb-star-picker-icon:hover,
.imdb-star-picker-icon.highlight {
  color: #579bfc;
  fill: #579bfc;
  transform: scale(1.15);
}

.imdb-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 380px;
}

.imdb-rating-pill {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #2c2c2c;
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.imdb-rating-pill:hover,
.imdb-rating-pill.highlight {
  background-color: #579bfc;
  color: #ffffff;
  border-color: #579bfc;
  transform: scale(1.1);
}

.imdb-rating-pill.active {
  background-color: #579bfc !important;
  color: #ffffff !important;
  border-color: #579bfc !important;
}

.imdb-modal-description {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
  min-height: 20px;
  margin-bottom: 24px;
}

.imdb-modal-submit {
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  border-radius: 50px;
  background-color: #3b3b3b;
  color: rgba(255, 255, 255, 0.4);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.imdb-modal-submit.active {
  background-color: #579bfc;
  color: #ffffff;
  cursor: pointer;
}

.imdb-modal-submit.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(87, 155, 252, 0.35);
}

/* Light mode specific popover/widget overrides if needed */
[data-theme="light"] .imdb-rating-widget {
  background-color: #ffffff;
  border-color: #e5e7eb;
}

/* Upvote/Downvote Widget & Engagement Pill Styling */
.card-engagement {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.vote-widget,
.engagement-item.comments {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 4px;
  height: 32px;
  gap: 0;
  box-sizing: border-box;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
}

[data-theme="light"] .vote-widget,
[data-theme="light"] .engagement-item.comments {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #0f0f0f;
}

.vote-widget:hover,
.engagement-item.comments:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

[data-theme="light"] .vote-widget:hover,
[data-theme="light"] .engagement-item.comments:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #000000;
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  height: 100%;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}

.vote-btn svg {
  width: 14px;
  height: 14px;
  transition: all var(--trans);
}

.vote-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

[data-theme="light"] .vote-btn:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #000000;
}

.vote-btn.vote-up.active {
  color: #ffffff;
}

.vote-btn.vote-up.active svg {
  fill: currentColor;
}

[data-theme="light"] .vote-btn.vote-up.active {
  color: #000000;
}

.vote-btn.vote-down.active {
  color: #ffffff;
}

.vote-btn.vote-down.active svg {
  fill: currentColor;
}

[data-theme="light"] .vote-btn.vote-down.active {
  color: #000000;
}

.vote-widget .vote-pill-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin: 0 1px;
  flex-shrink: 0;
}

[data-theme="light"] .vote-widget .vote-pill-divider {
  background: rgba(0, 0, 0, 0.15);
}

.vote-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: inherit;
  min-width: 24px;
  text-align: center;
  user-select: none;
  transition: color var(--trans);
}

.vote-count.upvoted {
  color: #ffffff !important;
}

[data-theme="light"] .vote-count.upvoted {
  color: #000000 !important;
}

.vote-count.downvoted {
  color: #ffffff !important;
}

[data-theme="light"] .vote-count.downvoted {
  color: #000000 !important;
}

.engagement-item.comments svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color var(--trans);
}

.engagement-item.comments:hover svg {
  color: var(--text-primary);
}

/* Custom Comments Layout matching mockup */
.comments-section-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
  border-left: 4px solid #579bfc;
  padding-left: 10px;
  margin: 32px 0 20px 0;
  display: flex;
  align-items: center;
}

.reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--trans);
  user-select: none;
}

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

.reaction-pill.active {
  background: rgba(87, 155, 252, 0.15);
  border-color: #579bfc;
  color: #579bfc;
}

.reaction-icon {
  font-size: 1rem;
}

.reaction-count {
  font-weight: 700;
  opacity: 0.8;
}

.comments-rules-banner {
  background: rgba(87, 155, 252, 0.04);
  border: 1px solid rgba(87, 155, 252, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.comments-rules-banner .rules-link {
  color: #579bfc;
  text-decoration: underline;
  cursor: pointer;
}

.comments-rules-banner .rules-link:hover {
  color: var(--accent-hover);
}

.comments-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 4px;
  margin-bottom: 24px;
}

.comments-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comments-dropdown-btn,
.comments-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--trans);
}

.comments-dropdown-btn:hover,
.comments-sort-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.comments-bar-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comments-bar-count svg {
  color: var(--text-secondary);
}

.comments-login-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-left: 4px;
}

.comments-login-prompt .prompt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border-soft);
}

.comments-login-prompt .prompt-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.comments-login-prompt .prompt-login-link {
  color: #579bfc;
  font-weight: 700;
  cursor: pointer;
}

.comments-login-prompt .prompt-login-link:hover {
  text-decoration: underline;
}

/* ===================================================
   VERTICAL RANKER LIST (Matches Image 1 precisely)
   =================================================== */
.ranker-vertical-list {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 10px 0 24px 0;
}

[data-theme="light"] .ranker-vertical-list {
  background: transparent;
  border-color: transparent;
}

.ranker-vertical-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: none;
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 40%, #e04420 100%);
  border-radius: 16px;
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.25);
}

.ranker-vertical-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 174, 236, 0.35);
}

.ranker-vertical-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

[data-theme="light"] .ranker-vertical-item {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 40%, #e04420 100%);
  border-bottom-color: transparent;
}

.ranker-item-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ranker-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ranker-vertical-item:hover .ranker-item-thumb {
  transform: scale(1.05);
}

.ranker-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranker-item-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.ranker-status-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 11px;
  border-radius: 50px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.ranker-status-badge.status-rising {
  background: #00aeec;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
}

.ranker-status-badge.status-falling {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.ranker-item-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00aeec !important;
  border: none !important;
  border-radius: 50px;
  padding: 4px 10px;
  font-size: 0.78rem;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.25);
  color: #ffffff !important;
  user-select: none;
}

[data-theme="light"] .ranker-item-vote-pill {
  background: #00aeec !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.25);
}

.ranker-vote-arrow {
  background: none;
  border: none;
  color: #ffffff !important;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.ranker-vote-arrow svg {
  stroke: #ffffff !important;
}

.ranker-vote-arrow:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.15);
}

.ranker-vote-arrow.up-btn.active-up {
  color: #ffffff !important;
  background: #e55a00 !important;
  border-radius: 4px;
}

.ranker-vote-arrow.down-btn.active-down {
  color: #ffffff !important;
  background: #e55a00 !important;
  border-radius: 4px;
}

.ranker-score-num {
  font-weight: 700;
  color: #ffffff !important;
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
}

[data-theme="light"] .ranker-score-num {
  color: #ffffff !important;
}

.ranker-item-title {
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 2px 0 3px 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

[data-theme="light"] .ranker-item-title {
  color: #ffffff;
}

.ranker-num {
  font-weight: 900;
  margin-right: 4px;
}

.ranker-num.rising {
  color: #ffffff;
}

[data-theme="light"] .ranker-num.rising {
  color: #ffffff;
}

.ranker-num.falling {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .ranker-num.falling {
  color: rgba(255, 255, 255, 0.7);
}

.ranker-item-subtitle {
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin: 4px 0 0 0;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

[data-theme="light"] .ranker-item-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.ranker-item-latest {
  display: none !important;
}

@media (max-width: 640px) {
  .ranker-vertical-list {
    padding: 4px 12px;
  }

  .ranker-vertical-item {
    gap: 12px;
    padding: 14px 0;
  }

  .ranker-item-thumb-wrap {
    width: 76px;
    height: 76px;
  }

  .ranker-item-title {
    font-size: 1.1rem;
  }

  .ranker-item-subtitle {
    font-size: 0.88rem;
  }

  .ranker-item-latest {
    display: none !important;
  }
}

/* ==========================================================================
   RANKER DETAIL & INTERACTIVE SUB-RANKINGS (Images 4 & 5)
   ========================================================================== */

.clickable-ranker-row {
  cursor: pointer;
  padding: 14px 12px;
  margin: 2px -12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.clickable-ranker-row:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

[data-theme="light"] .clickable-ranker-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.clickable-ranker-row:hover .ranker-subtitle-text {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.ranker-open-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff !important;
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 4px 12px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0, 174, 236, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.clickable-ranker-row:hover .ranker-open-badge,
.ranker-open-badge:hover {
  background: #009cd3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 156, 211, 0.45);
  transform: translateY(-1px);
}

/* Ranker Detail Wrapper */
#rankerCustomList {
  margin-bottom: 0 !important;
}

.ranker-detail-wrapper {
  max-width: 920px;
  margin: 0 auto 12px auto;
  animation: rankerFadeIn 0.3s ease;
}

.ranker-full-card {
  padding: 0 !important;
  margin-bottom: 24px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: var(--bg-card, #000000) !important;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .ranker-full-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Breadcrumbs bar inside ranker card */
.ranker-full-card .ranker-detail-nav-bar {
  padding: 16px 24px 14px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
}

[data-theme="light"] .ranker-full-card .ranker-detail-nav-bar {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

/* Image 5 Subheader Matching Image 2 */
.ranker-post-header-img5 {
  padding: 12px 24px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-start !important;
}

[data-theme="light"] .ranker-post-header-img5 {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

.ranker-post-header-img5 .article-round-back-btn {
  margin-right: 0 !important;
  flex-shrink: 0 !important;
}

.ranker-post-header-img5 .ninegag-channel-avatar {
  background: #d97706 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="light"] .ranker-post-header-img5 .ninegag-channel-avatar {
  border-color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.ranker-post-header-img5 .ninegag-channel-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.ranker-post-header-img5 .ninegag-channel-name {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: var(--text-white, #ffffff) !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-theme="light"] .ranker-post-header-img5 .ninegag-channel-name {
  color: #0f172a !important;
}

.ranker-post-header-img5 .ninegag-channel-meta {
  font-size: 0.82rem !important;
  color: var(--text-secondary, #94a3b8) !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

[data-theme="light"] .ranker-post-header-img5 .ninegag-channel-meta {
  color: #64748b !important;
}

.ranker-post-header-img5 .visit-category-tab-btn {
  margin-left: auto !important;
  margin-right: 2px !important;
  flex-shrink: 0 !important;
}

.ranker-post-header-img5 .ninegag-more-btn {
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  .ranker-post-header-img5 {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  .ranker-post-header-img5 .visit-category-tab-btn {
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
  }

  .ranker-post-header-img5 .ninegag-channel-name {
    font-size: 0.88rem !important;
  }

  .ranker-post-header-img5 .ninegag-channel-meta {
    font-size: 0.75rem !important;
  }
}

.ranker-full-card .ranker-detail-header {
  padding: 24px 24px 18px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
}

[data-theme="light"] .ranker-full-card .ranker-detail-header {
  border-bottom-color: rgba(0, 0, 0, 0.07) !important;
}

.ranker-footer-section {
  padding: 20px 24px 16px !important;
  margin: 0 !important;
  background: transparent !important;
}

.ranker-footer-section .ranker-action-bar {
  margin-bottom: 4px !important;
  margin-top: 0 !important;
  padding-top: 14px !important;
}

/* Ranker Google button — slightly smaller than the article full-size version */
.ranker-footer-section .ninegag-action-btn.ninegag-google-btn,
.ranker-footer-card .ninegag-action-btn.ninegag-google-btn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  gap: 6px !important;
}

.ranker-footer-section .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
.ranker-footer-card .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle {
  width: 18px !important;
  height: 18px !important;
}

.ranker-back-to-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ranker-back-to-feed-btn:hover {
  border-color: #facc15 !important;
  color: #facc15 !important;
  transform: translateX(-3px);
}

[data-theme="light"] .ranker-back-to-feed-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .ranker-back-to-feed-btn:hover {
  border-color: #facc15 !important;
  color: #facc15 !important;
  background: #f8fafc;
}

.article-breadcrumbs-strip {
  display: none !important;
}

.ranker-detail-breadcrumbs,
.breadcrumbs-container {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.ranker-detail-breadcrumbs .crumb-link,
.breadcrumbs-container .breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.ranker-detail-breadcrumbs .crumb-link:hover,
.breadcrumbs-container .breadcrumb-link:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.ranker-detail-breadcrumbs .crumb-sep,
.breadcrumbs-container .breadcrumb-separator {
  color: var(--text-muted);
  user-select: none;
  margin: 0 2px;
}

.ranker-detail-breadcrumbs .crumb-current,
.breadcrumbs-container .breadcrumb-current {
  color: var(--text-primary, #ffffff) !important;
  font-weight: 800 !important;
  max-width: none;
  white-space: normal;
}

[data-theme="light"] .ranker-detail-breadcrumbs .crumb-current,
[data-theme="light"] .breadcrumbs-container .breadcrumb-current {
  color: #0f172a !important;
}

/* Image 4 Header */
.ranker-detail-header {
  margin-bottom: 20px;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.ranker-detail-header .article-byline-bar {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.ranker-presented-by,
#newsStoryPresentedBy {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ranker-presented-link {
  color: #facc15 !important;
  text-decoration: none;
  font-weight: 700;
}

.ranker-presented-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
}

.ranker-presented-link:hover {
  text-decoration: underline;
}

.ranker-header-left-group .ninegag-channel-avatar {
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
}

.ranker-detail-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.16;
  color: var(--text-primary, #ffffff) !important;
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

[data-theme="light"] .ranker-detail-title {
  color: #0f172a !important;
}

.ranker-author-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ranker-author-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* ── Birdpost Brand Capsule Pill (Removed per user request) ── */
.article-source-pill {
  display: none !important;
}

.ranker-author-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.ranker-author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ranker-author-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ranker-author-name-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ranker-author-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff) !important;
  text-decoration: none;
}

[data-theme="light"] .ranker-author-name {
  color: #0f172a !important;
}



.ranker-author-name-row .gift-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ranker-author-name-row .gift-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.ranker-author-name-row .gift-btn:hover {
  background: var(--bg-hover);
  border-color: var(--text-primary);
}

.ranker-author-name-row .gift-btn.active {
  background: var(--accent-subtle, rgba(0, 174, 236, 0.12));
  border-color: var(--accent, #00aeec);
  color: var(--accent, #00aeec);
}

.ranker-author-name-row .gift-btn.active svg {
  stroke: var(--accent, #00aeec);
}

.ranker-author-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ranker-badges-row {
  display: none !important;
}

.ranker-badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.ranker-ranked-by-pill .ranker-badge-label-dark {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
}

.ranker-ranked-by-pill .ranker-badge-label-info {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

[data-theme="light"] .ranker-ranked-by-pill .ranker-badge-label-info {
  background: #ffffff;
  color: #0f172a;
}

.ranker-arrow-icon {
  color: #64748b;
  font-size: 0.85rem;
}

.ranker-reranks-txt {
  color: var(--text-secondary);
  font-weight: 600;
}

.ranker-voting-rules-pill {
  border-color: var(--border);
}

.ranker-voting-rules-pill .ranker-badge-label-light {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 800;
  padding: 6px 12px;
  border-right: 1px solid var(--border);
  font-size: 0.76rem;
}

[data-theme="light"] .ranker-voting-rules-pill .ranker-badge-label-light {
  background: #f1f5f9;
  color: #0f172a;
}

.ranker-voting-rules-pill .ranker-badge-label-rule {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
}

.ranker-detail-desc {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .ranker-detail-desc {
  color: #334155;
}

/* ===================================================
   RANKER COMBINED LAYOUT (No Gaps - Filled Seamless Items)
   =================================================== */
.ranker-cards-list,
.ranker-vertical-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Individual Item inside unified card */
.ranker-card-item {
  display: block !important;
  position: relative !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  z-index: 1 !important;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    border-radius 0.2s ease !important;
  cursor: pointer !important;
}

[data-theme="dark"] .ranker-card-item {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* Floating hover state for tab/card */
.ranker-card-item:hover:not(.is-expanded) {
  transform: translateY(-4px) !important;
  z-index: 10 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.12), 0 6px 14px -2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .ranker-card-item:hover:not(.is-expanded) {
  background: #1a2232 !important;
  border-color: transparent !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 6px 16px -2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* Active / Expanded State */
.ranker-card-item.is-expanded {
  background: rgba(255, 255, 255, 0.035) !important;
  cursor: default !important;
}

[data-theme="light"] .ranker-card-item.is-expanded {
  background: #f8fafc !important;
}

/* Compact view inside item */
.ranker-compact-view {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  transition: background 0.15s ease !important;
}

.ranker-card-item.is-expanded .ranker-compact-view {
  display: none !important;
}

/* Expanded Reader view inside item (Image 2 layout) */
.ranker-expanded-view {
  display: none !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  animation: rankerFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ranker-card-item.is-expanded .ranker-expanded-view {
  display: block !important;
}

@keyframes rankerFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Expanded Header */
.ranker-expanded-header {
  margin-bottom: 18px !important;
}

.ranker-expanded-badge-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
}

.ranker-expanded-cat-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.02em !important;
}

[data-theme="light"] .ranker-expanded-cat-label {
  color: #64748b !important;
}

.ranker-expanded-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  color: #ffffff !important;
}

[data-theme="light"] .ranker-expanded-title {
  color: #0f172a !important;
}

/* Expanded 16:9 Media Banner (Matching Image 2) */
.ranker-expanded-media {
  margin-bottom: 22px !important;
  width: 100% !important;
}

.ranker-banner-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  max-height: 440px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #0f172a !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

.ranker-banner-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.ranker-banner-frame:hover .ranker-banner-image {
  transform: scale(1.02) !important;
}

/* Video Player Overlay (Image 2 style) */
.ranker-media-video-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.4) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 18px !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
}

.ranker-media-top-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ranker-media-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.ranker-media-play-btn {
  align-self: center !important;
  margin: auto !important;
  width: 62px !important;
  height: 42px !important;
  background: #ef4444 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.ranker-media-play-btn:hover {
  transform: scale(1.1) !important;
  background: #dc2626 !important;
}

/* Expanded Story Paragraphs (Image 2 style) */
.ranker-expanded-story-body {
  margin-bottom: 22px !important;
}

.ranker-story-p {
  font-size: 1.05rem !important;
  line-height: 1.76 !important;
  color: #cbd5e1 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.005em !important;
}

.ranker-story-p:first-of-type {
  font-size: 1.08rem !important;
  color: #f1f5f9 !important;
  font-weight: 500 !important;
}

.ranker-story-p:last-of-type {
  margin-bottom: 0 !important;
}

[data-theme="light"] .ranker-story-p {
  color: #334155 !important;
}

[data-theme="light"] .ranker-story-p:first-of-type {
  color: #0f172a !important;
}

/* Expanded Bottom Action Bar */
.ranker-expanded-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 18px !important;
  margin-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

[data-theme="light"] .ranker-expanded-action-bar {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.ranker-expanded-vote-section {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.ranker-expanded-vote-tally {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.ranker-expanded-vote-tally .ranker-live-vote-num {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
}

[data-theme="light"] .ranker-expanded-vote-tally .ranker-live-vote-num {
  color: #0f172a !important;
}

.ranker-vote-unit {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.08em !important;
}

.ranker-active-reading-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

[data-theme="light"] .ranker-active-reading-badge {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.2) !important;
}

.ranker-active-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
  animation: rankerPulse 1.8s infinite ease-in-out !important;
}

@keyframes rankerPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* 1. Left Rank Column (Trophy Badges - Image 3 Style) */
.ranker-rank-tab,
.ranker-wreath-col {
  width: 64px !important;
  min-width: 64px !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transition: none !important;
}

/* Trophy Icon */
.ranker-trophy-icon {
  width: 15px !important;
  height: 15px !important;
  stroke: #22c55e !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  transition: transform 0.2s ease !important;
}

.ranker-card-item:hover .ranker-trophy-icon {
  transform: scale(1.1) !important;
}

/* Rank Number */
.ranker-rank-num {
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  display: inline-block !important;
}

/* Rank Pills: Filled Background with White Icons & Text */
.ranker-rank-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 4px 11px !important;
  height: 30px !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ranker-rank-pill .ranker-trophy-icon {
  stroke: #ffffff !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.ranker-rank-pill .ranker-rank-num {
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

/* Rank 1: Gold Pill */
.ranker-rank-pill.rank-pill-gold,
.rank-1 .ranker-rank-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border-color: rgba(254, 240, 138, 0.45) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-gold,
.ranker-card-item:hover .rank-1 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Rank 2: Silver Pill */
.ranker-rank-pill.rank-pill-silver,
.rank-2 .ranker-rank-pill {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  border-color: rgba(241, 245, 249, 0.45) !important;
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-silver,
.ranker-card-item:hover .rank-2 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Rank 3: Bronze Pill */
.ranker-rank-pill.rank-pill-bronze,
.rank-3 .ranker-rank-pill {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%) !important;
  border-color: rgba(254, 215, 170, 0.4) !important;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.35) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-bronze,
.ranker-card-item:hover .rank-3 .ranker-rank-pill {
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.55) !important;
  transform: scale(1.05) !important;
}

/* Ranks 4+: Default Slate Filled Pill */
.ranker-rank-pill.rank-pill-default,
.tier-default .ranker-rank-pill,
.ranker-rank-plain {
  background: #334155 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.ranker-card-item:hover .ranker-rank-pill.rank-pill-default,
.ranker-card-item:hover .tier-default .ranker-rank-pill {
  background: #3e4c5e !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35) !important;
  transform: scale(1.05) !important;
}

/* Light Mode Styling - retain white icons and numbers on solid filled backgrounds */
[data-theme="light"] .ranker-rank-tab,
[data-theme="light"] .ranker-wreath-col {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .ranker-rank-pill .ranker-trophy-icon {
  stroke: #ffffff !important;
}

[data-theme="light"] .ranker-rank-pill .ranker-rank-num {
  color: #ffffff !important;
}

[data-theme="light"] .ranker-rank-pill.rank-pill-default,
[data-theme="light"] .tier-default .ranker-rank-pill {
  background: #64748b !important;
  border-color: #475569 !important;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25) !important;
}

[data-theme="light"] .ranker-card-item:hover .ranker-rank-pill.rank-pill-default,
[data-theme="light"] .ranker-card-item:hover .tier-default .ranker-rank-pill {
  background: #475569 !important;
  border-color: #334155 !important;
}

/* Legacy classes reset */
.ranker-wreath-badge,
.ranker-plain-num {
  display: none !important;
}

/* Hide legacy elements */
.ranker-scallop-strip,
.ranker-card-item::after,
.ranker-gold-badge {
  display: none !important;
}

/* 2. Square Thumbnail on Left */
.ranker-thumb-wrap {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f1f5f9 !important;
  position: relative !important;
}

[data-theme="dark"] .ranker-thumb-wrap {
  background: #1e293b !important;
}

.ranker-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
  transition: transform 0.3s ease !important;
}

.ranker-card-item:hover .ranker-thumb-img {
  transform: scale(1.05) !important;
}

/* 3. Center Content Column */
.ranker-content-col {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  justify-content: center !important;
}

.ranker-meta-top-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

/* RISING / FALLING Badge */
.ranker-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  line-height: 1.3 !important;
}

.ranker-status-badge.rising {
  background: #2563eb !important;
  color: #ffffff !important;
}

.ranker-status-badge.falling {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.ranker-subtitle-text {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
}

[data-theme="dark"] .ranker-subtitle-text {
  color: #94a3b8 !important;
}

/* Card Title: #Rank in coral/accent + Title */
.ranker-card-title {
  margin: 0 !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.015em !important;
  color: #0f172a !important;
}

[data-theme="dark"] .ranker-card-title {
  color: #f8fafc !important;
}

.ranker-card-rank-num {
  color: #00aeec !important;
  font-weight: 900 !important;
  margin-right: 3px !important;
}

[data-theme="dark"] .ranker-card-rank-num {
  color: #ff7849 !important;
}

.ranker-card-title-text {
  color: inherit !important;
}

/* Story Description */
.ranker-card-desc {
  margin: 2px 0 6px !important;
  font-size: 0.88rem !important;
  line-height: 1.52 !important;
  color: #475569 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

[data-theme="dark"] .ranker-card-desc {
  color: #cbd5e1 !important;
}

/* Category / Specs Tags (Orange/Coral Theme - Image 2) */
.ranker-tags-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

/* Hide Tags Row inside Ranker Cards */
.ranker-tags-row {
  display: none !important;
}

.ranker-pill-tag {
  display: none !important;
}

/* 4. Right Voting Column */
.ranker-vote-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

/* "Vote for this!" Tooltip Badge (Removed) */
.ranker-vote-tooltip {
  display: none !important;
}

.ranker-vote-btn-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Symmetric Circular Vote Buttons (Up & Down Arrows) */
.ranker-vote-circle-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  outline: none !important;
}

.ranker-vote-circle-btn svg {
  display: block !important;
  transition: transform 0.2s ease !important;
}

/* Upvote Hover & Active */
.ranker-vote-circle-btn.ranker-btn-up:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
  transform: scale(1.08) !important;
}

.ranker-vote-circle-btn.ranker-btn-up:hover svg {
  transform: translateY(-2px) !important;
}

.ranker-vote-circle-btn.ranker-btn-up.active-up {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5) !important;
  transform: scale(1.05) !important;
}

/* Downvote Hover & Active */
.ranker-vote-circle-btn.ranker-btn-down:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: scale(1.08) !important;
}

.ranker-vote-circle-btn.ranker-btn-down:hover svg {
  transform: translateY(2px) !important;
}

.ranker-vote-circle-btn.ranker-btn-down.active-down {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
  transform: scale(1.05) !important;
}

/* Light Mode Vote Buttons */
[data-theme="light"] .ranker-vote-circle-btn {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-up:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: #16a34a !important;
  color: #16a34a !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-up.active-up {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35) !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-down:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

[data-theme="light"] .ranker-vote-circle-btn.ranker-btn-down.active-down {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35) !important;
}

/* Subtle Downvote Button reset */
.ranker-downvote-subtle-btn {
  display: none !important;
}

/* Live Vote Count */
.ranker-vote-num-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #cbd5e1 !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  letter-spacing: -0.01em !important;
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
}

[data-theme="dark"] .ranker-vote-num-wrap {
  color: #cbd5e1 !important;
}

[data-theme="light"] .ranker-vote-num-wrap {
  color: #0f172a !important;
}

.ranker-live-vote-num {
  font-weight: 800 !important;
  font-size: 0.92rem !important;
}

/* Responsive adjustments */
@media (max-width: 680px) {
  .ranker-card-item {
    padding: 12px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  .ranker-rank-tab,
  .ranker-wreath-col {
    width: 50px !important;
    min-width: 50px !important;
    height: auto !important;
    min-height: unset !important;
  }

  .ranker-rank-pill {
    padding: 3px 8px !important;
    gap: 5px !important;
    height: 26px !important;
  }

  .ranker-rank-plain {
    gap: 5px !important;
    height: 26px !important;
  }

  .ranker-trophy-icon {
    width: 13px !important;
    height: 13px !important;
  }

  .ranker-rank-num {
    font-size: 0.85rem !important;
  }

  .ranker-thumb-wrap {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    border-radius: 10px !important;
  }

  .ranker-thumb-img {
    border-radius: 10px !important;
  }

  .ranker-card-title {
    font-size: 1.02rem !important;
  }

  .ranker-card-desc {
    font-size: 0.82rem !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  .ranker-vote-circle-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .ranker-vote-circle-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .ranker-vote-btn-group {
    gap: 5px !important;
  }

  .ranker-live-vote-num {
    font-size: 0.8rem !important;
  }

  .ranker-vote-tooltip {
    display: none !important;
  }
}

/* ===================================================
   POLLS FEED & CARDS (Matches User Images)
   =================================================== */
.polls-create-bar {
  background: var(--bg-card, #13121d);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg, 16px);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .polls-create-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.polls-create-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.polls-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.polls-create-input-btn {
  flex: 1;
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  padding: 10px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.polls-create-input-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
  color: var(--text-white);
}

[data-theme="light"] .polls-create-input-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .polls-create-input-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.polls-type-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-left: 52px;
}

.poll-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-hover, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.poll-type-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white);
  border-color: var(--border);
}

[data-theme="light"] .poll-type-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .poll-type-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Middle Card Poll Box */
.poll-card-box {
  background: var(--bg-panel, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  margin: 10px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .poll-card-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.poll-image-wrap {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border);
}

.poll-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.poll-card-box:hover .poll-image-wrap img {
  transform: scale(1.03);
}

.poll-box-header,
.poll-footer-actions,
.poll-box-footer {
  display: none !important;
}

.poll-article-full-view {
  width: 100%;
  margin-bottom: 12px;
  background: var(--bg-card, #000000);
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  border-top: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  padding: 20px 20px 0;
  box-sizing: border-box;
}

.poll-article-full-view .poll-action-bar,
.poll-article-full-view .ninegag-action-bar {
  margin-bottom: 12px !important;
}

[data-theme="light"] .poll-article-full-view {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.poll-detail-card {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: default !important;
  transform: none !important;
}

.poll-detail-card:hover {
  background: transparent !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .poll-detail-card,
[data-theme="light"] .poll-detail-card:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.poll-detail-card .news-card-inner {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Card author avatar constraint (defensive safeguard against full-size image blowup) */
.card-author-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
}

.card-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-author-meta .amazing-verified-tick {
  width: 15px !important;
  height: 15px !important;
  margin-left: -3px !important;
  margin-right: -1px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.poll-article-top-header {
  margin-bottom: 10px;
}

/* Poll Detail Breadcrumbs & Author Strip (Matching Image 1 & Image 2) */
.poll-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
}

[data-theme="light"] .poll-detail-nav-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.poll-detail-breadcrumbs {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.poll-detail-breadcrumbs .crumb-link {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.poll-detail-breadcrumbs .crumb-link:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.poll-detail-breadcrumbs .crumb-sep {
  color: var(--text-muted, #64748b);
  user-select: none;
  margin: 0 1px;
}

.poll-detail-breadcrumbs .crumb-current {
  color: var(--text-white, #ffffff);
  font-weight: 800;
}

[data-theme="light"] .poll-detail-breadcrumbs .crumb-current {
  color: #0f172a;
}

.poll-article-content-above {
  margin-top: 6px;
  margin-bottom: 16px;
}

.poll-article-content-above .poll-headline {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 14px 0 12px 0;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .poll-article-content-above .poll-headline {
  color: #0f172a;
}

.poll-article-content-above .poll-prompt-text {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 18px 0;
}

[data-theme="light"] .poll-article-content-above .poll-prompt-text {
  color: #475569;
}

.poll-author-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px 0;
}

.poll-author-meta-row .ranker-author-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  flex-shrink: 0;
}

[data-theme="light"] .poll-author-meta-row .ranker-author-avatar-wrap {
  border-color: rgba(0, 0, 0, 0.08);
}

.poll-author-meta-row .ranker-author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poll-author-meta-row .ranker-author-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-white, #ffffff);
}

[data-theme="light"] .poll-author-meta-row .ranker-author-name {
  color: #0f172a;
}

.poll-author-meta-row .ranker-author-sub {
  font-size: 0.84rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

[data-theme="light"] .poll-author-meta-row .ranker-author-sub {
  color: #64748b;
}

.poll-byline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  flex-wrap: wrap;
}

[data-theme="light"] .poll-byline-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.poll-byline-bar .card-tag {
  background: #facc15 !important;
  color: #000000 !important;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.poll-detail-card .poll-card-box {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.poll-detail-card .poll-image-wrap {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  margin-bottom: 16px;
}

.poll-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poll-header-right {
  display: flex;
  align-items: center;
}

.poll-index-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white, #ffffff);
  letter-spacing: -0.02em;
}

[data-theme="light"] .poll-index-badge {
  color: #0f172a;
}

.poll-report-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.poll-report-btn:hover {
  color: var(--text-white, #ffffff);
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

[data-theme="light"] .poll-report-btn {
  color: #64748b;
}

[data-theme="light"] .poll-report-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.poll-meta-row {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
  margin-top: -4px;
}

[data-theme="light"] .poll-meta-row {
  color: #64748b;
}

.poll-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

[data-theme="light"] .poll-cat-tag {
  color: #0f172a;
}

.poll-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 174, 236, 0.15);
  color: #00aeec;
  border: 1px solid rgba(0, 174, 236, 0.3);
}

.poll-question-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-white);
  margin: 2px 0 0 0;
  letter-spacing: -0.01em;
}

[data-theme="light"] .poll-question-title {
  color: #0f172a;
}

.poll-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .poll-desc-text {
  color: #475569;
}

/* Options list */
.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.poll-option-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1.5px solid var(--border-soft);
  background: var(--bg-card, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

[data-theme="light"] .poll-option-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

.poll-option-item:hover {
  border-color: #00aeec;
  transform: translateY(-1px);
}

.poll-option-item.selected-vote {
  border-color: #00aeec;
  box-shadow: 0 0 0 1px #00aeec, 0 4px 14px rgba(0, 174, 236, 0.2);
}

.poll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0, 174, 236, 0.16), rgba(0, 174, 236, 0.22));
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.poll-option-item.leading-vote .poll-progress-fill {
  background: linear-gradient(90deg, rgba(0, 174, 236, 0.3), rgba(0, 174, 236, 0.25));
}

.poll-option-item.selected-vote .poll-progress-fill {
  background: linear-gradient(90deg, rgba(0, 174, 236, 0.35), rgba(0, 174, 236, 0.3));
}

[data-theme="light"] .poll-progress-fill {
  background: rgba(0, 174, 236, 0.12);
}

[data-theme="light"] .poll-option-item.leading-vote .poll-progress-fill {
  background: rgba(0, 174, 236, 0.16);
}

[data-theme="light"] .poll-option-item.selected-vote .poll-progress-fill {
  background: rgba(0, 174, 236, 0.22);
}

.poll-option-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  gap: 12px;
}

.poll-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.poll-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.poll-option-item.selected-vote .poll-radio-dot {
  border-color: #00aeec;
  background: #00aeec;
}

.poll-radio-dot-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: none;
}

.poll-option-item.selected-vote .poll-radio-dot-inner {
  display: block;
}

.poll-letter-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}

.poll-option-item.selected-vote .poll-letter-badge {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

[data-theme="light"] .poll-letter-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.poll-option-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

[data-theme="light"] .poll-option-label {
  color: #1e293b;
}

.poll-option-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.poll-pct-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 42px;
  text-align: right;
}

[data-theme="light"] .poll-pct-num {
  color: #0f172a;
}

.poll-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00aeec;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Side-by-side Image Poll (Image 5) */
.poll-image-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.poll-image-choice-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-img-box {
  position: relative;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1.5px solid var(--border-soft);
  transition: all 0.2s ease;
}

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

.poll-thumb-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #0f172a;
  transition: all 0.2s ease;
}

.poll-thumb-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.poll-thumb-btn.active-thumb {
  background: #00aeec;
  color: #ffffff;
  transform: scale(1.1);
}

.poll-img-pct {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
}

.poll-img-caption {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
}

[data-theme="light"] .poll-img-caption {
  color: #0f172a;
}

/* Poll Box Footer */
.poll-box-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  margin-top: 4px;
}

[data-theme="light"] .poll-box-footer {
  border-top-color: #e2e8f0;
}

.poll-meta-left {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.poll-vote-btn {
  background: #00aeec;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.poll-vote-btn:hover {
  background: #009cd3;
  transform: translateY(-1px);
}

.poll-vote-btn.voted {
  background: #0f172a;
  border: 1px solid var(--border);
  color: #10b981;
}

[data-theme="light"] .poll-vote-btn.voted {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #059669;
}

.poll-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-next-link {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #cbd5e1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.poll-next-link:hover {
  color: #facc15 !important;
  transform: translateX(3px);
}

[data-theme="light"] .poll-next-link {
  color: #334155;
}

[data-theme="light"] .poll-next-link:hover {
  color: #facc15 !important;
}

@keyframes pollHighlightFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 236, 0);
  }

  30% {
    box-shadow: 0 0 0 4px rgba(0, 174, 236, 0.6);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 236, 0);
  }
}

.poll-highlight-flash {
  animation: pollHighlightFlash 1.5s ease-out;
}

@media (max-width: 640px) {
  .poll-image-wrap {
    height: 170px;
  }

  .poll-question-title {
    font-size: 1.1rem;
  }

  .poll-image-choice-grid {
    grid-template-columns: 1fr;
  }

  .poll-img-box {
    height: 160px;
  }

  .polls-type-pills-row {
    padding-left: 0;
  }
}

/* ===================================================
   Birdchat Dedicated Article View (Matching Image 2)
   =================================================== */

.birdchat-full-view,
.birdchat-article-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
}

#birdchatArticleContainer {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100%;
}

.birdchat-page-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 20px 0 20px;
  box-sizing: border-box;
  font-family: inherit;
  width: 100%;
}

/* ===================================================
   BIRDCHAT CATEGORY & WRITER BAR (Matching Image 1 & 4)
   =================================================== */
.birdchat-category-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 4px 0;
  width: 100%;
}

.birdchat-category-bar .article-round-back-btn {
  margin-left: 2px;
  margin-right: 4px;
}

.birdchat-cat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent, #00aeec);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 174, 236, 0.3);
}

.birdchat-cat-avatar svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.birdchat-cat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.birdchat-cat-channel-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-white, #ffffff);
  line-height: 1.25;
}

[data-theme="light"] .birdchat-cat-channel-name {
  color: #0f172a;
}

.birdchat-cat-channel-meta {
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.2;
}

.birdchat-cat-author-link {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.birdchat-cat-author-link:hover {
  color: var(--accent, #00aeec);
  text-decoration: underline;
}

[data-theme="light"] .birdchat-cat-channel-meta,
[data-theme="light"] .birdchat-cat-author-link {
  color: #64748b;
}

[data-theme="light"] .birdchat-cat-author-link:hover {
  color: var(--accent, #00aeec);
}

/* Visit Category Page Button (Matching Image 1: Orange pill button with arrow) */
.birdchat-visit-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff !important;
  background: var(--accent, #00aeec) !important;
  border: 1px solid var(--accent, #00aeec) !important;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  box-shadow: 0 3px 12px rgba(0, 174, 236, 0.35);
}

.birdchat-visit-cat-btn:hover {
  background: var(--accent-hover, #009cd3) !important;
  border-color: var(--accent-hover, #009cd3) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 174, 236, 0.45);
}

.birdchat-visit-cat-btn svg {
  stroke: #ffffff !important;
  transition: transform 0.2s ease;
}

.birdchat-visit-cat-btn:hover svg {
  transform: translateX(3px);
}

[data-theme="light"] .birdchat-visit-cat-btn {
  background: var(--accent, #00aeec) !important;
  border-color: var(--accent, #00aeec) !important;
  color: #ffffff !important;
}

.birdchat-cat-more-btn {
  display: none !important;
}

.birdchat-hero-box {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 174, 236, 0.28);
  padding: 28px 42px 24px 28px;
}

/* Scalloped wavy edge on right with white translucent fill */
.birdchat-scallop-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4,0 C12,0 18,5.4 18,12 C18,18.6 12,24 4,24 L24,24 L24,0 Z' fill='%23ffffff' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: right top;
  pointer-events: none;
  z-index: 2;
}

.birdchat-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.birdchat-hero-top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Asker Pill (Matching Image 3: White pill with orange circle refresh icon) */
.birdchat-asker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: var(--radius-pill, 999px);
  padding: 4px 18px 4px 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.birdchat-asker-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.birdchat-asker-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #00aeec);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.birdchat-asker-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.birdchat-asker-text {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.birdchat-asker-text strong {
  font-weight: 800;
  color: #0f172a;
}

/* Get Question Note on the side (Matching Image 4) */
.birdchat-get-question-note {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.birdchat-question-form-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.birdchat-question-form-link:hover {
  color: #fde047;
  text-decoration: underline;
}

.birdchat-asker-row {
  display: none;
}

.birdchat-hero-prompt {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.24;
  margin: 0 0 14px 0;
  letter-spacing: -0.02em;
}

.birdchat-hero-summary {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.5;
  margin: 0 0 24px 0;
  font-weight: 500;
  max-width: 820px;
}

.birdchat-hero-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
}

.birdchat-speech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
}

.birdchat-speech-icon {
  fill: #ffffff;
  width: 26px;
  height: 26px;
}

.birdchat-share-circles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.birdchat-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  color: #ffffff;
  padding: 0;
  flex-shrink: 0;
}

.birdchat-share-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 8 Circular Social Share Colors (Matching Image 1 & Image 3) */
.birdchat-share-x {
  background-color: #000000;
  color: #ffffff;
}

.birdchat-share-bs {
  background-color: #1185fe;
  color: #ffffff;
}

.birdchat-share-mastodon {
  background-color: #5c4ee5;
  color: #ffffff;
}

.birdchat-share-threads {
  background-color: #000000;
  color: #ffffff;
}

.birdchat-share-fb {
  background-color: #1877f2;
}

.birdchat-share-btn.birdchat-share-fb svg,
.birdchat-share-btn.birdchat-share-reddit svg {
  width: 24px;
  height: 24px;
}

.birdchat-share-btn.birdchat-share-email svg {
  width: 20px;
  height: 20px;
}

.birdchat-share-email {
  background-color: #ea4335;
  color: #ffffff;
}

.birdchat-share-link {
  background-color: #ff5722;
  color: #ffffff;
}

/* In Dark Mode: X and Threads have white circle background and black design (reverse) */
html:not([data-theme="light"]) .birdchat-share-x,
[data-theme="dark"] .birdchat-share-x,
html:not([data-theme="light"]) .birdchat-share-threads,
[data-theme="dark"] .birdchat-share-threads,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-x,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-x,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-threads,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-threads {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
}

html:not([data-theme="light"]) .birdchat-share-x svg,
[data-theme="dark"] .birdchat-share-x svg,
html:not([data-theme="light"]) .birdchat-share-threads svg,
[data-theme="dark"] .birdchat-share-threads svg,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-x svg,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-x svg,
html:not([data-theme="light"]) .birdchat-share-btn.birdchat-share-threads svg,
[data-theme="dark"] .birdchat-share-btn.birdchat-share-threads svg {
  fill: #000000 !important;
  color: #000000 !important;
}

/* In Light Mode: X and Threads have black circle background and white design */
[data-theme="light"] .birdchat-share-x,
[data-theme="light"] .birdchat-share-threads,
[data-theme="light"] .birdchat-share-btn.birdchat-share-x,
[data-theme="light"] .birdchat-share-btn.birdchat-share-threads {
  background: #000000 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

[data-theme="light"] .birdchat-share-x svg,
[data-theme="light"] .birdchat-share-threads svg,
[data-theme="light"] .birdchat-share-btn.birdchat-share-x svg,
[data-theme="light"] .birdchat-share-btn.birdchat-share-threads svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

/* ===================================================
   BIRDCHAT TAGS ROW & ACTION BAR (Matching Image 3)
   =================================================== */
.birdchat-tags-row {
  margin-top: 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
}

.birdchat-action-bar {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 8px 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.birdchat-action-bar .ninegag-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  max-width: 100% !important;
  width: auto !important;
}

.birdchat-action-bar::-webkit-scrollbar {
  display: none !important;
}

[data-theme="light"] .birdchat-action-bar {
  border-top: none !important;
  border-bottom: none !important;
}

/* Birdchat & Poll Google button — small size matching ranker */
.birdchat-action-bar .ninegag-action-btn.ninegag-google-btn,
.birdchat-page-wrapper .ninegag-action-btn.ninegag-google-btn,
[id^="birdchatGoogleBtn-"],
.poll-action-bar .ninegag-action-btn.ninegag-google-btn,
#pollGoogleBtn {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  gap: 6px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.birdchat-action-bar .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
.birdchat-page-wrapper .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
[id^="birdchatGoogleBtn-"] .google-btn-icon-circle,
.poll-action-bar .ninegag-action-btn.ninegag-google-btn .google-btn-icon-circle,
#pollGoogleBtn .google-btn-icon-circle {
  width: 18px !important;
  height: 18px !important;
}

/* Birdchat Google button text responsiveness — prevents cutting off on all viewports */
.birdchat-action-bar .ninegag-google-text-full,
[id^="birdchatGoogleBtn-"] .ninegag-google-text-full {
  display: none !important;
}

.birdchat-action-bar .ninegag-google-text-short,
[id^="birdchatGoogleBtn-"] .ninegag-google-text-short {
  display: inline !important;
}

@media (min-width: 1440px) {

  .birdchat-action-bar .ninegag-google-text-full,
  [id^="birdchatGoogleBtn-"] .ninegag-google-text-full {
    display: inline !important;
  }

  .birdchat-action-bar .ninegag-google-text-short,
  [id^="birdchatGoogleBtn-"] .ninegag-google-text-short {
    display: none !important;
  }
}


.birdchat-tabs-row {
  margin-bottom: 24px;
}

.birdchat-related-section {
  margin-top: 8px;
  margin-bottom: 30px;
  animation: fadeIn 0.2s ease-in;
}

/* ===================================================
   BIRDCHAT COMMENTS SECTION (Matching Image 1)
   =================================================== */
.birdchat-comments-section {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #f1f5f9;
}

[data-theme="light"] .birdchat-comments-section {
  color: #0f172a;
}

/* 1. Header Row (Hot comments v & Guidelines subtitle) */
.birdchat-hot-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.birdchat-hot-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.birdchat-sort-menu-wrap {
  position: relative;
  display: inline-block;
}

.birdchat-hot-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: opacity 0.15s;
}

[data-theme="light"] .birdchat-hot-dropdown-btn {
  color: #0f172a;
}

.birdchat-hot-dropdown-btn:hover {
  opacity: 0.85;
}

.birdchat-hot-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.birdchat-chevron-icon {
  color: #94a3b8;
}

.birdchat-sort-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #181c24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 100;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .birdchat-sort-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.birdchat-sort-item {
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

[data-theme="light"] .birdchat-sort-item {
  color: #475569;
}

.birdchat-sort-item:hover,
.birdchat-sort-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-theme="light"] .birdchat-sort-item:hover,
[data-theme="light"] .birdchat-sort-item.active {
  background: #f1f5f9;
  color: #0f172a;
}

.birdchat-guidelines-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

[data-theme="light"] .birdchat-guidelines-subtitle {
  color: #64748b;
}

.birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  font-weight: 600;
  cursor: pointer;
  transition: text-decoration 0.15s, color 0.15s;
}

[data-theme="light"] .birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* 2. Composer Box (Avatar with status dot + Leave a comment) */
.birdchat-composer-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
  margin-bottom: 32px;
}

.birdchat-avatar-with-status {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.birdchat-composer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.birdchat-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  border: 2px solid #000000;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

[data-theme="light"] .birdchat-online-dot {
  border-color: #ffffff;
}

.birdchat-composer-card {
  flex: 1;
  min-width: 0;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px 12px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-composer-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.birdchat-composer-card:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .birdchat-composer-card:focus-within {
  border-color: #94a3b8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.birdchat-composer-input {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.45;
  color: #f1f5f9;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-composer-input {
  color: #0f172a;
}

.birdchat-composer-input::placeholder {
  color: #64748b;
}

/* Image preview in composer */
.birdchat-attached-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.birdchat-preview-img {
  max-width: 160px;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.birdchat-remove-pic-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}

.birdchat-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

[data-theme="light"] .birdchat-composer-toolbar {
  border-top-color: #f1f5f9;
}

.birdchat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.birdchat-add-picture-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

[data-theme="light"] .birdchat-add-picture-btn {
  color: #64748b;
}

.birdchat-add-picture-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .birdchat-add-picture-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.birdchat-format-hint {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-post-btn {
  background: #622e28;
  /* Subdued terracotta red from Image 1 */
  color: #f8fafc;
  border: none;
  border-radius: 9999px;
  padding: 7px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.birdchat-post-btn:hover {
  background: #009cd3;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 3. Comments Stream & Top-Level Parent Comment */
.birdchat-comments-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.birdchat-comment-item {
  display: flex;
  flex-direction: column;
}

.birdchat-parent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.birdchat-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.birdchat-content-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.birdchat-author-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birdchat-author-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-author-name {
  color: #0f172a;
}

.birdchat-author-name:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-time-tag {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-comment-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 5px 0 10px 0;
  word-break: break-word;
}

[data-theme="light"] .birdchat-comment-text {
  color: #1e293b;
}

.birdchat-comment-attached-img-wrap {
  margin: 6px 0 10px 0;
}

.birdchat-comment-attached-img {
  max-width: 320px;
  max-height: 240px;
  border-radius: 10px;
  object-fit: cover;
}

.birdchat-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.birdchat-action-reply {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-action-reply {
  color: #64748b;
}

.birdchat-action-reply:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-action-reply:hover {
  color: #0f172a;
}

.birdchat-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.birdchat-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-vote-btn {
  color: #64748b;
}

.birdchat-vote-btn:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn:hover {
  color: #0f172a;
}

.birdchat-vote-btn.vote-up.active,
.birdchat-vote-btn.vote-up:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn.vote-up.active,
[data-theme="light"] .birdchat-vote-btn.vote-up:hover {
  color: #000000;
}

.birdchat-vote-btn.vote-down.active,
.birdchat-vote-btn.vote-down:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-vote-btn.vote-down.active,
[data-theme="light"] .birdchat-vote-btn.vote-down:hover {
  color: #000000;
}

.birdchat-vote-count {
  font-size: 0.84rem;
}

.birdchat-more-dots {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0 4px;
  margin-left: auto;
  line-height: 1;
  transition: color 0.15s;
}

.birdchat-more-dots:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-more-dots:hover {
  color: #0f172a;
}

/* Inline subreply composer */
.birdchat-inline-reply-box {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.birdchat-inline-reply-input {
  width: 100%;
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  color: #f1f5f9;
  outline: none;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-inline-reply-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.birdchat-inline-reply-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.birdchat-reply-cancel-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 6px;
}

.birdchat-reply-submit-btn {
  background: #00aeec;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 16px;
  border-radius: 9999px;
  transition: background 0.15s;
}

.birdchat-reply-submit-btn:hover {
  background: #009cd3;
}

/* 4. Nested Replies & Curved Branching Tree Line (Matching Image 1) */
.birdchat-replies-wrap {
  margin-top: 8px;
}

.birdchat-hide-replies-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #facc15 !important;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  margin-bottom: 4px;
  transition: opacity 0.15s;
}

[data-theme="light"] .birdchat-hide-replies-btn {
  color: #facc15 !important;
}

.birdchat-hide-replies-btn:hover {
  opacity: 0.85;
}

.birdchat-replies-tree {
  position: relative;
  margin-left: 6px;
  padding-left: 32px;
  margin-top: 6px;
}

/* Continuous vertical starter line under Hide replies */
.birdchat-replies-tree::before {
  content: '';
  position: absolute;
  left: 6px;
  top: -6px;
  height: 10px;
  width: 2px;
  background: #384252;
  pointer-events: none;
}

[data-theme="light"] .birdchat-replies-tree::before {
  background: #cbd5e1;
}

/* Each reply item */
.birdchat-reply-item {
  position: relative;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
}

.birdchat-reply-item:first-child {
  margin-top: 4px;
}

/* Curved connector branching off the trunk smoothly into reply avatar */
.birdchat-branch-curve {
  position: absolute;
  left: -26px;
  top: -12px;
  width: 26px;
  height: 29px;
  /* Curves to y=17px, exact vertical center of 34px avatar */
  border-left: 2px solid #384252;
  border-bottom: 2px solid #384252;
  border-bottom-left-radius: 12px;
  pointer-events: none;
  box-sizing: border-box;
}

[data-theme="light"] .birdchat-branch-curve {
  border-color: #cbd5e1;
}

/* Vertical continuing trunk between replies - terminates cleanly at the last reply without dangling! */
.birdchat-reply-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -26px;
  top: 17px;
  bottom: -16px;
  width: 2px;
  background: #384252;
  pointer-events: none;
}

[data-theme="light"] .birdchat-reply-item:not(:last-child)::after {
  background: #cbd5e1;
}

.birdchat-reply-content-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.birdchat-reply-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #1e293b;
}

.birdchat-reply-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.birdchat-reply-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birdchat-reply-author {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-reply-author {
  color: #0f172a;
}

.birdchat-reply-author:hover {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
}

.birdchat-reply-dot {
  color: #64748b;
  font-size: 0.75rem;
}

.birdchat-reply-time {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.birdchat-reply-more-dots {
  margin-left: auto;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.birdchat-reply-more-dots:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-reply-more-dots:hover {
  color: #0f172a;
}

.birdchat-reply-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 4px 0 8px 0;
  word-break: break-word;
}

[data-theme="light"] .birdchat-reply-text {
  color: #1e293b;
}

.birdchat-reply-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}

.birdchat-action-reply-nested {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

[data-theme="light"] .birdchat-action-reply-nested {
  color: #64748b;
}

.birdchat-action-reply-nested:hover {
  color: #ffffff;
}

[data-theme="light"] .birdchat-action-reply-nested:hover {
  color: #0f172a;
}

/* Shake error animation */
@keyframes birdchatShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.shake-error {
  animation: birdchatShake 0.4s ease;
  border-color: #ef4444 !important;
}

/* =======================================================
   NEWSLETTER INLINE TAB & MODAL (Matching Image 2 & 3)
   ======================================================= */
.ninegag-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 20px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.ninegag-tabs-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Newsletter Inline Banner (Matching Image 2 - Slim & Compact) */
.newsletter-inline-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #bbf2ff;
  /* Soft pastel sky-blue from Image 2 */
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 4px 12px 4px 10px;
  min-height: 42px;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
}

[data-theme="dark"] .newsletter-inline-tab {
  background: #bbf2ff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.newsletter-inline-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  background: #b0eefd;
}

[data-theme="dark"] .newsletter-inline-tab:hover {
  background: #a8ecfd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.newsletter-tab-body {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.newsletter-tab-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #111827;
}

.newsletter-tab-icon-box svg {
  width: 18px !important;
  height: 18px !important;
}

[data-theme="dark"] .newsletter-tab-icon-box {
  color: #111827;
}

.newsletter-tab-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.newsletter-tab-heading-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.newsletter-tab-heading {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 900;
  font-size: 0.82rem;
  color: #111827;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .newsletter-tab-heading {
  color: #111827;
}

.newsletter-tab-lock-badge svg {
  width: 10px !important;
  height: 10px !important;
}

.newsletter-tab-subcat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.09);
  color: #0f172a;
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .newsletter-tab-subcat-badge {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

.newsletter-tab-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: #334155;
  margin: 1px 0 0 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .newsletter-tab-sub {
  color: #334155;
}

.newsletter-tab-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.newsletter-tab-subscribe-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 3.5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  height: 26px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.newsletter-tab-subscribe-btn svg {
  width: 10px !important;
  height: 10px !important;
}

[data-theme="dark"] .newsletter-tab-subscribe-btn {
  background: #0f172a;
  color: #ffffff;
}

.newsletter-tab-subscribe-btn:hover {
  transform: scale(1.04);
  background: #1e293b;
}

[data-theme="dark"] .newsletter-tab-subscribe-btn:hover {
  background: #1e293b;
}

.newsletter-tab-subscribe-btn:active {
  transform: scale(0.97);
}

.newsletter-tab-chevron-btn {
  background: transparent;
  border: none;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.newsletter-tab-chevron-btn svg {
  width: 13px !important;
  height: 13px !important;
}

[data-theme="dark"] .newsletter-tab-chevron-btn {
  color: #bbf2ff;
}

.newsletter-inline-tab:hover .newsletter-tab-chevron-btn {
  transform: translateX(2px);
}

/* Finish Subscribing Modal (Matching Image 3 & Category-Responsive) */
.newsletter-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.newsletter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter-modal-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  padding: 30px 36px 34px 36px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 0, 0, 0.1);
  transform: scale(0.93) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
}

.newsletter-modal-overlay.active .newsletter-modal-card {
  transform: scale(1) translateY(0);
}

[data-theme="dark"] .newsletter-modal-card {
  background: #181b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7);
}

/* Category Edition Tag Pill */
.newsletter-modal-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(79, 70, 229, 0.16);
}

[data-theme="dark"] .newsletter-modal-cat-tag {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.3);
}

.newsletter-topic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.newsletter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.newsletter-modal-title {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

[data-theme="dark"] .newsletter-modal-title {
  color: #ffffff;
}

.newsletter-modal-cat-desc {
  font-size: 0.86rem;
  line-height: 1.48;
  color: #4b5563;
  margin: 0 0 18px 0;
}

[data-theme="dark"] .newsletter-modal-cat-desc {
  color: #94a3b8;
}


.newsletter-modal-close-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.newsletter-modal-close-btn:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .newsletter-modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-modal-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

[data-theme="dark"] .newsletter-modal-label {
  color: #f1f5f9;
}

.newsletter-modal-input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: #111827;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .newsletter-modal-input {
  background: #222630;
  border-color: #3b4252;
  color: #ffffff;
}

.newsletter-modal-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.newsletter-modal-disclaimer {
  font-size: 0.78rem;
  line-height: 1.48;
  color: #6b7280;
  margin: 14px 0 24px 0;
}

[data-theme="dark"] .newsletter-modal-disclaimer {
  color: #94a3b8;
}

.newsletter-modal-disclaimer a {
  color: #6b7280;
  text-decoration: underline;
  transition: color 0.15s ease;
}

[data-theme="dark"] .newsletter-modal-disclaimer a {
  color: #94a3b8;
}

.newsletter-modal-disclaimer a:hover {
  color: #4f46e5;
}

.newsletter-modal-submit-btn {
  display: block;
  width: 100%;
  background: #4f46e5;
  /* Exact vibrant purple-blue from Image 3 */
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 15px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  letter-spacing: -0.01em;
}

.newsletter-modal-submit-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.45);
}

.newsletter-modal-submit-btn:active {
  transform: scale(0.99);
}

.newsletter-modal-cancel-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: #4f46e5;
  /* Matching Image 3 */
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 16px;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
  border-radius: 9999px;
  transition: all 0.15s ease;
}

.newsletter-modal-cancel-btn:hover {
  color: #3730a3;
  background: rgba(79, 70, 229, 0.06);
}

[data-theme="dark"] .newsletter-modal-cancel-btn {
  color: #818cf8;
}

[data-theme="dark"] .newsletter-modal-cancel-btn:hover {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.1);
}

/* Modal Success View */
.newsletter-modal-success {
  text-align: center;
  padding: 24px 12px 12px 12px;
}

.newsletter-success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.newsletter-success-heading {
  font-family: 'Merriweather', 'Georgia', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 8px 0;
}

[data-theme="dark"] .newsletter-success-heading {
  color: #ffffff;
}

.newsletter-success-desc {
  font-size: 0.92rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.45;
}

[data-theme="dark"] .newsletter-success-desc {
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .ninegag-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-inline-tab {
    width: 100%;
    min-width: 0;
    padding: 4px 10px !important;
    border-radius: 9px !important;
  }
}

/* ── FOUC / Refresh Glitch Prevention ── */
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-name,
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-handle,
html.bp-has-user #myAccountBtn:not(.bp-hydrated) .profile-avatar>svg,
html.bp-has-user #headerProfileBtn:not(.bp-hydrated) .profile-avatar>svg {
  visibility: hidden !important;
}

html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userDisplayName,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userHandleTag,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userAvatarCircle,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userBioHeadline,
html.bp-visitor-page .user-profile-header:not(.bp-hydrated) #userBioDesc,
html.bp-visitor-page .user-feed-panel:not(.bp-hydrated) .news-card,
html.bp-visitor-page .user-feed-panel:not(.bp-hydrated) .post-compact-card {
  visibility: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   CRISP NORMAL VERIFIED TICK (No floating, No glow)
   ═══════════════════════════════════════════════════════════ */
.user-verified-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 6px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
}

.amazing-verified-tick {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
  filter: none !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: opacity 0.15s ease;
}

.user-verified-badge:hover .amazing-verified-tick {
  opacity: 0.88;
  filter: none !important;
  transform: none !important;
}

.verified-tooltip-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  bottom: auto;
  transform: translateY(-4px);
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 12px;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

.verified-tooltip-popover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 3px;
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent rgba(255, 255, 255, 0.16) transparent;
  pointer-events: none;
}

.verified-tooltip-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 4px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
  pointer-events: none;
}

.user-verified-badge.active .verified-tooltip-popover,
.user-verified-badge:hover .verified-tooltip-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.verified-tooltip-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.verified-tooltip-title .mini-tick-icon {
  width: 14px;
  height: 14px;
  color: #00aeec;
  display: inline-block;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   VERIFIED ROLE TAG AFTER THE TICK (e.g. Editor in Chief)
   ═══════════════════════════════════════════════════════════ */
.user-verified-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  background: rgba(0, 174, 236, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(0, 174, 236, 0.32);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.user-verified-tag.staff {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.user-verified-tag.gold,
.user-verified-tag.vip {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .user-verified-tag,
html[data-theme="light"] .user-verified-tag {
  background: rgba(0, 174, 236, 0.08);
  color: #0284c7;
  border-color: rgba(0, 174, 236, 0.28);
}

[data-theme="light"] .user-verified-tag.staff,
html[data-theme="light"] .user-verified-tag.staff {
  background: rgba(147, 51, 234, 0.08);
  color: #7e22ce;
  border-color: rgba(147, 51, 234, 0.28);
}

[data-theme="light"] .user-verified-tag.gold,
[data-theme="light"] .user-verified-tag.vip,
html[data-theme="light"] .user-verified-tag.gold,
html[data-theme="light"] .user-verified-tag.vip {
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}

html[data-theme="light"] .verified-tooltip-popover {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] .verified-tooltip-popover::before {
  border-color: transparent transparent rgba(0, 0, 0, 0.12) transparent;
}

html[data-theme="light"] .verified-tooltip-popover::after {
  border-color: transparent transparent #ffffff transparent;
}

html[data-theme="light"] .verified-tooltip-title {
  color: #0f172a;
}

html[data-theme="light"] .verified-tooltip-sub {
  color: #64748b;
}

/* ===================================================
   YouTube / Bilibili Style Top Progress Bar & Loader
   =================================================== */
#bp-top-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999999;
  pointer-events: none;
}

#bp-top-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00aeec 0%, #00d2ff 65%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(0, 174, 236, 0.8), 0 0 5px #00aeec;
  border-radius: 0 3px 3px 0;
  transition: width 0.2s cubic-bezier(0.1, 0.85, 0.25, 1), opacity 0.3s ease;
}

#bp-top-progress-peg {
  position: absolute;
  right: 0;
  top: 0;
  width: 80px;
  height: 100%;
  box-shadow: 0 0 14px #00d2ff, 0 0 8px #00aeec;
  opacity: 1;
  transform: rotate(2deg) translateY(-2px);
}

#bp-top-progress-spinner {
  display: none !important;
}

.news-card.bp-card-loading,
.trending-story-item.bp-card-loading,
.todays-news-item.bp-card-loading,
.search-result-card.bp-card-loading {
  transform: scale(0.992) !important;
  opacity: 0.86 !important;
  transition: transform 0.15s ease, opacity 0.15s ease !important;
  cursor: wait !important;
}

#sidebarPostBtn,
.btn-sidebar-post,
#headerPillPost,
.post-pill,
#headerPopupCreatePost {
  display: none !important;
}



/* ===================================================
   WRITER PROFILE POPOVER MODAL (Image 2 Spec)
   =================================================== */

/* Author link: Highlight only when hovered */
.ranker-author-name a,
.news-post-author-link,
a.news-post-author-link,
#articleAuthorMetaName a,
#newsPostAuthorLink {
  color: #ffffff !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  text-underline-offset: 3px !important;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

[data-theme="light"] .ranker-author-name a,
[data-theme="light"] .news-post-author-link,
[data-theme="light"] a.news-post-author-link,
[data-theme="light"] #articleAuthorMetaName a,
[data-theme="light"] #newsPostAuthorLink {
  color: #0f1419 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.ranker-author-name a:hover,
.ranker-author-name a.popover-active,
.news-post-author-link:hover,
.news-post-author-link.popover-active,
a.news-post-author-link:hover,
a.news-post-author-link.popover-active,
[data-theme="light"] .ranker-author-name a:hover,
[data-theme="light"] .ranker-author-name a.popover-active,
[data-theme="light"] .news-post-author-link:hover,
[data-theme="light"] .news-post-author-link.popover-active {
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-underline-offset: 3px !important;
  color: #facc15 !important;
}

[data-theme="light"] .ranker-author-name a:hover,
[data-theme="light"] .ranker-author-name a.popover-active,
[data-theme="light"] .news-post-author-link:hover,
[data-theme="light"] .news-post-author-link.popover-active {
  color: #d97706 !important;
  text-decoration-color: #d97706 !important;
}

.ranker-author-avatar-wrap,
#articleAuthorMetaImg,
#articleAuthorMetaInitial {
  cursor: pointer !important;
  transition: transform 0.18s ease;
}

.ranker-author-avatar-wrap:hover {
  transform: scale(1.05);
}

/* Writer Profile Popover Card matching Image 2 */
.writer-popover-card {
  position: absolute;
  z-index: 10050;
  width: 350px;
  max-width: calc(100vw - 32px);
  background: var(--bg-card, #18191c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 20px 20px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  animation: writerPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}

[data-theme="light"] .writer-popover-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes writerPopoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.writer-popover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}

.writer-popover-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.writer-popover-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  cursor: pointer;
}

.writer-popover-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #202327;
  transition: transform 0.2s ease;
}

.writer-popover-avatar-wrap:hover .writer-popover-avatar {
  transform: scale(1.03);
}

[data-theme="light"] .writer-popover-avatar {
  border-color: rgba(0, 0, 0, 0.1);
  background: #f1f3f5;
}

/* View Profile Button (Image 2) */
.writer-popover-view-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  color: #ffffff;
  padding: 6px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.writer-popover-view-btn:hover {
  background: #ffffff;
  color: #0f1419;
  border-color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .writer-popover-view-btn {
  border-color: rgba(0, 0, 0, 0.35);
  color: #0f1419;
}

[data-theme="light"] .writer-popover-view-btn:hover {
  background: #0f1419;
  color: #ffffff;
  border-color: #0f1419;
}

/* Close 'x' button */
.writer-popover-close {
  background: transparent;
  border: none;
  color: #71767b;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.writer-popover-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .writer-popover-close:hover {
  color: #0f1419;
  background: rgba(0, 0, 0, 0.08);
}

/* Writer Name */
.writer-popover-name-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.writer-popover-name {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--text-primary, #ffffff);
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.writer-popover-name:hover {
  color: #facc15 !important;
}

[data-theme="light"] .writer-popover-name {
  color: #0f1419;
}

/* Followers Count */
.writer-popover-followers {
  font-size: 0.88rem;
  color: #71767b;
  font-weight: 500;
  margin: 0 0 12px 0;
}

/* Bio description */
.writer-popover-bio {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #e7e9ea;
  margin: 0;
  word-break: break-word;
}

[data-theme="light"] .writer-popover-bio {
  color: #27272a;
}

.writer-popover-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.writer-popover-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}

/* ===================================================
   CANONICAL YELLOW VERIFIED TICK (#facc15 / #000000)
   =================================================== */
.amazing-verified-tick,
.user-verified-badge svg,
.search-verified-badge {
  display: inline-block !important;
  vertical-align: middle !important;
}

.amazing-verified-tick path[fill="#00aeec"],
.amazing-verified-tick.blue-tick path:first-child,
.amazing-verified-tick path:first-child,
.user-verified-badge svg path:first-child,
.search-verified-badge g[fill="#1d9bf0"] path:first-child,
.search-verified-badge path:first-child,
.following-account-badge svg path:first-child {
  fill: #facc15 !important;
}

.amazing-verified-tick path[fill="#ffffff"],
.amazing-verified-tick path:last-child,
.user-verified-badge svg path:last-child,
.search-verified-badge path[fill="#ffffff"],
.search-verified-badge path:last-child,
.following-account-badge svg path:last-child {
  fill: #000000 !important;
}

.mini-tick-icon {
  color: #facc15 !important;
}

/* Enforce black text on all active yellow pills and buttons */
.subcat-tab.active,
.subcat-tab.active *,
.subcat-pill-btn.active,
.subcat-pill-btn.active *,
.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn *,
a.gift-popup-btn * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-weight: 800 !important;
}

/* ===================================================
   CANONICAL GLOBAL LINK COLOR SPEC: ALL LINKS YELLOW
   =================================================== */
.article-body a,
.article-content a,
.news-content a,
.news-story-body a,
.ninegag-post-text a,
.bp-story-content a,
.comment-text a,
.comment-body a,
.bp-reply-text a,
.story-summary a,
.editorial-body a,
.article-summary-box a,
.article-text-section a,
.breadcrumbs-container a:hover,
.ranker-detail-breadcrumbs a:hover,
.crumb-link:hover,
.breadcrumb-link:hover,
.bp-guidelines-link,
.bp-read-more-link,
.threads-guidelines-link:hover,
.birdchat-guidelines-link {
  color: #facc15 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-underline-offset: 2px;
}

.article-body a:hover,
.article-content a:hover,
.news-content a:hover,
.news-story-body a:hover,
.ninegag-post-text a:hover,
.bp-story-content a:hover,
.comment-text a:hover,
.comment-body a:hover,
.bp-reply-text a:hover,
.story-summary a:hover,
.editorial-body a:hover,
.article-summary-box a:hover,
.article-text-section a:hover,
.bp-guidelines-link:hover,
.bp-read-more-link:hover,
.birdchat-guidelines-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
  text-decoration-color: #eab308 !important;
}



/* ===================================================
   CANONICAL GIFT POPUP PATREON BUTTON: BLACK TEXT
   =================================================== */
.gift-popup-btn,
a.gift-popup-btn,
.gift-popup-btn *,
a.gift-popup-btn * {
  background: #facc15 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-weight: 800 !important;
}

.gift-popup-btn:hover,
a.gift-popup-btn:hover,
.gift-popup-btn:hover *,
a.gift-popup-btn:hover * {
  background: #eab308 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}

/* ===================================================
   MOBILE-ONLY NAVIGATION & CATEGORIES BAR
   (Strictly hidden on desktop > 800px; active only on phone <= 800px)
   =================================================== */

.sidebar-drawer-top-bar {
  display: none !important;
}

.mobile-cat-scroll-bar {
  display: none !important;
}

.header-mobile-menu {
  display: none !important;
}

@media (min-width: 1201px) {

  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium {
    display: inline-flex !important;
  }

  .header-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 800px) {

  html,
  body {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body {
    padding-top: calc(100px + env(safe-area-inset-top, 0px)) !important;
  }

  .top-header {
    height: auto !important;
    min-height: 56px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    background: #000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  [data-theme="light"] .top-header {
    background: #ffffff !important;
    border-bottom-color: #e5e7eb !important;
  }

  .header-inner {
    height: 56px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. 3-line hamburger menu button before logo */
  .header-mobile-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary, #ffffff) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .header-mobile-menu:hover,
  .header-mobile-menu:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .header-mobile-menu {
    color: #0f172a !important;
  }

  [data-theme="light"] .header-mobile-menu:hover,
  [data-theme="light"] .header-mobile-menu:active {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  /* 2. Logo right after 3-line menu */
  .header-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  .header-logo-bird-circle {
    width: 32px !important;
    height: 32px !important;
  }

  .header-logo-text {
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  /* 3. Search Bar: Visible, expanding and made bigger on rotate (landscape) or tablet */
  .header-search {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    max-width: 760px !important;
    min-width: 140px !important;
    height: 40px !important;
    margin: 0 12px !important;
  }

  .header-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.92rem !important;
  }

  @media (max-width: 560px) and (orientation: portrait) {
    .header-search {
      display: none !important;
    }
  }

  /* 4. Right side: Keep what's after notifications tab INCLUDING notifications */
  .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Remove all pill buttons on mobile & tablet: Newsletters, Magazine, Shop, Premium */
  .header-right .header-pill-btn,
  .header-right #headerPillNewsletter,
  .header-right #headerPillMagazine,
  .header-right #headerPillShop,
  .header-right #headerPillPremium,
  .header-right .header-post-btn,
  .header-right .header-dropdown {
    display: none !important;
  }

  /* Theme Toggle on mobile: Moved under settings per user request */
  .header-right .theme-toggle {
    display: none !important;
  }

  /* Search Icon Button before Notifications: ONLY on small portrait view (opens overlay) */
  .header-search-icon-btn {
    display: none !important;
  }

  @media (max-width: 560px) and (orientation: portrait) {
    .header-search-icon-btn {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 36px !important;
      height: 36px !important;
      padding: 0 !important;
      background: transparent !important;
      border: none !important;
      color: var(--text-primary, #ffffff) !important;
      border-radius: 50% !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
    }

    .header-search-icon-btn:hover,
    .header-search-icon-btn:active {
      background: rgba(255, 255, 255, 0.1) !important;
      color: #facc15 !important;
    }

    [data-theme="light"] .header-search-icon-btn {
      color: #0f172a !important;
    }

    [data-theme="light"] .header-search-icon-btn:hover,
    [data-theme="light"] .header-search-icon-btn:active {
      background: rgba(0, 0, 0, 0.06) !important;
      color: #ca8a04 !important;
    }
  }

  /* Always show Notification bell with badge */
  .header-notifications-wrap {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
  }

  .header-bell-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    position: relative !important;
    color: var(--text-primary, #ffffff) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  /* Keep what's after notifications (Profile / Login) */
  .header-profile-wrap,
  #headerProfileWrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-login-btn,
  #headerLoginBtn {
    display: inline-flex !important;
  }

  .header-bell-icon {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
  }

  .header-bell-badge {
    position: absolute !important;
    top: -2px !important;
    right: -4px !important;
    background: #e11d48 !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 1px 5px !important;
    border-radius: 9999px !important;
    min-width: 17px !important;
    height: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #0b0c10 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45) !important;
  }

  [data-theme="light"] .header-bell-badge {
    border-color: #ffffff !important;
  }

  /* Account profile button & avatar circle */
  .header-profile-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-profile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
  }

  .header-profile-btn .profile-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: var(--bg-hover, #222) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  [data-theme="light"] .header-profile-btn .profile-avatar {
    border-color: rgba(0, 0, 0, 0.1) !important;
  }

  /* Left Sidebar Drawer on mobile */
  .sidebar-left {
    position: fixed !important;
    left: -340px !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 304px !important;
    max-width: 88vw !important;
    z-index: 10001 !important;
    background: var(--bg-panel, #0b0c10) !important;
    border-right: 1px solid var(--border, #222) !important;
    border-left: none !important;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65) !important;
    display: block !important;
    padding: 0 !important;
  }

  .sidebar-left.open {
    left: -4px !important;
  }

  .sidebar-drawer-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--border, #222) !important;
    background: rgba(255, 255, 255, 0.02) !important;
  }

  .sidebar-drawer-close-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
  }

  .sidebar-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
  }

  /* Backdrop Overlay */
  .mobile-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  .mobile-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  /* Mobile Horizontal Categories Scrolling Bar */
  .mobile-cat-scroll-bar {
    display: block !important;
    width: 100% !important;
    background: var(--bg-panel, #000000) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 99 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    user-select: none !important;
  }

  .mobile-cat-scroll-bar::-webkit-scrollbar {
    display: none !important;
  }

  [data-theme="light"] .mobile-cat-scroll-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .mobile-cat-scroll-inner {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 8px !important;
    min-width: 100% !important;
    white-space: nowrap !important;
    height: 44px !important;
  }

  .mobile-cat-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 0.94rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.15s ease !important;
    flex-shrink: 0 !important;
  }

  [data-theme="light"] .mobile-cat-tab {
    color: #64748b !important;
  }

  .mobile-cat-tab:hover {
    color: #e2e8f0 !important;
  }

  [data-theme="light"] .mobile-cat-tab:hover {
    color: #1e293b !important;
  }

  /* Active tab: Vibrant brand yellow */
  .mobile-cat-tab.active {
    color: #facc15 !important;
    font-weight: 700 !important;
  }

  [data-theme="light"] .mobile-cat-tab.active {
    color: #ca8a04 !important;
  }

  /* Bottom underline indicator */
  .mobile-cat-tab .mobile-cat-tab-indicator {
    display: none;
    position: absolute !important;
    bottom: 0 !important;
    left: 10px !important;
    right: 10px !important;
    height: 3px !important;
    background: #facc15 !important;
    border-radius: 3px 3px 0 0 !important;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.45) !important;
  }

  [data-theme="light"] .mobile-cat-tab .mobile-cat-tab-indicator {
    background: #eab308 !important;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.35) !important;
  }

  .mobile-cat-tab.active .mobile-cat-tab-indicator {
    display: block !important;
  }

  /* Sleek SVG lock icon */
  .mobile-cat-tab .cat-lock-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 5px !important;
    color: #94a3b8 !important;
    opacity: 0.85 !important;
    vertical-align: middle !important;
  }

  .mobile-cat-tab .cat-lock-icon svg {
    width: 11px !important;
    height: 11px !important;
    fill: currentColor !important;
    display: block !important;
  }

  [data-theme="light"] .mobile-cat-tab .cat-lock-icon {
    color: #64748b !important;
  }
}
