/* =====================================================
   POCKETS & FRIENDS — Main Stylesheet v1.1
   Cleaned & Optimized for Mobile
   ===================================================== */

/* ── CSS VARIABLES — BartaBot Bangla Newspaper ── */
:root {
  --ticker-h: 38px;
  --nav-h: 70px;
  --max-w: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --ease: cubic-bezier(.4,0,.2,1);

  /* Legacy aliases kept so existing JS/PHP still resolves them */
  --hat-purple:   #9C27B0;
  --hat-orange:   #FF5722;
  --hat-blue:     #1565C0;
  --pocket-gold:  #FFB300;
  --bow-pink:     #E91E63;
  --letter-green: #2E7D32;
  --pocket-purple:#9C27B0;

  /* BartaBot Red & White Palette */
  --primary:      #C8102E;
  --primary-dk:   #A00D24;
  --primary-lt:   #FFEAED;
  --accent:       #FFB300;
  --accent2:      #1565C0;
  --purple:       #9C27B0;
  --pink:         #E91E63;
  --green:        #2E7D32;

  /* Backgrounds */
  --bg-deep:      #F4F4F4;
  --bg-mid:       #EAEAEA;
  --bg-card:      #FFFFFF;
  --bg-card-hover:#FFF5F6;
  --footer-bg:    #181818;

  /* Text */
  --text-hi:      #1A1A1A;
  --text-md:      #555555;
  --text-lo:      #888888;

  /* Border */
  --border:       #E0E0E0;

  /* Fonts — Hind Siliguri (Bangla + Latin) */
  --fh: 'Hind Siliguri', sans-serif;
  --fb: 'Hind Siliguri', sans-serif;
}

/* ── BASE RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--bg-deep);
  color: var(--text-hi);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; }

.pf-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ── */
#pf-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: #FFFFFF;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all .35s var(--ease);
}

#pf-nav.scrolled {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
}

/* Logo */
.pf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pf-logo__img {
  width: 56px; height: 56px;
  border-radius: 16px;
  overflow: hidden;
}
.pf-logo__img img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 12px rgba(244,132,30,0.55));
}
.pf-logo:hover .pf-logo__img { transform: rotate(-8deg) scale(1.08); }

.pf-logo__text .l1 {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -0.01em;
}
.pf-logo__text .l2 {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-transform: none;
}

/* Desktop Nav */
.pf-navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

/* Required so .pf-dropdown (position:absolute) anchors correctly */
.pf-navlinks > li {
  position: relative;
}

/* Invisible hover-bridge that fills the gap between the nav button
   and the dropdown, so moving the mouse down doesn't lose hover. */
.pf-navlinks > li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 14px; /* must be ≥ dropdown top offset */
  pointer-events: auto;
}

.pf-navlinks > li > a,
.pf-navlinks > li > button {
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--text-hi);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all .2s;
  font-family: 'Hind Siliguri', sans-serif;
}
.pf-navlinks > li > a:hover,
.pf-navlinks > li > button:hover,
.pf-navlinks > li > a.current-menu-item {
  color: var(--primary);
  background: var(--primary-lt);
}

/* Dropdown */
.pf-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all .25s ease;
}
.pf-navlinks > li:hover .pf-dropdown,
.pf-navlinks > li:focus-within .pf-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Right side */
.pf-nav-right { display: flex; align-items: center; gap: 10px; }

/* Mobile Burger */
.pf-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.pf-burger span {
  width: 26px; height: 3px;
  background: var(--text-hi);
  border-radius: 3px;
  transition: .3s;
}
.pf-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.pf-burger.open span:nth-child(2) { opacity: 0; }
.pf-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Navigation
   ───────────────────────────────────────────────────────
   FIX: Collapsed state now uses height:0 + zero vertical padding
   + pointer-events:none so the element truly takes 0 visible
   space and cannot overlap post cards / intercept taps below
   the navbar on mobile. backdrop-filter is only applied when
   .open is set to avoid iOS Safari paint leaks.
   ─────────────────────────────────────────────────────── */
#pf-mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #FFFFFF;
  border-top: 3px solid var(--primary);
  padding: 0 1.5rem;
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: height 0.35s ease,
              padding 0.35s ease,
              opacity 0.25s ease,
              visibility 0s linear 0.35s;
  z-index: 9998;
}
#pf-mobile-nav.open {
  height: auto;
  max-height: calc(100vh - var(--nav-h));
  padding: 1rem 1.5rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  transition: height 0.35s ease,
              padding 0.35s ease,
              opacity 0.25s ease,
              visibility 0s linear 0s;
}
#pf-mobile-nav a {
  display: block;
  padding: 12px 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border);
  font-family: 'Hind Siliguri', sans-serif;
}
#pf-mobile-nav a:last-child { border-bottom: none; }
#pf-mobile-nav a:hover { color: var(--primary); background: var(--primary-lt); }

/* Lock body scroll while the mobile menu is open so the page
   underneath doesn't scroll behind the overlay. */
body.pf-menu-open { overflow: hidden; }

/* ── HERO SECTION ── */
#pf-hero {
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}

/* ── HERO INNER GRID — base (overridden by inline styles on front page) ── */
.pf-hero__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  padding: calc(var(--nav-h) + var(--ticker-h) + 2rem) 0;
  position: relative;
  z-index: 5;
}

/* ── STORY GRID ── */
.pf-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .pf-story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .pf-story-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE DESIGN — consolidated below (see ═══ RESPONSIVE ═══ section) ── */

/* ═══════════════════════════════════════════
   COLOR UTILITIES
═══════════════════════════════════════════ */
.c-blue   { color: var(--hat-blue); }
.c-white  { color: var(--text-hi); }
.c-gold   { color: var(--pocket-gold); }
.c-orange { color: var(--hat-orange); }
.c-green  { color: var(--letter-green); }
.c-pink   { color: var(--bow-pink); }
.c-purple { color: var(--hat-purple); }

.pf-ul-accent { position: relative; display: inline-block; }
.pf-ul-accent::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hat-orange), var(--pocket-gold));
  border-radius: 2px;
}

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.pf-section { padding: 4rem 0; background: var(--bg-deep); }
.pf-section--dark { background: var(--bg-mid); }
.pf-section--mid  { background: var(--bg-deep); }

.pf-section__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.4rem;
  color: var(--text-hi);
}

.pf-section__sub {
  text-align: left;
  color: var(--text-md);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   HERO — VIDEO / OVERLAY / BLOBS / CANVAS
═══════════════════════════════════════════ */
.pf-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pf-hero__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.pf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(14,11,30,0.75) 0%,
    rgba(14,11,30,0.50) 40%,
    rgba(14,11,30,0.88) 85%,
    rgba(14,11,30,1.00) 100%
  );
}

.pf-hero__blobs {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.pf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  will-change: transform;
}
.pf-blob--1 { width: 500px; height: 500px; background: var(--hat-purple); top: -100px; left: -100px; }
.pf-blob--2 { width: 400px; height: 400px; background: var(--hat-orange); top: 30%;  right: -80px; }
.pf-blob--3 { width: 350px; height: 350px; background: var(--hat-blue);   bottom: 0; left: 30%; }

#pf-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   HERO — TICKER
═══════════════════════════════════════════ */
.pf-hero__ticker {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  height: var(--ticker-h);
  z-index: 9998;
  background: var(--primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pf-ticker-inner {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
  padding-left: 2.5rem;
}

/* Clickable ticker items */
.pf-ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
  line-height: var(--ticker-h);
}
.pf-ticker-item:hover {
  color: #FFE082;          /* warm gold — stands out on red, high contrast */
  text-decoration: underline;
  text-underline-offset: 2px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   HERO — CONTENT ELEMENTS
═══════════════════════════════════════════ */
.pf-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,58,155,0.25);
  border: 1px solid rgba(91,58,155,0.45);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.2rem;
}

.pf-pulse {
  width: 8px; height: 8px;
  background: var(--letter-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(91,191,58,0.55); }
  50%       { box-shadow: 0 0 0 7px rgba(91,191,58,0);    }
}

.pf-hero__title {
  font-family: var(--fh);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.pf-hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-md);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 1.6rem;
}

/* Pills */
.pf-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.6rem;
}
.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid;
}
.pf-pill--audio  { background: rgba(75,174,232,0.12);  border-color: rgba(75,174,232,0.3);  color: var(--hat-blue); }
.pf-pill--song   { background: rgba(232,65,154,0.12);  border-color: rgba(232,65,154,0.3);  color: var(--bow-pink); }
.pf-pill--lesson { background: rgba(91,58,155,0.12);   border-color: rgba(91,58,155,0.3);   color: #b39fe8; }
.pf-pill--game   { background: rgba(91,191,58,0.12);   border-color: rgba(91,191,58,0.3);   color: var(--letter-green); }
.pf-pill--count  { background: rgba(244,132,30,0.12);  border-color: rgba(244,132,30,0.3);  color: var(--hat-orange); }

/* Hero Buttons */
.pf-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.pf-btn-primary,
.pf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.pf-btn-primary {
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(244,132,30,0.35);
}
.pf-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(244,132,30,0.52);
}
.pf-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-hi);
  border: 1px solid rgba(255,255,255,0.16);
}
.pf-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-3px);
}

/* Stats row */
.pf-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.pf-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-stat__num {
  font-family: var(--fh);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.pf-stat__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-lo);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Scroll indicator */
.pf-scroll-ind {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pf-scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.pf-scroll-dot {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
.pf-scroll-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Confetti dots */
.pf-hero__confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.pf-cdot {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: cdot-rise linear infinite;
}
@keyframes cdot-rise {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0.85; }
  100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

/* ═══════════════════════════════════════════
   NAVBAR COMPONENTS
═══════════════════════════════════════════ */
.pf-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  color: #fff;
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pf-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,132,30,0.42);
}

.pf-lang {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-lang__btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-md);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 9px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pf-lang__btn.active,
.pf-lang__btn:hover {
  background: var(--hat-purple);
  border-color: var(--hat-purple);
  color: #fff;
}

.pf-nav-dt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.pf-nav-dt .t {
  font-family: var(--fh);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-hi);
}
.pf-nav-dt .d {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-lo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dropdown link rows */
.pf-dd-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}
.pf-dropdown a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-md);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.pf-dropdown a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

/* Mobile nav extras */
.pf-mobile-cta {
  display: block !important;
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  color: #fff !important;
  font-family: var(--fh);
  font-weight: 800;
  text-align: center !important;
  padding: 13px 12px !important;
  border-radius: 12px;
  margin-top: 0.5rem;
}
.pf-mobile-lang {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.pf-mobile-lang button {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-md);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pf-mobile-lang button.active,
.pf-mobile-lang button:hover {
  background: var(--hat-purple);
  border-color: var(--hat-purple);
  color: #fff;
}

/* ═══════════════════════════════════════════
   SEARCH OVERLAY
═══════════════════════════════════════════ */
#pf-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(14,11,30,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#pf-search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.pf-search-inner {
  width: 100%;
  max-width: 620px;
  padding: 0 1.5rem;
}
.pf-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 1rem;
}
#pf-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 600;
}
#pf-search-input::placeholder { color: rgba(255,255,255,0.3); }

.pf-search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
}
.pf-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-hi);
  transition: background 0.15s;
}
.pf-search-item:hover { background: rgba(255,255,255,0.06); }
.pf-search-item__thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.pf-search-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-search-item__title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.pf-search-item__cat   { font-size: 0.74rem; color: var(--text-lo); }

/* ═══════════════════════════════════════════
   STORY CARDS
═══════════════════════════════════════════ */
.pf-story-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative; /* explicit so it stays in normal stacking context */
  z-index: 1;
}
/* Only apply hover effects on devices that actually hover.
   On touch devices the :hover state otherwise sticks after a tap,
   creating a stacking context that can sit above the mobile nav. */
@media (hover: hover) and (pointer: fine) {
  .pf-story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 44px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.15);
  }
  .pf-story-card:hover .pf-story-card__thumb img { transform: scale(1.06); }
}

.pf-story-card__thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-mid);
  flex-shrink: 0;
}
.pf-story-card__thumb a {
  display: block;
  width: 100%; height: 100%;
}
.pf-story-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.pf-story-card__type {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(14,11,30,0.78);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}

.pf-story-card__fav {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(14,11,30,0.7);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.pf-story-card__fav:hover,
.pf-story-card__fav.active {
  background: rgba(232,65,154,0.4);
  transform: scale(1.12);
}

.pf-story-card__body {
  padding: 1.1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pf-story-card__title {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.pf-story-card__title a {
  color: var(--text-hi);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-story-card__title a:hover { color: var(--hat-orange); }

.pf-story-card__excerpt {
  font-size: 0.84rem;
  color: var(--text-md);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
}

.pf-story-card__audio { margin-top: 0.2rem; }
.pf-story-card__audio audio {
  width: 100%;
  height: 36px;
  border-radius: var(--radius-sm);
}

.pf-story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.pf-story-card__views {
  font-size: 0.74rem;
  color: var(--text-lo);
  font-weight: 700;
}
.pf-story-card__read {
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--hat-orange);
  text-decoration: none;
  transition: color 0.2s;
}
.pf-story-card__read:hover { color: var(--pocket-gold); }

/* ═══════════════════════════════════════════
   POINTS TOAST
═══════════════════════════════════════════ */
.pf-points-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--hat-orange), var(--pocket-gold));
  color: #fff;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 100px;
  z-index: 99999;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  box-shadow: 0 8px 30px rgba(244,132,30,0.4);
}
.pf-points-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════
   AD ZONES  (single canonical block — see also end of file)
═══════════════════════════════════════════ */
.pf-ad-zone--LEGACY-REMOVED {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--text-lo);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}
.pf-ad-zone--leaderboard {
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════
   SOCIAL LINKS (footer)
═══════════════════════════════════════════ */
.pf-footer__social {
  display: flex;
  gap: .8rem;
}
.pf-social-link {
  font-size: 1.3rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s, transform .2s;
  line-height: 1;
}
.pf-social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
#pf-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0 1.5rem;
}

.pf-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.pf-footer__brand {}

.pf-footer__brand-name {
  font-family: var(--fh);
  font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(90deg, var(--hat-blue), var(--hat-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.pf-footer__brand-desc {
  font-size: .85rem; color: var(--text-md); line-height: 1.65;
  margin-bottom: 1.2rem;
}

.pf-footer__col-title {
  font-family: var(--fh); font-size: .9rem; font-weight: 800;
  color: var(--accent); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: .9rem;
}

.pf-footer__links { list-style: none; }
.pf-footer__links li { margin-bottom: .5rem; }
.pf-footer__links a { font-size: .86rem; color: var(--text-md); transition: color .2s; }
.pf-footer__links a:hover { color: #fff; }

/* ─── Public Leaderboard (footer) ─── */
.pf-footer__leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.pf-lb__row {
  display: grid;
  grid-template-columns: 1.8rem 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .42rem .6rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background .2s, border-color .2s, transform .2s;
}
.pf-lb__row:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  transform: translateX(2px);
}
.pf-lb__rank {
  font-family: var(--fh);
  font-size: .82rem;
  font-weight: 800;
  color: var(--text-md);
  text-align: center;
  line-height: 1;
}
.pf-lb__name {
  font-size: .84rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-lb__points {
  font-family: var(--fh);
  font-size: .78rem;
  font-weight: 800;
  color: var(--pocket-gold);
  letter-spacing: .02em;
  white-space: nowrap;
}
/* Top 3 styling */
.pf-lb__row--top .pf-lb__rank { font-size: 1.05rem; }
.pf-lb__row--rank-1 {
  background: linear-gradient(90deg, rgba(245,200,66,0.18), rgba(245,200,66,0.04));
  border-color: rgba(245,200,66,0.35);
}
.pf-lb__row--rank-1 .pf-lb__name { color: #fff; }
.pf-lb__row--rank-2 {
  background: linear-gradient(90deg, rgba(210,210,220,0.14), rgba(210,210,220,0.03));
  border-color: rgba(210,210,220,0.28);
}
.pf-lb__row--rank-3 {
  background: linear-gradient(90deg, rgba(205,127,50,0.16), rgba(205,127,50,0.03));
  border-color: rgba(205,127,50,0.30);
}

/* Empty state */
.pf-footer__leaderboard-empty {
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 1.1rem .9rem;
  text-align: center;
}
.pf-lb-empty__icon { font-size: 1.6rem; margin-bottom: .3rem; }
.pf-lb-empty__title {
  font-family: var(--fh);
  font-weight: 800;
  color: var(--hat-blue);
  margin-bottom: .25rem;
}
.pf-lb-empty__desc {
  font-size: .78rem;
  color: var(--text-lo);
  line-height: 1.35;
}

.pf-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
}

.pf-footer__copy { font-size: .78rem; color: var(--text-lo); }
.pf-footer__bottom-links { display: flex; gap: 1.2rem; }
.pf-footer__bottom-links a { font-size: .78rem; color: var(--text-lo); transition: color .2s; }
.pf-footer__bottom-links a:hover { color: var(--text-md); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* ─── TABLET (≤1024px) — right panel goes below left ─── */
@media (max-width: 1024px) {
  .pf-hero__inner {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + var(--ticker-h) + 28px) 1.8rem 3rem;
    gap: 1.8rem;
    min-height: auto;
  }

  .pf-hero__right-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
  }

  /* Make clock card span full width on medium screens */
  .pf-rpanel-card--story { grid-column: 1 / 2; }
  .pf-rpanel-card--points { grid-column: 2 / 3; }
  .pf-rpanel-card--clock  { grid-column: 3 / 4; }

  .pf-rpanel-time { font-size: 1.8rem; }
  .pf-rpanel-points-num { font-size: 1.8rem; }
}

/* ─── MOBILE (≤768px) ─── */
@media (max-width: 768px) {
  .pf-navlinks,
  .pf-nav-dt,
  .pf-nav-cta,
  .pf-lang { display: none !important; }
  .pf-burger { display: flex; }
  /* Show mobile nav (collapsed by default via height:0/opacity; .open state reveals it) */
  #pf-mobile-nav { display: flex; flex-direction: column; }
  #pf-nav { padding: 0 1.2rem; }

  /* Tighter section spacing on mobile so cards aren't unreachable below the fold */
  .pf-section { padding: 3rem 0; }
  .pf-section__title { margin-bottom: 0.4rem; }
  .pf-section__sub { margin-bottom: 1.8rem; }

  .pf-hero__inner {
    padding: calc(var(--nav-h) + var(--ticker-h) + 20px) 1.2rem 2rem;
    gap: 1.2rem;
  }

  /* Right panel stacks: story full width, then points+clock side by side */
  .pf-hero__right-panel {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  .pf-rpanel-card--story  { grid-column: 1 / -1; } /* full width */
  .pf-rpanel-card--points { grid-column: 1 / 2; }
  .pf-rpanel-card--clock  { grid-column: 2 / 3; }

  .pf-rpanel-time { font-size: 1.6rem; }
  .pf-rpanel-points-num { font-size: 1.6rem; }
  .pf-rpanel-story-title { font-size: .84rem; }

  .pf-hero__pills,
  .pf-hero__btns,
  .pf-hero__stats { flex-wrap: wrap; }

  .pf-hero__overlay {
    background:
      linear-gradient(to bottom,
        rgba(14,11,30,0.88) 0%,
        rgba(14,11,30,0.65) 40%,
        rgba(14,11,30,0.92) 85%,
        rgba(14,11,30,1)    100%);
  }

  .pf-footer__top { grid-template-columns: 1fr 1fr; }
  .pf-story-grid  { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
  .pf-scroll-ind  { display: none; }
}

/* ─── SMALL MOBILE (≤480px) ─── */
@media (max-width: 480px) {
  .pf-hero__right-panel {
    grid-template-columns: 1fr;
  }
  .pf-rpanel-card--story,
  .pf-rpanel-card--points,
  .pf-rpanel-card--clock { grid-column: 1 / -1; }

  .pf-hero__title     { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .pf-footer__top     { grid-template-columns: 1fr; }
  .pf-footer__bottom  { flex-direction: column; text-align: center; }
  .pf-container       { padding: 0 1rem; }
  .pf-story-grid      { grid-template-columns: 1fr; }
}

/* ─── LARGE DESKTOP (≥1280px) ─── */
@media (min-width: 1280px) {
  .pf-nav-dt { display: flex !important; }
  .pf-hero__inner { grid-template-columns: 1fr 380px; }
}

/* ═══════════════════════════════════════════
   REWARD POPUP
═══════════════════════════════════════════ */
.pf-reward-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pf-reward-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,11,30,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pf-reward-popup__card {
  position: relative;
  z-index: 2;
  background: var(--bg-mid);
  border: 1px solid rgba(245,200,66,0.35);
  border-radius: 28px;
  padding: 2.8rem 2.2rem 2rem;
  text-align: center;
  max-width: 420px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(245,200,66,0.14), 0 28px 72px rgba(0,0,0,0.65);
  transform: scale(0.72) translateY(40px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.35s ease;
}

.pf-reward-popup.open .pf-reward-popup__card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.pf-reward-popup__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pf-confetti-piece {
  position: absolute;
  animation: confetti-burst 1s ease-out forwards;
}

@keyframes confetti-burst {
  0%   { transform: translateX(0) translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(var(--tx,0px)) translateY(var(--ty,-200px)) rotate(var(--rot,180deg)); opacity: 0; }
}

.pf-reward-popup__icon {
  font-size: 3.8rem;
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
  animation: icon-bounce 0.6s ease both 0.28s;
}

@keyframes icon-bounce {
  0%   { transform: scale(0) rotate(-20deg); }
  70%  { transform: scale(1.18) rotate(6deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

.pf-reward-popup__heading {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.1rem;
  animation: fade-up 0.4s ease both 0.38s;
}

.pf-reward-popup__pts-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 0.45rem;
  animation: fade-up 0.4s ease both 0.44s;
}

.pf-reward-popup__plus {
  font-family: var(--fh);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--hat-orange);
  line-height: 1;
}

.pf-reward-popup__count {
  font-family: var(--fh);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 40px rgba(245,200,66,0.45);
}

.pf-reward-popup__label {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  color: var(--hat-orange);
  align-self: center;
  max-width: 90px;
  text-align: left;
  line-height: 1.2;
}

.pf-reward-popup__total {
  font-size: 0.9rem;
  color: var(--text-md);
  margin-bottom: 1.4rem;
  animation: fade-up 0.4s ease both 0.5s;
}

.pf-reward-popup__total strong {
  color: var(--accent);
  font-weight: 800;
}

.pf-reward-popup__badge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.28);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  animation: badge-pop 0.55s ease both 0.6s;
}

@keyframes badge-pop {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  70%  { transform: scale(1.1)  rotate(3deg); }
  100% { transform: scale(1)    rotate(0);    opacity: 1; }
}

.pf-reward-popup__badge-icon { font-size: 1.5rem; }

.pf-reward-popup__guest {
  margin-bottom: 1rem;
  animation: fade-up 0.4s ease both 0.54s;
}

.pf-reward-popup__signup-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  color: #fff;
  font-family: var(--fh);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pf-reward-popup__signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(244,132,30,0.42);
}

.pf-reward-popup__close {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: var(--text-md);
  font-family: var(--fh);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 11px 26px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  animation: fade-up 0.4s ease both 0.64s;
}

.pf-reward-popup__close:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

/* ═══════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════ */
.pf-dashboard {
  padding: calc(var(--nav-h) + 2.5rem) 0 5rem;
  min-height: 100vh;
}

.pf-dash-hero {
  background: linear-gradient(135deg, rgba(91,58,155,0.2), rgba(75,174,232,0.1));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.pf-dash-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  object-fit: cover;
}

.pf-dash-hero__info { flex: 1; min-width: 0; }

.pf-dash-hero__name {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.pf-dash-hero__badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-md);
  flex-wrap: wrap;
}

.pf-dash-badge-chip {
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.26);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.pf-dash-points-big {
  font-family: var(--fh);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}

/* Stat cards */
.pf-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.pf-dash-stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
}

.pf-dash-stat-card__num {
  font-family: var(--fh);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pf-dash-stat-card__lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-lo);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Progress bar */
.pf-dash-progress-wrap { margin-bottom: 1.8rem; }

.pf-dash-progress-bar-bg {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.pf-dash-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hat-orange), var(--accent));
  border-radius: 5px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* Section title */
.pf-dash-section-title {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Badge grid */
.pf-dash-badges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.8rem;
}

.pf-dash-badge-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.1rem 0.6rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.pf-dash-badge-card.earned {
  border-color: rgba(245,200,66,0.32);
  background: rgba(245,200,66,0.05);
}

.pf-dash-badge-card:not(.earned) { opacity: 0.4; filter: grayscale(0.5); }

.pf-dash-badge-card__icon { font-size: 1.9rem; margin-bottom: 0.35rem; }

.pf-dash-badge-card__name {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-md);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.pf-dash-badge-card.earned .pf-dash-badge-card__name { color: var(--accent); }

.pf-dash-badge-card__pts {
  font-size: 0.64rem;
  color: var(--text-lo);
  font-weight: 700;
}

/* Two-column layout */
.pf-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

/* History */
.pf-dash-history,
.pf-dash-leaderboard {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
}

.pf-dash-history__row,
.pf-dash-lb-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.82rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.14s;
  text-decoration: none;
  color: inherit;
}

.pf-dash-history__row:last-child,
.pf-dash-lb-row:last-child { border-bottom: none; }

.pf-dash-history__row:hover,
.pf-dash-lb-row:hover { background: rgba(255,255,255,0.03); }

.pf-dash-history__title,
.pf-dash-lb-name {
  flex: 1;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pf-dash-history__pts,
.pf-dash-lb-pts {
  font-family: var(--fh);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.pf-dash-history__date {
  font-size: 0.68rem;
  color: var(--text-lo);
  white-space: nowrap;
}

.pf-dash-history__empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-lo);
  font-size: 0.88rem;
}

/* Leaderboard */
.pf-dash-lb-rank {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-lo);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.pf-dash-lb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

@media (max-width: 860px) {
  .pf-dash-grid   { grid-template-columns: 1fr; }
  .pf-dash-badges { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .pf-dash-stats  { grid-template-columns: 1fr 1fr; }
  .pf-dash-badges { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
  .pf-dash-stats  { grid-template-columns: 1fr; }
  .pf-dash-badges { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   LOGIN / REGISTER PAGE
═══════════════════════════════════════════ */
.pf-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1rem 3rem;
}

.pf-auth-card {
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  padding: 2.4rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.pf-auth-logo {
  text-align: center;
  margin-bottom: 1.8rem;
}

.pf-auth-logo__text {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
}

.pf-auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.8rem;
  gap: 4px;
}

.pf-auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 9px;
  font-family: var(--fh);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-lo);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pf-auth-tab.active {
  background: var(--hat-orange);
  color: #fff;
}

.pf-auth-form { display: none; }
.pf-auth-form.active { display: block; }

.pf-auth-field { margin-bottom: 1rem; }

.pf-auth-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.pf-auth-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--fb);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.pf-auth-field input:focus {
  border-color: var(--hat-blue);
  background: rgba(75,174,232,0.06);
}

.pf-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--hat-orange), var(--pocket-purple));
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.pf-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(244,132,30,0.38);
}

.pf-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pf-auth-error {
  background: rgba(232,65,154,0.1);
  border: 1px solid rgba(232,65,154,0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--bow-pink);
  margin-bottom: 1rem;
}

.pf-auth-divider {
  text-align: center;
  color: var(--text-lo);
  font-size: 0.76rem;
  margin: 1rem 0;
}

.pf-auth-guest-link {
  display: block;
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-lo);
}

.pf-auth-guest-link a { color: var(--hat-blue); }

/* Navbar user link (Sign In / Dashboard) */
.pf-nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-md);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

.pf-nav-user-link span {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-nav-user-link:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.06);
}

/* Hide the display name text on small screens, keep icon only */
@media (max-width: 900px) {
  .pf-nav-user-link span { display: none; }
}

/* Mobile nav link/button base — override handled cleanly via .open state above */
@media (max-width: 768px) {
  #pf-mobile-nav a,
  #pf-mobile-nav button:not(.pf-mobile-lang button) {
    text-align: left;
    box-sizing: border-box;
  }
}

/* ── Single-post Favorites Button (standalone — not combined with pf-story-card__fav) ── */
.pf-single__fav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1.5px solid rgba(232,65,154,0.5);
  background: rgba(232,65,154,0.12);
  color: #f472b6;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(232,65,154,0.18);
  transition: background 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, transform 0.18s ease;
}

.pf-single__fav:hover {
  background: rgba(232,65,154,0.26);
  border-color: rgba(232,65,154,0.8);
  box-shadow: 0 6px 22px rgba(232,65,154,0.34);
  transform: translateY(-2px);
}

/* Active / already-favorited state */
.pf-single__fav.active {
  background: linear-gradient(135deg, rgba(232,65,154,0.36), rgba(244,132,30,0.18));
  border-color: rgba(232,65,154,0.85);
  color: #fb7fb7;
  box-shadow: 0 4px 20px rgba(232,65,154,0.4);
}

.pf-single__fav.active .pf-single__fav-label::before {
  content: 'Remove from ';
}

/* Heart pulse on active */
.pf-single__fav.active .pf-single__fav-heart {
  animation: fav-pulse 1.4s ease-in-out infinite;
}

@keyframes fav-pulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.25); }
}

/* ═══════════════════════════════════════════
   STORIES PAGE — ARCHIVE
═══════════════════════════════════════════ */
.pf-stories-page__header {
  text-align: center;
  padding-bottom: 3rem;
  margin-bottom: 0.5rem;
}

.pf-stories-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(91,58,155,0.25);
  border: 1px solid rgba(91,58,155,0.45);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.2rem;
}

.pf-stories-page__title {
  font-family: var(--fh);
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.pf-stories-page__sub {
  font-size: 1rem;
  color: var(--text-md);
  margin-bottom: 1.5rem;
}

.pf-stories-page__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-md);
  padding: 4rem 0;
  font-size: 1.05rem;
}

/* Story card — audio badge */
.pf-story-card__audio-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(75,174,232,0.2);
  border: 1px solid rgba(75,174,232,0.35);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hat-blue);
}

/* Story card — date label */
.pf-story-card__date {
  font-size: 0.72rem;
  color: var(--text-lo);
  font-weight: 700;
}

/* ─── Loading Spinner ─── */
.pf-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: var(--hat-orange);
  animation: pf-spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes pf-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   CUSTOM AUDIO PLAYER
═══════════════════════════════════════════ */
.pf-audio-player {
  background: linear-gradient(135deg, rgba(75,174,232,0.07), rgba(91,58,155,0.12));
  border: 1px solid rgba(75,174,232,0.22);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind player */
.pf-audio-player::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(75,174,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Header row */
.pf-audio-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-audio-player__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Animated EQ bars (visible only while playing) */
.pf-audio-player__eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.pf-audio-player--playing .pf-audio-player__eq {
  opacity: 1;
}

.pf-audio-player__eq span {
  display: block;
  width: 3px;
  background: var(--hat-blue);
  border-radius: 2px;
  animation: eq-idle 1.4s ease-in-out infinite;
}
.pf-audio-player__eq span:nth-child(1) { height: 8px;  animation-delay: 0s;    animation-duration: 1.1s; }
.pf-audio-player__eq span:nth-child(2) { height: 14px; animation-delay: 0.15s; animation-duration: 0.9s; }
.pf-audio-player__eq span:nth-child(3) { height: 10px; animation-delay: 0.3s;  animation-duration: 1.3s; }
.pf-audio-player__eq span:nth-child(4) { height: 6px;  animation-delay: 0.45s; animation-duration: 1.0s; }

@keyframes eq-idle {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1);   }
}

.pf-audio-player--playing .pf-audio-player__eq span {
  animation-name: eq-play;
}

@keyframes eq-play {
  0%, 100% { transform: scaleY(0.25); }
  50%       { transform: scaleY(1);   }
}

.pf-audio-player__label {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 800;
  color: var(--hat-blue);
}

.pf-audio-player__pts {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-lo);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Controls row */
.pf-audio-player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Play/Pause button */
.pf-audio-player__play {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(244,132,30,0.38);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.pf-audio-player__play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(244,132,30,0.52);
}
.pf-audio-player__play:active { transform: scale(0.94); }

.pf-audio-player--playing .pf-audio-player__play {
  background: linear-gradient(135deg, var(--hat-blue), var(--hat-purple));
  box-shadow: 0 4px 18px rgba(75,174,232,0.38);
}

/* Progress bar wrap */
.pf-audio-player__progress-wrap {
  flex: 1;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  min-width: 0;
}

.pf-audio-player__track {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: visible;
}

.pf-audio-player__buffered {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.pf-audio-player__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--hat-orange), var(--pocket-gold));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.pf-audio-player__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(244,132,30,0.45);
  opacity: 0;
  transition: opacity 0.2s, left 0.1s linear;
  pointer-events: none;
}

.pf-audio-player__progress-wrap:hover .pf-audio-player__thumb {
  opacity: 1;
}

/* Time display */
.pf-audio-player__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-lo);
  white-space: nowrap;
  flex-shrink: 0;
}

.pf-audio-player__time-sep { color: rgba(255,255,255,0.2); }

#pf-audio-current { color: var(--text-md); }

/* Volume */
.pf-audio-player__vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pf-audio-player__vol-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.pf-audio-player__vol-btn:hover { opacity: 1; }

.pf-audio-player__vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.pf-audio-player__vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--hat-orange);
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(244,132,30,0.3);
}
.pf-audio-player__vol-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--hat-orange);
  border: none;
  cursor: pointer;
}

/* Responsive audio player */
@media (max-width: 600px) {
  .pf-audio-player__vol-slider { display: none; }
  .pf-audio-player__pts        { display: none; }
  .pf-audio-player__play       { width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .pf-audio-player__controls { gap: 8px; }
  .pf-audio-player__time     { font-size: 0.7rem; }
}

/* ═══════════════════════════════════════════
   PAGE HEADER — replaces blank ad zone on
   all non-front-page views
═══════════════════════════════════════════ */
.pf-page-header {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 0;
  background: linear-gradient(90deg,
    rgba(91,58,155,0.18) 0%,
    rgba(75,174,232,0.10) 45%,
    rgba(244,132,30,0.12) 100%
  );
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 100;
}

/* Animated shimmer sweep */
.pf-page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: pf-header-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pf-header-shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Left accent bar */
.pf-page-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hat-purple), var(--hat-blue), var(--hat-orange));
}

.pf-page-header .pf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Breadcrumb nav */
.pf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  flex-wrap: wrap;
}

.pf-breadcrumb a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-breadcrumb a:hover { color: #fff; }

.pf-breadcrumb .pf-bc-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}

.pf-breadcrumb .pf-bc-current {
  color: rgba(255,255,255,0.8);
  font-weight: 800;
  max-width: 320px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Right side decorative pills */
.pf-page-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pf-page-header-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pf-page-header-right { display: none; }
  .pf-breadcrumb .pf-bc-current { max-width: 180px; }
}

/* ═══════════════════════════════════════════
   VIDEO LESSONS SECTION
═══════════════════════════════════════════ */
.pf-vl-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91,58,155,0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(14,11,30,0) 0%, rgba(22,17,46,0.6) 100%);
  border-top: 1px solid rgba(91,58,155,0.15);
}

.pf-vl-header { margin-bottom: 2rem; }

/* Two-column layout */
.pf-vl-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

/* Left column — player + info */
.pf-vl-player-col { min-width: 0; }

/* 16:9 embed wrapper */
.pf-vl-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0818;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.pf-vl-embed iframe,
.pf-vl-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* Click-to-play cover */
.pf-vl-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.pf-vl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pf-vl-cover:hover img { transform: scale(1.04); }

.pf-vl-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,11,30,0.25) 0%,
    rgba(14,11,30,0.55) 100%
  );
}

.pf-vl-cover-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hat-orange), var(--bow-pink));
  border: 3px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(244,132,30,0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  padding-left: 4px; /* optical center for ▶ */
}
.pf-vl-cover:hover .pf-vl-cover-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 42px rgba(244,132,30,0.65);
}

/* Cover title/badge overlay */
.pf-vl-cover-label {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(14,11,30,0.92) 0%, transparent 100%);
}
.pf-vl-cover-label h3 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.pf-vl-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pocket-gold);
  background: rgba(245,200,66,0.12);
  border: 1px solid rgba(245,200,66,0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Empty state */
.pf-vl-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  font-weight: 700;
}
.pf-vl-empty span:first-child { font-size: 3rem; }

/* Info bar below the player */
.pf-vl-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pf-vl-title {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.pf-vl-pts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--pocket-gold);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.22);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.pf-vl-pts-badge.earned {
  color: var(--letter-green);
  background: rgba(91,191,58,0.1);
  border-color: rgba(91,191,58,0.25);
}

/* Watch progress */
.pf-vl-prog-wrap {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-vl-prog-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.pf-vl-prog-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--hat-blue), var(--letter-green));
  transition: width 0.6s ease;
}

.pf-vl-prog-fill.complete {
  background: linear-gradient(90deg, var(--letter-green), var(--pocket-gold));
}

.pf-vl-prog-pct {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-lo);
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Courier New', monospace;
  transition: color 0.3s;
}

/* Right column — playlist */
.pf-vl-playlist {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pf-vl-playlist-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}

.pf-vl-playlist-hdr span:first-child {
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
}

.pf-vl-playlist-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-lo);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 100px;
}

.pf-vl-playlist-items {
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Individual playlist item */
.pf-vl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  position: relative;
}
.pf-vl-item:last-child { border-bottom: none; }
.pf-vl-item:hover { background: rgba(255,255,255,0.04); }

.pf-vl-item.active {
  background: rgba(75,174,232,0.08);
  border-left: 3px solid var(--hat-blue);
}

.pf-vl-item.done { opacity: 0.75; }

.pf-vl-item__thumb {
  position: relative;
  width: 70px;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(91,58,155,0.25);
  flex-shrink: 0;
}

.pf-vl-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-vl-item__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(91,58,155,.4), rgba(75,174,232,.2));
}

.pf-vl-item__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,11,30,0.45);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.1rem;
}
.pf-vl-item:hover .pf-vl-item__play-icon { opacity: 1; }
.pf-vl-item.active .pf-vl-item__play-icon { opacity: 1; background: rgba(75,174,232,0.3); }

.pf-vl-item__dur {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}

.pf-vl-item__check {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--letter-green);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  font-weight: 900;
}
.pf-vl-item.done .pf-vl-item__check { display: flex; }

.pf-vl-item__info {
  flex: 1;
  min-width: 0;
}

.pf-vl-item__title {
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 4px;
}
.pf-vl-item.active .pf-vl-item__title { color: #fff; }

.pf-vl-item__pts {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--pocket-gold);
  opacity: 0.7;
}
.pf-vl-item.done .pf-vl-item__pts { color: var(--letter-green); }

/* Responsive video section */
@media (max-width: 900px) {
  .pf-vl-layout {
    grid-template-columns: 1fr;
  }
  .pf-vl-playlist-items { max-height: 260px; }
}

@media (max-width: 600px) {
  .pf-vl-cover-btn { width: 60px; height: 60px; font-size: 1.5rem; }
  .pf-vl-info { flex-direction: column; gap: 8px; }
  .pf-vl-title { font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   POCKETS AUDIO SONGS SECTION
═══════════════════════════════════════════ */

.pf-as-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,65,154,0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(14,11,30,0) 0%, rgba(22,17,46,0.6) 100%);
  border-top: 1px solid rgba(232,65,154,0.12);
}

.pf-as-header { margin-bottom: 2rem; }

/* Two-column layout — artwork+controls / playlist */
.pf-as-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.pf-as-player-col { min-width: 0; }

/* ── Artwork ── */
/* ── Visual Equalizer wrapper ── */
.pf-as-eq-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0920;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 0 1px rgba(232,65,154,0.08);
}

#pf-as-eq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Song title/artist overlay — sits on top of canvas */
.pf-as-artwork-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,11,30,0.88) 0%,
    rgba(14,11,30,0.25) 35%,
    transparent 65%
  );
  pointer-events: none;
}

.pf-as-song-meta {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 1rem 1.2rem;
}

.pf-as-song-title {
  font-family: var(--fh);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.pf-as-song-artist {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Controls ── */
.pf-as-controls {
  margin-top: 1rem;
}

/* Progress bar */
.pf-as-prog-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.85rem;
}

.pf-as-prog-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  outline: none;
}

.pf-as-prog-track:focus-visible {
  box-shadow: 0 0 0 2px var(--bow-pink);
}

.pf-as-prog-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--bow-pink), var(--hat-purple));
  transition: width 0.25s linear;
}

.pf-as-prog-fill.complete {
  background: linear-gradient(90deg, var(--letter-green), var(--pocket-gold));
}

.pf-as-prog-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(232,65,154,0.5);
  opacity: 0;
  transition: opacity 0.2s, left 0.25s linear;
}

.pf-as-prog-track:hover .pf-as-prog-handle,
.pf-as-prog-track:focus-visible .pf-as-prog-handle { opacity: 1; }

.pf-as-time {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-lo);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: right;
}

/* Playback row */
.pf-as-playback {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pf-as-vol-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pf-as-mute-btn {
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pf-as-mute-btn:hover { transform: scale(1.15); }

.pf-as-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}

.pf-as-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bow-pink);
  cursor: pointer;
}

.pf-as-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bow-pink);
  border: none;
  cursor: pointer;
}

/* Play / pause button */
.pf-as-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bow-pink), var(--hat-purple));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232,65,154,0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  flex-shrink: 0;
}

.pf-as-play-btn svg { width: 22px; height: 22px; }

.pf-as-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(232,65,154,0.6);
}

.pf-as-play-btn:active { transform: scale(0.96); }

/* Points badge */
.pf-as-pts-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--pocket-gold);
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.22);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.pf-as-pts-badge.earned {
  color: var(--letter-green);
  background: rgba(91,191,58,0.1);
  border-color: rgba(91,191,58,0.25);
}

/* ── Playlist (right column) ── */
.pf-as-playlist {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pf-as-playlist-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}

.pf-as-playlist-hdr span:first-child {
  font-family: var(--fh);
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
}

.pf-as-playlist-count {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-lo);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 100px;
}

.pf-as-playlist-items {
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Individual playlist item */
.pf-as-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  position: relative;
}

.pf-as-item:last-child { border-bottom: none; }
.pf-as-item:hover { background: rgba(255,255,255,0.04); }

.pf-as-item.active {
  background: rgba(232,65,154,0.08);
  border-left: 3px solid var(--bow-pink);
}

/* Song thumbnail — square */
.pf-as-item__thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(91,58,155,0.25);
  flex-shrink: 0;
}

.pf-as-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-as-item__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(91,58,155,.4), rgba(232,65,154,.2));
}

.pf-as-item__play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,11,30,0.5);
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1rem;
  color: #fff;
}
.pf-as-item:hover .pf-as-item__play-icon { opacity: 1; }
.pf-as-item.active .pf-as-item__play-icon { opacity: 1; background: rgba(232,65,154,0.3); }

.pf-as-item__dur {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.65);
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}

/* Item info */
.pf-as-item__info {
  flex: 1;
  min-width: 0;
}

.pf-as-item__title {
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 2px;
}
.pf-as-item.active .pf-as-item__title { color: #fff; }

.pf-as-item__artist {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-lo);
  margin-bottom: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pf-as-item__pts {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--pocket-gold);
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pf-as-layout {
    grid-template-columns: 1fr;
  }
  .pf-as-eq-wrap { aspect-ratio: 16 / 9; }
  .pf-as-playlist-items { max-height: 240px; }
}

@media (max-width: 600px) {
  .pf-as-playback { gap: 8px; }
  .pf-as-play-btn { width: 46px; height: 46px; }
  .pf-as-play-btn svg { width: 18px; height: 18px; }
  .pf-as-vol { width: 55px; }
}

/* ═══════════════════════════════════════════
   BARTABOT — NEWSPAPER STYLES
   Red & White theme, Hind Siliguri font
═══════════════════════════════════════════ */

/* ── Story cards → News cards ── */
.pf-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.pf-story-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}
.pf-story-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-mid);
}
.pf-story-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.pf-story-card:hover .pf-story-card__thumb img { transform: scale(1.04); }

.pf-story-card__type {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.pf-story-card__fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .2s;
}
.pf-story-card__fav:hover { transform: scale(1.15); }
.pf-story-card__body {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.pf-story-card__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-hi);
  margin: 0;
}
.pf-story-card__title a { color: inherit; }
.pf-story-card__title a:hover { color: var(--primary); }
.pf-story-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-md);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}
.pf-story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pf-story-card__views {
  font-size: 0.75rem;
  color: var(--text-lo);
}
.pf-story-card__read {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pf-story-card__read:hover { text-decoration: underline; }

/* ── Ticker label ── */
.pf-ticker-label {
  flex-shrink: 0;
  background: #7a0018;          /* deeper crimson — clear separation from ticker band */
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-transform: uppercase;
  /* right edge triangle-notch separator */
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  padding-right: 22px;
  box-shadow: 2px 0 0 rgba(0,0,0,0.15);
}

/* ── Breaking news hero layout ── */
#pf-hero {
  padding-top: calc(var(--nav-h) + var(--ticker-h));
  background: var(--bg-deep);
}
.pf-hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .pf-hero-container { grid-template-columns: 1fr; }
}

/* Featured story (hero left) */
.pf-featured-story {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.pf-featured-story__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.pf-featured-story__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.pf-featured-story:hover .pf-featured-story__thumb img { transform: scale(1.03); }
.pf-featured-story__body {
  padding: 1.5rem;
}
.pf-featured-story__cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.pf-featured-story__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-hi);
  margin-bottom: 0.8rem;
}
.pf-featured-story__title a { color: inherit; }
.pf-featured-story__title a:hover { color: var(--primary); }
.pf-featured-story__excerpt {
  font-size: 0.92rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: 1rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.pf-featured-story__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-lo);
  margin-bottom: 1rem;
}
.pf-featured-story__meta span { display: flex; align-items: center; gap: 4px; }
.pf-featured-story__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  transition: background .2s;
}
.pf-featured-story__read:hover { background: var(--primary-dk); }

/* Hero sidebar */
.pf-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Small news card in sidebar */
.pf-news-card-sm {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  gap: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: box-shadow .2s;
}
.pf-news-card-sm:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.pf-news-card-sm__thumb {
  width: 100px;
  flex-shrink: 0;
  overflow: hidden;
}
.pf-news-card-sm__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.pf-news-card-sm:hover .pf-news-card-sm__thumb img { transform: scale(1.05); }
.pf-news-card-sm__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.pf-news-card-sm__cat {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pf-news-card-sm__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.pf-news-card-sm__title a { color: inherit; }
.pf-news-card-sm__title a:hover { color: var(--primary); }
.pf-news-card-sm__date {
  font-size: 0.7rem;
  color: var(--text-lo);
}

/* Hero widget cards */
.pf-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.pf-widget-card--points { border-left: 4px solid var(--accent); }
.pf-widget-card--clock  { border-left: 4px solid var(--accent2); }
.pf-widget-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-lo);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pf-widget-card__value {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}
.pf-widget-card--points .pf-widget-card__value { color: var(--accent); }
.pf-widget-card--clock  .pf-widget-card__value { color: var(--accent2); }
.pf-widget-card__sub {
  font-size: 0.75rem;
  color: var(--text-lo);
}

/* Points progress bar */
.pf-widget-pts-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.pf-widget-pts-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .6s ease;
}

/* ── Section title with red left bar ── */
.pf-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.pf-section-header::before {
  content: '';
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
  flex-shrink: 0;
}
.pf-section-header h2 {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0;
}
.pf-section-header .pf-section-view-all {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.pf-section-header .pf-section-view-all:hover { text-decoration: underline; }

/* ── nav right elements for newspaper ── */
.pf-nav-dt .t {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.2;
}
.pf-nav-dt .d {
  display: block;
  font-size: 0.68rem;
  color: var(--text-lo);
}
.pf-nav-points {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-lt);
  border: 1px solid rgba(200,16,46,0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}
.pf-nav-user-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-hi);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.pf-nav-user-link:hover { background: var(--primary-lt); color: var(--primary); }
.pf-nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s;
  display: inline-block;
}
.pf-nav-cta:hover { background: var(--primary-dk) !important; }
.pf-search-toggle {
  width: 36px; height: 36px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-hi);
  transition: background .2s;
}
.pf-search-toggle:hover { background: var(--bg-mid); }

/* ── Search overlay — newspaper style ── */
#pf-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
#pf-search-overlay.open { opacity: 1; visibility: visible; }
.pf-search-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 1.5rem;
}
.pf-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
#pf-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: 'Hind Siliguri', sans-serif;
  color: var(--text-hi);
  background: transparent;
}
#pf-search-input::placeholder { color: var(--text-lo); }

/* ── Points toast ── */
.pf-points-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99998;
  background: var(--text-hi);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.pf-points-toast.show { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.pf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.pf-btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); }

/* ── Page header (non-front-page) ── */
.pf-page-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 1rem) 0 1rem;
}
.pf-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-md); flex-wrap: wrap; }
.pf-breadcrumb a { color: var(--primary); }
.pf-bc-sep { color: var(--text-lo); }
.pf-bc-current { color: var(--text-hi); font-weight: 600; }
.pf-page-header .pf-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pf-page-header-right { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-page-header-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Ad zone — (canonical rules below, at end of file) ── */
.pf-ad-zone--LEGACY-BLOCK-2 {
  background: var(--bg-mid);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-lo);
  font-size: 0.78rem;
  font-weight: 600;
  min-height: 90px;
}
.pf-ad-zone--leaderboard { min-height: 90px; }

/* ── BartaBot Newspaper Footer ── */
#pf-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding-top: 3rem;
}
.pf-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .pf-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .pf-footer__top { grid-template-columns: 1fr; }
}
.pf-footer__brand-name {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.pf-footer__brand-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  max-width: 260px;
}
.pf-footer__social { display: flex; gap: 10px; }
.pf-social-link {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s;
  text-decoration: none;
}
.pf-social-link:hover { background: var(--primary); }
.pf-footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.pf-footer__links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pf-footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color .2s;
}
.pf-footer__links a:hover { color: #fff; padding-left: 4px; }

/* Leaderboard */
.pf-footer__leaderboard { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pf-lb__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pf-lb__row:last-child { border-bottom: none; }
.pf-lb__row--top { color: rgba(255,255,255,0.9); }
.pf-lb__rank { font-size: 1rem; width: 24px; flex-shrink: 0; }
.pf-lb__name { flex: 1; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pf-lb__points { font-size: 0.75rem; font-weight: 700; color: var(--accent); }
.pf-footer__leaderboard-empty { text-align: center; padding: 1rem 0; color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.pf-lb-empty__icon { font-size: 2rem; margin-bottom: 6px; }
.pf-lb-empty__title { font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 4px; }

/* Footer bottom */
.pf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.pf-footer__copy a { color: rgba(255,255,255,0.55); }
.pf-footer__copy a:hover { color: var(--primary); }
.pf-footer__bottom-links { display: flex; gap: 16px; }
.pf-footer__bottom-links a { color: rgba(255,255,255,0.35); transition: color .2s; }
.pf-footer__bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Dropdown links (newspaper white theme) ── */
.pf-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  transition: background .15s, color .15s;
}
.pf-dropdown a:hover { background: var(--primary-lt); color: var(--primary); }
.pf-dd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Mobile nav CTA button ── */
.pf-mobile-cta {
  background: var(--primary) !important;
  color: #fff !important;
  margin-top: 8px;
  border-radius: 6px !important;
  text-align: center;
  font-weight: 700 !important;
}

/* ── Admin bar offset ── */
.admin-bar #pf-nav { top: 32px !important; }
.admin-bar .pf-hero__ticker { top: calc(32px + var(--nav-h)) !important; }
.admin-bar #pf-hero { padding-top: calc(32px + var(--nav-h) + var(--ticker-h)) !important; }
@media (max-width: 782px) {
  .admin-bar #pf-nav { top: 46px !important; }
  .admin-bar .pf-hero__ticker { top: calc(46px + var(--nav-h)) !important; }
  .admin-bar #pf-hero { padding-top: calc(46px + var(--nav-h) + var(--ticker-h)) !important; }
}

/* ── Responsive navbar ── */
@media (max-width: 1100px) {
  .pf-navlinks { display: none; }
  .pf-burger { display: flex; }
  .pf-nav-dt { display: none; }
}
@media (max-width: 640px) {
  .pf-nav-points { display: none; }
  #pf-nav { padding: 0 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST PAGE — BartaBot Newspaper Layout
═══════════════════════════════════════════════════════════ */

/* ── Outer wrapper & container ── */
.pf-single-wrap {
  padding-top: calc(var(--nav-h) + var(--ticker-h) + 1.5rem);
  padding-bottom: 4rem;
  min-height: 80vh;
  background: var(--bg-deep);
}
.pf-single-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Two-column grid: article + sidebar ── */
.pf-single-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .pf-single-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE HEADER (full-width, above grid)
═══════════════════════════════════════════════════════════ */
.pf-article-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Breadcrumb row */
.pf-article-header__meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-md);
}
.pf-article-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .2s;
}
.pf-article-cat-badge:hover { background: var(--primary-dk); }
.pf-article-header__sep { color: var(--text-lo); }
.pf-article-header__home-link { color: var(--primary); font-weight: 600; }
.pf-article-header__home-link:hover { text-decoration: underline; }
.pf-article-header__breadcrumb-current {
  color: var(--text-hi);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* Article title */
.pf-article-title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-hi);
  margin-bottom: 1rem;
}

/* Meta row */
.pf-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.82rem;
  color: var(--text-md);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.pf-article-meta__item { display: flex; align-items: center; gap: 4px; }
.pf-article-meta__sep { color: var(--border); font-size: 1rem; }
.pf-article-meta__readtime { color: var(--primary); font-weight: 600; }

/* Inline bookmark button */
.pf-fav-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.pf-fav-inline:hover { background: var(--primary); color: #fff; }
.pf-single__fav-heart { font-size: 0.9rem; }

/* Social share row */
.pf-article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.pf-article-share__label {
  font-weight: 700;
  color: var(--text-md);
  margin-right: 4px;
}
.pf-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  border: none;
}
.pf-share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.pf-share-btn--fb  { background: #1877F2; color: #fff; }
.pf-share-btn--tw  { background: #1DA1F2; color: #fff; }
.pf-share-btn--copy { background: var(--bg-mid); color: var(--text-hi); border: 1px solid var(--border); }
.pf-share-btn--copy:hover { background: var(--text-hi); color: #fff; opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   MAIN ARTICLE AREA
═══════════════════════════════════════════════════════════ */
.pf-single-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Featured image */
.pf-article-thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.pf-article-thumb__img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.pf-article-thumb__caption {
  display: block;
  font-size: 0.78rem;
  color: var(--text-lo);
  padding: 8px 1.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Article body typography */
.pf-article-body {
  padding: 2rem 2rem 1.5rem;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-hi);
}
.pf-article-body p {
  margin-bottom: 1.25rem;
}
.pf-article-body h2,
.pf-article-body h3,
.pf-article-body h4 {
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 700;
  color: var(--text-hi);
  margin: 1.75rem 0 0.75rem;
  line-height: 1.4;
}
.pf-article-body h2 { font-size: 1.4rem; }
.pf-article-body h3 { font-size: 1.2rem; }
.pf-article-body h4 { font-size: 1.05rem; }
.pf-article-body a {
  color: var(--primary);
  text-decoration: underline;
}
.pf-article-body a:hover { color: var(--primary-dk); }
.pf-article-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--primary-lt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-md);
  font-style: italic;
}
.pf-article-body ul,
.pf-article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
}
.pf-article-body li { margin-bottom: 0.4rem; }
.pf-article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}
.pf-article-body figure { margin: 1.5rem 0; }
.pf-article-body figcaption {
  font-size: 0.8rem;
  color: var(--text-lo);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   SOURCES BOX
═══════════════════════════════════════════════════════════ */
.pf-sources-box {
  margin: 0 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-top: 3px solid var(--primary);
}
.pf-sources-box__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-deep);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.pf-sources-box__icon { font-size: 1rem; }
.pf-sources-box__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pf-sources-box__list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.pf-sources-box__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--bg-deep);
  font-size: 0.85rem;
  transition: background .15s;
}
.pf-sources-box__item:last-child { border-bottom: none; }
.pf-sources-box__item:hover { background: var(--primary-lt); }
.pf-sources-box__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.pf-sources-box__link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  word-break: break-all;
}
.pf-sources-box__link:hover { text-decoration: underline; }
.pf-sources-box__ext-icon {
  font-size: 0.75rem;
  opacity: 0.7;
  flex-shrink: 0;
}
.pf-sources-box__text {
  color: var(--text-md);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE TAGS
═══════════════════════════════════════════════════════════ */
.pf-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid var(--border);
}
.pf-article-tags__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pf-article-tag {
  display: inline-block;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-md);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  transition: background .15s, border-color .15s, color .15s;
}
.pf-article-tag:hover {
  background: var(--primary-lt);
  border-color: rgba(200,16,46,0.3);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   PREV / NEXT POST NAVIGATION
═══════════════════════════════════════════════════════════ */
.pf-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--border);
  background: var(--border);
}
.pf-post-nav__item {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
}
.pf-post-nav__link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  transition: background .2s;
  border-radius: var(--radius-sm);
  padding: 6px;
  margin: -6px;
}
.pf-post-nav__link:hover { background: var(--primary-lt); }
.pf-post-nav__link--right {
  align-items: flex-end;
  text-align: right;
}
.pf-post-nav__dir {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pf-post-nav__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.4;
}
@media (max-width: 600px) {
  .pf-post-nav { grid-template-columns: 1fr; }
  .pf-post-nav__item { border-bottom: 1px solid var(--border); }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.pf-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 1rem);
}

/* Generic sidebar widget */
.pf-sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pf-sidebar-widget__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-hi);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Points widget */
.pf-sidebar-widget--points {
  border-top: 4px solid var(--primary);
  text-align: center;
}
.pf-widget-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.pf-widget-card__value {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.pf-widget-card__sub {
  font-size: 0.78rem;
  color: var(--text-lo);
  margin-top: 4px;
  line-height: 1.5;
}
.pf-widget-pts-bar {
  background: var(--bg-deep);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-top: 10px;
}
.pf-widget-pts-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width .5s var(--ease);
}

/* ═══════════════════════════════════════════════════════════
   RELATED POSTS LIST
═══════════════════════════════════════════════════════════ */
.pf-related-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pf-related-item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.pf-related-item:hover { background: var(--primary-lt); }
.pf-related-item__thumb {
  width: 72px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-deep);
}
.pf-related-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-related-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.pf-related-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.pf-related-item__cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pf-related-item__title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pf-related-item__date {
  font-size: 0.72rem;
  color: var(--text-lo);
}

/* Back to all news button */
.pf-sidebar-back-btn {
  display: block;
  text-align: center;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-md);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.pf-sidebar-back-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   REWARD POPUP — Light newspaper theme
═══════════════════════════════════════════════════════════ */
.pf-reward-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pf-reward-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.pf-reward-popup__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.pf-reward-popup__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.pf-reward-popup__icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.pf-reward-popup__heading {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 1rem;
}
.pf-reward-popup__pts-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 0.5rem;
}
.pf-reward-popup__plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.pf-reward-popup__count {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.pf-reward-popup__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-md);
}
.pf-reward-popup__total {
  font-size: 0.9rem;
  color: var(--text-lo);
  margin-bottom: 1.25rem;
}
.pf-reward-popup__total strong { color: var(--text-hi); font-weight: 700; }
.pf-reward-popup__badge {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.pf-reward-popup__guest { margin-bottom: 1rem; }
.pf-reward-popup__signup-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Hind Siliguri', sans-serif;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s;
}
.pf-reward-popup__signup-btn:hover { background: var(--primary-dk); }
.pf-reward-popup__close {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.pf-reward-popup__close:hover { background: var(--primary-dk); }

/* ═══════════════════════════════════════════════════════════
   HERO REDESIGN — Prothom Alo-Inspired Layout
   Left panel: 1 big overlay card + 3 small thumbnail cards
   Right panel: sidebar news + widgets
═══════════════════════════════════════════════════════════ */

/* Override container to give left panel more room */
.pf-hero-container {
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}

/* ── Left panel ── */
.pf-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

/* ── Big Featured Card (full-bleed image + bottom overlay) ── */
.pf-hero-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  flex-shrink: 0;
}

.pf-hero-featured__link {
  display: block;
  position: relative;
  text-decoration: none;
}

.pf-hero-featured__img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.pf-hero-featured__img--placeholder {
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F0F0;
  font-size: 5rem;
}

.pf-hero-featured:hover .pf-hero-featured__img {
  transform: scale(1.03);
}

/* Gradient overlay — image still clearly visible at top */
.pf-hero-featured__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5rem 1.75rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.90) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.10) 75%,
    transparent 100%
  );
}

.pf-hero-featured__cat {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 0.55rem;
}

.pf-hero-featured__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 0.4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-hero-featured__title a { color: inherit; text-decoration: none; }
.pf-hero-featured__title a:hover { color: var(--accent); }

.pf-hero-featured__excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-hero-featured__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.72);
}

/* ── 3 Small Cards Row ── */
.pf-hero-smalls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.pf-hero-small-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.pf-hero-small-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* Thumbnail with category badge overlay */
.pf-hero-small-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-mid);
  flex-shrink: 0;
}

.pf-hero-small-card__thumb-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.pf-hero-small-card__thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.pf-hero-small-card:hover .pf-hero-small-card__thumb-wrap img {
  transform: scale(1.06);
}

.pf-hero-small-card__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.6;
}

.pf-hero-small-card__body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.pf-hero-small-card__title {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-hi);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-hero-small-card__title a { color: inherit; text-decoration: none; }
.pf-hero-small-card__title a:hover { color: var(--primary); }

.pf-hero-small-card__date {
  font-size: 0.7rem;
  color: var(--text-lo);
  margin-top: auto;
}

/* ── Sidebar section header ── */
.pf-sidebar-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.pf-sidebar-header__bar {
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.pf-sidebar-header__text {
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-hi);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── Enhanced sidebar small cards (bigger thumb) ── */
.pf-hero-sidebar .pf-news-card-sm {
  align-items: stretch;
}

.pf-hero-sidebar .pf-news-card-sm__thumb {
  width: 110px;
  height: 82px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.pf-hero-sidebar .pf-news-card-sm__thumb img {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ── Stats bar ── */
.pf-hero-stats {
  display: flex;
  gap: 8px;
}

.pf-hero-stats__item {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
}

.pf-hero-stats__num {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.pf-hero-stats__label {
  font-size: 0.68rem;
  color: var(--text-lo);
  font-weight: 600;
  margin-top: 2px;
}

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  .pf-hero-container {
    grid-template-columns: 1fr;
  }
  .pf-hero-featured__img,
  .pf-hero-featured__img--placeholder {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 700px) {
  .pf-hero-smalls {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-hero-featured__img,
  .pf-hero-featured__img--placeholder {
    aspect-ratio: 4 / 3;
  }
  .pf-hero-featured__overlay {
    padding: 3.5rem 1.1rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .pf-hero-smalls {
    grid-template-columns: 1fr;
  }
  .pf-hero-featured__title {
    font-size: 1.1rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   AD ZONES — canonical rules
   To activate: Appearance → Customize → 📣 Ad Settings
   Paste your Google AdSense <script> tag in the textarea.
═══════════════════════════════════════════════════════════ */

/* Base wrapper — shared by all ad unit sizes */
.pf-ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;             /* keeps ad iframe clipped */
  /* No fixed size here — variants below set dimensions */
}

/* ── Sidebar 300×250 Medium Rectangle ── */
.pf-ad-zone--sidebar {
  width: 100%;                  /* fills the 320px sidebar column */
  max-width: 300px;
  min-height: 250px;
  margin: 0 auto;               /* centre if sidebar is wider than 300px */
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* When live ad code is injected, make the wrapper height auto */
.pf-ad-zone--sidebar > ins,
.pf-ad-zone--sidebar > script + ins {
  display: block;
  width: 300px !important;
  height: 250px !important;
}

/* ── Leaderboard 728×90 ── */
.pf-ad-zone--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin: 0 auto 2rem;          /* centred, breathing room below */
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pf-ad-zone--leaderboard > ins,
.pf-ad-zone--leaderboard > script + ins {
  display: block;
  width: 728px !important;
  height: 90px !important;
}

/* ── Placeholder (shown when no ad code is set) ── */
.pf-ad-zone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #fafafa;
  border: 1.5px dashed #d4d4d4;
  border-radius: calc(var(--radius) - 1px);
  padding: 1.5rem 1rem;
  text-align: center;
}

.pf-ad-zone__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
}

.pf-ad-zone__hint {
  font-size: 0.65rem;
  color: #ccc;
  line-height: 1.5;
}

/* ── Responsive: on small screens leaderboard scrolls horizontally ── */
@media (max-width: 768px) {
  .pf-ad-zone--leaderboard {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 360px) {
  .pf-ad-zone--sidebar {
    max-width: 100%;
    min-height: 200px;
  }
}