/* ============================================
   BASE STRUCTURAL STYLES — Theme-Agnostic
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #ffffff;
}

body {
  min-height: 100vh;
  background-color: #ffffff;
  color: var(--text-primary, #111111);
  font-family: var(--font-body, system-ui, sans-serif);
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }

/* ---- Selection ---- */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-date {
  color: var(--text-muted);
  flex-shrink: 0;
}

.topbar-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 45s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item .tag {
  color: var(--accent-primary);
  font-weight: 700;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-label {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.theme-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3px 10px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.theme-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/* ============================================
   MASTHEAD / HEADER
   ============================================ */
.masthead {
  background: #ffffff;
  padding: 0.75rem 0;
  position: relative;
}

.masthead::before {
  display: none;
}

.masthead-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-wordmark {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #111111;
  letter-spacing: -0.02em;
  text-transform: none;
  font-family: Georgia, serif;
}

.logo-tagline {
  font-family: system-ui, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888888;
  margin-top: 0.25rem;
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius, 3px);
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  width: 220px;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar button {
  background: var(--accent-primary);
  border: none;
  color: var(--bg-primary);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}

.search-bar button:hover { opacity: 0.85; }

.subscribe-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--btn-radius, 2px);
  transition: all 0.2s;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

/* ============================================
   NAV
   ============================================ */
.main-nav {
  background: var(--nav-bg, #cc0000);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  height: 100%;
  flex-shrink: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.2rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.nav-breaking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  max-width: 400px;
}

.breaking-badge {
  background: #ffffff;
  color: #cc0000;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.breaking-text-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.breaking-text {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   LAYOUT
   ============================================ */
.page-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border-color);
  margin: 0 -2rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
}

.hero-main {
  background: var(--bg-primary);
  padding: 0;
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.hero-main:hover .hero-image-wrap img {
  transform: scale(1.03);
}

.hero-image-wrap {
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/7;
  max-height: 420px;
  position: relative;
  border-radius: 8px;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--hero-image-overlay);
  pointer-events: none;
}

.hero-category {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size, 2.8rem);
  font-weight: var(--hero-weight, 800);
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: var(--hero-tracking, -0.02em);
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.hero-main:hover .hero-title { color: var(--accent-primary); }

.hero-excerpt {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-meta .author { color: var(--text-secondary); font-weight: 600; }
.hero-meta .separator { color: var(--border-color); }

.hero-sidebar {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-headline {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-headline:first-child { padding-top: 0; }
.sidebar-headline:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-headline:hover .sh-title { color: var(--accent-primary); }

.sh-category {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.4rem;
}

.sh-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.sh-meta {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* ============================================
   CONTENT GRID
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid var(--accent-primary);
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: var(--section-tracking, 0.05em);
  text-transform: uppercase;
  color: var(--text-primary);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.section-see-all {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-see-all:hover { opacity: 0.7; }

/* Main content + sidebar split */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding-bottom: 4rem;
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  cursor: pointer;
  group: true;
}

.article-card:hover .card-title { color: var(--accent-primary); }
.article-card:hover .card-image img { transform: scale(1.04); }

/* card-image rules moved to PCG layout section */

.card-category {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.card-excerpt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.card-meta .author { font-weight: 600; color: var(--text-secondary); }

/* List articles */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.list-article:last-child { border-bottom: none; }
.list-article:hover .la-title { color: var(--accent-primary); }

.list-article .la-image {
  overflow: hidden;
  aspect-ratio: 1;
}

.list-article .la-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.list-article:hover .la-image img { transform: scale(1.05); }

.la-category {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.la-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}

.la-meta {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ============================================
   SIDEBAR
   ============================================ */
.right-sidebar {
  border-left: 1px solid var(--border-color);
  padding-left: 3rem;
}

.sidebar-widget {
  margin-bottom: 2.5rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

/* Trending list */
.trending-list {
  list-style: none;
  counter-reset: trending;
}

.trending-item {
  counter-increment: trending;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.trending-item:last-child { border-bottom: none; }
.trending-item:hover .ti-title { color: var(--accent-primary); }

.trending-item::before {
  content: counter(trending, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.ti-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.2s;
}

.ti-meta {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Newsletter widget */
.newsletter-widget {
  background: var(--widget-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.newsletter-widget::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: var(--accent-primary);
  opacity: 0.08;
  border-radius: 50%;
}

.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.newsletter-widget p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.nl-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nl-input-group input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--input-radius, 3px);
  transition: border-color 0.2s;
}

.nl-input-group input:focus { border-color: var(--accent-primary); }
.nl-input-group input::placeholder { color: var(--text-muted); }

.nl-input-group button {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  padding: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--btn-radius, 2px);
  transition: all 0.2s;
}

.nl-input-group button:hover { opacity: 0.85; }

/* ============================================
   FEATURED BAND
   ============================================ */
.featured-band {
  background: var(--band-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 0 -2rem;
  padding: 3rem 2rem;
}

.band-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.band-item {
  background: var(--band-bg);
  padding: 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.band-item:hover { background: var(--band-hover); }
.band-item:hover .bi-title { color: var(--accent-primary); }

.bi-category {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 0.6rem;
}

.bi-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.bi-meta {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--footer-bg);
  border-top: 3px solid var(--accent-primary);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}


/* ============================================
   PC GAMER INSPIRED LAYOUT
   ============================================ */
.page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  background: #ffffff;
}

.pcg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  padding: 2rem 0 4rem;
  min-width: 0;
}

.pcg-main {
  min-width: 0;
  overflow-x: hidden;
}

/* LEFT COLUMN — hero + 2col grid */
.pcg-main {}

.hero-main {
  display: block;
  margin-bottom: 0;
}

.hero-main a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-image-wrap {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  max-height: 400px;
  margin-bottom: 1rem;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cc0000;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  margin-bottom: 0.75rem;
}

.hero-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 0.75rem;
}

.hero-meta {
  font-size: 0.72rem;
  color: #888888;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 2-column article grid below hero */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  overflow: hidden;
  aspect-ratio: 16/10;
  margin-bottom: 0.75rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover .card-image img {
  transform: scale(1.03);
}

.card-category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cc0000;
  margin-bottom: 0.35rem;
}

.card-title {
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
  margin-bottom: 0.4rem;
}

.card-excerpt {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #555555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.68rem;
  color: #888888;
  margin-top: 0.4rem;
  display: flex;
  gap: 0.4rem;
}

/* RIGHT SIDEBAR — list articles */
.pcg-sidebar {
  border-left: 1px solid #e0e0e0;
  padding-left: 2rem;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
  align-self: start;
}
.pcg-sidebar::-webkit-scrollbar { display: none; }

.list-article {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eeeeee;
  text-decoration: none;
  color: inherit;
}

.list-article:first-child { padding-top: 0; }

.la-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.la-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.la-category {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cc0000;
  margin-bottom: 0.2rem;
}

.la-title {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

.la-meta {
  font-size: 0.65rem;
  color: #888888;
  margin-top: 0.25rem;
}

/* Trending widget */
.sidebar-widget { margin-bottom: 2rem; }

.widget-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  border-bottom: 2px solid #cc0000;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.trending-list { list-style: none; padding: 0; }

.trending-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eeeeee;
}

.ti-title {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111111;
}

.ti-meta {
  font-size: 0.65rem;
  color: #888888;
  margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .pcg-layout { grid-template-columns: 1fr; }
  .pcg-sidebar { border-left: none; padding-left: 0; border-top: 1px solid #e0e0e0; padding-top: 2rem; }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
}

.footer-brand .logo-wordmark {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--accent-primary); }

/* ============================================
   THEME TRANSITION
   ============================================ */
.theme-transition * {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease !important;
}

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border-color); padding: 1.5rem 0; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .right-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 2rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .articles-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .topbar-ticker { display: none; }
  .hero-title { font-size: 2rem !important; }
}

/* ============================================
   THEME-SPECIFIC BODY CLASS OVERRIDES
   Applied by ThemeManager via body.theme-* classes
   ============================================ */

/* AI/DATA — light theme: nav border, footer dark */
body.theme-ai-data .main-nav {
  border-bottom: 2px solid #0a0a0a;
}
body.theme-ai-data footer {
  color: var(--footer-text);
}
body.theme-ai-data footer .logo-wordmark { color: var(--footer-heading); }
body.theme-ai-data footer .footer-col h4 { color: var(--footer-heading); }
body.theme-ai-data footer .footer-col ul li a,
body.theme-ai-data footer p,
body.theme-ai-data footer .footer-bottom { color: var(--footer-text); }
body.theme-ai-data footer .footer-legal a { color: var(--footer-text); }
body.theme-ai-data .masthead { border-bottom: var(--masthead-border); }

/* GAMING — neon glow hover effects */
body.theme-gaming .article-card:hover .card-title,
body.theme-gaming .hero-main:hover .hero-title,
body.theme-gaming .sidebar-headline:hover .sh-title,
body.theme-gaming .list-article:hover .la-title,
body.theme-gaming .band-item:hover .bi-title,
body.theme-gaming .trending-item:hover .ti-title {
  text-shadow: 0 0 18px rgba(0,255,136,0.3);
}
body.theme-gaming .logo-wordmark {
  text-shadow: none;
  color: #111111;
}
body.theme-gaming .section-header {
  border-bottom-color: #00ff88;
}
body.theme-gaming .breaking-badge {
  background: #ffffff;
  color: #cc0000;
}
body.theme-gaming .widget-title {
  border-bottom-color: #00ff88;
}
body.theme-gaming footer {
  border-top-color: #00ff88;
}
body.theme-gaming .sh-category,
body.theme-gaming .bi-category,
body.theme-gaming .la-category,
body.theme-gaming .card-category {
  color: #ff0077;
}
body.theme-gaming .hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.1) 3px, rgba(0,0,0,0.1) 4px);
  pointer-events: none;
  z-index: 1;
}

/* General subscribe button — uses theme var */
.subscribe-btn {
  background: var(--subscribe-bg, var(--accent-primary));
}
.subscribe-btn:hover {
  background: var(--subscribe-hover, var(--accent-secondary));
}

/* Section header rule follows theme */
.section-header {
  border-bottom-color: var(--section-rule-color, var(--accent-primary));
}

/* Nav link color follows theme */
.nav-links a {
  color: var(--nav-link-color, var(--text-secondary));
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-active-color, var(--accent-primary));
  border-bottom-color: var(--nav-active-color, var(--accent-primary));
}

/* ── Section loading spinner (replaces heavy skeleton screens) ── */
.section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3rem 1rem;
  min-height: 80px;
}
.sl-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-color);
  animation: sl-bounce 1.2s ease-in-out infinite;
}
.sl-dot:nth-child(2) { animation-delay: 0.2s; }
.sl-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes sl-bounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1.1); opacity: 1; }
}

/* ============================================
   RESPONSIVE — COMPREHENSIVE
   ============================================ */

/* ── Tablet (max 1100px) ── */
@media (max-width: 1100px) {
  .page-content { padding: 0 1.5rem; }
  .masthead-inner { padding: 0 1.5rem; }
  .nav-inner { padding: 0 1.5rem; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-main { padding: 2rem 0; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border-color); padding: 1.5rem 0; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .right-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 2rem; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { padding: 2.5rem 1.5rem 1.5rem; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
  /* Masthead stacks vertically */
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1.25rem;
  }
  .masthead-right {
    width: 100%;
    justify-content: space-between;
  }
  .search-bar input { width: 140px; }

  /* Logo smaller on mobile */
  .logo-wordmark { font-size: 2.2rem !important; }
  .logo-tagline { font-size: 0.6rem; }

  /* Nav scrolls horizontally on mobile */
  .main-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-inner {
    padding: 0 1rem;
    min-width: max-content;
    justify-content: flex-start;
    gap: 0;
  }
  .nav-links a { padding: 0.85rem 0.9rem; font-size: 0.68rem; }
  .nav-breaking { display: none; } /* Hide breaking on mobile nav */

  /* Hero */
  .hero-title { font-size: 1.9rem !important; }
  .hero-excerpt { font-size: 0.9rem; }
  .page-content { padding: 0 1rem; }

  /* Grids go single column */
  .articles-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .band-item { padding: 1.25rem; }

  /* Featured band */
  .band-inner { padding: 1.5rem 1rem; }

  /* Sidebar headlines stack better */
  .hero-sidebar { padding: 1rem 0; }
  .sidebar-headline { padding: 0.85rem 0; }

  /* Cards */
  .article-card { gap: 0.75rem; }

  /* List articles — smaller thumbnail */
  .list-article { grid-template-columns: 80px 1fr !important; gap: 0.75rem; }
  .la-image img { height: 80px; }

  /* Footer */
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .footer-legal a { margin-left: 0.75rem; }

  /* Topbar hidden on mobile */
  .topbar { display: none; }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {
  .logo-wordmark { font-size: 1.9rem !important; }
  .hero-title { font-size: 1.65rem !important; }
  .masthead-right { flex-wrap: wrap; gap: 0.5rem; }
  .search-bar { display: none; } /* Hide search on very small screens */
  .footer-links { grid-template-columns: 1fr; }

  /* Article page */
  .article-title { font-size: 1.6rem !important; }
  .article-body { font-size: 1rem; }

  /* Category page */
  .cat-article { grid-template-columns: 1fr; }
  .cat-img { width: 100%; height: 160px; }
  .category-title { font-size: 1.6rem; }
}

/* ── Ensure images never overflow ── */
img { max-width: 100%; height: auto; }
.hero-image-wrap img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ── RSS / Around the Web widget ─────────────────────────────── */
.rss-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rss-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.4;
}

.rss-item:last-child { border-bottom: none; }

.rss-item a {
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}

.rss-item a:hover { color: var(--accent-primary); }

.rss-item a::after {
  content: ' ↗';
  font-size: 0.7rem;
  opacity: 0.4;
}

.rss-loading {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-style: italic;
}

.rss-stamp {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
  font-family: var(--font-ui);
}

/* ── Steam widget ─────────────────────────────────────────────── */
.steam-list, .twitch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steam-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.steam-item:last-child { border-bottom: none; }

.steam-rank {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 1.2rem;
  text-align: center;
}

.steam-info { flex: 1; min-width: 0; }

.steam-name {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.steam-name:hover { color: var(--accent-primary); }

.steam-players {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-top: 0.1rem;
}

/* ── Twitch widget ────────────────────────────────────────────── */
.twitch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 0.5rem;
}
.twitch-item:last-child { border-bottom: none; }

.twitch-info { flex: 1; min-width: 0; }

.twitch-streamer {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}
.twitch-streamer:hover { color: #9147ff; }

.twitch-game {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twitch-viewers {
  font-size: 0.72rem;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #9147ff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── One-page layout ─────────────────────────────────────────────── */

.op-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
  padding: 2rem 0 4rem;
}

.op-main {
  flex: 1;
  min-width: 0;
}

.op-sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
}
.op-sidebar::-webkit-scrollbar { display: none; }

/* Category sections */
.op-category-section {
  margin-bottom: 3rem;
  scroll-margin-top: 70px;
}

/* Card grid for category sections */
.op-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.op-category-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .op-layout { flex-direction: column; }
  .op-sidebar { width: 100%; position: static; max-height: none; }
  .op-category-grid,
  .op-category-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .op-category-grid,
  .op-category-grid.cols-3 { grid-template-columns: 1fr; }
}

/* ── Article Overlay ─────────────────────────────────────────────────────── */
.article-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

.article-overlay.is-open {
  pointer-events: all;
  visibility: visible;
}

/* Dimmed backdrop — clicking closes overlay */
.article-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: pointer;
}

.article-overlay.is-open .article-overlay-backdrop {
  opacity: 1;
}

/* Sliding panel */
.article-overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 980px;
  background: var(--bg-primary, #fff);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
}

.article-overlay.is-open .article-overlay-panel {
  transform: translateX(0);
}

/* Sticky close header */
.article-overlay-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary, #fff);
  border-bottom: 2px solid var(--accent, #c00);
  padding: 0.75rem 1.5rem;
  flex-shrink: 0;
}

.article-overlay-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent, #c00);
  color: #fff;
  border: none;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}

.article-overlay-close:hover {
  background: #a00;
  transform: translateX(-2px);
}

.overlay-close-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* Scrollable content area */
.article-overlay-content {
  overflow-y: auto;
  flex: 1;
  padding: 2rem 2.5rem 4rem;
}

/* Hero image inside overlay */
.overlay-hero-image-wrap {
  margin: 0 -2.5rem 2rem;
  aspect-ratio: 16/7;
  overflow: hidden;
}

.overlay-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Meta — category label */
.overlay-meta {
  font-family: var(--font-ui, sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #c00);
  margin-bottom: 0.75rem;
}

/* Title */
.overlay-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary, #111);
  margin: 0 0 1rem;
}

/* Byline */
.overlay-byline {
  font-family: var(--font-ui, sans-serif);
  font-size: 0.82rem;
  color: var(--text-secondary, #666);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, #e5e5e5);
  margin-bottom: 1.75rem;
}

.overlay-byline strong { color: var(--text-primary, #111); }
.overlay-byline .sep { color: var(--border, #ccc); }

/* Article body */
.overlay-body p { 
  font-family: var(--font-body, Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary, #111);
  margin-bottom: 1.25rem;
}

.overlay-body h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary, #111);
}

.overlay-body blockquote {
  border-left: 3px solid var(--accent, #c00);
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  font-style: italic;
  color: var(--text-secondary, #555);
}

/* Loading state */
.overlay-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-secondary, #888);
  font-family: var(--font-ui, sans-serif);
  font-size: 0.9rem;
}

/* Mobile — full screen */
@media (max-width: 768px) {
  .article-overlay-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .article-overlay-content {
    padding: 1.25rem 1.25rem 3rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .overlay-hero-image-wrap {
    margin: 0 -1.25rem 1.5rem;
    max-width: calc(100% + 2.5rem);
  }
  .overlay-title,
  .overlay-body p,
  .overlay-body h2,
  .overlay-byline {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}