/* ==========================================================================
   GEMING WAAAL — INTERNATIONAL GAMING NEWS DESIGN SYSTEM (PRD v1.0 Q3 2026)
   Philosophy: Modern Gaming Minimalism, Ultra-Fast Loading, SEO & Discover First
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Syne:wght@700;800&display=swap');

:root {
  /* PRD Dark Mode Palette */
  --bg-base: #0B0E14;        /* Deep Obsidian */
  --bg-surface: #151B26;     /* Card Surface Level 1 */
  --bg-surface-elevated: #1B2332; /* Level 2 elevation */
  --border-color: #222D3D;   /* Divider / Border */
  --border-glow: rgba(0, 240, 255, 0.25);
  --text-main: #F1F5F9;      /* Contrast AAA 13.5:1 */
  --text-muted: #94A3B8;
  --text-dim: #94A3B8;   /* dinaikkan dari #64748B: rasio 3,8-4,1:1 -> 6,4-6,6:1 di latar gelap */

  /* Platform Accent Hierarchy */
  --accent-cyan: #00F0FF;    /* PC Gaming & Tech */
  --accent-ps: #0070D1;      /* PlayStation Blue */
  --accent-xbox: #107C10;    /* Xbox Green */
  --accent-switch: #E60012;  /* Nintendo Red */
  --accent-amber: #FFB800;   /* Review Scores & Highlights */
  --accent-esports: #8B5CF6; /* Esports Violet */

  /* Typography */
  --font-display: 'Cabinet Grotesk', 'Syne', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* --------------------------------------------------------------------------
   Global Reset & Defaults
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(0, 112, 209, 0.04) 0%, transparent 45%);
  padding-bottom: 72px; /* Reserved for Mobile Bottom App Bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Sticky Reading Progress Bar (Article View)
   -------------------------------------------------------------------------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-amber));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Top Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-logo span.dot {
  color: var(--accent-cyan);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-main);
}

.nav-portal-link {
  color: var(--accent-amber) !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.08);
}

.nav-portal-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
}

.nav-portal-link:hover {
  color: #FFF !important;
  background: rgba(255, 184, 0, 0.18);
  border-color: var(--accent-amber);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-rss-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-rss-pill:hover {
  background: rgba(255, 184, 0, 0.18);
  color: #FFF;
}

/* --------------------------------------------------------------------------
   Live Esports & Breaking Ticker (PRD Spec)
   -------------------------------------------------------------------------- */
.live-ticker-bar {
  background: #0E121A;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ticker-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseAnim 1.8s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-marquee {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.ticker-marquee a {
  color: var(--text-main);
  margin-right: 24px;
}

.ticker-marquee a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Platform Filter Pills (1-Click Switch)
   -------------------------------------------------------------------------- */
.platform-bar {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-bar::-webkit-scrollbar {
  display: none;
}

.pill-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pill-chip:hover,
.pill-chip.active {
  color: #FFF;
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.pill-chip.pc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-cyan); }
.pill-chip.ps::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ps); }
.pill-chip.xbox::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-xbox); }
.pill-chip.switch::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-switch); }
.pill-chip.esports::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-esports); }

/* --------------------------------------------------------------------------
   Layout Container (3-Column Architecture on 1024px+)
   -------------------------------------------------------------------------- */
.main-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --------------------------------------------------------------------------
   Asymmetric Hero Grid (1 Master Headline + Sub-Headlines)
   -------------------------------------------------------------------------- */
.hero-asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .hero-asymmetric-grid {
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 18px;
  }
}

/* Master Lead Card */
.hero-master-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  min-height: 320px;
}

@media (min-width: 900px) {
  .hero-master-card {
    grid-row: span 2;
    min-height: 458px;
  }
}

.hero-master-card .card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-master-card:hover .card-media {
  transform: scale(1.035);
}

.hero-master-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.1) 20%, rgba(11, 14, 20, 0.95) 90%);
}

.hero-master-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

.tag-cyan { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.tag-ps { background: rgba(0, 112, 209, 0.18); color: #60A5FA; border: 1px solid rgba(0, 112, 209, 0.4); }
.tag-xbox { background: rgba(16, 124, 16, 0.2); color: #4ADE80; border: 1px solid rgba(16, 124, 16, 0.4); }
.tag-switch { background: rgba(230, 0, 18, 0.18); color: #F87171; border: 1px solid rgba(230, 0, 18, 0.4); }
.tag-amber { background: rgba(255, 184, 0, 0.15); color: var(--accent-amber); border: 1px solid rgba(255, 184, 0, 0.3); }

.hero-master-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
}

.hero-master-card:hover .hero-master-title {
  color: var(--accent-cyan);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Secondary Sub-Headlines Grid */
.hero-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hero-sub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .hero-sub-grid {
    grid-column: 2;
    grid-row: span 2;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 18px;
  }
}

.hero-sub-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  min-height: 200px;
}

.hero-sub-card .card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.hero-sub-card:hover .card-media {
  transform: scale(1.04);
}

.hero-sub-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.1) 10%, rgba(11, 14, 20, 0.92) 85%);
}

.hero-sub-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-sub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.hero-sub-card:hover .hero-sub-title {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Editorial Section Layout (3-Columns on Desktop)
   -------------------------------------------------------------------------- */
.editorial-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 1024px) {
  .editorial-layout {
    grid-template-columns: 220px 1fr 310px;
    gap: 28px;
    align-items: start;
  }
}

/* Left Rail: Quick Filters & Topics */
.left-rail {
  display: none;
}

@media (min-width: 1024px) {
  .left-rail {
    display: block;
    position: sticky;
    top: 76px;
  }
}

.rail-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.rail-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rail-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.rail-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.rail-links a:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
}

.rail-links a .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Center Column: Main News Feed */
.center-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.section-kicker h1,
.section-kicker h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.section-kicker h1::before,
.section-kicker h2::before {
  content: "// ";
  color: var(--accent-cyan);
}

/* H1 halaman index — label kecil di atas grid hero */
.geming-page-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 18px 0 10px;
}

.section-kicker a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Feed Article Row (16:9 or 1:1 on Mobile L) */
.feed-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 540px) {
  .feed-row {
    grid-template-columns: 170px 1fr;
    gap: 18px;
    padding: 16px;
  }
}

.feed-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.4);
}

.feed-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.feed-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
}

.feed-row:hover .feed-title {
  color: var(--accent-cyan);
}

.feed-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Right Rail: Trending, Tournament Clock, Ads */
.right-rail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .right-rail {
    position: sticky;
    top: 76px;
  }
}

.trending-card-list {
  list-style: none;
  counter-reset: rank;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.trending-item:hover {
  background: var(--bg-surface-elevated);
}

.trend-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  min-width: 24px;
}

.trend-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
}

/* Anti-CLS Reserved Ad Container (PRD Section 6) */
.ad-container-reserved {
  background: rgba(17, 24, 38, 0.6);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  contain: layout;
  margin: 10px 0;
}

.ad-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.ad-300x250 {
  min-height: 250px;
  width: 100%;
}

.ad-leaderboard {
  min-height: 90px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Article Reading Page (PRD Section 3 & 4)
   -------------------------------------------------------------------------- */
.article-wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.article-breadcrumb a:hover {
  color: var(--accent-cyan);
}

.article-header {
  margin-bottom: 24px;
}

.article-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 12px 0 16px;
}

.article-lead {
  font-size: 1.15rem;
  line-height: 1.58;
  color: #CBD5E1;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 18px;
  margin-bottom: 18px;
}

.article-hero-fig {
  margin: 20px 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.article-hero-fig img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-hero-fig figcaption {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
}

/* Author E-E-A-T Verification Box */
.author-eeat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 24px 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.author-info h4,
.author-info .byline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.verified-badge {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Article Body Typography */
.article-prose {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #E2E8F0;
}

.article-prose h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-prose p {
  margin-bottom: 18px;
}

.article-prose ul {
  margin: 16px 0 24px;
  padding-left: 20px;
}

.article-prose li {
  margin-bottom: 8px;
}

/* Key Takeaways Card */
.takeaways-box {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 28px 0;
}

.takeaways-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.takeaways-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.takeaways-box li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: #F1F5F9;
}

.takeaways-box li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* FAQ Accordion */
.faq-box {
  margin: 32px 0;
}

.faq-accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: var(--bg-surface);
  overflow: hidden;
}

.faq-accordion summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.faq-accordion[open] summary::after {
  content: "−";
}

.faq-accordion p {
  padding: 0 18px 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Mobile-First Bottom App Bar (PRD Section 5: < 480px)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(11, 14, 20, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 950;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  flex: 1;
  text-align: center;
}

.bottom-tab.active,
.bottom-tab:hover {
  color: var(--accent-cyan);
}

.bottom-tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* --------------------------------------------------------------------------
   Dynamic Table of Contents (TOC) — Sitelinks SEO Booster
   -------------------------------------------------------------------------- */
.article-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 10px 0 32px;
  border-left: 3px solid var(--accent-cyan);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.toc-icon {
  font-size: 1.1rem;
}

.toc-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.toc-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
}

.toc-list li a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.toc-list li a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   In-Text Contextual Internal Links
   -------------------------------------------------------------------------- */
.in-text-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.in-text-link:hover {
  color: #FFFFFF;
  text-decoration-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.12);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Review Verdict Box & Star Score Matrix (PRD Standard)
   -------------------------------------------------------------------------- */
.review-verdict-card {
  background: linear-gradient(180deg, var(--bg-surface-elevated), var(--bg-surface));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 34px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.verdict-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-amber);
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 6px;
}

.verdict-game-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

.verdict-score-radial {
  background: var(--bg-base);
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  text-align: center;
  box-shadow: 0 0 16px rgba(255, 184, 0, 0.2);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-amber);
  line-height: 1;
}

.score-max {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.verdict-summary {
  font-style: italic;
  font-size: 1.05rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.pro-column, .con-column {
  background: rgba(11, 14, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.pro-column h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.con-column h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #EF4444;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pro-column ul, .con-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.pro-column li { color: #D1FAE5; }
.con-column li { color: #FEE2E2; }
.pro-icon { color: #10B981; font-weight: 800; margin-right: 6px; }
.con-icon { color: #EF4444; font-weight: 800; margin-right: 6px; }

/* --------------------------------------------------------------------------
   Instant Search Modal (Client-Side Fast Filter)
   -------------------------------------------------------------------------- */
.btn-search-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-pill:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: #FFFFFF;
}

.kbd-hint {
  font-size: 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-dim);
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-card {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.search-icon {
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

/* Glyph replacements (tanpa emoji) — pakai border/mask CSS */
.search-icon::before,
.btn-search-pill .search-glyph::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.search-icon::after,
.btn-search-pill .search-glyph::after {
  content: "";
  display: inline-block;
  position: absolute;
  width: 8px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  top: 10px; left: 12px;
}
.btn-search-pill .search-glyph { position: relative; display: inline-block; }

.rail-glyph {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  transform: rotate(45deg);
}
.cat-glyph { background: var(--accent-cyan); border-radius: 2px; }
.status-glyph { background: var(--accent-amber); border-radius: 50%; }
.trend-glyph { background: var(--accent-amber); border-radius: 2px; }

.ticker-bullet {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-right: 6px;
  vertical-align: middle;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #FFFFFF;
}

.btn-close-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-close-search:hover {
  color: #FFF;
}

.search-results-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-placeholder {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.search-result-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.search-result-row:hover {
  background: var(--bg-surface-elevated);
  border-color: rgba(0, 240, 255, 0.3);
}

.sr-thumb {
  aspect-ratio: 16/9;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-base);
}

.sr-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.sr-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.sr-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #080B0F;
  margin-top: auto;
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Article Source Attribution (copyright mitigation — inline at end of article)
   -------------------------------------------------------------------------- */
.article-source-attribution {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.04);
}

.article-source-attribution .source-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin: 0 0 6px;
}

.article-source-attribution .source-link {
  margin: 0 0 6px;
}

/* Tautan di dalam kartu byline: dibedakan dengan garis bawah, bukan hanya warna. */
.author-info p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-source-attribution .source-link a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-source-attribution .source-link a:hover {
  color: var(--text-main);
}

.article-source-attribution .source-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   KOMPATIBILITAS ARTIKEL TEMPLATE LAMA (arsip Geming)
   42 halaman arsip memakai kelas .topnav/.post-* dari generator versi lama
   yang tidak punya aturan apa pun di berkas ini, sehingga tampil tanpa tata
   letak (lebar penuh, tipografi default). Aturan di bawah menyamakannya
   dengan gaya artikel versi sekarang TANPA mengubah HTML halaman tersebut.
   Selektor sengaja memakai kelas khas template lama (.sitefoot, bukan
   .site-footer) agar halaman versi baru tidak terpengaruh.
   ========================================================================== */
.topnav {
  max-width: 740px;
  margin: 0 auto;
  padding: 18px 20px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.topnav a { color: var(--text-muted); text-decoration: none; }
.topnav a:hover { color: var(--accent-cyan); }

.breadcrumb {
  max-width: 740px;
  margin: 0 auto 18px;
  padding: 14px 20px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-cyan); }

.post { max-width: 740px; margin: 0 auto; padding: 8px 20px 0; }
.post-head { margin-bottom: 8px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.post-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  text-decoration: none;
}
.post-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 12px 0 16px;
}
.post-lead {
  font-size: 1.15rem;
  line-height: 1.58;
  color: #CBD5E1;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 18px;
  margin: 0 0 18px;
}
.post-hero {
  margin: 20px 0 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.post-hero .ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 180px;
}
.ph-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--text-muted); }
.ph-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: #FFFFFF; }

.post-body { font-size: 1.08rem; line-height: 1.75; color: #E2E8F0; }
.post-sec { margin: 28px 0; }
.post-sec h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.post-sec p { margin: 0 0 14px; }
.post-sec ul { margin: 0 0 14px; padding-left: 22px; list-style: disc outside; }
.post-sec li { margin-bottom: 8px; }
.post-sec a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.post-sec.takeaways {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 10px;
  background: var(--bg-surface);
  overflow: hidden;
}
.faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: #FFFFFF; }
.faq-item summary:hover { color: var(--accent-cyan); }
.faq-item p { margin: 0; padding: 0 16px 14px; color: var(--text-muted); }

.post-src {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 28px;
  word-break: break-word;
}
.post-src a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }

.pagenav {
  max-width: 740px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.pagenav a { color: var(--accent-cyan); text-decoration: none; }
.pagenav a:hover { text-decoration: underline; }

.sitefoot {
  max-width: 740px;
  margin: 32px auto 0;
  padding: 20px 20px 48px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==== SECTION: ARSIP BERITA (/geming/arsip/) ==== */
.arsip-nav { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 22px; }
.arsip-nav a { font-family:var(--font-mono); font-size:0.75rem; padding:4px 10px; border:1px solid var(--border-glow, rgba(0,255,255,0.18)); border-radius:999px; color:var(--accent-cyan, #00f0ff); text-decoration:none; }
.arsip-nav a:hover { background:rgba(0,240,255,0.08); }
.arsip-bulan { margin:0 0 26px; }
.arsip-bulan h2 { font-size:1.05rem; margin:0 0 10px; display:flex; align-items:baseline; gap:10px; border-bottom:1px solid var(--border-glow, rgba(0,255,255,0.14)); padding-bottom:8px; }
.arsip-count { font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted); font-weight:400; }
.arsip-list { list-style:none; margin:0; padding:0; }
.arsip-list li { padding:7px 0; border-bottom:1px dashed rgba(255,255,255,0.06); font-size:0.92rem; line-height:1.45; }
.arsip-list li a { text-decoration:none; }
.arsip-list li a:hover { text-decoration:underline; }
.arsip-meta { font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted); white-space:nowrap; }
