/* ===========================================================
   Site C — poki.love — Vibrant Pop Cards
   Pop culture, Gen Z social, TikTok-meets-gaming
   =========================================================== */

:root {
  --c-purple: #a855f7;
  --c-pink:   #ec4899;
  --c-orange: #fb923c;
  --c-yellow: #fbbf24;
  --c-cyan:   #06b6d4;

  --c-news:    var(--c-purple);
  --c-reviews: var(--c-orange);
  --c-videos:  var(--c-pink);
  --c-features:var(--c-yellow);
  --c-guides:  var(--c-cyan);

  --bg-1: #fff5f7;
  --bg-2: #f5f0ff;
  --bg-card: #ffffff;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #a1a1aa;

  --r-card: 20px;
  --r-btn: 16px;
  --r-pill: 999px;

  --topbar-h: 60px;

  --shadow-purple: 0 8px 24px -8px rgba(168, 85, 247, 0.45);
  --shadow-pink:   0 8px 24px -8px rgba(236, 72, 153, 0.45);
  --shadow-orange: 0 8px 24px -8px rgba(251, 146, 60, 0.45);
  --shadow-yellow: 0 8px 24px -8px rgba(251, 191, 36, 0.45);
  --shadow-cyan:   0 8px 24px -8px rgba(6, 182, 212, 0.45);
}

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.app {
  max-width: 480px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  min-height: 100vh;
  padding-bottom: 64px;
}

/* ============== TOP BAR ============== */
.topbar {
  height: var(--topbar-h);
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 18px -10px rgba(168, 85, 247, 0.6);
}
.topbar .hamburger {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  transition: transform 0.15s;
}
.topbar .hamburger:active { transform: scale(0.92); }
.topbar .hamburger svg { width: 22px; height: 22px; }
.topbar .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-left: 10px;
  letter-spacing: -0.5px;
  flex: 1;
}
.topbar .logo .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-yellow);
  margin: 0 2px 4px 2px;
  box-shadow: 0 0 12px var(--c-yellow);
}
.topbar .bell {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 18px;
  position: relative;
}
.topbar .bell::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: 0 0 0 2px #fff;
}

/* ============== DRAWER ============== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 20% 20%, rgba(168,85,247,0.55), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(236,72,153,0.55), transparent 45%),
    radial-gradient(circle at 70% 25%, rgba(251,191,36,0.45), transparent 40%),
    radial-gradient(circle at 30% 80%, rgba(6,182,212,0.45), transparent 40%),
    linear-gradient(135deg, #1f1147 0%, #3b0a4a 100%);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 8px;
}
.drawer-head .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.5px;
}
.drawer-head .brand span { color: var(--c-yellow); }
.drawer-head .close {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  display: grid; place-items: center;
}
.drawer-slogan {
  padding: 0 22px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
}
.drawer-slogan span { font-size: 22px; margin-right: 6px; }

.drawer-nav {
  padding: 8px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s, transform 0.15s;
}
.drawer-nav .nav-item:active { transform: scale(0.97); background: rgba(255,255,255,0.18); }
.drawer-nav .nav-item .icon { font-size: 22px; }
.drawer-nav .nav-item .arrow { margin-left: auto; opacity: 0.6; font-size: 16px; }
.drawer-nav .nav-item.cta {
  background: linear-gradient(135deg, var(--c-pink), var(--c-orange));
  border-color: transparent;
  box-shadow: var(--shadow-pink);
}

.drawer-section-title {
  padding: 22px 22px 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

.drawer-footer {
  margin-top: auto;
  padding: 22px;
}
.drawer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.drawer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.12);
  font-size: 18px;
  transition: background 0.15s;
}
.drawer-social a:active { background: rgba(255,255,255,0.22); }
.drawer-version {
  font-size: 12px;
  opacity: 0.5;
  font-family: 'Poppins', sans-serif;
}

.drawer-emoji-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.drawer-emoji-bg span {
  position: absolute;
  font-size: 32px;
  opacity: 0.35;
}
.drawer-emoji-bg span:nth-child(1) { top: 12%; left: 8%; }
.drawer-emoji-bg span:nth-child(2) { top: 28%; right: 12%; }
.drawer-emoji-bg span:nth-child(3) { top: 48%; left: 18%; }
.drawer-emoji-bg span:nth-child(4) { top: 62%; right: 18%; }
.drawer-emoji-bg span:nth-child(5) { bottom: 18%; left: 12%; }
.drawer-emoji-bg span:nth-child(6) { bottom: 30%; right: 8%; }

/* ============== HERO TITLE ============== */
.welcome {
  padding: 22px 16px 10px;
}
.welcome .hi {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.5px;
}
.welcome h1 {
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 50%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.welcome h1 .emoji {
  -webkit-text-fill-color: initial;
  color: initial;
  margin-left: 4px;
}
.welcome .sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-2);
}

/* ============== SEARCH ============== */
.search {
  padding: 10px 16px 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--r-btn);
  padding: 12px 14px;
  box-shadow: 0 4px 16px -10px rgba(168,85,247,0.4);
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--c-purple); }
.search-box .ic { font-size: 16px; color: var(--text-3); }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--text);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box .kbd {
  background: #f4f4f5;
  font-size: 11px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-3);
  padding: 3px 6px;
  border-radius: 6px;
}

/* ============== CHIP ROW ============== */
.chip-row {
  padding: 14px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  background: linear-gradient(180deg, var(--bg-1) 75%, transparent 100%);
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-inner {
  display: flex;
  gap: 8px;
  padding: 0 16px;
}
.chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: #fff;
  border-radius: var(--r-pill);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  border: 2px solid #f4f4f5;
  white-space: nowrap;
  transition: all 0.15s;
}
.chip .e { margin-right: 4px; }
.chip.active {
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}
.chip:active { transform: scale(0.95); }

/* ============== HERO CARD ============== */
.hero {
  margin: 16px;
  position: relative;
  transform: rotate(-1.5deg);
  transform-origin: center;
}
.hero-card {
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px -18px rgba(168,85,247,0.5);
}
.hero-card .img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  overflow: hidden;
}
.hero-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-card .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55));
}
.hero-card .sticker {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--c-yellow);
  color: #18181b;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transform: rotate(-5deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  z-index: 2;
  letter-spacing: 0.3px;
}
.hero-card .cat-chip {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
}
.hero-card .title-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff;
  z-index: 2;
}
.hero-card .title-overlay h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero-card .meta {
  display: flex; gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  opacity: 0.92;
}
.hero-card .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Section headers */
.sec-head {
  padding: 22px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sec-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sec-head h2 .e { font-size: 22px; }
.sec-head .more {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--c-purple);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(168,85,247,0.12);
}

/* ============== CATEGORY CHIPS / BADGES ============== */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  color: #fff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.cat-badge .e { font-size: 12px; }
.cat-badge.b-News     { background: var(--c-news);     box-shadow: var(--shadow-purple); }
.cat-badge.b-Reviews  { background: var(--c-reviews);  box-shadow: var(--shadow-orange); }
.cat-badge.b-Videos   { background: var(--c-videos);   box-shadow: var(--shadow-pink); }
.cat-badge.b-Features { background: var(--c-features); box-shadow: var(--shadow-yellow); color: #18181b; }
.cat-badge.b-Guides   { background: var(--c-guides);   box-shadow: var(--shadow-cyan); }

/* ============== CARD GRID ============== */
.grid {
  padding: 4px 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.18);
}
.card:active { transform: scale(0.97); }
.card .img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
}
.card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.card .img-wrap .cat-badge {
  position: absolute;
  top: 8px; left: 8px;
}
.card .body {
  padding: 10px 12px 14px;
}
.card .body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .body .meta {
  margin-top: 8px;
  display: flex; gap: 8px;
  font-size: 10.5px;
  color: var(--text-3);
  font-family: 'Poppins', sans-serif;
}

/* Per-bucket color shadow accents on cards */
.card.s-News     { box-shadow: var(--shadow-purple); }
.card.s-Reviews  { box-shadow: var(--shadow-orange); }
.card.s-Videos   { box-shadow: var(--shadow-pink); }
.card.s-Features { box-shadow: var(--shadow-yellow); }
.card.s-Guides   { box-shadow: var(--shadow-cyan); }

/* ============== TOP RATED ============== */
.top-rated {
  padding: 0 0 4px;
}
.top-rated-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 16px 12px;
  scrollbar-width: none;
}
.top-rated-row::-webkit-scrollbar { display: none; }
.tr-card {
  flex: 0 0 240px;
  background: #fff;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-orange);
  position: relative;
}
.tr-card .img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.tr-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.tr-card .score {
  position: absolute;
  bottom: -16px; right: 12px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-pink), var(--c-orange));
  color: #fff;
  display: grid; place-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(236,72,153,0.4);
  border: 4px solid #fff;
  letter-spacing: -1px;
}
.tr-card .body {
  padding: 22px 14px 14px;
}
.tr-card .body .cat-badge { font-size: 10px; padding: 3px 7px; }
.tr-card .body h3 {
  margin-top: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== VIDEOS ============== */
.video-grid {
  padding: 4px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.video-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-pink);
  aspect-ratio: 16/10;
}
.video-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.video-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6));
}
.video-card .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  color: var(--c-pink);
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.video-card .duration {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}
.video-card .title {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  z-index: 2;
  padding-right: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== NEWSLETTER ============== */
.newsletter {
  margin: 24px 16px 16px;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 60%, var(--c-orange) 100%);
  padding: 28px 22px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(168,85,247,0.5);
  color: #fff;
}
.newsletter::before {
  content: '🎮';
  position: absolute;
  font-size: 96px;
  right: -16px; bottom: -22px;
  opacity: 0.25;
  transform: rotate(-15deg);
}
.newsletter::after {
  content: '📩';
  position: absolute;
  font-size: 64px;
  right: 40px; top: -10px;
  opacity: 0.45;
}
.newsletter h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.newsletter p {
  font-size: 13px;
  opacity: 0.92;
  margin-bottom: 16px;
  max-width: 280px;
}
.newsletter .form {
  display: flex;
  gap: 8px;
}
.newsletter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
.newsletter button {
  padding: 12px 18px;
  border-radius: var(--r-btn);
  background: var(--text);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

/* ============== FOOTER ============== */
.footer {
  padding: 26px 16px 20px;
  background: #fff;
  border-top: 1px solid #f4f4f5;
  margin-top: 18px;
}
.footer .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.footer .tag {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin: 14px 0 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
  font-size: 16px;
  box-shadow: var(--shadow-purple);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--text-2);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
.footer-copy {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
}

/* ============== NEWS PAGE ============== */
.news-toolbar {
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-toolbar .count {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
}
.news-toolbar .count strong {
  color: var(--c-purple);
  font-size: 17px;
  margin-right: 4px;
}
.view-toggle {
  display: flex;
  background: #fff;
  border-radius: var(--r-pill);
  padding: 3px;
  border: 1px solid #f4f4f5;
}
.view-toggle button {
  width: 36px; height: 30px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--text-3);
  font-size: 14px;
}
.view-toggle button.active {
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
}

.news-grid {
  padding: 14px 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.news-grid .card .img-wrap { aspect-ratio: 4/3; }

/* List view */
.news-list {
  padding: 14px 16px 0;
  display: none;
  flex-direction: column;
  gap: 14px;
}
body.view-list .news-grid { display: none; }
body.view-list .news-list { display: flex; }
.list-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 10px;
  box-shadow: 0 6px 16px -10px rgba(0,0,0,0.16);
  transition: transform 0.15s;
}
.list-card:active { transform: scale(0.98); }
.list-card .img {
  flex: 0 0 36%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
}
.list-card .img img { width: 100%; height: 100%; object-fit: cover; }
.list-card .img .cat-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 10px;
  padding: 3px 7px;
}
.list-card .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.list-card .body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card .meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Poppins', sans-serif;
  display: flex; gap: 8px;
}
.list-card .meta .source {
  color: var(--c-purple);
  font-weight: 600;
  text-transform: capitalize;
}

.load-more-wrap {
  padding: 22px 16px 0;
  text-align: center;
}
.load-more {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-purple);
  transition: transform 0.15s;
}
.load-more:active { transform: scale(0.97); }
.load-more.done { background: #f4f4f5; color: var(--text-2); box-shadow: none; }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
.empty .e { font-size: 56px; margin-bottom: 12px; display: block; }

/* ============== ARTICLE PAGE ============== */
.article-page .topbar { position: sticky; top: 0; }

.article-head {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.back-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.18);
}
.back-btn:active { transform: scale(0.92); }
.article-head .badge-row { display: flex; gap: 8px; flex: 1; }

.article-hero {
  margin: 0 16px 18px;
  position: relative;
}
.article-hero .img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
}
.article-hero .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
}
.article-hero .cat-emoji {
  position: absolute;
  right: 14px; top: 14px;
  background: rgba(255,255,255,0.92);
  padding: 7px 11px;
  border-radius: var(--r-pill);
  font-size: 16px;
  z-index: 2;
}
.article-hero .badge-bottom {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
}

.article-title {
  padding: 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--c-purple) 0%, var(--c-pink) 60%, var(--c-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.article-meta {
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text-2);
  flex-wrap: wrap;
}
.article-meta .item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.article-meta .dot { color: var(--text-3); }
.article-meta .author-chip {
  background: rgba(168,85,247,0.12);
  color: var(--c-purple);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.article-body {
  padding: 18px 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2a2a30;
}
.article-body p { margin-bottom: 18px; }
.article-body p:first-of-type::first-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 56px;
  float: left;
  line-height: 0.9;
  padding: 4px 8px 0 0;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  margin: 28px 0 12px;
  color: var(--text);
}
.article-body h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 22px 0 10px;
}
.article-body strong { color: var(--text); }
.article-body a { color: var(--c-purple); text-decoration: underline; }

.article-quote {
  margin: 18px 0;
  padding: 18px 18px 18px 22px;
  border-radius: var(--r-card);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
  font-style: italic;
  position: relative;
}
.article-quote::before {
  content: '"';
  position: absolute;
  left: 6px; top: -10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 60px;
  font-weight: 700;
  opacity: 0.4;
  line-height: 1;
}
.article-quote.q-purple { background: rgba(168,85,247,0.12); color: #5b21b6; }
.article-quote.q-pink   { background: rgba(236,72,153,0.12); color: #9d174d; }
.article-quote.q-orange { background: rgba(251,146,60,0.14); color: #9a3412; }
.article-quote.q-yellow { background: rgba(251,191,36,0.18); color: #854d0e; }
.article-quote.q-cyan   { background: rgba(6,182,212,0.12); color: #155e75; }

.article-figure {
  margin: 22px 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,0.2);
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.article-figure figcaption {
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: var(--text-2);
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(236,72,153,0.06));
  border-left: 3px solid var(--c-purple);
}
.article-figure.alt-orange figcaption { background: linear-gradient(135deg, rgba(251,146,60,0.08), rgba(251,191,36,0.08)); border-left-color: var(--c-orange); }
.article-figure.alt-cyan   figcaption { background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(168,85,247,0.06)); border-left-color: var(--c-cyan); }
.article-figure.alt-pink   figcaption { background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(168,85,247,0.06)); border-left-color: var(--c-pink); }

/* article-video removed: external video embeds disabled per spec */

.tags-row {
  padding: 22px 16px 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tag-chip {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(168,85,247,0.1);
  color: var(--c-purple);
}

.reactions {
  padding: 20px 16px;
  display: flex;
  gap: 10px;
}
.reaction {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: #fff;
  border-radius: var(--r-card);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.16);
  transition: transform 0.15s;
}
.reaction:active { transform: scale(0.95); }
.reaction .e { font-size: 22px; }
.reaction.r-pink .e { color: var(--c-pink); }
.reaction.r-orange .e { color: var(--c-orange); }
.reaction.r-cyan .e { color: var(--c-cyan); }
.reaction.r-purple .e { color: var(--c-purple); }

.author-card {
  margin: 4px 16px 18px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 6px 18px -12px rgba(0,0,0,0.18);
}
.author-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  flex: 0 0 56px;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
}
.author-card .avatar.a-orange { background: linear-gradient(135deg, var(--c-orange), var(--c-pink)); }
.author-card .avatar.a-cyan   { background: linear-gradient(135deg, var(--c-cyan), var(--c-purple)); }
.author-card .avatar.a-yellow { background: linear-gradient(135deg, var(--c-yellow), var(--c-orange)); color: #18181b; }
.author-card .info { flex: 1; min-width: 0; }
.author-card .info .label {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.author-card .info .name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-top: 2px;
}
.author-card .info .bio {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}
.author-card .info .follow {
  margin-top: 10px;
  padding: 7px 14px;
  background: var(--text);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--r-pill);
  display: inline-block;
}

.related-grid {
  padding: 4px 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-grid .card .img-wrap { aspect-ratio: 16/10; }

/* ============== MISC HELPERS ============== */
.fade-in { animation: fadeIn 0.4s ease-out both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== ADX / AdSense banner slots ==============
   Three sizes per page, all auto-adaptive height.
   Width is always 100% (fluid), height grows with the creative.
   Replace the inner .ad-placeholder with the GAM / AdSense
   responsive tag (data-ad-format="auto") and the slot will
   collapse-wrap to the creative's natural height. */
.ad-slot {
  margin: 18px 12px;
  padding: 10px 10px 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: var(--r-card);
  text-align: center;
  position: relative;
  /* height: auto — lets the creative drive final size */
  min-height: 0;
  height: auto;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* clear "Advertisement" label above each slot, AdX policy */
.ad-slot .ad-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
  text-align: left;
}
/* the placeholder box you see before GAM is wired up */
.ad-slot .ad-placeholder {
  width: 100%;
  /* sensible default aspect, but height is auto so the
     iframe / ins creative overrides it on load */
  aspect-ratio: 728 / 90;
  max-height: 280px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(168,85,247,0.10), rgba(236,72,153,0.10));
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.ad-slot .ad-placeholder .ad-size { opacity: 0.7; font-weight: 500; }
/* variants — same responsive behavior, different defaults */
.ad-slot.ad-leaderboard .ad-placeholder { aspect-ratio: 728 / 90; }
.ad-slot.ad-rectangle  .ad-placeholder { aspect-ratio: 300 / 250; max-height: 320px; }
.ad-slot.ad-banner     .ad-placeholder { aspect-ratio: 320 / 100; }
/* the actual <ins class="adsbygoogle"> or GAM <div> tag once
   the editor pastes code in: just remove the placeholder
   div — the slot's height: auto + min-height: 0 lets the
   creative size itself. */
.ad-slot ins.adsbygoogle,
.ad-slot > div[id^="gpt-ad"] {
  display: block;
  width: 100%;
  height: auto !important;
}
/* when an ad slot is spliced into a 2-column grid
   (.news-grid / .related-grid) make it span full width
   so the creative isn't squeezed. */
.news-grid > .ad-slot,
.related-grid > .ad-slot {
  grid-column: 1 / -1;
}

/* ============== COMPLIANCE / TRUST FOOTER BLOCK ============== */
.compliance {
  margin: 24px 12px 8px;
  padding: 22px 18px 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(245,240,255,0.85));
  border-radius: var(--r-card);
  border: 1px solid rgba(168, 85, 247, 0.12);
  box-shadow: 0 6px 22px -16px rgba(168,85,247,0.35);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}
.compliance h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: 14px 0 6px;
  letter-spacing: -0.1px;
}
.compliance h4:first-child { margin-top: 0; }
.compliance p { margin-bottom: 8px; }
.compliance a {
  color: var(--c-purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(168,85,247,0.35);
}
.compliance a:hover { text-decoration-color: var(--c-purple); }
.compliance ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.compliance ul li { font-size: 12px; color: var(--text-3); }
.compliance .badge-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 8px 0 12px;
}
.compliance .pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(168, 85, 247, 0.10);
  color: var(--c-purple);
}
.compliance .pill.p-cyan   { background: rgba(6, 182, 212, 0.10);  color: var(--c-cyan); }
.compliance .pill.p-orange { background: rgba(251, 146, 60, 0.12); color: var(--c-orange); }
.compliance .pill.p-pink   { background: rgba(236, 72, 153, 0.10); color: var(--c-pink); }

/* responsive: stays at 480px max */
@media (max-width: 360px) {
  .welcome h1 { font-size: 28px; }
  .article-title { font-size: 23px; }
  .article-body { font-size: 16px; }
  .hero-card .title-overlay h2 { font-size: 18px; }
}
