/* ============================================================
   WRETVISION — SHARED STYLES
   ============================================================ */

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

:root {
  --lightning-cycle: 60s; /* change to 6s for testing */
  --blue:        #0a8fd4;
  --blue-light:  #3bbfff;
  --blue-glow:   #1aa8f0;
  --blue-dark:   #053a57;
  --bg:          #050e18;
  --bg2:         #091520;
  --bg3:         #0c1e2e;
  --text:        #c8e8ff;
  --text-dim:    #7aaccf;
  --muted:       #3d6a88;
  --accent:      #ffe066;
  --accent-dim:  rgba(255, 224, 102, 0.15);
  --border:      rgba(10, 143, 212, 0.25);
  --border-lit:  rgba(59, 191, 255, 0.6);
  --green:       #4fffb0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* SCANLINES */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* PIXEL CORNERS */
.pixel-corner { position: absolute; width: 6px; height: 6px; background: var(--blue-light); z-index: 2; }
.pc-tl { top: -1px; left: -1px; }
.pc-tr { top: -1px; right: -1px; }
.pc-bl { bottom: -1px; left: -1px; }
.pc-br { bottom: -1px; right: -1px; }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--bg2);
  border-bottom: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 32px; }

.site-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--blue-light);
  text-shadow: 0 0 12px var(--blue), 2px 2px 0 #021a2a;
  letter-spacing: 1px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo span { color: var(--accent); text-shadow: 0 0 10px rgba(255,224,102,0.5), 2px 2px 0 #332800; }

/* MAIN NAV */
.main-nav { display: flex; gap: 4px; }

.nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid transparent;
  letter-spacing: 1px;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--blue-light); border-color: var(--border); background: rgba(10,143,212,0.08); }

.nav-link.active {
  color: var(--blue-light);
  border-color: var(--blue);
  background: rgba(10,143,212,0.12);
}

.nav-link .nav-icon { margin-right: 5px; }

.yt-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--blue);
  background: rgba(10,143,212,0.07);
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.yt-link:hover { background: rgba(10,143,212,0.18); }
.yt-link .pixel-corner { width: 4px; height: 4px; }

.avatar-wrap { width: 38px; height: 38px; border: 2px solid var(--blue-light); overflow: hidden; position: relative; flex-shrink: 0; }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.yt-label { font-family: 'VT323', monospace; font-size: 20px; color: var(--blue-light); letter-spacing: 1px; line-height: 1; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 44px 24px 32px;
  border-bottom: 2px dashed rgba(10,143,212,0.25);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(10,80,140,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--muted); letter-spacing: 5px; text-transform: uppercase; margin-bottom: 14px; }
.hero-title { font-family: 'Press Start 2P', monospace; font-size: 22px; color: var(--blue-light); text-shadow: 0 0 16px var(--blue), 3px 3px 0 #021a2a; line-height: 1.6; margin-bottom: 6px; }
.hero-title span { color: var(--accent); text-shadow: 0 0 14px rgba(255,224,102,0.4), 3px 3px 0 #2a1f00; }

.lightning-bar {
  width: 50%;
  height: 3px;
  margin: 14px auto;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 25%, var(--blue-light) 50%, var(--blue) 75%, transparent 100%);
  animation: pulse-bar 2.5s ease-in-out infinite;
}

@keyframes pulse-bar { 0%, 100% { width: 30%; opacity: 0.5; } 50% { width: 65%; opacity: 1; } }

.hero-sub { font-family: 'VT323', monospace; font-size: 24px; color: var(--text-dim); letter-spacing: 2px; }

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar { display: flex; justify-content: center; flex-wrap: wrap; border-bottom: 2px dashed rgba(10,143,212,0.2); background: var(--bg2); }
.stat-item { text-align: center; padding: 16px 32px; border-right: 1px solid rgba(10,143,212,0.18); }
.stat-item:last-child { border-right: none; }
.stat-num { display: block; font-family: 'Press Start 2P', monospace; font-size: 16px; color: var(--blue-light); margin-bottom: 5px; }
.stat-label { font-family: 'VT323', monospace; font-size: 16px; color: var(--muted); letter-spacing: 2px; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 16px 28px; border-bottom: 1px solid var(--border); background: var(--bg2); }
.filter-label { font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--muted); letter-spacing: 2px; margin-right: 4px; }
.filter-btn { font-family: 'VT323', monospace; font-size: 18px; color: var(--text-dim); background: transparent; border: 1px solid rgba(10,143,212,0.3); padding: 3px 12px; cursor: pointer; letter-spacing: 1px; transition: all 0.15s; }
.filter-btn:hover, .filter-btn.active { background: rgba(10,143,212,0.18); color: var(--blue-light); border-color: var(--blue); }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.main-layout { display: grid; grid-template-columns: 1fr 280px; max-width: 1200px; margin: 0 auto; }
.reviews-col { padding: 28px 28px 40px; border-right: 2px solid var(--border); }
.col-header { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--blue); letter-spacing: 3px; text-transform: uppercase; border-left: 3px solid var(--blue-light); padding-left: 12px; margin-bottom: 24px; }

/* ── REVIEW CARDS ────────────────────────────────────────── */
.review-card { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--blue); margin-bottom: 24px; padding: 20px; position: relative; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.review-card:hover { border-left-color: var(--blue-light); border-color: rgba(59,191,255,0.4); background: var(--bg3); }
.review-card .pixel-corner { width: 5px; height: 5px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.card-genre { font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }
.featured-badge { font-family: 'Press Start 2P', monospace; font-size: 5px; background: var(--blue); color: #fff; padding: 4px 8px; letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0; }
.card-title { font-family: 'VT323', monospace; font-size: 32px; color: #e8f4ff; line-height: 1.05; margin-bottom: 2px; }
.card-director { font-family: 'VT323', monospace; font-size: 17px; color: var(--muted); margin-bottom: 10px; letter-spacing: 1px; }
.card-excerpt { font-size: 15px; color: var(--text); line-height: 1.55; opacity: 0.88; margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.rating { display: flex; gap: 3px; align-items: center; }
.rating-block { width: 13px; height: 13px; background: var(--accent); display: inline-block; image-rendering: pixelated; }
.rating-block.empty { background: transparent; border: 1px solid rgba(255,224,102,0.25); }
.rating-score { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--accent); margin-left: 6px; }
.read-more { font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--blue-light); letter-spacing: 1px; text-decoration: none; transition: color 0.15s; }
.read-more::after { content: ' >>'; }
.read-more:hover { color: #fff; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(2,8,14,0.92); z-index: 5000; overflow-y: auto; padding: 40px 20px; align-items: flex-start; justify-content: center; }
.modal-overlay.open { display: flex; }

@keyframes pulse-divider { 0%, 100% { opacity: 0.4; width: 40%; } 50% { opacity: 1; width: 75%; } }

.modal-box { background: var(--bg2); border: 2px solid var(--blue); max-width: 860px; width: 100%; padding: 40px 44px; position: relative; }
.modal-box .pixel-corner { width: 7px; height: 7px; }
.modal-close { position: absolute; top: 16px; right: 16px; font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--muted); background: transparent; border: 1px solid var(--border); padding: 6px 10px; cursor: pointer; letter-spacing: 1px; }
.modal-close:hover { color: var(--blue-light); border-color: var(--blue); }
.modal-genre { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.modal-title { font-family: 'VT323', monospace; font-size: 54px; color: #e8f4ff; line-height: 1.05; margin-bottom: 4px; }
.modal-meta { font-family: 'VT323', monospace; font-size: 22px; color: var(--muted); margin-bottom: 4px; letter-spacing: 1px; }
.modal-divider { height: 2px; background: linear-gradient(90deg, var(--blue-light), var(--blue), transparent); margin: 18px 0; animation: pulse-divider 4s ease-in-out infinite; }
.modal-body { font-size: 20px; line-height: 1.8; color: var(--text); margin-bottom: 24px; }
.modal-body p { margin-bottom: 18px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed rgba(10,143,212,0.25); }
.verdict-label { font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--muted); letter-spacing: 2px; margin-bottom: 6px; }
.verdict-text { font-family: 'VT323', monospace; font-size: 26px; color: var(--blue-light); letter-spacing: 1px; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar { padding: 28px 20px 40px; }
.sidebar-widget { background: var(--bg2); border: 1px solid var(--border); margin-bottom: 20px; padding: 16px; position: relative; }
.sidebar-widget .pixel-corner { width: 4px; height: 4px; }
.widget-title { font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--blue-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed rgba(10,143,212,0.3); }
.about-text { font-size: 15px; line-height: 1.6; color: var(--text); opacity: 0.85; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.genre-tag { font-family: 'VT323', monospace; font-size: 18px; padding: 3px 10px; border: 1px solid var(--blue); color: var(--blue-light); background: transparent; cursor: pointer; letter-spacing: 1px; transition: background 0.15s; }
.genre-tag:hover, .genre-tag.active { background: rgba(10,143,212,0.18); }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 8px 0; border-bottom: 1px dotted rgba(10,143,212,0.2); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li:hover .sidebar-movie-title { color: var(--blue-light); }
.sidebar-movie-title { font-family: 'VT323', monospace; font-size: 18px; color: var(--text); transition: color 0.15s; }
.sidebar-score { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--accent); flex-shrink: 0; margin-left: 8px; }

/* ── NO RESULTS ──────────────────────────────────────────── */
.no-results { text-align: center; padding: 60px 20px; display: none; }
.no-results-text { font-family: 'VT323', monospace; font-size: 24px; color: var(--muted); letter-spacing: 2px; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px dashed rgba(10,143,212,0.25); }
.page-btn { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--muted); background: var(--bg2); border: 1px solid rgba(10,143,212,0.3); padding: 8px 13px; cursor: pointer; letter-spacing: 1px; transition: all 0.15s; line-height: 1; }
.page-btn:hover { color: var(--blue-light); border-color: var(--blue); background: rgba(10,143,212,0.12); }
.page-btn.active { color: #fff; background: var(--blue); border-color: var(--blue-light); }
.page-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.page-info { font-family: 'VT323', monospace; font-size: 17px; color: var(--muted); letter-spacing: 1px; margin-left: 6px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { border-top: 2px solid var(--blue); background: var(--bg2); padding: 18px 28px; text-align: center; font-family: 'Press Start 2P', monospace; font-size: 6px; color: var(--muted); letter-spacing: 2px; line-height: 2; }
.blink { animation: blink-anim 1s step-end infinite; }
@keyframes blink-anim { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── CATEGORY BADGE ──────────────────────────────────────── */
.cat-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  padding: 3px 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.cat-badge.movie  { background: rgba(10,143,212,0.2);  color: var(--blue-light); border: 1px solid var(--blue); }
.cat-badge.tv     { background: rgba(79,255,176,0.12); color: var(--green);      border: 1px solid var(--green); }
.cat-badge.game   { background: rgba(255,224,102,0.1); color: var(--accent);     border: 1px solid var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .reviews-col { border-right: none; border-bottom: 2px solid var(--border); padding: 20px 16px 28px; }
  .sidebar { padding: 20px 16px 32px; }
  .hero-title { font-size: 14px; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .topbar-left { gap: 16px; }
  .site-logo { font-size: 10px; }
  .stat-item { padding: 14px 18px; }
  .filter-bar { padding: 12px 16px; }
  .main-nav { gap: 2px; }
  .nav-link { font-size: 6px; padding: 6px 8px; }
  .modal-box { padding: 24px 20px; }
}

@media (max-width: 560px) {
  .main-nav { display: none; }
}

/* ── SECTION-SPECIFIC YOUTUBE BUTTON COLORS ─────────────────
   Home keeps the default blue brand color.
   Movies = gold, TV = green, Games = red.
*/

body.page-movies .yt-link {
  border-color: #e6b84a !important;
  background: rgba(184,138,27,0.08) !important;
}

body.page-movies .yt-link:hover {
  background: rgba(184,138,27,0.18) !important;
}

body.page-movies .yt-link .avatar-wrap {
  border-color: #ffd86b !important;
}

body.page-movies .yt-link .pixel-corner {
  background: #e6b84a !important;
}

body.page-movies .yt-label {
  color: #ffd86b !important;
  text-shadow: 0 0 10px rgba(255,216,107,0.35);
}

body.page-tv .yt-link {
  border-color: #2ecc80 !important;
  background: rgba(79,255,176,0.08) !important;
}

body.page-tv .yt-link:hover {
  background: rgba(79,255,176,0.16) !important;
}

body.page-tv .yt-link .avatar-wrap {
  border-color: #4fffb0 !important;
}

body.page-tv .yt-link .pixel-corner {
  background: #4fffb0 !important;
}

body.page-tv .yt-label {
  color: #4fffb0 !important;
  text-shadow: 0 0 10px rgba(79,255,176,0.35);
}

body.page-games .yt-link {
  border-color: #8b1a1a !important;
  background: rgba(139,26,26,0.10) !important;
}

body.page-games .yt-link:hover {
  background: rgba(139,26,26,0.20) !important;
}

body.page-games .yt-link .avatar-wrap {
  border-color: #e74c3c !important;
}

body.page-games .yt-link .pixel-corner {
  background: #c0392b !important;
}

body.page-games .yt-label {
  color: #e74c3c !important;
  text-shadow: 0 0 10px rgba(231,76,60,0.35);
}

/* ── RELATED REVIEWS FIX ─────────────────────────────────── */
.related-reviews {
  margin: 28px 0 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(10,143,212,0.25);
}

.related-title {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(5,14,24,0.45);
  border: 1px solid rgba(10,143,212,0.25);
  border-left: 3px solid var(--blue-light);
  padding: 10px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.related-link:hover {
  background: rgba(10,143,212,0.08);
  border-color: rgba(59,191,255,0.55);
  transform: translateX(2px);
}

.related-name {
  font-family: 'VT323', monospace;
  font-size: 21px;
  color: var(--text);
  line-height: 1.15;
}

.related-score {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--accent);
  white-space: nowrap;
}

.related-link.review-card-category-movie {
  border-left-color: #e6b84a;
  border-color: rgba(184,138,27,0.35);
}

.related-link.review-card-category-movie:hover {
  background: rgba(184,138,27,0.10);
  border-color: rgba(255,216,107,0.70);
}

.related-link.review-card-category-tv {
  border-left-color: var(--green);
  border-color: rgba(79,255,176,0.30);
}

.related-link.review-card-category-tv:hover {
  background: rgba(79,255,176,0.08);
  border-color: rgba(79,255,176,0.65);
}

.related-link.review-card-category-game {
  border-left-color: #c0392b;
  border-color: rgba(192,57,43,0.38);
}

.related-link.review-card-category-game:hover {
  background: rgba(139,26,26,0.12);
  border-color: rgba(231,76,60,0.70);
}

/* ── CUSTOM WRETVISION CURSORS ─────────────────────────────
   Files must be in: /assets/
   - wretvision-cursor.png
   - wretvision-pointer.png
   Keep both PNGs at 32x32 for reliable browser support.
*/
html,
body {
  cursor: url("assets/wretvision-cursor.png") 0 0, auto;
}

a,
a *,
button,
button *,
.nav-link,
.nav-link *,
.yt-link,
.yt-link *,
.review-card,
.review-card *,
.filter-btn,
.filter-btn *,
.filter-tab,
.filter-tab *,
.category-card,
.category-card *,
.movie-card,
.movie-card *,
.genre-tag,
.genre-tag *,
.sidebar-list li,
.sidebar-list li *,
.related-link,
.related-link *,
.modal-close,
.modal-close *,
.page-btn,
.page-btn *,
[role="button"],
[role="button"] * {
  cursor: url("assets/wretvision-pointer.png") 8 0, pointer;
}

.page-btn:disabled,
.page-btn:disabled * {
  cursor: url("assets/wretvision-cursor.png") 0 0, auto;
}

/* ============================================================
   HOMEPAGE BROADCAST REDESIGN
   All rules scoped to body.page-home where needed to avoid
   affecting movies / tv / games / horror-vault pages.
   ============================================================ */

/* ── TOPBAR RIGHT (signal + subscribe grouped) ── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.signal-indicator {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.signal-status { color: var(--green); }
.signal-dot    { color: var(--green); font-size: 11px; line-height: 1; animation: blink-anim 2s step-end infinite; }

/* ── HERO: BROADCAST LAYOUT ── */
body.page-home .hero {
  padding: 0;
  border-bottom: 2px solid rgba(10,143,212,0.25);
  background: #010408;
  min-height: 260px;
}

body.page-home .hero-bg {
  z-index: 1;
  background:
    rgba(1,4,12,0.52),
    radial-gradient(ellipse 90% 55% at 68% 10%, rgba(20,55,130,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(5,20,65,0.45) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 18% 55%, rgba(8,30,90,0.22) 0%, transparent 70%);
}

/* hero-lightning-layer removed — replaced by new lightning system below */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr minmax(180px, 240px);
  column-gap: 0;
  row-gap: 0;
  padding: 32px 0 28px;
  position: relative;
  z-index: 4;
  width: 100%;
  align-items: start;
}

/* LEFT: Broadcast Status Panel */
.broadcast-panel {
  background: rgba(2,7,14,0.85);
  border: 1px solid rgba(10,143,212,0.3);
  border-left: 2px solid var(--blue);
  padding: 12px 14px;
  margin-top: 28px;
}

.panel-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--blue-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(10,143,212,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-dot {
  color: var(--green);
  font-size: 11px;
  line-height: 1;
  animation: blink-anim 1.2s step-end infinite;
}

.broadcast-log {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.85;
  min-height: 70px;
  letter-spacing: 0.5px;
}

.broadcast-log .log-line {
  display: block;
  color: var(--muted);
}
.broadcast-log .log-line.active { color: var(--text); }
.broadcast-log .log-line.done   { color: var(--green); }

.now-playing {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(10,143,212,0.22);
}

.np-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.np-title {
  font-family: 'VT323', monospace;
  font-size: 19px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 3px;
}

.np-time {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--blue-light);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.np-bar {
  width: 100%;
  height: 4px;
  background: rgba(10,143,212,0.18);
}

.np-progress {
  height: 100%;
  background: var(--blue-light);
  box-shadow: 0 0 6px var(--blue);
  transition: width 1s linear;
}

/* CENTER: Hero content */
.hero-center {
  text-align: center;
  padding: 18px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* RIGHT: System Notice Panel */
.system-panel {
  background: rgba(2,7,14,0.85);
  border: 1px solid rgba(10,143,212,0.3);
  border-right: 2px solid var(--blue);
  padding: 12px 14px;
  font-family: 'VT323', monospace;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.system-panel .panel-header {
  justify-content: flex-end;
}

.system-text {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.7;
  letter-spacing: 0.5px;
}


/* ── STATS OUTER WRAPPER ── */
.stats-outer {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg2);
  border-bottom: 2px dashed rgba(10,143,212,0.2);
  padding: 0 28px;
}

.stats-meta-left,
.stats-meta-right {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--muted);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stats-date { color: var(--text-dim); }

.db-live {
  color: var(--green);
  font-size: 11px;
  line-height: 1;
  animation: blink-anim 3s step-end infinite;
}

/* Override stats-bar when inside stats-outer (homepage only) */
.stats-outer .stats-bar {
  flex: 1;
  justify-content: center;
  border-bottom: none !important;
  background: transparent !important;
}

/* ── STATUS TICKER BAR (fixed bottom) ── */
.status-ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  background: rgba(1,4,8,0.97);
  border-top: 1px solid rgba(10,143,212,0.35);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  z-index: 800;
  overflow: hidden;
}

.ticker-left {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--muted);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-session-val { color: var(--blue-light); }

.ticker-scroll-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-scroll {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: rgba(58,106,136,0.8);
  letter-spacing: 1px;
  white-space: nowrap;
  display: inline-block;
  animation: ticker-move 45s linear infinite;
}

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

/* ── EMERGENCY ALERT ── */
.emergency-alert {
  position: fixed;
  bottom: 34px;
  left: 14px;
  width: 196px;
  background: rgba(4,8,18,0.97);
  border: 1px solid rgba(255,120,40,0.45);
  border-left: 3px solid #ff7828;
  padding: 10px 12px;
  z-index: 850;
  animation: ea-slide-in 0.4s ease-out 2.5s both;
  display: block;
}

.emergency-alert.dismissed { display: none !important; }

@keyframes ea-slide-in {
  from { transform: translateX(calc(-100% - 20px)); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.ea-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255,120,40,0.28);
}

.ea-icon  { color: #ff7828; font-size: 15px; font-family: 'VT323', monospace; }
.ea-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: #ff7828;
  letter-spacing: 1px;
  flex: 1;
}

.ea-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'VT323', monospace;
  font-size: 19px;
  line-height: 1;
  padding: 0;
}
.ea-close:hover { color: #ff7828; }

.ea-body { margin-bottom: 8px; }
.ea-line {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.55;
  display: block;
}

.ea-progress-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255,120,40,0.12);
  margin-bottom: 4px;
}

.ea-bar {
  width: 56%;
  height: 100%;
  background: #ff7828;
  box-shadow: 0 0 6px rgba(255,120,40,0.5);
}

.ea-percent {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #ff7828;
  text-align: right;
}

/* ── SIDEBAR TV MONITOR WIDGET ── */
.sidebar-tv-widget {
  text-align: center;
  padding: 16px;
}

.tv-monitor {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.tv-screen {
  width: 108px;
  height: 78px;
  background: #010508;
  border: 3px solid rgba(10,143,212,0.45);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 18px rgba(10,143,212,0.12), 0 0 0 1px rgba(10,143,212,0.15);
}

/* CRT scanlines on TV screen */
.tv-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 3px
  );
  pointer-events: none;
  z-index: 2;
}

.tv-logo-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--blue-light);
  text-shadow: 0 0 8px var(--blue);
  line-height: 1.7;
  letter-spacing: 0.5px;
}
.tv-logo-text span { color: var(--accent); text-shadow: 0 0 8px rgba(255,224,102,0.5); }

.tv-ep-label {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 3px;
  margin-top: 3px;
}

.tv-stand-neck {
  width: 14px;
  height: 10px;
  background: rgba(10,143,212,0.3);
}

.tv-stand-base {
  width: 54px;
  height: 5px;
  background: rgba(10,143,212,0.3);
  border-radius: 2px;
}

/* ── HOME CARD: "OPEN TRANSMISSION" BUTTON ── */
.home-card .read-more {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  color: var(--blue-light) !important;
}
.home-card .read-more::before {
  content: 'OPEN TRANSMISSION →';
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  letter-spacing: 1px;
  color: inherit;
}
.home-card .read-more::after { content: '' !important; }

/* movie category: gold on open-transmission */
.home-card.review-card-category-movie .read-more { color: #ffd86b !important; }

/* ── ADD BODY PADDING SO TICKER DOESN'T OVERLAP FOOTER ── */
body.page-home { padding-bottom: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(150px, 190px) 1fr minmax(150px, 190px);
    padding: 24px 0 20px;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .broadcast-panel, .system-panel { display: none; }
  .hero-center { padding: 12px 16px; }
  .stats-outer { flex-direction: column; padding: 10px 16px; gap: 6px; text-align: center; }
  .stats-outer .stats-bar { width: 100%; }
  .signal-indicator { display: none; }
}

@media (max-width: 560px) {
  .status-ticker-bar { display: none; }
  .emergency-alert   { display: none !important; }
  body.page-home { padding-bottom: 0; }
}

/* ============================================================
   HERO LIGHTNING SYSTEM
   ============================================================

   TUNING GUIDE
   ─────────────────────────────────────────────────────────────
   Frequency / cycle length:
     Change the `60s` in all four animation declarations.
     A shorter value = more frequent strikes.

   Strike timing within the cycle:
     Bursts start at 93.34 % of the cycle (≈56 s of 60 s).
     To move them earlier/later, shift all percentage values
     proportionally: e.g. for 90 s cycle starting at 85 s,
     use 94.44 % as the base.

   Individual burst duration (on-time):
     Each burst spans 0.13 % of the total cycle.
     At 60 s that equals ≈ 80 ms.
     Increase the gap between paired percentages to lengthen.

   Gap between bursts:
     Currently 0.14 % (≈ 84 ms at 60 s).
     Widen the gap between the off% and the next on% to slow
     the re-strike cadence.

   Horizontal position:
     .hero-lightning-1/.hero-lightning-3  → right: 20%
     .hero-lightning-2                    → right: 22%
     Adjust to move the bolt left/right on the skyline.

   Bolt height / width:
     Change width/height on .hero-lightning.
     The SVG scales to fill — no other edits needed.

   Flash brightness:
     Burst 1 opacity: 1 → .hero-flash keyframe at 93.34 %
     Burst 2 opacity: 0.7
     Burst 3 opacity: 0.45
     Lower values = subtler ambient light spill.

   Replace bolt shape:
     Swap the background-image on .hero-lightning to any
     PNG or SVG file: background-image: url('images/bolt.png')
     Keep background-size/position/repeat as-is.
   ──────────────────────────────────────────────────────────── */

/* ── CITY BACKDROP ── */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url('images/bg/City.png');
  background-size: 100% auto;
  background-position: center 38%;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* tablet: let cover kick in but keep skyline anchored high */
@media (max-width: 1024px) {
  .hero-backdrop {
    background-size: cover;
    background-position: center 38%;
  }
}

/* mobile: center is fine, cover fills the narrower viewport */
@media (max-width: 640px) {
  .hero-backdrop {
    background-size: cover;
    background-position: center center;
  }
}

/* ── RAIN OVERLAY ─────────────────────────────────────────────
   Drop elements are generated by JS (see index.html inline script).
   Adjust count, opacity, and speed in the JS block.
   ──────────────────────────────────────────────────────────── */
.hero-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.rain-drop {
  position: absolute;
  top: -70px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(174,218,255,0.55));
  animation: rain-drop-fall linear infinite;
}

@keyframes rain-drop-fall {
  to { transform: translateY(150vh); }
}

@media (prefers-reduced-motion: reduce) {
  .rain-drop { display: none; }
}

/* ── TOWER BEACON ─────────────────────────────────────────────
   Position:
     top:  smaller % = higher on hero
     left: adjust to sit on the tower antenna tip
   ──────────────────────────────────────────────────────────── */
.hero-tower-beacon {
  position: absolute;
  top:  5.2%;  /* ← fine-tune: smaller % = higher, larger % = lower  */
  left: 8.8%;  /* ← fine-tune: smaller % = more left, larger % = more right */
  width:  4px;
  height: 4px;
  background: #dd1111;
  pointer-events: none;
  z-index: 3;
  box-shadow:
    0 0 0 1px #aa0000,
    0 0 5px 2px rgba(200,0,0,0.5);
  animation: beacon-pulse 2.5s step-end infinite;
}

@keyframes beacon-pulse {
  0%  {
    opacity: 1;
    box-shadow: 0 0 0 1px #aa0000, 0 0 5px 2px rgba(200,0,0,0.55);
  }
  18% { opacity: 0.08; box-shadow: none; }
  100%{ opacity: 0.08; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tower-beacon { animation: none; opacity: 0.6; }
}

/* ── BRIGHTNESS FLASH (ambient light spill, opacity controlled by JS) ── */
.hero-flash {
  position: absolute;
  inset: 0;
  background: rgba(148, 210, 255, 0.16);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.06s ease-out;
}

/* ── LIGHTNING CANVAS ──────────────────────────────────────────
   Bolt is drawn by JS (midpoint displacement algorithm).
   To test: open browser console and type __lightning()
   To adjust timing/position/intensity: see JS block in index.html
   ──────────────────────────────────────────────────────────── */
.hero-lightning-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .hero-flash            { display: none; }
  .hero-lightning-canvas { display: none; }
}

/* ── MINI BROADCAST PANEL (subpage heroes) ──────────────────── */
.hero-broadcast-mini {
  position: relative;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.45);
  padding: 10px 18px 12px;
  backdrop-filter: blur(2px);
  min-width: 260px;
}
.hbm-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.hbm-dot {
  font-size: 8px;
  color: #4fffb0;
  animation: blink 1.1s step-end infinite;
}
.hbm-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #e8f4ff;
  letter-spacing: 0.5px;
  line-height: 1.2;
  max-width: 340px;
}
.hbm-score {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════
   VHS ARCHIVE TAPE MODULE
   ══════════════════════════════════════════════════════════════ */

/* Tape image — fills widget width, no border-radius (sharp pixel look) */
.vhs-tape-wrap {
  position: relative;
  margin-bottom: 12px;
  cursor: default;
}

.vhs-tape-img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: filter 0.25s ease;
}

/* CRT/tape flicker overlay — very subtle, step-end for hard digital cuts */
.vhs-flicker {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: rgba(255,255,255,0.05);
  animation: vhs-flicker-anim 7s step-end infinite;
}

@keyframes vhs-flicker-anim {
  0%, 100% { opacity: 0; }
  37%      { opacity: 0; }
  37.5%    { opacity: 1; }
  38%      { opacity: 0; }
  38.3%    { opacity: 0.6; }
  38.6%    { opacity: 0; }
  71%      { opacity: 0; }
  71.4%    { opacity: 0.8; }
  71.8%    { opacity: 0; }
}

/* Hover overlay text — hidden until hover */
.vhs-hover-text {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--green);
  letter-spacing: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  text-shadow: 0 0 8px var(--green);
}

.vhs-tape-wrap:hover .vhs-tape-img {
  filter: brightness(1.14) drop-shadow(0 0 7px rgba(75,255,176,0.28));
}

.vhs-tape-wrap:hover .vhs-hover-text {
  opacity: 1;
}

/* Meta rows: TITLE / TYPE / YEAR */
.vhs-meta {
  border-top: 1px solid rgba(75,255,176,0.18);
  padding-top: 9px;
  margin-bottom: 10px;
}

.vhs-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.vhs-meta-key {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--muted);
  letter-spacing: 1px;
  min-width: 34px;
  flex-shrink: 0;
}

.vhs-meta-val {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--green);
  letter-spacing: 1px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Equalizer */
.vhs-eq-wrap {
  border-top: 1px solid rgba(75,255,176,0.18);
  padding-top: 8px;
}

.vhs-eq-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.vhs-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.vhs-bar {
  flex: 1;
  min-height: 2px;
  background: var(--green);
  box-shadow: 0 0 3px rgba(75,255,176,0.45);
  transition: height 0.08s ease;
}

/* Volume slider + mute button row */
.vhs-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* Range slider — retro green track, square thumb */
.vhs-volume {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  background: rgba(75,255,176,0.18); /* overridden inline by JS for fill */
  border: none;
  outline: none;
  cursor: pointer;
}
.vhs-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  background: var(--green);
  box-shadow: 0 0 4px rgba(75,255,176,0.7);
  cursor: pointer;
}
.vhs-volume::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: var(--green);
  border: none;
  box-shadow: 0 0 4px rgba(75,255,176,0.7);
  cursor: pointer;
}
.vhs-volume::-moz-range-track {
  height: 3px;
  background: transparent;
}

/* Mute / unmute button */
.vhs-mute {
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(75,255,176,0.4);
  padding: 4px 6px;
  cursor: pointer;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
  line-height: 1.6;
}
.vhs-mute:hover         { background: rgba(75,255,176,0.10); }
.vhs-mute.muted         { color: var(--muted); border-color: rgba(75,255,176,0.2); }

/* Error message */
.vhs-error {
  display: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 5px;
  color: #ff4444;
  letter-spacing: 1px;
  text-align: center;
  margin-top: 6px;
  padding: 4px;
  border: 1px solid rgba(255,68,68,0.3);
}

/* Mobile: hide module below 768px to save space */
@media (max-width: 768px) {
  .vhs-widget { display: none; }
}

/* Reduced motion: freeze flicker + bars */
@media (prefers-reduced-motion: reduce) {
  .vhs-flicker        { animation: none; opacity: 0; }
  .vhs-bar            { transition: none; }
}

/* ── MOVIE ARTWORK CARDS ─────────────────────────────────────── */
.review-card.has-artwork {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  min-height: 160px;
}
.review-card.has-artwork .pixel-corner {
  z-index: 2;
}
.card-artwork {
  width: 28%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #05101a;
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.05);
}
.card-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(0,0,0,0.13) 3px, rgba(0,0,0,0.13) 4px
  );
}
.has-artwork .card-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

/* non-artwork cards still need card-content padding */
.review-card:not(.has-artwork) .card-content {
  padding: 0;
}

@media (max-width: 600px) {
  .review-card.has-artwork {
    flex-direction: column;
  }
  .card-artwork {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
  }
}

