/* OTTANDIPTV — Custom Styles */

/* ── Skip link (visually hidden until focused) ── */
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link:focus {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background: #3b82f6 !important;
  color: #fff !important;
  font-weight: 700 !important;
  z-index: 9999 !important;
  border-radius: 0 0 8px 0 !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-light {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #002395, #ED2939);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero gradient ── */
.hero-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 50%, rgba(237,41,57,0.08) 0%, transparent 60%);
}

/* ── Neon glow ── */
.neon-blue { box-shadow: 0 0 20px rgba(59,130,246,0.4), 0 0 60px rgba(59,130,246,0.15); }
.neon-blue:hover { box-shadow: 0 0 30px rgba(59,130,246,0.6), 0 0 80px rgba(59,130,246,0.25); }

/* ── Card hover lift ── */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ── Gradient border ── */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Featured plan glow ── */
.plan-featured {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 20px 60px rgba(59,130,246,0.2);
}

/* ── Prose for blog content ──
   LIGHT MODE is the default (no .dark on <html>). Dark-mode colors are scoped
   under `.dark .prose-custom ...` so they only apply when Alpine sets the dark
   class. Previously this file used `.light` as the override, but the site only
   ever sets `.dark` — meaning the light-mode rules were dead code and every
   blog rendered with the dark-mode (near-white) palette regardless of theme. */

/* Defaults = light mode (page background is bg-gray-50) */
.prose-custom h2 {
  color: #0f172a; font-size: 1.6rem; font-weight: 800;
  margin-top: 2.5rem; margin-bottom: 1rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid rgba(59,130,246,0.3);
  line-height: 1.3;
}
.prose-custom h3 {
  color: #1e293b; font-size: 1.2rem; font-weight: 700;
  margin-top: 1.75rem; margin-bottom: 0.6rem; line-height: 1.4;
}
.prose-custom h4 {
  color: #334155; font-size: 1.05rem; font-weight: 600;
  margin-top: 1.25rem; margin-bottom: 0.5rem;
}
.prose-custom p { color: #374151; line-height: 1.85; margin-bottom: 1.1rem; font-size: 1.0rem; }
.prose-custom a { color: #2563eb; text-decoration: underline; }
.prose-custom a:hover { color: #1d4ed8; }
.prose-custom ul { color: #374151; padding-left: 1.6rem; margin-bottom: 1.1rem; list-style-type: disc; }
.prose-custom ol { color: #374151; padding-left: 1.6rem; margin-bottom: 1.1rem; list-style-type: decimal; }
.prose-custom li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose-custom li::marker { color: #2563eb; }
.prose-custom blockquote {
  border-left: 4px solid #3b82f6; padding: 0.75rem 1.25rem;
  margin: 1.75rem 0; color: #475569; font-style: italic;
  background: rgba(59,130,246,0.04); border-radius: 0 8px 8px 0;
}
.prose-custom code { background: rgba(59,130,246,0.1); color: #2563eb; padding: 0.2em 0.5em; border-radius: 4px; font-size: 0.875em; }
.prose-custom pre { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1rem; overflow-x: auto; }
.prose-custom img { border-radius: 12px; margin: 1.5rem auto; display: block; max-width: 100%; }
.prose-custom strong { color: #0f172a; font-weight: 700; }
.prose-custom table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 0.95rem; }
.prose-custom th { color: #1e293b; background: rgba(59,130,246,0.08); padding: 0.6rem 1rem; text-align: left; font-weight: 700; border: 1px solid #e2e8f0; }
.prose-custom td { color: #374151; padding: 0.6rem 1rem; border: 1px solid #f1f5f9; }
.prose-custom tr:nth-child(even) td { background: #f8fafc; }

/* Dark-mode overrides (Alpine adds .dark to <html> when darkMode is on) */
.dark .prose-custom h2 { color: #f1f5f9; border-bottom-color: rgba(59,130,246,0.25); }
.dark .prose-custom h3 { color: #cbd5e1; }
.dark .prose-custom h4 { color: #94a3b8; }
.dark .prose-custom p { color: #cbd5e1; }
.dark .prose-custom a { color: #60a5fa; }
.dark .prose-custom a:hover { color: #93c5fd; }
.dark .prose-custom ul, .dark .prose-custom ol { color: #cbd5e1; }
.dark .prose-custom li::marker { color: #3b82f6; }
.dark .prose-custom blockquote { color: #94a3b8; background: rgba(59,130,246,0.05); }
.dark .prose-custom code { background: rgba(59,130,246,0.15); color: #93c5fd; }
.dark .prose-custom pre { background: #0f1117; border-color: rgba(255,255,255,0.1); }
.dark .prose-custom strong { color: #f8fafc; }
.dark .prose-custom th { color: #e2e8f0; background: rgba(59,130,246,0.15); border-color: rgba(255,255,255,0.1); }
.dark .prose-custom td { color: #cbd5e1; border-color: rgba(255,255,255,0.07); }
.dark .prose-custom tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ── FAQ accordion ── */
.faq-item details[open] summary { color: #60a5fa; }
.faq-item details summary::marker { display: none; }
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary { list-style: none; cursor: pointer; }

/* ── Star rating ── */
.stars { color: #f59e0b; letter-spacing: -1px; }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.badge-blue { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.badge-green { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.badge-purple { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.badge-orange { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.3); }

/* ── Pulse dot ── */
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  display: inline-block;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ── Animated gradient border on focus ── */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.4);
}

/* ── Country flag badges ──
   Defaults are light-mode (page bg #f9fafb): dark text, blue-tinted pill so it
   reads as a real chip rather than blending into the card behind it. */
.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,0.10);
  border: 1px solid rgba(59,130,246,0.30);
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.flag-badge:hover {
  background: rgba(59,130,246,0.16);
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-1px);
}
.dark .flag-badge {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: #f8fafc;
}
.dark .flag-badge:hover {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.5);
}

/* =============================================================================
   FRANCE + BELGIUM ACCENT LAYER
   Subtle nods to the French (Bleu/Blanc/Rouge) and Belgian (Noir/Jaune/Rouge)
   flags as a decorative accent layer — never replacing the brand blue palette.
   ========================================================================== */

:root {
  --fr-blue:   #002395;
  --fr-white:  #FFFFFF;
  --fr-red:    #ED2939;
  --be-black:  #1a1a2e;
  --be-yellow: #F7D000;
  --be-red:    #EF3340;
}

/* French flag tricolor (vertical: blue | white | red) rendered as horizontal bar */
.fr-tricolor-bar,
.fr-tricolor-divider {
  background: linear-gradient(
    to right,
    var(--fr-blue)  0%,        var(--fr-blue)  33.34%,
    var(--fr-white) 33.34%,    var(--fr-white) 66.67%,
    var(--fr-red)   66.67%,    var(--fr-red)   100%
  );
}

/* Top-of-page bar — sits above the navbar */
.fr-tricolor-bar {
  position: relative; z-index: 60;
  width: 100%; height: 4px;
  flex-shrink: 0;
}
.dark .fr-tricolor-bar {
  background: linear-gradient(
    to right,
    #1a3a8a 0%, #1a3a8a 33.34%,
    rgba(255,255,255,0.3) 33.34%, rgba(255,255,255,0.3) 66.67%,
    var(--fr-red) 66.67%, var(--fr-red) 100%
  );
}

/* Standalone horizontal divider */
.fr-tricolor-divider { width: 100%; height: 3px; border-radius: 2px; opacity: 0.6; }
.dark .fr-tricolor-divider { opacity: 0.45; }

/* Belgian flag tricolor (vertical: black | yellow | red) for footer accent */
.be-tricolor-bar {
  background: linear-gradient(
    to right,
    var(--be-black)  0%,        var(--be-black)  33.34%,
    var(--be-yellow) 33.34%,    var(--be-yellow) 66.67%,
    var(--be-red)    66.67%,    var(--be-red)    100%
  );
  width: 100%; height: 4px; position: relative; z-index: 60; flex-shrink: 0;
}

/* Hero pill — "Optimisé pour la France & la Belgique" badge */
.fr-badge-tricolor {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(0, 35, 149, 0.06);
  border: 1px solid rgba(0, 35, 149, 0.18);
  color: #0f172a;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.01em;
  transition: background .25s ease, transform .25s ease;
}
.fr-badge-tricolor:hover { transform: translateY(-1px); }
.fr-badge-tricolor::before {
  content: ''; display: inline-block;
  width: 22px; height: 14px; border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--fr-blue)  0%,   var(--fr-blue)  33.34%,
    var(--fr-white) 33.34%, var(--fr-white) 66.67%,
    var(--fr-red)   66.67%, var(--fr-red)  100%
  );
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.10);
}
.dark .fr-badge-tricolor {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}
.dark .fr-badge-tricolor::before {
  background: linear-gradient(
    to right,
    #1a3a8a 0%, #1a3a8a 33.34%,
    rgba(255,255,255,0.45) 33.34%, rgba(255,255,255,0.45) 66.67%,
    var(--fr-red) 66.67%, var(--fr-red) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Stat-card top accent — thin France+Belgium stripe above stat card */
.fr-stat-card { position: relative; isolation: isolate; }
.fr-stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 22%; right: 22%; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(
    to right,
    var(--fr-blue) 0%, var(--fr-blue) 25%,
    var(--fr-white) 25%, var(--fr-white) 50%,
    var(--fr-red) 50%, var(--fr-red) 75%,
    var(--be-yellow) 75%, var(--be-yellow) 100%
  );
  opacity: 0.85;
}
.dark .fr-stat-card::before { opacity: 0.7; }

/* Stat number colour helpers */
.fr-stat-blue  { color: #1a56db; }
.dark .fr-stat-blue { color: #60a5fa; }
.fr-stat-red   { color: var(--fr-red); }
.dark .fr-stat-red { color: #f87171; }
.be-stat-yellow { color: #c8940a; }   /* darkened yellow for AA on light bg */
.dark .be-stat-yellow { color: var(--be-yellow); }

/* Pricing featured-plan Belgian yellow accent */
.be-featured-gilt {
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(247, 208, 0, 0.55),
    0 12px 32px rgba(247, 208, 0, 0.08);
}
.be-featured-gilt::before {
  content: ''; position: absolute;
  top: -1px; left: -1px; right: -1px; height: 4px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(to right, var(--fr-blue) 0%, var(--fr-red) 50%, var(--be-yellow) 100%);
  box-shadow: 0 0 12px rgba(237, 41, 57, 0.35);
  pointer-events: none;
}
.dark .be-featured-gilt {
  box-shadow:
    inset 0 0 0 1px rgba(247, 208, 0, 0.45),
    0 12px 36px rgba(247, 208, 0, 0.12);
}

/* Belgian yellow accent text */
.be-yellow-accent {
  background: linear-gradient(90deg, #c8940a, var(--be-yellow), #c8940a);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          text-fill-color: transparent;
  font-weight: 900;
}

/* Footer kicker — "Fier de servir la France & la Belgique" */
.be-footer-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #94a3b8;
}
.be-footer-kicker::before {
  content: ''; display: inline-block;
  width: 22px; height: 14px; border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--fr-blue)  0%,   var(--fr-blue)  33.34%,
    var(--fr-white) 33.34%, var(--fr-white) 66.67%,
    var(--fr-red)   66.67%, var(--fr-red)  100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ── Inline links inside blog-category descriptions ── */
.category-desc a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.category-desc a:hover { color: #1d4ed8; }
.dark .category-desc a { color: #60a5fa; }
.dark .category-desc a:hover { color: #93c5fd; }

/* ── Section gradient separators ── */
.section-sep {
  background: linear-gradient(to bottom, transparent, rgba(59,130,246,0.05) 50%, transparent);
}

/* ── Animated number counter ── */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Channel category pill ── */
.cat-pill {
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-pill.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* ── Responsive video ── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Table of Contents box ── */
.toc-box {
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2rem;
}
.toc-box .toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}
.toc-box ol {
  padding-left: 1.25rem;
  margin: 0;
  list-style-type: decimal;
}
.toc-box li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.toc-box a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.toc-box a:hover { color: #60a5fa; }

.light .toc-box {
  background: rgba(59,130,246,0.04);
  border-color: rgba(59,130,246,0.25);
}
.light .toc-box a { color: #475569; }
.light .toc-box a:hover { color: #2563eb; }

/* ── Inline article section images ── */
.article-img {
  margin: 1.75rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.article-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
}
.article-img figcaption {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0,0,0,0.2);
}

.light .article-img {
  border-color: rgba(0,0,0,0.07);
}
.light .article-img figcaption {
  background: rgba(0,0,0,0.04);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: floatY 4s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #002395 0%, #ED2939 40%, #F7D000 70%, #002395 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════════
   "OTT Premium" target keyword link styling
   Subtle, brand-on, signals importance to Google + UX (clickable to home)
   ══════════════════════════════════════════════════════════════════════ */
.ott-keyword {
  text-decoration: none;
  position: relative;
  font-weight: 800;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}
.ott-keyword:hover { opacity: 1; transform: translateY(-1px); }
.ott-keyword:visited { color: inherit; }

/* ══════════════════════════════════════════════════════════════════════
   PROSE-CUSTOM — bullet-proof readable colors (light + dark)
   Override any inherited Tailwind class with !important.
   ══════════════════════════════════════════════════════════════════════ */
.prose-custom { color: #1e293b !important; }
.prose-custom h1, .prose-custom h2, .prose-custom h3, .prose-custom h4, .prose-custom h5, .prose-custom h6 {
  color: #0f172a !important;
}
.prose-custom h1 {
  font-size: 1.85rem; font-weight: 900;
  margin-top: 2rem; margin-bottom: 1.1rem; line-height: 1.25;
}
.prose-custom p { color: #334155 !important; }
.prose-custom ul, .prose-custom ol, .prose-custom li { color: #334155 !important; }
.prose-custom strong { color: #0F172A !important; font-weight: 800; }
.prose-custom em { color: #334155 !important; }
.prose-custom a { color: #002395 !important; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.prose-custom a:hover { color: #ED2939 !important; }
.prose-custom blockquote { color: #334155 !important; }
.prose-custom th, .prose-custom td { color: #1E293B !important; }
.prose-custom figure, .prose-custom figcaption { color: #475569 !important; }

/* Image placeholder block (visible in articles) */
.prose-custom .img-placeholder,
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(0,35,149,.08) 0%, rgba(237,41,57,.05) 100%);
  border: 2px dashed rgba(0,35,149,.25);
  border-radius: 16px;
  color: #002395; font-weight: 700; font-size: 0.95rem; text-align: center;
  padding: 24px;
  margin: 1.25rem 0;
}
.dark .prose-custom .img-placeholder,
.dark .img-placeholder {
  background: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(237,41,57,.08) 100%);
  border-color: rgba(147,197,253,.30);
  color: #93C5FD;
}
.prose-custom figure.article-figure { margin: 1.5rem 0; }
.prose-custom figure.article-figure figcaption {
  font-size: 12px; font-style: italic; text-align: center; margin-top: 6px;
}

/* Dark-mode prose */
.dark .prose-custom { color: #E2E8F0 !important; }
.dark .prose-custom h1, .dark .prose-custom h2, .dark .prose-custom h3,
.dark .prose-custom h4, .dark .prose-custom h5, .dark .prose-custom h6 {
  color: #F8FAFC !important;
}
.dark .prose-custom p { color: #CBD5E1 !important; }
.dark .prose-custom ul, .dark .prose-custom ol, .dark .prose-custom li { color: #CBD5E1 !important; }
.dark .prose-custom strong { color: #F8FAFC !important; }
.dark .prose-custom em { color: #CBD5E1 !important; }
.dark .prose-custom a { color: #93C5FD !important; }
.dark .prose-custom a:hover { color: #FCA5A5 !important; }
.dark .prose-custom blockquote { color: #CBD5E1 !important; }
.dark .prose-custom th, .dark .prose-custom td { color: #E2E8F0 !important; }
.dark .prose-custom figure, .dark .prose-custom figcaption { color: #94A3B8 !important; }

/* Article FAQ <details> styling */
.prose-custom details {
  background: rgba(0,35,149,.04);
  border: 1px solid rgba(0,35,149,.10);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.dark .prose-custom details {
  background: rgba(59,130,246,.08);
  border-color: rgba(147,197,253,.20);
}
.prose-custom details summary {
  cursor: pointer; font-weight: 700; color: #0F172A !important;
  list-style: none;
  outline: none;
}
.prose-custom details summary::-webkit-details-marker { display: none; }
.prose-custom details[open] summary { color: #002395 !important; margin-bottom: 8px; }
.dark .prose-custom details summary { color: #F8FAFC !important; }
.dark .prose-custom details[open] summary { color: #93C5FD !important; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE & TABLET RESPONSIVENESS
   Comprehensive responsive overrides for the unified FR/BE design system.
   Audience uses mobile heavily — these rules tighten layouts, type sizes,
   spacing, and ensure tables/images don't overflow.
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Article prose — tighter, more readable on mobile ── */
@media (max-width: 640px) {
  .prose-custom {
    font-size: 15px;
    line-height: 1.75;
  }
  .prose-custom h1 {
    font-size: 1.45rem !important;
    line-height: 1.25;
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
  }
  .prose-custom h2 {
    font-size: 1.25rem !important;
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.3rem;
  }
  .prose-custom h3 {
    font-size: 1.05rem !important;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
  }
  .prose-custom h4 { font-size: 0.95rem !important; }
  .prose-custom p { font-size: 15px; margin-bottom: 0.95rem; }
  .prose-custom ul, .prose-custom ol { padding-left: 1.25rem; font-size: 15px; }
  .prose-custom li { margin-bottom: 0.4rem; line-height: 1.6; }
  .prose-custom blockquote {
    padding: 0.6rem 1rem;
    margin: 1.25rem 0;
    font-size: 14px;
  }
  .prose-custom .img-placeholder,
  .img-placeholder {
    min-height: 150px !important;
    font-size: 0.8rem;
    padding: 16px;
    margin: 1rem 0;
  }
  .prose-custom figure.article-figure figcaption { font-size: 11px; }
  .prose-custom details { padding: 10px 14px; font-size: 14px; }
  .prose-custom details summary { font-size: 14px; }
}

/* ── 2. Article tables — horizontal scroll on mobile ── */
.prose-custom table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  font-size: 13px;
}
.prose-custom table thead,
.prose-custom table tbody {
  display: table;
  width: 100%;
  table-layout: auto;
}
@media (max-width: 640px) {
  .prose-custom table { font-size: 12.5px; }
  .prose-custom th, .prose-custom td { padding: 0.45rem 0.7rem; }
}

/* Improve table scroll indicator on mobile */
.prose-custom .overflow-x-auto::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(0,35,149,.2), transparent);
  margin-top: 4px;
}

/* ── 3. Images in articles — always responsive ── */
.prose-custom img,
.prose-custom figure img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.25rem auto;
}

/* ── 4. Code blocks — never overflow ── */
.prose-custom pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 13px;
  padding: 0.85rem;
}
.prose-custom code {
  word-break: break-word;
  font-size: 0.85em;
}

/* ── 5. .ott-hero — smaller H1 + tighter padding on mobile ── */
@media (max-width: 640px) {
  .ott-h1-gradient,
  .seo-h2-gradient {
    background-size: 100% 100%; /* prevent gradient text glitches on mobile */
  }
}

/* ── 6. Post content card on blog detail — comfortable mobile padding ── */
.post-content-card { padding: 22px 18px; }
@media (min-width: 640px) { .post-content-card { padding: 28px 24px; } }
@media (min-width: 768px) { .post-content-card { padding: 36px 32px; } }
@media (min-width: 1024px) { .post-content-card { padding: 44px 48px; } }

/* ── 7. Pill badges (.ott-pill, .seo-badge) — wrap nicely on mobile ── */
@media (max-width: 480px) {
  .ott-pill, .seo-badge {
    font-size: 11px !important;
    padding: 6px 13px !important;
    gap: 6px !important;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .ott-pill > span, .seo-badge > span { line-height: 1.3; }
}

/* ── 8. Hero share row — wrap properly ── */
@media (max-width: 480px) {
  .share-btn { width: 38px; height: 38px; }
}

/* ── 9. Related-article card (.rel-card) — image aspect ratio guard ── */
@media (max-width: 640px) {
  .rel-card { padding: 14px; }
  .rel-card h3 { font-size: 14px; }
}

/* ── 10. Ott-card — reduce padding on mobile ── */
@media (max-width: 640px) {
  .ott-card { padding: 18px; border-radius: 16px; }
  .ott-card.\!p-6, .ott-card.\!p-7, .ott-card.\!p-8 { padding: 18px !important; }
  .ott-card.\!p-6.sm\:\!p-8 { padding: 18px !important; }
}

/* ── 11. CTA gradient banners — better mobile spacing ── */
@media (max-width: 640px) {
  .dvp-cta-card,
  .chp-cta-btn,
  .dev-cta {
    padding: 28px 20px !important;
  }
}

/* ── 12. Sticky sidebar on device detail — disable on small screens ── */
@media (max-width: 1024px) {
  aside.space-y-5 { position: static !important; }
}

/* ── 13. SEO sections (homepage authority blocks) — tighter on mobile ── */
@media (max-width: 640px) {
  .seo-card { border-radius: 16px; }
  .seo-card-img { aspect-ratio: 16 / 10; }
  .seo-card h3 { font-size: 0.95rem !important; }
  .seo-card p { font-size: 13px !important; line-height: 1.55; }
  .seo-stat-card { padding: 16px 10px; }
  .seo-stat-card div:first-child { font-size: 1.6rem !important; }
  .seo-stat-card div:last-child { font-size: 9px !important; letter-spacing: .08em; }
}

/* ── 14. Pricing matrix — already compact, but reduce huge prices on mobile ── */
@media (max-width: 480px) {
  .pricing-orb { display: none; }
}

/* ── 15. Channel showcase tiles on home — 2 cols on mobile ── */
@media (max-width: 640px) {
  .fr-ch-card {
    padding: 12px !important;
  }
  .fr-ch-card .text-xs { font-size: 11px !important; }
}

/* ── 16. Larger touch targets for nav/menu items on mobile ── */
@media (max-width: 640px) {
  nav a, nav button,
  .ecran-pill, .chp-country-tab, .chp-ch-card,
  .seo-resource-link {
    min-height: 40px;
  }
  .seo-resource-link {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

/* ── 17. Image figures inside articles — never overflow ── */
.prose-custom figure {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* ── 18. Hero meta row — wrap cleanly on small screens ── */
@media (max-width: 480px) {
  .post-meta { font-size: 11px !important; }
  .post-author-avatar { width: 30px !important; height: 30px !important; font-size: 12px !important; }
}

/* ── 19. Header CTA button — smaller on mobile to avoid pushing logo ── */
@media (max-width: 768px) {
  header .bg-blue-600,
  header a[href*="pricing"]:not(.cta-btn-shimmer) {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
}

/* ── 20. Article tricolor stripe full-bleed on mobile ── */
.ott-hero .ott-tricolor-bar { left: 0; right: 0; }

/* ── 21. Make .max-w-* containers respect padding on mobile ── */
@media (max-width: 480px) {
  .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ── 22. Fix horizontal overflow on hero gradient orbs ── */
.hero-gradient,
.ott-hero { overflow-x: hidden; }

/* ── 23. Better tap feedback on iOS (remove tap highlight, add active state) ── */
@media (hover: none) {
  a, button {
    -webkit-tap-highlight-color: rgba(0,35,149,.15);
  }
  .ott-card:active,
  .dvp-card:active,
  .seo-card:active,
  .rel-card:active {
    transform: scale(0.985);
  }
}

/* ── 24. Smoother scrolling on mobile ── */
html { -webkit-overflow-scrolling: touch; }

/* ── 25. Prevent text wraps that break layout ── */
.prose-custom h1, .prose-custom h2, .prose-custom h3 { overflow-wrap: break-word; word-wrap: break-word; }

