/* =================================================================
   WASANNI MOBILE-FIRST DESIGN SYSTEM (CSS VARIABLES & GLOBAL RESETS)
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Light Mode Default */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-input: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-accent: #10b981;
  --brand-danger: #ef4444;
  --brand-warning: #f59e0b;
  --brand-gold: #fbbf24;
  
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-focus: rgba(37, 99, 235, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.06), 0 2px 6px -2px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 24px -4px rgba(0,0,0,0.1), 0 4px 10px -3px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 8px -1px rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.04);

  /* Team dynamic accent */
  --team-color: #2563eb;
  --team-glow: rgba(37, 99, 235, 0.25);
  --faction-color: var(--team-color);
  --faction-glow: var(--team-glow);
  --madrid-text: #0f172a;
  --madrid-glow: rgba(15, 23, 42, 0.25);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-height: 54px;
  --bottom-nav-height: 64px;
}

/* Dark Mode (Class or attribute on <html>) */
html.dark-mode,
html[data-theme="dark"],
[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-input: #111827;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(96, 165, 250, 0.4);
  
  --glass-bg: rgba(17, 24, 39, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 18px -2px rgba(0,0,0,0.45);
  --shadow-lg: 0 14px 32px -4px rgba(0,0,0,0.55);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.4), 0 1px 3px 0 rgba(0, 0, 0, 0.25);

  --madrid-text: #ffffff;
  --madrid-glow: rgba(255, 255, 255, 0.35);
}

/* Header theme icon auto-toggle */
html.dark-mode .theme-icon-dark,
html[data-theme="dark"] .theme-icon-dark {
  display: inline-flex !important;
}
html.dark-mode .theme-icon-light,
html[data-theme="dark"] .theme-icon-light {
  display: none !important;
}
html:not(.dark-mode):not([data-theme="dark"]) .theme-icon-dark {
  display: none !important;
}
html:not(.dark-mode):not([data-theme="dark"]) .theme-icon-light {
  display: inline-flex !important;
}

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

html {
  font-family: var(--font-sans);
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 20px);
  -webkit-font-smoothing: antialiased;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Header (Sticky, 54px) */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2563eb, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Wallet Pills */
.wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.wallet-pill.diamonds {
  color: #60a5fa;
}

.wallet-pill.naira {
  color: #34d399;
}

/* User Avatar with Dynamic Glowing Faction Border */
.avatar-ring {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  padding: 2px;
  background: var(--faction-color);
  box-shadow: 0 0 12px var(--faction-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-ring:hover {
  transform: scale(1.05);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
}

.avatar-ring.sm { width: 30px; height: 30px; }
.avatar-ring.lg { width: 56px; height: 56px; }
.avatar-ring.xl { width: 84px; height: 84px; }

/* Premium Shiny Bottom Navigation Dock (Mobile Only) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  z-index: 1000;
}

[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.bottom-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-tab svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-tab:active {
  transform: scale(0.92);
}

.bottom-tab.active {
  color: #60a5fa;
  font-weight: 800;
}

.bottom-tab.active .bottom-tab-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(16, 185, 129, 0.16));
  box-shadow: 0 2px 14px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.bottom-tab.active svg {
  stroke: #60a5fa;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.4));
}

.bottom-tab .badge {
  position: absolute;
  top: 4px;
  right: 25%;
  background: var(--brand-danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 1px 5px;
}

/* Desktop App Container */
.app-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.desktop-sidebar {
  display: none;
  width: 260px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .desktop-sidebar { display: flex; }
  .bottom-nav { display: none; }
  body { padding-bottom: 24px; }
}

.main-feed-area {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Cards & Surface Components (Premium Floating Elevation) */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-padding {
  padding: 20px;
}

/* Post Card - Elevated Sports Community Aesthetic */
.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: left !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

html.dark-mode .post-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%), var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

html.dark-mode .post-card:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 15px rgba(37, 99, 235, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-align: left !important;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left !important;
}

.post-user-names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left !important;
}

.post-username {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: left !important;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left !important;
}

.post-body {
  padding: 2px 18px 16px;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-line;
  word-break: break-word;
  text-align: left !important;
  text-align-last: left !important;
  direction: ltr;
}

/* Edge-to-Edge Image with No Awkward Whitespace */
.post-media-container {
  width: 100%;
  max-height: 520px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-media-container img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Reaction Bar */
/* Reaction Bar & Micro-Animations (3 Vibrant Live Reactions) */
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
  box-sizing: border-box;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  color: var(--text-secondary);
}

.reaction-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.reaction-btn.pulse-pop {
  animation: reactionPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reactionPop {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* 1. Fire Reaction (Vibrant Fiery Orange) */
.reaction-btn.reaction-fire {
  color: #ea580c;
}
.reaction-btn.reaction-fire svg {
  color: #f97316;
  filter: drop-shadow(0 0 3px rgba(249, 115, 22, 0.4));
}
.reaction-btn.reaction-fire.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 88, 12, 0.1));
  border-color: #f97316;
  color: #f97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.35);
}

/* 2. W Reaction (Championship Gold) */
.reaction-btn.reaction-w {
  color: #ca8a04;
}
.reaction-btn.reaction-w svg {
  color: #eab308;
  filter: drop-shadow(0 0 3px rgba(234, 179, 8, 0.4));
}
.reaction-btn.reaction-w .reaction-label {
  font-weight: 900;
  font-size: 0.88rem;
  color: #eab308;
}
.reaction-btn.reaction-w.active {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(202, 138, 4, 0.1));
  border-color: #eab308;
  color: #eab308;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}

/* 3. Heart Reaction (Radiant Pink) */
.reaction-btn.reaction-heart {
  color: #db2777;
}
.reaction-btn.reaction-heart svg {
  color: #ec4899;
  filter: drop-shadow(0 0 3px rgba(236, 72, 153, 0.4));
}
.reaction-btn.reaction-heart.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(219, 39, 119, 0.1));
  border-color: #ec4899;
  color: #ec4899;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.35);
}

/* Quick News Horizontal Cards - Elevated Sports Graphics */
.news-horizontal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 14px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

html.dark-mode .news-horizontal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%), var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
}

html.dark-mode .news-horizontal-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.5);
}

.news-thumb-wrapper {
  position: relative;
  width: 130px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.news-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-horizontal-card:hover .news-thumb-wrapper img {
  transform: scale(1.08);
}

.news-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.news-type-badge.video { background: rgba(239, 68, 68, 0.92); }
.news-type-badge.audio { background: rgba(139, 92, 246, 0.92); }
.news-type-badge.text { background: rgba(14, 165, 233, 0.92); }

.news-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.news-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.38;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.news-horizontal-card:hover .news-title {
  color: var(--brand-primary);
}

.news-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .news-horizontal-card {
    padding: 10px 12px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 10px;
  }
  .news-thumb-wrapper {
    width: 96px;
    height: 78px;
    border-radius: 10px;
  }
  .news-title {
    font-size: 0.88rem;
    line-height: 1.32;
    margin-bottom: 4px;
  }
  .news-meta {
    font-size: 0.72rem;
    gap: 8px;
  }
}

/* Standings Table */
.standings-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.standings-table-wrap::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.standings-table th, .standings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.standings-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-table tr:last-child td {
  border-bottom: none;
}

/* Buttons & Inputs */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.input-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

/* Video Responsive Wrapper */
.video-responsive-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-responsive-wrapper iframe, .video-responsive-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Hamburger Slide-out Menu */
.side-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 100002;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.side-drawer.open {
  left: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

/* =================================================================
   TITLE CASE CAPITALIZATION & TYPOGRAPHY SYSTEM
   ================================================================= */
h1, h2, h3, h4, h5, h6,
.card-title,
.news-title,
.btn,
.btn-primary,
.btn-secondary,
.bottom-tab span,
.drawer-nav-item,
.post-username,
.news-type-badge,
.wallet-pill,
.badge,
.post-meta span {
  text-transform: capitalize;
}

/* =================================================================
   SMOOTH KEYFRAME ANIMATIONS & FLOATING LIFTS
   ================================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px var(--team-glow, rgba(37, 99, 235, 0.25));
  }
  50% {
    box-shadow: 0 0 24px var(--team-glow, rgba(37, 99, 235, 0.5));
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card, .post-card, .news-horizontal-card {
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* =================================================================
   UNIQUE STADIUM NEWS MEDIA PLAYER (VIDEO & AUDIO EQUALIZER)
   ================================================================= */
.stadium-player-frame {
  position: relative;
  background: #030712;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 22px;
}

.stadium-player-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #3b82f6, #10b981);
  z-index: 5;
}

/* Custom Video Overlay Play Button */
.custom-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-video-overlay:hover {
  background: rgba(0, 0, 0, 0.25);
}

.custom-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.85);
}

/* Audio Broadcast Player with Animated Soundwave Equalizer */
.audio-broadcast-player {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(17, 24, 39, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 24px;
  box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
  margin-bottom: 22px;
}

.equalizer-wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  padding: 0 4px;
}

.equalizer-bar {
  width: 4px;
  background: linear-gradient(to top, #8b5cf6, #c084fc);
  border-radius: 2px;
  animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.equalizer-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 75%; animation-delay: 0.25s; }
.equalizer-bar:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.equalizer-bar:nth-child(4) { height: 50%; animation-delay: 0.15s; }
.equalizer-bar:nth-child(5) { height: 90%; animation-delay: 0.35s; }
.equalizer-bar:nth-child(6) { height: 60%; animation-delay: 0.2s; }
.equalizer-bar:nth-child(7) { height: 40%; animation-delay: 0.45s; }

@keyframes eqBounce {
  0% { transform: scaleY(0.3); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* =================================================================
   SOCIAL SHARE ICONS & BUTTONS
   ================================================================= */
.social-share-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 18px 0;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.social-share-container::-webkit-scrollbar {
  display: none;
}

.social-share-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: capitalize;
  margin-right: 4px;
  white-space: nowrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.social-share-btn.whatsapp { background: #25D366; }
.social-share-btn.twitter { background: #000000; }
.social-share-btn.facebook { background: #1877F2; }
.social-share-btn.telegram { background: #229ED9; }
.social-share-btn.copy { background: #475569; }

@media (max-width: 640px) {
  .social-share-container {
    gap: 6px;
    padding: 8px 10px;
    justify-content: flex-start;
  }
  .social-share-label {
    display: none;
  }
  .social-share-btn:not(.copy) span {
    display: none;
  }
  .social-share-btn {
    padding: 6px 8px;
  }
  .social-share-btn.copy {
    padding: 6px 10px;
  }
  .social-share-btn.copy .copy-text {
    display: inline;
    font-size: 0.74rem;
  }
}

/* =================================================================
   WHATSAPP-STYLE LIVE CHAT BUBBLES
   ================================================================= */
.chat-bubble-row {
  display: flex;
  margin-bottom: 4px;
  gap: 8px;
}
.wa-bubble-wrap {
  max-width: 78%;
  display: flex;
  flex-direction: column;
}
.wa-bubble {
  display: inline-block;
  position: relative;
  padding: 6px 10px 5px 10px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.88rem;
}
.wa-bubble-me {
  background: var(--brand-primary);
  color: #ffffff;
  border-top-right-radius: 2px;
  align-self: flex-end;
}
.wa-bubble-them {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-top-left-radius: 2px;
  align-self: flex-start;
}
.wa-msg-text {
  display: inline;
}
.wa-msg-meta {
  font-size: 0.62rem;
  float: right;
  margin-left: 8px;
  margin-top: 4px;
  opacity: 0.75;
  white-space: nowrap;
  user-select: none;
}

/* =================================================================
   FACEBOOK-STYLE USER PROFILE ARCHITECTURE
   ================================================================= */
.fb-profile-container {
  max-width: 940px;
  margin: 0 auto;
}

.fb-cover-banner {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .fb-cover-banner { height: 160px; }
}

.fb-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.fb-profile-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-top: -60px;
  margin-bottom: 24px;
  padding: 0 24px 32px;
  min-height: 140px;
  position: relative;
  z-index: 10;
}

.fb-profile-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.fb-avatar-wrapper {
  position: relative;
  margin-top: -45px;
}

.fb-profile-names {
  flex: 1;
  min-width: 200px;
  padding-bottom: 6px;
}

.fb-profile-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fb-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .fb-profile-header-card {
    padding: 0 16px 20px;
    margin-top: -45px;
  }
  .fb-profile-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .fb-avatar-wrapper {
    margin-top: -50px;
  }
  .fb-profile-names {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .fb-profile-title {
    justify-content: center;
  }
  .fb-profile-actions {
    justify-content: center;
    width: 100%;
  }
}

.fb-intro-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.fb-intro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-transform: capitalize;
}

.fb-intro-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.fb-intro-item strong {
  font-weight: 800;
}

/* =================================================================
   TEAM PROFILE & CLUB HUB ARCHITECTURE (DESKTOP & MOBILE-FIRST)
   ================================================================= */
.team-cover-banner {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: #0b1120;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .team-cover-banner {
    height: 150px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}

.team-cover-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.95) 0%, rgba(11, 17, 32, 0.45) 55%, transparent 100%);
}

.team-cover-radial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--team-glow, rgba(37,99,235,0.35)) 0%, transparent 70%);
  pointer-events: none;
}

.team-profile-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 0 24px 24px;
  position: relative;
  z-index: 10;
  margin-bottom: 22px;
}

.team-profile-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.team-crest-wrapper {
  position: relative;
  margin-top: -55px;
  flex-shrink: 0;
}

.team-crest-avatar {
  width: 105px;
  height: 105px;
  border-radius: 22px;
  background: var(--bg-surface-elevated);
  padding: 8px;
  border: 3px solid var(--team-color, var(--brand-primary));
  box-shadow: 0 0 25px var(--team-glow, rgba(37, 99, 235, 0.35)), 0 10px 25px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-crest-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-profile-names {
  flex: 1;
  min-width: 220px;
  padding-bottom: 4px;
}

.team-profile-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.team-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  flex-wrap: wrap;
}

/* Quick Stats Showcase Grid - Each metric in its own separate box card */
.team-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  background: transparent;
  padding: 0;
  border: none;
  margin-bottom: 20px;
}

.team-stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.team-stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html.dark-mode .team-stat-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%), var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html.dark-mode .team-stat-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.team-stat-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.team-stat-value {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Sleek Modern Profile Tab Bar (Pill / Segmented Track) */
.team-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.08);
}
.team-nav-tabs::-webkit-scrollbar {
  display: none;
}

.team-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
}

.team-nav-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

html:not(.dark-mode) .team-nav-tab:hover {
  background: rgba(0, 0, 0, 0.04);
}

.team-nav-tab.active {
  background: var(--team-color, var(--brand-primary));
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--team-glow, rgba(37, 99, 235, 0.35));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.team-nav-tab .tab-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.2s ease;
  line-height: 1.2;
}

.team-nav-tab:hover .tab-badge {
  color: var(--text-primary);
}

.team-nav-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

/* Light Mode Theme refinement for segmented tab track */
html:not(.dark-mode) .team-nav-tabs {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
html:not(.dark-mode) .team-nav-tabs[style*="#6CABDD" i] .team-nav-tab.active,
html:not(.dark-mode) .team-nav-tabs[style*="#6cabdd" i] .team-nav-tab.active {
  background: #0284c7 !important;
}

/* =================================================================
   CLUB LOCKER ROOM NEXT FIXTURE & LIVE BANNER (LIGHT & DARK THEMES)
   ================================================================= */
.team-fixture-card {
  padding: 18px 22px;
  margin-bottom: 22px;
  background: var(--bg-surface);
  background-image: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, var(--bg-surface) 60%, var(--bg-surface-elevated) 100%);
  border: 1.5px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.team-fixture-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.team-fixture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.team-fixture-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37, 99, 235, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-fixture-tournament-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}
.team-fixture-tournament-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.team-fixture-crest-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-fixture-vs {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.team-countdown-box {
  text-align: center;
  min-width: 46px;
  padding: 6px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.team-countdown-digit {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--brand-primary);
  font-family: monospace;
}

.team-countdown-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.team-countdown-colon {
  font-weight: 900;
  color: var(--text-muted);
}

/* Dark Mode Theme Overrides for Locker Room Fixture Card */
html.dark-mode .team-fixture-card,
html[data-theme="dark"] .team-fixture-card,
[data-theme="dark"] .team-fixture-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

html.dark-mode .team-fixture-card-glow,
html[data-theme="dark"] .team-fixture-card-glow,
[data-theme="dark"] .team-fixture-card-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

html.dark-mode .team-fixture-badge,
html[data-theme="dark"] .team-fixture-badge,
[data-theme="dark"] .team-fixture-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .team-fixture-tournament-link,
html[data-theme="dark"] .team-fixture-tournament-link,
[data-theme="dark"] .team-fixture-tournament-link {
  color: #cbd5e1;
}
html.dark-mode .team-fixture-tournament-link:hover,
html[data-theme="dark"] .team-fixture-tournament-link:hover,
[data-theme="dark"] .team-fixture-tournament-link:hover {
  color: #38bdf8;
}

html.dark-mode .team-fixture-crest-box,
html[data-theme="dark"] .team-fixture-crest-box,
[data-theme="dark"] .team-fixture-crest-box {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .team-countdown-box,
html[data-theme="dark"] .team-countdown-box,
[data-theme="dark"] .team-countdown-box {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

html.dark-mode .team-countdown-digit,
html[data-theme="dark"] .team-countdown-digit,
[data-theme="dark"] .team-countdown-digit {
  color: #38bdf8;
}

html.dark-mode .team-countdown-label,
html[data-theme="dark"] .team-countdown-label,
[data-theme="dark"] .team-countdown-label {
  color: #94a3b8;
}

html.dark-mode .team-countdown-colon,
html[data-theme="dark"] .team-countdown-colon,
[data-theme="dark"] .team-countdown-colon {
  color: #64748b;
}

/* Live Match Pulse Banner (Light / Dark Adaptive) */
.team-live-pulse-banner {
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-surface) 100%);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-radius: var(--radius-lg);
}

html.dark-mode .team-live-pulse-banner,
html[data-theme="dark"] .team-live-pulse-banner,
[data-theme="dark"] .team-live-pulse-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

/* Fixture Layout & Mobile Structure */
.team-fixture-header-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-fixture-kickoff {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.team-fixture-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.team-fixture-matchup {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.team-fixture-club {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-fixture-club-info {
  min-width: 0;
}

.team-fixture-club-name {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-fixture-club-side {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.team-fixture-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-fixture-cta {
  display: flex;
  align-items: center;
}

.team-fixture-cta-btn {
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Mobile Responsiveness (Screen <= 640px) */
@media (max-width: 640px) {
  .team-fixture-card {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }
  .team-fixture-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .team-fixture-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .team-fixture-kickoff {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px dashed var(--border-subtle);
  }
  .team-fixture-body {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .team-fixture-matchup {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .team-fixture-club {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .team-fixture-club.away {
    flex-direction: row-reverse;
    text-align: right;
  }
  .team-fixture-crest-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .team-fixture-crest-box img {
    width: 28px;
    height: 28px;
  }
  .team-fixture-club-name {
    font-size: 0.88rem;
  }
  .team-fixture-vs {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }
  .team-fixture-countdown {
    width: 100%;
    justify-content: center;
    gap: 6px;
    padding: 2px 0;
  }
  .team-countdown-box {
    flex: 1;
    max-width: 68px;
    min-width: 42px;
    padding: 6px 2px;
  }
  .team-countdown-digit {
    font-size: 1.05rem;
  }
  .team-countdown-label {
    font-size: 0.58rem;
  }
  .team-fixture-cta {
    width: 100%;
  }
  .team-fixture-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 0.88rem;
  }
  .team-live-pulse-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }
  .team-live-pulse-banner a {
    width: 100%;
    justify-content: center;
  }
}

/* Extra small mobile screens (Screen <= 380px) */
@media (max-width: 380px) {
  .team-fixture-card {
    padding: 12px;
  }
  .team-fixture-crest-box {
    width: 34px;
    height: 34px;
  }
  .team-fixture-crest-box img {
    width: 24px;
    height: 24px;
  }
  .team-fixture-club-name {
    font-size: 0.8rem;
  }
  .team-countdown-box {
    padding: 5px 1px;
  }
  .team-countdown-digit {
    font-size: 0.95rem;
  }
}

.team-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.team-role-tag {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-formation-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-muted);
}

.team-spotlight-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Mobile Profile Adaptations */
@media (max-width: 640px) {
  .team-profile-header-card {
    padding: 0 14px 20px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .team-profile-top-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .team-crest-wrapper {
    margin-top: -45px;
  }
  .team-crest-avatar {
    width: 90px;
    height: 90px;
    border-radius: 18px;
  }
  .team-profile-names {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .team-profile-title {
    justify-content: center;
    font-size: 1.45rem;
  }
  .team-meta-pills {
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px auto 2px;
  }
  .team-spotlight-row {
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  .team-profile-actions {
    justify-content: center;
    width: 100%;
    gap: 8px;
  }
  .team-profile-actions button,
  .team-profile-actions a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .team-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
  }
  .team-stat-item {
    padding: 10px 12px;
  }
  .team-stat-value {
    font-size: 1rem;
  }
  .match-action-btn .match-action-label {
    display: none;
  }
  .match-action-btn {
    padding: 6px 10px !important;
    min-width: 36px;
    justify-content: center;
    border-radius: var(--radius-full);
  }
  .match-scoreline-wrap {
    gap: 5px !important;
  }
  .match-scoreline-badge {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }
  .match-scoreline-val {
    font-size: 0.92rem !important;
  }
  .team-nav-tabs {
    padding: 4px;
    gap: 4px;
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .team-nav-tab {
    padding: 8px 13px;
    font-size: 0.8rem;
    gap: 6px;
    border-radius: 8px;
  }
  .team-nav-tab .tab-badge {
    font-size: 0.68rem;
    padding: 1px 6px;
  }
}

/* =================================================================
   REAL MADRID CONTRAST ENHANCEMENT (THEME SENSITIVE TEXT & GLOW)
   ================================================================= */
.team-link-white,
.team-link-madrid,
.team-text-madrid,
.team-link[style*="#FFFFFF"],
.team-link[style*="#ffffff"],
[data-team-color="#FFFFFF"],
[data-team-color="#ffffff"] {
  color: var(--madrid-text) !important;
}

.avatar-ring[style*="#FFFFFF"],
.avatar-ring[style*="#ffffff"] {
  --team-color: var(--madrid-text) !important;
  --team-glow: var(--madrid-glow) !important;
  --faction-color: var(--madrid-text) !important;
  --faction-glow: var(--madrid-glow) !important;
}

/* =================================================================
   ELECTION & VOTING HEADER CARD (RESPONSIVE LIGHT & DARK THEME)
   ================================================================= */
.election-header-card {
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.election-header-card.registration-phase {
  border-color: rgba(245, 158, 11, 0.45);
}

.election-header-card.voting-phase {
  border-color: rgba(59, 130, 246, 0.45);
}

.election-card-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.election-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 10px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.election-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.election-inner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-sizing: border-box;
  margin-top: 14px;
}

.election-club-name {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.2px;
}

/* Dark Mode Theme */
html.dark-mode .election-header-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
}
html.dark-mode .election-header-card .election-card-title {
  color: #ffffff;
}
html.dark-mode .election-header-card .election-timer-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: #94a3b8;
}
html.dark-mode .election-header-card .election-timer-badge strong {
  color: #ffffff;
}
html.dark-mode .election-header-card .election-inner-box {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .election-header-card .election-club-name {
  color: #ffffff;
}

/* Light Mode Theme */
html:not(.dark-mode) .election-header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
html:not(.dark-mode) .election-header-card.voting-phase {
  border-color: rgba(59, 130, 246, 0.35);
}
html:not(.dark-mode) .election-header-card .election-card-title {
  color: #0f172a;
}
html:not(.dark-mode) .election-header-card .election-timer-badge {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}
html:not(.dark-mode) .election-header-card .election-timer-badge strong {
  color: #0f172a;
}
html:not(.dark-mode) .election-header-card .election-inner-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}
html:not(.dark-mode) .election-header-card .election-club-name {
  color: #0f172a;
}

/* Manchester City & Light Color Legibility in Light Mode */
html:not(.dark-mode) .team-link[style*="#6CABDD" i],
html:not(.dark-mode) .team-link[style*="#6cabdd" i],
html:not(.dark-mode) .team-link[href*="id=2"] {
  color: #0369a1 !important;
}

/* Quick Back Button on News Card */
.btn-news-quick-back {
  background: var(--surface-card, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-news-quick-back:hover {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary) !important;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
html:not(.dark-mode) .btn-news-quick-back {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html:not(.dark-mode) .btn-news-quick-back:hover {
  background: var(--brand-primary) !important;
  color: #ffffff !important;
  border-color: var(--brand-primary) !important;
}

/* =================================================================
   CONSISTENT TABULAR FIXTURE ROW ALIGNMENT (DESKTOP & MOBILE)
   Prevents scoreline and action icons from jumping due to team name lengths
   ================================================================= */
.team-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 165px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.team-match-row:hover {
  border-color: var(--border-default);
}
.team-match-col-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team-match-crest {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-match-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.team-match-meta {
  min-width: 0;
  overflow: hidden;
}
.team-match-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-match-name {
  font-weight: 900;
  font-size: 1.05rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-match-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-match-col-score {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.team-match-col-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

@media (max-width: 768px) {
  .team-match-row {
    grid-template-columns: minmax(0, 1fr) 76px 36px;
    gap: 8px;
    padding: 10px 10px;
  }
  .team-match-crest {
    width: 32px;
    height: 32px;
    padding: 2px;
    border-radius: 8px;
  }
  .team-match-name {
    font-size: 0.88rem;
  }
  .team-match-sub {
    font-size: 0.65rem;
  }
  .team-match-date {
    font-size: 0.68rem;
  }
}

@keyframes floatTrophy {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =================================================================
   SEARCH BAR CONTRAST (CLEAN WHITE LIGHT MODE & SLEEK DARK MODE)
   ================================================================= */
.wasanni-search-input,
.header-search-form input,
#mobileHeaderSearchDrawer input,
#mobileHeaderSearchInput,
.search-page-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
  border-left-width: 1px !important;
  border-right-width: 1px !important;
  background-color: var(--bg-input, #ffffff) !important;
  background: var(--bg-input, #ffffff) !important;
  color: var(--text-primary, #0f172a) !important;
  border-color: var(--border-subtle, rgba(0, 0, 0, 0.12)) !important;
  border-top-color: var(--border-subtle, rgba(0, 0, 0, 0.12)) !important;
  transition: all 0.2s ease !important;
}

#mobileHeaderSearchDrawer {
  border-top: none !important;
}

.wasanni-search-input::placeholder,
.header-search-form input::placeholder,
#mobileHeaderSearchDrawer input::placeholder,
#mobileHeaderSearchInput::placeholder,
.search-page-input::placeholder {
  color: #94a3b8 !important;
}

.wasanni-search-input:focus,
.header-search-form input:focus,
#mobileHeaderSearchDrawer input:focus,
#mobileHeaderSearchInput:focus,
.search-page-input:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  -webkit-box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* Explicit Light Mode Search Bar */
html:not(.dark-mode):not([data-theme="dark"]) .wasanni-search-input,
html:not(.dark-mode):not([data-theme="dark"]) .header-search-form input,
html:not(.dark-mode):not([data-theme="dark"]) #mobileHeaderSearchDrawer input,
html:not(.dark-mode):not([data-theme="dark"]) #mobileHeaderSearchInput,
html:not(.dark-mode):not([data-theme="dark"]) .search-page-input {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  border-top-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Dark Mode Search Bar - Deep Solid Background & Clean Translucent Border (No Black Line) */
html.dark-mode .wasanni-search-input,
html.dark-mode .header-search-form input,
html.dark-mode #mobileHeaderSearchDrawer input,
html.dark-mode #mobileHeaderSearchInput,
html.dark-mode .search-page-input,
html[data-theme="dark"] .wasanni-search-input,
html[data-theme="dark"] .header-search-form input,
html[data-theme="dark"] #mobileHeaderSearchDrawer input,
html[data-theme="dark"] #mobileHeaderSearchInput,
html[data-theme="dark"] .search-page-input,
[data-theme="dark"] .wasanni-search-input,
[data-theme="dark"] .header-search-form input,
[data-theme="dark"] #mobileHeaderSearchDrawer input,
[data-theme="dark"] #mobileHeaderSearchInput,
[data-theme="dark"] .search-page-input,
body.dark-mode .wasanni-search-input,
body.dark-mode .header-search-form input,
body.dark-mode #mobileHeaderSearchDrawer input,
body.dark-mode #mobileHeaderSearchInput,
body.dark-mode .search-page-input {
  background-color: #111827 !important;
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

html.dark-mode .wasanni-search-input::placeholder,
html.dark-mode .header-search-form input::placeholder,
html.dark-mode #mobileHeaderSearchDrawer input::placeholder,
html.dark-mode #mobileHeaderSearchInput::placeholder,
html.dark-mode .search-page-input::placeholder,
html[data-theme="dark"] .wasanni-search-input::placeholder,
html[data-theme="dark"] .header-search-form input::placeholder,
html[data-theme="dark"] #mobileHeaderSearchDrawer input::placeholder,
html[data-theme="dark"] #mobileHeaderSearchInput::placeholder,
html[data-theme="dark"] .search-page-input::placeholder,
[data-theme="dark"] .wasanni-search-input::placeholder,
[data-theme="dark"] .header-search-form input::placeholder,
[data-theme="dark"] #mobileHeaderSearchDrawer input::placeholder,
[data-theme="dark"] #mobileHeaderSearchInput::placeholder,
[data-theme="dark"] .search-page-input::placeholder {
  color: #64748b !important;
}

/* System Dark Mode Fallback */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .wasanni-search-input,
  html:not([data-theme="light"]) .header-search-form input,
  html:not([data-theme="light"]) #mobileHeaderSearchDrawer input,
  html:not([data-theme="light"]) #mobileHeaderSearchInput,
  html:not([data-theme="light"]) .search-page-input {
    background-color: #111827 !important;
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    border-top-color: rgba(255, 255, 255, 0.16) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }
}

/* =================================================================
   UNIVERSAL INVISIBLE HORIZONTAL & FLUID SCROLLERS
   ================================================================= */
.hide-scrollbar,
.news-categories-bar,
.feed-stories-scroller,
.search-nav-tabs,
.segmented-control,
.team-nav-tabs,
[style*="overflow-x: auto"],
[style*="overflow-x:auto"] {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.hide-scrollbar::-webkit-scrollbar,
.news-categories-bar::-webkit-scrollbar,
.feed-stories-scroller::-webkit-scrollbar,
.search-nav-tabs::-webkit-scrollbar,
.segmented-control::-webkit-scrollbar,
.team-nav-tabs::-webkit-scrollbar,
[style*="overflow-x: auto"]::-webkit-scrollbar,
[style*="overflow-x:auto"]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* =================================================================
   MOBILE AVATAR SIZING & SLEEK TAB/PILL HEIGHT REDUCTION
   ================================================================= */
.post-header .avatar-ring,
.post-card .avatar-ring,
.post-user-info .avatar-ring {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  /* Mobile post avatar proportioned for two lines */
  .post-header .avatar-ring,
  .post-card .avatar-ring,
  .post-user-info .avatar-ring {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
  }

  /* Compact Sleek Tab Track & Pills */
  .team-nav-tabs {
    padding: 3px !important;
    gap: 3px !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
  }
  .team-nav-tab {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
    gap: 5px !important;
    border-radius: 7px !important;
    min-height: 28px !important;
  }
  .team-nav-tab svg {
    width: 14px !important;
    height: 14px !important;
  }
  .team-nav-tab .tab-badge {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
  }

  /* Subtab buttons (Match Results, Upcoming Fixtures, etc.) */
  .subtab-btn {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    gap: 5px !important;
    min-height: 26px !important;
  }
  .subtab-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* Compact Segmented Controls, Pills & Auth Tabs */
  .segmented-control button,
  .segmented-control a,
  .tab-pill,
  .nav-pill,
  .auth-tab-btn {
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
  }

  /* Compact Responsive Mobile Header (Zero Overflow & No Scroll) */
  .main-header {
    padding: 0 8px !important;
    overflow: visible !important;
  }
  .header-inner {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
    gap: 6px !important;
  }
  .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
  }
  .header-left .brand-logo img {
    height: 28px !important;
  }
  .brand-logo .brand-text {
    display: none !important;
  }
  .mobile-search-trigger-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mobile-search-trigger-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  #headerNotifBtn {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }
  #headerNotifBtn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .wallet-pill {
    padding: 3px 6px !important;
    font-size: 0.74rem !important;
    gap: 2px !important;
    line-height: 1.1 !important;
    flex-shrink: 0 !important;
    border-radius: 9999px !important;
  }
  .wallet-pill svg {
    width: 12px !important;
    height: 12px !important;
  }
  .header-right .avatar-ring,
  .header-right .avatar-ring.sm {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  /* Fixed Non-Scrolling Reaction Bar & Bookmark on Mobile */
  .reaction-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .reaction-btn {
    padding: 5px 8px !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
    border-radius: var(--radius-full) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .reaction-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }

  .reaction-btn .reaction-count {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
  }

  .reaction-btn.reaction-w .reaction-label {
    font-size: 0.78rem !important;
    font-weight: 900 !important;
  }

  .reaction-btn.reaction-save {
    padding: 5px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .reaction-btn.reaction-comments {
    margin-left: 0 !important;
    padding: 5px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
}



