/* ===================================================
   BIRDPOST — Category & Tags Page CSS
   =================================================== */

/* Custom Animations */
@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.97);
    opacity: 0.7;
  }

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

/* ===================================================
   CATEGORY 3-COLUMN UNIFIED LAYOUT
   =================================================== */

.category-layout {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  grid-template-areas: "left main" !important;
  min-height: calc(100vh - 64px);
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  align-items: start;
}

.category-sidebar-left {
  grid-area: left;
  width: 270px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border-soft);
  z-index: 90;
}

.category-sidebar-left .sidebar-inner,
.sidebar-sticky-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 6px 8px 16px;
  box-sizing: border-box;
}

.category-sidebar-left .nav-grid-item {
  padding: 5.6px 8px;
  font-size: 0.83rem;
  font-weight: 600;
}

.category-sidebar-left .nav-grid-item.nav-item-locked {
  cursor: pointer;
  opacity: 0.85;
}

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

[data-theme="light"] .category-sidebar-left .nav-grid-item.nav-item-locked:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f1419 !important;
}

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

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

.category-main {
  grid-area: main;
  min-width: 0;
  padding: 0 !important;
  border-right: none !important;
  display: flex;
  flex-direction: column;
}

.category-content-body {
  padding: 24px 36px 80px 36px;
  width: 100%;
  box-sizing: border-box;
}

/* ── 3-Column Layout with Ad-Only Right Sidebar ── */
.category-layout.has-right-sidebar {
  grid-template-columns: 270px minmax(0, 1fr) 320px !important;
  grid-template-areas: "left main right" !important;
  max-width: 1600px;
}

.category-sidebar-right {
  display: none;
}

.category-layout.has-right-sidebar .category-sidebar-right {
  display: block !important;
  grid-area: right;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border-soft);
  background: var(--bg-panel, #0e0f14);
  z-index: 85;
}

.category-layout.has-right-sidebar .category-content-body {
  padding: 20px 24px 80px 24px;
}

/* Scrollbar for right ad sidebar */
.category-sidebar-right::-webkit-scrollbar {
  width: 5px;
}

.category-sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

html[data-theme="light"] .category-sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* ── Right Sidebar Ad Units (Strictly Advertisement Space) ── */
.ad-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}

.ad-badge-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted, #71717a);
  text-transform: uppercase;
}

.ad-verified-tag {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted, #71717a);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

html[data-theme="light"] .ad-verified-tag {
  background: rgba(0, 0, 0, 0.05);
}

/* Display Ad Unit (Featured Card) */
.sidebar-ad-card {
  background: var(--bg-card, #13141b);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sidebar-ad-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .sidebar-ad-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .sidebar-ad-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.display-ad-unit .ad-card-banner {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
}

.display-ad-unit .ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sidebar-ad-card:hover .ad-banner-img {
  transform: scale(1.04);
}

.ad-pill-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
}

.ad-card-content {
  padding: 14px;
}

.ad-sponsor-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 5px;
}

.ad-headline {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary, #ffffff);
  margin: 0 0 6px;
}

.ad-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-secondary, #a1a1aa);
  margin: 0 0 14px;
}

.ad-btn-primary {
  display: block;
  text-align: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ad-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Compact Sidebar Ad Units */
.sidebar-ad-compact {
  background: var(--bg-card, #13141b);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sidebar-ad-compact:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

html[data-theme="light"] .sidebar-ad-compact {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .sidebar-ad-compact:hover {
  border-color: rgba(0, 0, 0, 0.16);
}

.ad-compact-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted, #71717a);
  text-transform: uppercase;
}

.ad-compact-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ad-compact-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.ad-compact-text {
  flex: 1;
  min-width: 0;
}

.ad-compact-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-compact-sub {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-secondary, #a1a1aa);
  margin: 0;
}

.ad-btn-compact {
  align-self: flex-start;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #ffffff) !important;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ad-btn-compact:hover {
  background: var(--text-primary, #ffffff);
  color: #000000 !important;
}

html[data-theme="light"] .ad-btn-compact {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111827 !important;
}

html[data-theme="light"] .ad-btn-compact:hover {
  background: #111827;
  color: #ffffff !important;
}

/* Security / VPN Spotlight Ad Unit */
.security-ad-unit {
  padding: 14px;
}

.security-ad-unit .ad-card-badge-row {
  margin-bottom: 8px;
}

.security-ad-unit .ad-card-header-icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ad-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 174, 236, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ad-security-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  margin: 0;
}

.ad-security-sub {
  font-size: 0.68rem;
  color: var(--text-muted, #71717a);
}

.ad-deal-tag {
  background: rgba(0, 174, 236, 0.12);
  border: 1px solid rgba(0, 174, 236, 0.25);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 10px;
}

html[data-theme="light"] .ad-deal-tag {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
  color: #0284c7;
}

.ad-btn-secondary {
  display: block;
  text-align: center;
  padding: 7px 12px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ad-btn-secondary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Bottom Advertise Link in Sidebar */
.ad-sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 16px;
  margin-top: 4px;
}

.ad-advertise-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #71717a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ad-advertise-link:hover {
  color: var(--text-primary, #ffffff);
}

.ad-trust-seal {
  font-size: 0.62rem;
  color: var(--text-muted, #71717a);
  opacity: 0.75;
}

/* Responsive Rules for Right Sidebar */
@media (max-width: 1200px) {
  .category-layout.has-right-sidebar {
    grid-template-columns: 270px minmax(0, 1fr) !important;
    grid-template-areas: "left main" !important;
  }

  .category-layout.has-right-sidebar .category-sidebar-right {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .category-layout.has-right-sidebar {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }
}

@media (max-width: 1100px) {
  .category-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas: "main" !important;
  }

  .category-sidebar-left {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-panel);
    z-index: 600;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-left: none;
  }

  .category-sidebar-left.open {
    transform: translateX(0);
    left: -4px !important;
  }

  .category-content-body {
    padding: 16px 16px 40px 16px;
  }
}

/* Category Hero Grid (Left: Breadcrumbs + Banner + Big Cards; Right: Continuous Mini Cards from top) */
.category-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.hero-left-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-right-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-top: 0;
  padding-top: 0;
}

.hero-mini-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.hero-big-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Category Banner */
.category-banner {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 0 16px 0;
  margin-top: 6px;
  margin-bottom: 20px;
  box-shadow: none;
  position: relative;
  overflow: visible;
}

/* Light mode override for banner background */
[data-theme="light"] .category-banner {
  background: transparent;
  box-shadow: none;
}

.banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

/* Avatar: app-icon squircle with rich gradient, glassy border, and subtle depth */
.category-avatar-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--category-gradient, linear-gradient(135deg, #00aeec 0%, #009cd3 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.category-avatar-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .category-avatar-icon {
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.category-avatar-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

/* Banner title */
.category-banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  flex: 1;
}

/* Follow button (Pill style matching Image 1 & 4) */
.category-follow-btn {
  padding: 9px 24px;
  background: var(--accent, #facc15);
  color: #000000;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--trans);
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.28);
}

.category-follow-btn:hover {
  background: #eab308;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.38);
}

.category-follow-btn.following {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.category-follow-btn.following:hover {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

/* Banner description */
.category-banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 12px 0 0 0;
  max-width: 820px;
  line-height: 1.55;
}


/* Category Subcategories / Tags Nav Sticky Scroller */
.category-subnav.feed-top-sticky {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .category-subnav.feed-top-sticky {
  background: rgba(245, 245, 247, 0.92);
}

.category-subnav .subcats-wrap {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.category-subnav .subcats-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 0 4px;
}

.category-subnav .subcats-scroll::-webkit-scrollbar {
  display: none;
}

.category-subnav .subcats-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px;
  white-space: nowrap;
}

/* Pill Tabs */
.subcat-pill-btn {
  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);
  transition: all var(--trans);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

.subcat-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.subcat-pill-btn.active,
.subcat-pill-btn.active:hover,
.subcat-pill-btn.active:focus,
.subcat-pill-btn.active:active,
.subcat-pill-btn.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: #facc15 !important;
  border-color: #facc15 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
}

/* Light mode subnav pills */
[data-theme="light"] .subcat-pill-btn {
  color: #111827;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .subcat-pill-btn:hover {
  color: #000000;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .subcat-pill-btn.active,
[data-theme="light"] .subcat-pill-btn.active:hover,
[data-theme="light"] .subcat-pill-btn.active:focus,
[data-theme="light"] .subcat-pill-btn.active:active,
[data-theme="light"] .subcat-pill-btn.active:visited {
  color: #000000 !important;
  font-weight: 800 !important;
  background: #facc15 !important;
  border-color: #facc15 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
}

/* Left Sidebar Active Item (Yellow + Black text) */
.category-sidebar-left .nav-grid-item.active,
.category-sidebar-left .nav-grid-item.active:hover,
.category-sidebar-left .nav-grid-item.active:focus,
.sidebar-nav .nav-grid-item.active,
.sidebar-nav .nav-grid-item.active:hover,
.sidebar-nav .nav-grid-item.active:focus,
.nav-grid-item.active,
.nav-grid-item.active:hover,
.nav-grid-item.active:focus {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-color: #facc15 !important;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.45) !important;
  opacity: 1 !important;
}

.category-sidebar-left .nav-grid-item.active .nav-grid-icon svg,
.sidebar-nav .nav-grid-item.active .nav-grid-icon svg,
.nav-grid-item.active .nav-grid-icon svg {
  fill: #000000 !important;
}

.category-sidebar-left .nav-grid-item.active .nav-grid-icon svg[fill="none"],
.category-sidebar-left .nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
.sidebar-nav .nav-grid-item.active .nav-grid-icon svg[fill="none"],
.sidebar-nav .nav-grid-item.active .nav-grid-icon svg[fill="none"] *,
.nav-grid-item.active .nav-grid-icon svg[fill="none"],
.nav-grid-item.active .nav-grid-icon svg[fill="none"] * {
  fill: none !important;
  stroke: #000000 !important;
}

/* Scroll Arrows */
.subnav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--trans);
  opacity: 0;
  pointer-events: none;
}

.subnav-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.subnav-arrow:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.subnav-arrow.left {
  left: 4px;
}

.subnav-arrow.right {
  right: 4px;
}

/* Main Layout: 2 Columns */
.category-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-top: 32px;
}

.layout-main-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  /* Prevents flex children from breaking parent layout */
}

/* Large Featured Card */
.featured-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

[data-theme="light"] .featured-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .featured-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.featured-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-img-wrap img {
  transform: scale(1.03);
}

.featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.2) 60%, transparent 100%);
}

[data-theme="light"] .featured-img-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.1) 65%, transparent 100%);
}

.featured-badge-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.featured-content {
  padding: 24px;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.featured-author-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-hover);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
}

.featured-author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
}

.featured-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
}

/* 2x2 Grid of stories */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .grid-card {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .grid-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.grid-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card, #000000);
}

.grid-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-card:hover .grid-card-img-wrap img {
  transform: scale(1.04);
}

.grid-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.grid-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.grid-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.grid-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: auto;
}

.grid-card-author {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Sidebar Columns & Widgets */
.layout-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Tabs Header */
.widget-tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.tab-header {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--trans);
  cursor: pointer;
}

.tab-header:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tab-header.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-card);
}

.widget-tab-content {
  padding: 16px;
}

/* Tab list view items (1-5) */
.tab-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}

.tab-list-item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.tab-list-item:first-child {
  padding-top: 4px;
}

.tab-num {
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00aeec, #009cd3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.tab-item-body {
  flex: 1;
}

.tab-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.tab-list-item:hover .tab-item-title {
  color: var(--accent);
}

.tab-item-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Ads styling */
.sticky-sidebar-ads {
  position: sticky;
  top: 90px;
  /* Offset sticky header */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

[data-theme="light"] .sidebar-ad-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sidebar-ad-card .ad-label {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sponsored Links styling */
.sponsored-ad-card {
  padding-top: 28px;
}

.sponsored-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
}

.sponsored-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sponsored-item-row:first-of-type {
  padding-top: 0;
}

.sponsored-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.sponsored-text-body {
  flex: 1;
  min-width: 0;
}

.sponsored-headline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsored-source {
  font-size: 0.68rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}

.sponsored-item-row:hover .sponsored-headline {
  color: var(--accent);
}

/* Compact Sidebar Ads */
.compact-ad-box {
  padding-top: 28px;
}

.compact-ad-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-ad-icon {
  font-size: 1.8rem;
  background: var(--bg-hover);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}

.compact-ad-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.compact-ad-text strong {
  font-size: 0.85rem;
  color: var(--text-white);
}

.compact-ad-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.compact-ad-btn {
  background: var(--accent);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--trans);
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--accent-glow);
}

.compact-ad-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Secondary Vertical Feed */
.secondary-feed-container {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.feed-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.secondary-feed-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Horizontal Feed Blocks */
.horizontal-block {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  align-items: stretch;
}

[data-theme="light"] .horizontal-block {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

/* Left part: large horizontal overlaid card */
.block-main-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}

.block-main-card:hover .main-card-img-wrap img {
  transform: scale(1.03);
}

.main-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 290px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
}

.main-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.45) 55%, rgba(10, 10, 15, 0.1) 100%);
  z-index: 2;
}

[data-theme="light"] .main-card-overlay {
  background: linear-gradient(to top, rgba(20, 20, 30, 0.9) 0%, rgba(20, 20, 30, 0.4) 60%, rgba(20, 20, 30, 0.05) 100%);
}

.main-card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 3;
}

.main-card-overlaid-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff !important;
  /* Always white on dark gradient for visibility */
  line-height: 1.35;
  margin-bottom: 6px;
}

.main-card-meta-row {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right & Middle parts: stacked list */
.block-stacked-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.stacked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  flex: 1;
  /* evenly distributes items */
}

.stacked-item:hover {
  border-color: var(--accent);
  transform: translateX(3px);
}

.stacked-item-thumb {
  width: 76px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.stacked-item-body {
  flex: 1;
  min-width: 0;
}

.stacked-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

.stacked-item:hover .stacked-item-title {
  color: var(--accent);
}

.stacked-item-meta {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 600;
}

/* ===================================================
   RESPONSIVENESS / MEDIA QUERIES
   =================================================== */

@media (max-width: 1024px) {
  .category-main-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sticky-sidebar-ads {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-ad-card:last-child {
    grid-column: span 2;
  }

  .horizontal-block {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .block-main-card {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .category-banner {
    padding: 4px 0 16px 0 !important;
  }

  .category-banner-title {
    font-size: 1.35rem !important;
  }

  .grid-2x2 {
    grid-template-columns: 1fr;
  }

  .sticky-sidebar-ads {
    grid-template-columns: 1fr;
  }

  .sidebar-ad-card:last-child {
    grid-column: span 1;
  }

  .horizontal-block {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .block-main-card {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .category-wrapper {
    padding: 0 12px 40px 12px;
  }

  .stacked-item {
    gap: 10px;
  }

  .stacked-item-thumb {
    width: 68px;
    height: 44px;
  }
}

/* ===================================================
   MAIN FEATURED ROW LAYOUT (UPGRADE)
   =================================================== */

.main-featured-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.featured-row-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-overlaid-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .featured-overlaid-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.featured-overlaid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.overlaid-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.overlaid-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-overlaid-card:hover .overlaid-card-img-wrap img {
  transform: scale(1.03);
}

.overlaid-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.45) 55%, transparent 100%);
  z-index: 2;
}

[data-theme="light"] .overlaid-card-overlay {
  background: linear-gradient(to top, rgba(20, 20, 30, 0.9) 0%, rgba(20, 20, 30, 0.35) 60%, transparent 100%);
}

.overlaid-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 3;
}

.overlaid-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff !important;
  /* Always white on dark gradient for visibility */
  line-height: 1.35;
  margin-bottom: 8px;
}

.overlaid-card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Featured Stacked List */
.featured-row-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.featured-stacked-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--trans);
  flex: 1;
}

.featured-stacked-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.featured-stacked-thumb {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #111;
  flex-shrink: 0;
}

.featured-stacked-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.featured-stacked-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--trans);
}

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

.featured-stacked-summary {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="light"] .featured-stacked-summary {
  color: #64748b;
}

.featured-stacked-item:hover .featured-stacked-title {
  color: var(--accent);
}

.featured-stacked-meta {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Responsive adjustment for Category Hero Grid & Cards (Matching Image 3 on Mobile) */
@media (max-width: 860px) {
  .category-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }

  .hero-left-column,
  .hero-right-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-mini-cards-wrap {
    gap: 12px !important;
    width: 100% !important;
  }

  .featured-stacked-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .featured-stacked-item:hover {
    transform: none !important;
  }

  .featured-stacked-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
  }

  .featured-stacked-body {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .featured-stacked-title {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: var(--text-white) !important;
    line-height: 1.34 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  [data-theme="light"] .featured-stacked-title {
    color: #0f172a !important;
  }

  .featured-stacked-summary {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 0.82rem !important;
    color: #8b8fa3 !important;
    line-height: 1.4 !important;
    margin-top: 3px !important;
  }

  [data-theme="light"] .featured-stacked-summary {
    color: #64748b !important;
  }

  .featured-stacked-meta {
    font-size: 0.72rem !important;
    color: var(--text-secondary) !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .overlaid-card-img-wrap {
    min-height: 220px !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
  }

  .overlaid-card-title {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .overlaid-card-content {
    padding: 16px !important;
  }

  .main-featured-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .banner-top-row {
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  .banner-title-group {
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .category-avatar-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    flex-shrink: 0 !important;
  }

  .category-avatar-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .category-banner-title {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .category-follow-btn {
    padding: 7px 18px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
  }

  .category-banner-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-top: 10px !important;
  }
}

/* ===================================================
   LOGIN MODAL STYLING
   =================================================== */
.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;
}

/* ===================================================
   RANKER VERTICAL LIST (Image 1 Style) & POST CARD (Image 2 Style)
   =================================================== */

/* News Card for Ranker Feed */
.news-card.ranker-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
  margin-bottom: 28px;
  transition: border-color var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
}

.news-card.ranker-post-card:hover {
  border-color: rgba(0, 174, 236, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .news-card.ranker-post-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .news-card.ranker-post-card:hover {
  border-color: #00aeec;
  box-shadow: 0 10px 30px rgba(0, 174, 236, 0.12);
}

.news-card-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card Author Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.card-author-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  display: block;
}

.card-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

[data-theme="light"] .card-author-name {
  color: #0f172a;
}

.card-meta-dot {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  flex-shrink: 0;
}

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

/* Card Headline & Summary */
.card-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  cursor: pointer;
  transition: color var(--trans);
}

.card-headline:hover {
  color: var(--accent);
}

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

.card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

[data-theme="light"] .card-summary {
  color: #475569;
}

/* Meta row */
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: #000000 !important;
  background: var(--accent, #facc15);
  padding: 3px 10px;
  border-radius: 50px;
  border: none;
  display: inline-flex;
  align-items: center;
}

/* Card Tag Pills - Solid Yellow with Black Text */
.card-tag,
.card-tag[data-cat] {
  font-size: 0.74rem;
  font-weight: 800;
  color: #000000 !important;
  background: #facc15 !important;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--trans);
  display: inline-flex;
  align-items: center;
  border: none;
}

.card-tag:hover,
.card-tag[data-cat]:hover {
  filter: brightness(1.05);
  background: #eab308 !important;
  color: #000000 !important;
}

.card-stat,
.card-date {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Card Media (Matches Home Feed) */
.news-card .card-media {
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  position: relative;
  background: var(--bg-card, #1e1e2d);
  aspect-ratio: 16/9;
  width: 100%;
  margin: 8px 0 12px 0;
  cursor: pointer;
}

.news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .card-media img {
  transform: scale(1.03);
}

.news-card .media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
  pointer-events: none;
}

/* ===================================================
   VERTICAL RANKER LIST (Matches Image 1 precisely)
   =================================================== */
.ranker-vertical-list {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md, 12px);
  padding: 6px 20px;
  margin: 10px 0 16px 0;
}

[data-theme="light"] .ranker-vertical-list {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.ranker-vertical-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranker-vertical-item:last-child {
  border-bottom: none;
}

[data-theme="light"] .ranker-vertical-item {
  border-bottom-color: #e2e8f0;
}

.ranker-item-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  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: var(--text-white);
}

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

.ranker-num {
  font-weight: 900;
  margin-right: 4px;
}

.ranker-num.rising {
  color: #3b82f6;
}

[data-theme="light"] .ranker-num.rising {
  color: #009cd3;
}

.ranker-num.falling {
  color: #ef4444;
}

[data-theme="light"] .ranker-num.falling {
  color: #dc2626;
}

.ranker-item-subtitle {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  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: #1e293b;
}

.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: #3b82f6;
  text-decoration: underline;
}

.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 */
.ranker-detail-wrapper {
  max-width: 920px;
  margin: 0 auto 50px auto;
  animation: rankerFadeIn 0.3s ease;
}

@keyframes rankerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Back Button & Breadcrumbs Bar */
.ranker-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

[data-theme="light"] .ranker-detail-nav-bar {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.ranker-header-card {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !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: #3b82f6;
  color: #3b82f6;
  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: #00aeec;
  color: #00aeec;
  background: #f8fafc;
}

.category-breadcrumbs-strip {
  width: 100%;
  margin-bottom: 16px;
}

.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);
  font-weight: 700;
  max-width: none;
  white-space: normal;
}

[data-theme="light"] .ranker-detail-breadcrumbs .crumb-current,
[data-theme="light"] .breadcrumbs-container .breadcrumb-current {
  color: #0f172a;
}

/* Image 4 Header */
.ranker-detail-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.ranker-presented-by {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.ranker-presented-link {
  color: #facc15 !important;
  text-decoration: none;
  font-weight: 700;
}

.ranker-presented-link:hover {
  color: #eab308 !important;
  text-decoration: underline !important;
}

.ranker-detail-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.16;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin: 0 0 16px 0;
}

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

.ranker-author-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.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: 2px;
}

.ranker-author-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
}

[data-theme="light"] .ranker-author-name {
  color: #0f172a;
}

.ranker-author-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.ranker-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

/* Image 5 Ranked Item Cards */
.ranker-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  margin: 0 !important;
}

.ranker-card-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card, #000000) !important;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
  border-top: none !important;
  border-radius: 0 !important;
  padding: 24px 20px;
  box-shadow: none !important;
  margin: 0 !important;
  transition: background 0.15s ease;
}

.ranker-card-item:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--border-soft, rgba(255, 255, 255, 0.08)) !important;
}

[data-theme="dark"] .ranker-card-item {
  background: var(--bg-card, #000000) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-top: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

[data-theme="dark"] .ranker-card-item:hover {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

[data-theme="light"] .ranker-card-item {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-top: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

[data-theme="light"] .ranker-card-item:hover {
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Hide old scallop ticket decorative strips */
.ranker-scallop-strip,
.ranker-card-item::after {
  display: none !important;
}

.ranker-card-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* Header: Purple Rank Number & Headline (Photos 1-3) */
.ranker-card-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.ranker-card-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a !important;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

[data-theme="dark"] .ranker-card-name {
  color: #f8fafc !important;
}

[data-theme="light"] .ranker-card-name {
  color: #0f172a !important;
}

.ranker-purple-num {
  color: #7c3aed;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .ranker-purple-num {
  color: #a78bfa;
}

[data-theme="light"] .ranker-purple-num {
  color: #7c3aed;
}

.ranker-card-title-text {
  font-weight: 800;
}

.ranker-card-chart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 2px;
}

[data-theme="dark"] .ranker-card-chart-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.ranker-card-chart-icon:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.ranker-card-age {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
  margin: -4px 0 2px 0;
}

[data-theme="dark"] .ranker-card-age {
  color: #94a3b8 !important;
}

[data-theme="light"] .ranker-card-age {
  color: #64748b !important;
}

/* Hero Media Image (Photos 1-3) */
.ranker-card-img-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 14px !important;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  margin: 2px 0 0 0;
}

[data-theme="light"] .ranker-card-img-wrap {
  border-color: rgba(0, 0, 0, 0.08);
}

.ranker-card-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 14px !important;
  transition: transform 0.3s ease;
}

.ranker-card-item:hover .ranker-card-img {
  transform: none !important;
}

/* Source Attribution / Credit below image (Photos 1-3) */
.ranker-card-credit {
  font-size: 0.8rem;
  font-style: italic;
  color: #64748b;
  margin: -4px 0 4px 2px;
  letter-spacing: 0.01em;
}

[data-theme="dark"] .ranker-card-credit {
  color: #94a3b8;
}

[data-theme="light"] .ranker-card-credit {
  color: #64748b;
}

/* Description / Story Text */
.ranker-card-desc {
  font-size: 1.05rem;
  line-height: 1.68;
  color: #334155 !important;
  margin: 2px 0 6px 0;
}

[data-theme="dark"] .ranker-card-desc {
  color: #cbd5e1 !important;
}

[data-theme="light"] .ranker-card-desc {
  color: #334155 !important;
}

/* Upvote / Downvote Capsule Ranking Pill (Photo 4) */
.ranker-card-voting-pill {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 6px 18px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  margin-top: 6px;
}

[data-theme="dark"] .ranker-card-voting-pill {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .ranker-card-voting-pill {
  background: #18181b;
  border-color: rgba(0, 0, 0, 0.1);
}

.ranker-card-voting-module {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.ranker-card-btn-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranker-btn-square {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.ranker-btn-square:hover {
  transform: scale(1.08);
}

.ranker-btn-square:active {
  transform: scale(0.94);
}

.ranker-btn-square.ranker-btn-up {
  background: #22c55e;
  color: #ffffff;
}

.ranker-btn-square.ranker-btn-up:hover {
  background: #16a34a;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
}

.ranker-btn-square.ranker-btn-down {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.ranker-btn-square.ranker-btn-down:hover {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.ranker-btn-square.active-up {
  background: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.7) !important;
}

.ranker-btn-square.active-down {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.7) !important;
}

.ranker-vote-count-txt {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.ranker-live-vote-num {
  font-weight: 900;
  font-size: 0.95rem;
  margin-right: 4px;
}

.ranker-consensus-pill {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  width: fit-content;
}

[data-theme="light"] .ranker-consensus-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

.ranker-card-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.ranker-card-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.ranker-card-link-item .link-icon {
  font-size: 0.95rem;
}

.ranker-card-link-item .link-label {
  font-weight: 800;
  margin-right: 2px;
}

.ranker-card-link-item.dig-deeper .link-icon,
.ranker-card-link-item.dig-deeper .link-label {
  color: #10b981;
}

.ranker-card-link-item.also-ranks .link-icon,
.ranker-card-link-item.also-ranks .link-label {
  color: #8b5cf6;
}

.ranker-card-link-item .link-title {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

[data-theme="light"] .ranker-card-link-item .link-title {
  color: #0f172a;
}

.ranker-card-link-item .link-title:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .ranker-card-inner {
    flex-direction: column;
    gap: 18px;
  }

  .ranker-card-left-section {
    width: 100%;
  }

  .ranker-detail-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 540px) {
  .ranker-card-left-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .ranker-card-img-wrap {
    width: 100%;
    height: 190px;
  }
}

/* Card Action Bar (Image 2 style) */
.card-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0 0;
  border-top: 1px solid var(--border-soft);
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

[data-theme="light"] .card-action-bar {
  border-top-color: #e2e8f0;
}

.card-action-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible !important;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

.card-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  overflow: visible !important;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-top: -6px;
  margin-bottom: -6px;
}

/* ==========================================
   YouTube-Style Card Action Pills (Matching Image 1)
   [ 👍 16K | 👎 ] [ ➦ Share ] [ ✦ Ask ] [ ⤓ Download ] [ ••• ]
   ========================================== */
.card-vote-pill {
  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 {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.card-vote-pill:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

[data-theme="light"] .card-vote-pill:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

.card-vote-pill button,
.card-vote-pill .vote-up-btn,
.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;
  height: 24px !important;
  width: 24px !important;
  border: none !important;
  box-shadow: 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;
  position: relative !important;
  text-decoration: none !important;
  line-height: normal !important;
  flex-shrink: 0 !important;
}

.card-vote-pill button:hover,
.card-vote-pill .vote-up-btn:hover,
.card-vote-pill .vote-down-btn:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn,
[data-theme="light"] .card-vote-pill .vote-down-btn {
  color: inherit !important;
  background: transparent !important;
}

/* No vertical divider */
.card-vote-pill .vote-up-btn::after,
.vote-pill-divider {
  display: none !important;
  content: none !important;
}

.card-vote-pill .vote-up-btn svg,
.card-vote-pill .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"] .card-vote-pill .vote-down-btn svg {
  stroke: #64748b !important;
}

.card-vote-pill .vote-up-btn:hover {
  background: transparent !important;
  color: #facc15 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-up-btn:hover svg {
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn:hover {
  background: transparent !important;
  color: #ef4444 !important;
  transform: scale(1.12) !important;
}

.card-vote-pill .vote-down-btn:hover svg {
  stroke: #ef4444 !important;
}

[data-theme="light"] .card-vote-pill .vote-up-btn:hover {
  color: #facc15 !important;
  background: transparent !important;
}

[data-theme="light"] .card-vote-pill .vote-down-btn: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);
  }
}

.card-vote-pill .vote-up-btn.active-up,
.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;
}

.card-vote-pill .vote-up-btn.active-up svg,
.card-vote-pill .vote-up-btn.active-like svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.card-vote-pill .vote-down-btn.active-down,
.card-vote-pill .vote-down-btn.active-dislike {
  color: #ef4444 !important;
  background: transparent !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.card-vote-pill .vote-down-btn.active-down svg,
.card-vote-pill .vote-down-btn.active-dislike svg {
  fill: #ef4444 !important;
  stroke: #ef4444 !important;
  animation: none !important;
  transform: none !important;
}

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

[data-theme="light"] .card-vote-pill .up-num {
  color: #0f172a !important;
}

/* Hide downvote count by default matching YouTube pill in image 1 */
.card-vote-pill .down-num {
  display: none !important;
}

.card-vote-pill svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Generic YouTube-style Action Pills (Share, Ask, Download, Coffee, Comments) */
.card-action-btn.coffee-btn,
.card-action-btn.comments-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"] .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,
.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"] .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;
}


/* 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,
.yt-action-pill svg,
.share-trigger-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* Card Share Container */
.card-share-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.inline-share-bar {
  display: none;
  position: absolute;
  right: 0;
  bottom: 100%;
  margin-bottom: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
  align-items: center;
}

[data-theme="light"] .inline-share-bar {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-share-container.open .inline-share-bar {
  display: flex;
  animation: fadeInUp 0.2s ease;
}

.share-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.15s ease;
}

.share-icon-btn:hover {
  transform: scale(1.15);
}

.share-back-btn {
  background: var(--border);
  color: var(--text-primary);
}

.share-whatsapp {
  background: #25d366;
}

.share-twitter {
  background: #000000;
  border: 1px solid #333;
}

.share-facebook {
  background: #1877f2;
}

.share-copy {
  background: #64748b;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .news-card.ranker-post-card {
    padding: 16px;
  }

  .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 {
    font-size: 0.8rem;
  }
}

/* ===================================================
   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-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;
  }
}

/* ===================================================
   Threads / Birdchat Discussion Styles in Category
   =================================================== */

.threads-discussion-wrapper {
  display: none !important;
  margin: 16px;
  position: relative;
}

.threads-discussion-box {
  background: linear-gradient(135deg, #00aeec 0%, #009cd3 100%);
  color: #ffffff;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 174, 236, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Wavy / Scalloped Edge along the right border (Matching Image 1 & 2) */
.threads-scallop-strip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  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;
}

/* Collapsed State (Image 2 Style) */
.threads-box-collapsed {
  padding: 20px 32px 20px 22px;
  cursor: pointer;
}

.threads-box-collapsed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 236, 0.32);
}

.threads-collapsed-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.threads-discussion-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.threads-discussion-prompt {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 4px 0 12px 0;
}

.threads-discussion-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.threads-answer-btn {
  background-color: #5c45fd;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(92, 69, 253, 0.35);
}

.threads-answer-btn:hover {
  background-color: #4b34ea;
  transform: translateY(-1px);
}

.threads-replies-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.threads-replies-count:hover {
  opacity: 0.88;
  text-decoration: underline;
}

/* Expanded State (Image 1 Style) */
.threads-discussion-expanded-wrap {
  animation: threadsFadeIn 0.3s ease;
  margin-top: 14px;
  margin-bottom: 16px;
}

@keyframes threadsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.threads-box-expanded-banner {
  padding: 24px 34px 20px 24px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.threads-expanded-banner-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.threads-expanded-prompt {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.threads-expanded-subtitle {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  margin: 0 0 18px 0;
  font-weight: 400;
}

.threads-expanded-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.threads-expanded-speech-bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.threads-speech-icon {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

.threads-expanded-count-badge {
  color: #ffffff;
}

.threads-share-circles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.threads-share-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}

.threads-share-circle:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.threads-share-circle svg {
  width: 15px;
  height: 15px;
  display: block;
}

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

/* Article Share Strip */
.article-share-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.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;
  padding: 0;
  flex-shrink: 0;
}

.share-strip-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

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

.share-strip-btn.share-btn-tw,
.share-strip-btn.share-btn-x {
  background: #000000 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-bluesky {
  background: #1185fe !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-mastodon {
  background: #5c4ee5 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-threads {
  background: #000000 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-fb {
  background: #1877f2 !important;
}

.share-strip-btn.share-btn-reddit {
  background: #ff4500 !important;
}

.share-strip-btn.share-btn-gmail {
  background: #ea4335 !important;
  color: #ffffff !important;
}

.share-strip-btn.share-btn-copy {
  background: #ff5722 !important;
  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;
}

/* Birdchat Modal & Page Share Circles */
.birdchat-share-circles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.birdchat-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  flex-shrink: 0;
}

.birdchat-share-btn:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.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-reddit {
  background-color: #ff4500;
}

.birdchat-share-email {
  background-color: #ea4335;
  color: #ffffff;
}

.birdchat-share-link {
  background-color: #ff5722;
  color: #ffffff;
}

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

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

/* Comments Body Below the Banner */
.threads-expanded-comments-body {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.threads-input-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.threads-comment-textarea {
  width: 100%;
  min-height: 64px;
  border-radius: 12px;
  border: 2px solid #00aeec;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background-color: #181c1e;
  color: #f4f4f5;
  box-sizing: border-box;
}

.threads-comment-textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 174, 236, 0.25);
}

.threads-join-conv-btn {
  width: 100%;
  background-color: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.threads-join-conv-btn:hover {
  background-color: #ea4a25;
  transform: translateY(-1px);
}

.threads-guidelines-txt {
  text-align: center;
  font-size: 0.8rem;
  color: #879596;
  margin: 2px 0 0 0;
}

.threads-guidelines-link {
  color: #879596;
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}

.threads-guidelines-link:hover {
  color: #facc15 !important;
  text-decoration-color: #facc15 !important;
}

.threads-comments-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft, #243b40);
  padding-bottom: 10px;
  margin-top: 6px;
}

.threads-comments-count-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f4f4f5;
  margin: 0;
}

.threads-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #879596;
}

.threads-sort-select {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.threads-flow-comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.threads-flow-comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
}

.threads-flow-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.threads-flow-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.threads-flow-subavatar {
  width: 28px;
  height: 28px;
}

.threads-flow-threadline {
  width: 2px;
  flex: 1;
  background-color: var(--border-soft, #2e383a);
  margin-top: 6px;
  border-radius: 1px;
  min-height: 20px;
}

.threads-flow-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.threads-flow-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

.threads-flow-author {
  font-weight: 700;
  color: #f4f4f5;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s;
  cursor: pointer;
}

.threads-flow-author:hover {
  text-decoration-color: currentColor;
}

.threads-flow-bullet {
  color: #6b7280;
  font-size: 0.8rem;
}

.threads-flow-time {
  color: #879596;
  font-size: 0.8rem;
}

.threads-flow-more-btn {
  background: transparent;
  border: none;
  color: #879596;
  margin-left: auto;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.threads-flow-more-btn:hover {
  color: #f4f4f5;
}

.threads-flow-text {
  font-size: 0.92rem;
  line-height: 1.48;
  color: #d1d5db;
  margin: 2px 0 6px 0;
  word-break: break-word;
}

.threads-flow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #879596;
  font-weight: 600;
  flex-wrap: wrap;
}

.threads-flow-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.threads-flow-act-btn:hover {
  color: #00aeec;
}

.threads-flow-like-btn.active-liked {
  color: #00aeec;
  font-weight: 700;
}

.threads-subreply-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.threads-subreply-input {
  flex: 1;
  border-radius: 18px;
  border: 1px solid var(--border-soft, #243b40);
  padding: 6px 14px;
  font-size: 0.85rem;
  outline: none;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

.threads-subreply-send {
  background: #00aeec;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
}

.threads-subreply-send:hover {
  background: #ea4a25;
}

.threads-flow-nested-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding-left: 6px;
}

.threads-flow-reply-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.threads-collapse-bar {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft, #243b40);
}

.threads-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-soft, #243b40);
  color: #879596;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.threads-collapse-btn:hover {
  border-color: #00aeec;
  color: #00aeec;
}

.shake-error {
  animation: shakeErr 0.4s ease;
  border-color: #ef4444 !important;
}

@keyframes shakeErr {

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

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }
}

/* Light Theme Overrides */
[data-theme="light"] .threads-comment-textarea {
  background-color: #ffffff;
  color: #1c1c1c;
}

[data-theme="light"] .threads-comments-count-title {
  color: #1c1c1c;
}

[data-theme="light"] .threads-flow-author {
  color: #1c1c1c;
}

[data-theme="light"] .threads-flow-text {
  color: #27272a;
}

[data-theme="light"] .threads-comments-header-row,
[data-theme="light"] .threads-collapse-bar {
  border-color: #e4e4e7;
}

[data-theme="light"] .threads-flow-threadline {
  background-color: #e4e4e7;
}

[data-theme="light"] .threads-subreply-input {
  border-color: #d4d4d8;
  color: #18181b;
}

/* ===================================================
   RANKER COMBINED LAYOUT OVERRIDE
   =================================================== */
.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 - NO GAPS! */
/* 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;
}

/* 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;
  }
}

/* ===================================================
   PROFESSIONAL ACTION CAPSULE (Coffee Pill Widget)
   =================================================== */
.action-capsule-bar {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  line-height: 1 !important;
}

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

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

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

.capsule-pill:hover svg {
  transform: rotate(-8deg) scale(1.1) !important;
}

.capsule-pill:active {
  transform: scale(0.96) !important;
}

/* Light Theme */
[data-theme="light"] .capsule-pill,
html[data-theme="light"] .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"] .capsule-pill:hover,
html[data-theme="light"] .capsule-pill:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  color: #b45309 !important;
}

/* Active Coffee State (when clicked) */
.capsule-pill.active-coffee,
[data-theme="light"] .capsule-pill.active-coffee,
html[data-theme="light"] .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;
}

.capsule-pill.active-coffee svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .capsule-pill.active-coffee,
html[data-theme="light"] .capsule-pill.active-coffee {
  border-color: #d97706 !important;
  color: #b45309 !important;
}

[data-theme="light"] .capsule-pill.active-coffee svg,
html[data-theme="light"] .capsule-pill.active-coffee svg {
  stroke: #b45309 !important;
}

/* Overlaid Hero Cards (China-US Trade, Verstappen, etc.) */
.featured-overlaid-card .action-capsule-bar .capsule-pill,
.block-main-card .action-capsule-bar .capsule-pill {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill:hover,
.block-main-card .action-capsule-bar .capsule-pill:hover {
  background: rgba(0, 174, 236, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 174, 236, 0.45) !important;
}

/* Meta Arrangements across all Card types */
.overlaid-card-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

.overlaid-card-meta-txt {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.featured-stacked-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 6px !important;
  font-size: 0.72rem !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.featured-stacked-meta-txt {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.main-card-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

.main-card-meta-txt {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.stacked-item-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 5px !important;
  font-size: 0.72rem !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.stacked-item-meta-txt {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex: 1 !important;
}

/* ===================================================
   CATEGORY PAGE SAVE PILL WIDGET
   Replaces Coffee on category.html with Save button
   - Hover state: Peach glow & icon lift
   - Active state: Image 2 solid orange pill with glow
   =================================================== */
@keyframes savePopAnimation {
  0% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.capsule-pill.card-save-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.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  user-select: none !important;
}

.capsule-pill.card-save-pill svg {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  transition: transform 0.22s ease !important;
}

.capsule-pill.card-save-pill:hover {
  background: rgba(250, 204, 21, 0.14) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

.capsule-pill.card-save-pill:hover svg {
  transform: scale(1.15) !important;
  stroke: #facc15 !important;
}

/* Light Theme */
[data-theme="light"] .capsule-pill.card-save-pill,
html[data-theme="light"] .capsule-pill.card-save-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"] .capsule-pill.card-save-pill:hover,
html[data-theme="light"] .capsule-pill.card-save-pill:hover {
  background: rgba(234, 179, 8, 0.12) !important;
  border-color: #ca8a04 !important;
  color: #a16207 !important;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.25) !important;
}

[data-theme="light"] .capsule-pill.card-save-pill:hover svg,
html[data-theme="light"] .capsule-pill.card-save-pill:hover svg {
  transform: scale(1.15) !important;
  stroke: #ca8a04 !important;
}

.card-action-btn.card-save-btn:hover,
.card-save-btn:hover {
  background: rgba(250, 204, 21, 0.12) !important;
  border-color: #facc15 !important;
  color: #facc15 !important;
}

.card-action-btn.card-save-btn:hover svg,
.card-save-btn:hover svg {
  stroke: #facc15 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn:hover,
[data-theme="light"] .card-save-btn:hover {
  background: rgba(234, 179, 8, 0.12) !important;
  border-color: #ca8a04 !important;
  color: #a16207 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn:hover svg,
[data-theme="light"] .card-save-btn:hover svg {
  stroke: #ca8a04 !important;
}

/* Active / Saved State - Image 4 Specification */
.capsule-pill.card-save-pill.active-saved,
[data-theme="light"] .capsule-pill.card-save-pill.active-saved,
html[data-theme="light"] .capsule-pill.card-save-pill.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;
  animation: savePopAnimation 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="light"] .capsule-pill.card-save-pill.active-saved,
html[data-theme="light"] .capsule-pill.card-save-pill.active-saved {
  background: rgba(234, 179, 8, 0.1) !important;
  border-color: #ca8a04 !important;
  color: #a16207 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.2) !important;
}

.capsule-pill.card-save-pill.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
  transform: none !important;
}

[data-theme="light"] .capsule-pill.card-save-pill.active-saved svg,
html[data-theme="light"] .capsule-pill.card-save-pill.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

.capsule-pill.card-save-pill.active-saved:hover,
[data-theme="light"] .capsule-pill.card-save-pill.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(-1.5px) !important;
}

/* Feed card and hero card saved button matching Image 4 */
.card-action-btn.card-save-btn.active-saved,
.card-save-btn.active-saved,
.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill.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;
}

.card-action-btn.card-save-btn.active-saved svg,
.card-save-btn.active-saved svg,
.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved svg,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved svg {
  fill: #facc15 !important;
  stroke: #facc15 !important;
}

.card-action-btn.card-save-btn.active-saved span,
.card-action-btn.card-save-btn.active-saved .save-btn-text,
.card-save-btn.active-saved span,
.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved span {
  color: #facc15 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved,
[data-theme="light"] .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;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved svg,
[data-theme="light"] .card-save-btn.active-saved svg {
  fill: #ca8a04 !important;
  stroke: #ca8a04 !important;
}

[data-theme="light"] .card-action-btn.card-save-btn.active-saved span,
[data-theme="light"] .card-save-btn.active-saved span {
  color: #a16207 !important;
}

/* Overlaid Hero Cards Save Pill */
.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill:hover,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill:hover {
  background: #facc15 !important;
  border-color: #facc15 !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.5) !important;
  transform: translateY(-1.5px) !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill:hover svg,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill:hover svg {
  stroke: #000000 !important;
  color: #000000 !important;
  transform: scale(1.15) !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill:hover span,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill:hover span {
  color: #000000 !important;
  font-weight: 700 !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved {
  background: #facc15 !important;
  border-color: #facc15 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.5) !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved svg,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved svg {
  fill: #000000 !important;
  stroke: #000000 !important;
}

.featured-overlaid-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved span,
.block-main-card .action-capsule-bar .capsule-pill.card-save-pill.active-saved span {
  color: #000000 !important;
  font-weight: 700 !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 THEME TOGGLE: YELLOW KNOB WITH BLACK ICON
   =================================================== */
.theme-toggle .tt-track,
[data-theme="light"] .theme-toggle .tt-track,
[data-theme="dark"] .theme-toggle .tt-track,
[data-theme="light"] .tt-track,
[data-theme="dark"] .tt-track {
  background: #facc15 !important;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.45) !important;
}

.theme-toggle .theme-icon-moon,
.theme-toggle .theme-icon-sun,
.theme-toggle:hover .theme-icon-moon,
.theme-toggle:hover .theme-icon-sun,
[data-theme="light"] .theme-toggle .theme-icon-sun,
[data-theme="dark"] .theme-toggle .theme-icon-moon,
.tt-track svg,
.tt-track .theme-icon-sun,
.tt-track .theme-icon-moon {
  color: #000000 !important;
  stroke: #000000 !important;
  fill: #000000 !important;
}

.theme-toggle:hover {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35) !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;
  }
}

/* ============================================================
   MOBILE SEARCH OVERLAY (Image 2 Spec)
   Full-screen modal overlay matching Image 2: Search input,
   "Recent searches", "You have no recent searches", top close cross
   ============================================================ */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  background: #0b0c10;
  color: #ffffff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
}

[data-theme="light"] .mobile-search-overlay {
  background: #ffffff;
  color: #0f172a;
}

.mobile-search-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

body.mobile-search-open {
  overflow: hidden !important;
}

.mobile-search-overlay-container {
  max-width: 600px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px calc(env(safe-area-inset-bottom, 0px) + 32px) 20px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Top bar with close cross icon (Top of Interface) */
.mobile-search-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 0 14px 0;
}

.mobile-search-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
  padding: 0;
}

.mobile-search-close-btn:hover,
.mobile-search-close-btn:active {
  background: rgba(255, 255, 255, 0.18);
  color: #facc15;
  transform: scale(1.05);
}

[data-theme="light"] .mobile-search-close-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme="light"] .mobile-search-close-btn:hover,
[data-theme="light"] .mobile-search-close-btn:active {
  background: rgba(0, 0, 0, 0.12);
  color: #ca8a04;
}

/* Search input capsule (Image 2) */
.mobile-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  border: 2px solid #ffffff !important;
  background: #0f1015;
  padding: 0 6px 0 48px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .mobile-search-input-wrap {
  background: #ffffff;
  border: 2px solid #0f172a !important;
}

.mobile-search-input-wrap:focus-within {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.2);
}

.mobile-search-lens-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e95a5;
  pointer-events: none;
}

.mobile-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px; /* 16px avoids auto-zoom on mobile Safari */
  font-weight: 500;
  line-height: 1;
  padding: 0 8px 0 0;
  margin: 0;
}

[data-theme="light"] .mobile-search-input {
  color: #0f172a;
}

.mobile-search-input::placeholder {
  color: #ffffff !important;
  opacity: 0.9 !important;
  font-weight: 500;
}

[data-theme="light"] .mobile-search-input::placeholder {
  color: #64748b !important;
}

.mobile-search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin: 0 6px;
  padding: 0;
  flex-shrink: 0;
}

[data-theme="light"] .mobile-search-clear-btn {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

.mobile-search-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #facc15 !important;
  background-color: #facc15 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: -0.01em !important;
  border-radius: 9999px !important;
  padding: 0 20px !important;
  height: 38px !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.45) !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  flex-shrink: 0 !important;
  font-family: inherit !important;
  margin: 0 !important;
}

.mobile-search-submit-btn:hover {
  background: #eab308 !important;
}

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

/* Recent searches section (Image 2) */
.mobile-search-recent-section {
  margin-top: 28px;
}

.mobile-search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-search-section-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

[data-theme="light"] .mobile-search-section-title {
  color: #0f172a;
}

.mobile-search-clear-all-btn {
  background: transparent;
  border: none;
  color: #facc15;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.mobile-search-empty {
  font-size: 15px;
  color: #8e95a5;
  font-weight: 400;
  padding: 6px 0;
  line-height: 1.5;
}

[data-theme="light"] .mobile-search-empty {
  color: #64748b;
}

/* Recent items list */
.mobile-search-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-search-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-search-recent-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-search-recent-item {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .mobile-search-recent-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mobile-search-recent-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .mobile-search-recent-text {
  color: #0f172a;
}

.mobile-search-recent-clock {
  color: #8e95a5;
  display: inline-flex;
  flex-shrink: 0;
}

.mobile-search-recent-delete {
  background: transparent;
  border: none;
  color: #8e95a5;
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search-recent-delete:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

/* Live results list */
.mobile-search-results-section {
  margin-top: 20px;
}

.mobile-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.mobile-search-result-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .mobile-search-result-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mobile-search-result-card:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}

.mobile-search-result-info {
  flex: 1;
  min-width: 0;
}

.mobile-search-result-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .mobile-search-result-title {
  color: #0f172a;
}

.mobile-search-result-meta {
  font-size: 12px;
  color: #8e95a5;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATION BAR (Image 2 Spec)
   ═══════════════════════════════════════════════════════════ */
.toast-notification-box,
.birdpost-toast-bar,
.copy-toast {
  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,
.birdpost-toast-bar.visible,
.copy-toast.visible,
.copy-toast {
  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,
.birdpost-toast-bar .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-bar .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-bar .birdpost-toast-close:hover,
.birdpost-toast-close:hover {
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

/* ===================================================
   Bird of the Week Pill Button (Matching Image 4 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;
}

/* ===================================================
   DESKTOP INTERFACE PRESERVATION & INTEGRITY (Strictly Desktop)
   - Do NOT change desktop header interface
   - No 3-line hamburger menu on desktop
   - All pills visible (Newsletters, Magazine, Shop, Premium)
   - Post button visible
   - Dark/Light Theme toggle visible
   - Standalone search icon visible
   - Balanced search bar sizing
   =================================================== */
@media (min-width: 1025px), (min-width: 821px) and (pointer: fine) {
  /* 1. Strictly hide hamburger menu & drawer top bar on desktop */
  .header-mobile-menu,
  #headerMobileMenu,
  .sidebar-drawer-top-bar {
    display: none !important;
  }

  /* 2. Restore all header pills on desktop */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium {
    display: inline-flex !important;
  }

  /* 3. Restore Post button on desktop */
  .header-post-btn,
  #headerPostBtn,
  .header-right .header-post-btn {
    display: inline-flex !important;
  }

  /* 4. Desktop Theme toggle: hidden to match standard layout */
  .header-right .theme-toggle,
  #themeToggle {
    display: none !important;
  }

  /* 5. Standalone search icon button: hidden on desktop where full search bar is visible */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: none !important;
  }

  /* 6. Desktop Search Bar: prominent, expanding and large (Image 4 spec) */
  .header-inner {
    gap: 12px !important;
  }

  .header-right {
    gap: 8px !important;
    margin-left: 0 !important;
  }

  .header-notifications-wrap,
  #headerNotificationsWrap {
    margin-left: 0 !important;
  }

  .header-search {
    display: flex !important;
    flex: 1 1 740px !important;
    max-width: 840px !important;
    min-width: 240px !important;
    height: 40px !important;
    margin: 0 10px !important;
  }
}

/* ===================================================
   Mobile Portrait Header Specification:
   - Search bar: STRICTLY HIDDEN (no search bar appearing on mobile!)
   - Search icon: VISIBLE
   - Notification icon: VISIBLE
   - Profile avatar: VISIBLE
   - Hamburger menu: VISIBLE before logo
   - Pills & theme toggle: HIDDEN
   =================================================== */
@media (max-width: 768px) and (orientation: portrait),
       (max-width: 600px) {

  /* 1. Strictly hide the search bar on mobile */
  .header-search,
  #headerSearchInput,
  .header-search-btn {
    display: none !important;
  }

  /* 2. Search icon button MUST appear on mobile */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    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 !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: #000000 !important;
  }

  /* 3. Notification icon MUST appear on mobile */
  .header-notifications-wrap,
  #headerNotificationsWrap,
  .header-bell-btn,
  #headerBellBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }

  /* 4. Profile avatar MUST appear on mobile */
  .header-profile-wrap,
  #headerProfileWrap,
  .header-profile-btn,
  #headerProfileBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  /* 5. 3-line hamburger menu button before logo */
  .header-mobile-menu,
  #headerMobileMenu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !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 4px 0 0 !important;
    flex-shrink: 0 !important;
  }

  [data-theme="light"] .header-mobile-menu,
  [data-theme="light"] #headerMobileMenu {
    color: #0f172a !important;
  }

  /* Right-side alignment for icons: search, notif, profile */
  .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Pills and theme toggle hidden in mobile header */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium,
  .header-right .header-post-btn,
  #headerPostBtn,
  .header-right .theme-toggle,
  #themeToggle {
    display: none !important;
  }
}

/* ===================================================
   Mobile and Tablet Rotate Mode Specification (Strictly Landscape):
   1. Remove all pill buttons (Newsletters, Magazine, Shop, Premium)
   2. Remove standalone search icon button
   3. Make search bar bigger and prominent
   4. Keep what's after notifications tab INCLUDING notifications (Notifications, Profile / Login)
   =================================================== */
@media (orientation: landscape) and (max-height: 520px),
       (orientation: landscape) and (max-width: 1024px) and (pointer: coarse) {

  /* 1. Remove all of this (Pills) on rotate mode */
  .header-pill-btn,
  #headerPillNewsletter,
  #headerPillMagazine,
  #headerPillShop,
  #headerPillPremium,
  .header-right .header-pill-btn,
  .header-right .header-post-btn,
  .header-right .header-dropdown {
    display: none !important;
  }

  .header-right .theme-toggle,
  #themeToggle {
    display: none !important;
  }

  /* 3-line / 3-dot mobile & tablet hamburger menu button before logo */
  .header-mobile-menu,
  #headerMobileMenu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !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 4px 0 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
  }

  .header-mobile-menu:hover,
  .header-mobile-menu:active,
  #headerMobileMenu:hover,
  #headerMobileMenu:active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .header-mobile-menu,
  [data-theme="light"] #headerMobileMenu {
    color: #0f172a !important;
  }

  [data-theme="light"] .header-mobile-menu:hover,
  [data-theme="light"] .header-mobile-menu:active,
  [data-theme="light"] #headerMobileMenu:hover,
  [data-theme="light"] #headerMobileMenu:active {
    background: rgba(0, 0, 0, 0.06) !important;
  }

  /* Drawer Top Bar & Close (X) button on Mobile & Tablet */
  .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;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sidebar-drawer-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.6rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 0 2px 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
  }

  .sidebar-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #facc15 !important;
  }

  [data-theme="light"] .sidebar-drawer-top-bar {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    background: rgba(0, 0, 0, 0.02) !important;
  }

  [data-theme="light"] .sidebar-drawer-title span {
    color: #0f172a !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
  }

  [data-theme="light"] .sidebar-drawer-close-btn:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    color: #000000 !important;
  }

  /* 2. Standalone search icon button removed on rotate mode because search bar is right there */
  .header-search-icon-btn,
  #headerSearchIconBtn {
    display: none !important;
  }

  /* 3. Make the search bar bigger */
  .header-search {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 760px !important;
    min-width: 160px !important;
    height: 40px !important;
    margin: 0 14px !important;
    padding: 0 12px 0 16px !important;
    box-sizing: border-box !important;
  }

  .header-search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 0.94rem !important;
  }

  .header-search-btn {
    display: inline-flex !important;
    height: 30px !important;
    padding: 5px 14px !important;
    font-size: 0.85rem !important;
  }

  /* 4. 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;
  }

  .header-notifications-wrap,
  #headerNotificationsWrap {
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
    flex-shrink: 0 !important;
  }

  .header-profile-wrap,
  #headerProfileWrap {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .header-login-btn,
  #headerLoginBtn {
    display: inline-flex !important;
    flex-shrink: 0 !important;
  }
}

/* ===================================================
   LIGHT MODE NOTIFICATION BELL: CRISP DARK SLATE (#0f172a)
   =================================================== */
[data-theme="light"] .header-bell-btn,
[data-theme="light"] #headerBellBtn,
html[data-theme="light"] .header-bell-btn,
html[data-theme="light"] #headerBellBtn,
body.bp-theme-light .header-bell-btn {
  color: #0f172a !important;
}

[data-theme="light"] .header-bell-icon,
[data-theme="light"] .header-bell-btn .header-bell-icon,
[data-theme="light"] #headerBellBtn svg,
[data-theme="light"] .header-bell-btn svg,
html[data-theme="light"] .header-bell-icon,
html[data-theme="light"] .header-bell-btn .header-bell-icon,
html[data-theme="light"] #headerBellBtn svg,
html[data-theme="light"] .header-bell-btn svg,
body.bp-theme-light .header-bell-icon {
  color: #0f172a !important;
  stroke: #0f172a !important;
}

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

[data-theme="light"] .header-bell-btn:hover .header-bell-icon,
[data-theme="light"] #headerBellBtn:hover svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* ===================================================
   FEED CARD ACTIONS: SHARE BUTTON PLACED AFTER SAVE (ROW 2)
   - Pill buttons: [ ☕ Coffee ] [ 🔖 Save ] [ ↗ Share ]
   - Fits side-by-side cleanly without dropping Share to Row 3
   =================================================== */
.card-action-bar .card-action-left,
.news-card .card-action-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.card-action-btn.card-coffee-btn,
.card-action-btn.coffee-btn,
.card-action-btn.card-save-btn,
.card-action-btn.save-btn,
.card-save-btn,
.card-action-btn.share-trigger-btn,
.share-trigger-btn,
.card-action-btn.card-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9999px !important;
  padding: 0 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  height: 36px !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.card-share-container {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 600px) {
  .card-action-bar .card-action-left,
  .news-card .card-action-left {
    gap: 6px !important;
  }

  .card-vote-pill,
  .card-action-btn.card-comments-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.82rem !important;
    gap: 5px !important;
  }

  .card-action-btn.card-coffee-btn,
  .card-action-btn.card-save-btn,
  .card-save-btn,
  .card-action-btn.share-trigger-btn,
  .share-trigger-btn,
  .card-action-btn.card-share-btn {
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.80rem !important;
    gap: 5px !important;
  }
}

/* Card Top Banner & Badge styles */
.card-top-badges-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card-top-badges-container[style*="display: none"],
.card-top-badges-container[style*="display:none"] {
  display: none !important;
}

.card-top-sponsored-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #9ca3af;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 100%;
}

.card-top-sponsored-banner .card-sponsored-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #facc15 !important;
}

.card-top-sponsored-banner .card-sponsored-by-name {
  color: #facc15 !important;
  font-weight: 700 !important;
}

.card-top-sponsored-banner .card-sponsored-info-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem !important;
  color: #9ca3af !important;
}

.card-top-sponsored-banner .card-sponsored-domain {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #9ca3af !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.card-top-breaking-banner,
.card-top-factchecked-banner {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.card-top-breaking-banner .badge-breaking-pill,
.badge-breaking-pill,
.badge-breaking {
  background: #facc15 !important;
  color: #000000 !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.cat-pill-social,
.cat-pill-social-media,
.trending-feed-cat-pill.cat-pill-social-media,
.trending-cat-pill.cat-pill-social-media {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 850 !important;
}

.sidebar-ad-verified-badge svg {
  fill: #facc15 !important;
}

.card-top-factchecked-banner .badge-factchecked-pill,
.badge-factchecked-pill,
.badge-factchecked {
  background: #10b981 !important;
  color: #ffffff !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  text-transform: uppercase !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.cat-pill-social,
.cat-pill-social-media,
.trending-feed-cat-pill.cat-pill-social-media,
.trending-cat-pill.cat-pill-social-media {
  background: #facc15 !important;
  color: #000000 !important;
  font-weight: 850 !important;
}

.sidebar-ad-verified-badge svg {
  fill: #facc15 !important;
}
