/* ==========================================================================
   Anthony Crowther Fan Page — css/style.css
   Phosphor-green CRT terminal identity. Cold, digital, precise.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Space+Grotesk:wght@400;500;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #001a06;
  --bg-card:       #002d0a;
  --bg-alt:        #001204;
  --bg-overlay:    rgba(0, 26, 6, 0.92);
  --text:          #c8ffd4;
  --text-muted:    #7ab88a;
  --accent:        #00e880;
  --accent2:       #ffff44;
  --accent-dim:    #00a850;
  --border:        rgba(0, 232, 128, 0.3);
  --border-bright: rgba(0, 232, 128, 0.7);
  --font-heading:  'Press Start 2P', monospace;
  --font-body:     'Space Grotesk', system-ui, sans-serif;

  --nav-height:    60px;
  --container-max: 1100px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-dim);
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover,
a:focus {
  color: var(--accent2);
  text-decoration-color: var(--accent2);
  outline: none;
}

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 232, 128, 0.4);
}

h1 { font-size: clamp(1rem, 3vw, 1.8rem); }
h2 { font-size: clamp(0.85rem, 2vw, 1.3rem); }
h3 { font-size: clamp(0.75rem, 1.5vw, 1rem); }
h4 { font-size: 0.75rem; }

p + p { margin-top: 0.9em; }

strong { color: var(--accent); font-weight: 600; }
em { color: var(--text-muted); font-style: italic; }

code, pre {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  background: rgba(0, 232, 128, 0.08);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.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;
}

.skip-link {
  position: absolute;
  top: -9999px; left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

.section-rule {
  text-align: center;
  color: var(--accent-dim);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   Cursor blink animation
   -------------------------------------------------------------------------- */
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent2);
  color: var(--bg);
  border-color: var(--accent2);
  box-shadow: 0 0 16px rgba(255, 255, 68, 0.4);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(0, 232, 128, 0.1);
  color: var(--accent2);
  border-color: var(--accent2);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(0, 232, 128, 0.5);
}
.nav-brand:hover { color: var(--accent2); text-decoration: none; }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link:focus,
.nav-link--active {
  color: var(--accent);
  text-decoration: none;
}
.nav-link--active {
  color: var(--accent2) !important;
  text-shadow: 0 0 8px rgba(255, 255, 68, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
}

.burger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 0;
    margin-left: 0;
  }
  .nav-menu--open { display: flex; }
  .nav-link { padding: 0.6rem 1.5rem; }
}

/* --------------------------------------------------------------------------
   Hero — Character-cell grid + cursor blink
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

/* Character-cell grid overlay — recreates C64 PETSCII 8x8 grid */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(0, 232, 128, 0.04) 0px,
      rgba(0, 232, 128, 0.04) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 232, 128, 0.04) 0px,
      rgba(0, 232, 128, 0.04) 1px,
      transparent 1px,
      transparent 8px
    );
  pointer-events: none;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 0;
  display: inline;
  text-shadow: 0 0 30px rgba(0, 232, 128, 0.6);
}

/* Blinking cursor on hero title */
.hero-title::after {
  content: '_';
  display: inline;
  color: var(--accent);
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0;
  box-shadow: 0 0 8px rgba(0, 232, 128, 0.5);
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-block {
  display: flex;
  flex-direction: column;
}

.stat-block .num {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--accent2);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 68, 0.4);
}

.stat-block .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Page hero (non-index pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(0, 232, 128, 0.03) 0px,
      rgba(0, 232, 128, 0.03) 1px,
      transparent 1px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(0, 232, 128, 0.03) 0px,
      rgba(0, 232, 128, 0.03) 1px,
      transparent 1px,
      transparent 8px
    );
  pointer-events: none;
}

.page-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.page-hero__title {
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero__subtitle {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 4rem 0;
}

.site-section:nth-child(even) {
  background: var(--bg-card);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   History / body text
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 780px;
}

.history-chapter {
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 2.5rem;
}

.history-chapter:last-child { margin-bottom: 0; }

.history-chapter h3 {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: var(--accent2);
}

/* --------------------------------------------------------------------------
   Game catalogue
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.6rem;
}

.filter-bar label { color: var(--text-muted); }

.filter-bar select {
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  cursor: pointer;
}

.filter-count { color: var(--text-muted); margin-left: auto; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 232, 128, 0.15);
}

.game-card__cover {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

.game-card__body {
  padding: 1.25rem;
}

.game-card__title {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.game-card__title a {
  color: inherit;
  text-decoration: none;
}
.game-card__title a:hover { color: var(--accent2); }

.game-card__year {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.game-card__meta { font-size: 0.85rem; }

.game-card__meta-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0, 232, 128, 0.1);
}
.game-card__meta-row:last-child { border-bottom: none; }

.meta-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 80px;
  font-size: 0.8rem;
}

.game-card__desc {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s;
  cursor: pointer;
}

.gallery-item:hover { border-color: var(--accent); }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Music
   -------------------------------------------------------------------------- */
.music-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.music-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  transition: border-color 0.2s;
}

.music-entry:hover { border-color: var(--accent); box-shadow: 0 0 12px rgba(0, 232, 128, 0.1); }

.music-entry__title {
  font-size: 0.8rem;
  color: var(--accent2);
  margin-bottom: 0.4rem;
}

.music-entry__composer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.music-entry__desc {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.music-entry__hvsc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sid-player {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sid-player__btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.sid-player__btn:hover { background: var(--accent2); }

.sid-player__link {
  font-size: 0.8rem;
  color: var(--accent);
}

.sid-player__hvsc {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.75rem;
  border-top: 4px solid var(--accent2);
}

.review-card__title {
  font-size: 0.75rem;
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.review-card__source {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.review-card__score {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 232, 128, 0.5);
  margin-bottom: 0.75rem;
}

.review-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.resource-card:hover { border-color: var(--accent); }

.resource-card__name {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.resource-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.resource-card__link {
  font-size: 0.8rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.video-card:hover { border-color: var(--accent); }

.video-embed {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.yt-facade {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.yt-facade:hover img { opacity: 0.8; }

.yt-facade::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 232, 128, 0.7);
  pointer-events: none;
}

.video-card__body {
  padding: 1rem;
}

.video-card__body h3 {
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--accent2);
}

.video-card__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.video-category > h3 {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Play page
   -------------------------------------------------------------------------- */
.play-option {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent2);
}

.play-option__title {
  font-size: 0.8rem;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.play-option__desc {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.person-card__img {
  width: 200px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.person-card__body { flex: 1; min-width: 200px; }

.person-card__name {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.person-card__role {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Flagship / editorial
   -------------------------------------------------------------------------- */
.flagship-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2rem;
  border-top: 4px solid var(--accent);
}

.flagship-title {
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.flagship-meta {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.flagship-body {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 780px;
}

.flagship-screenshot {
  float: right;
  width: 280px;
  margin: 0 0 1.5rem 2rem;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .flagship-screenshot {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.site-footer__inner {
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.site-footer__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Easter egg — BLAGGER modal
   -------------------------------------------------------------------------- */
.blagger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.blagger-inner {
  background: var(--bg-alt);
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(0, 232, 128, 0.5), inset 0 0 40px rgba(0, 232, 128, 0.05);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
}

.blagger-pixel-art {
  font-family: monospace;
  font-size: 0.6rem;
  line-height: 1.1;
  color: var(--accent);
  white-space: pre;
  margin: 0 auto 1.5rem;
  text-shadow: 0 0 6px rgba(0, 232, 128, 0.6);
}

.blagger-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.blagger-title {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--accent2);
  text-shadow: 0 0 20px rgba(255, 255, 68, 0.5);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.blagger-sub {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lb-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lb-close {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent); }

.lb-inner img {
  max-height: 75vh;
  width: auto;
  border: 1px solid var(--border);
}

.lb-caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Inline video embed (flagship / index)
   -------------------------------------------------------------------------- */
.inline-video {
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.inline-video .video-embed {
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Screenshot strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}

.screenshot-strip img {
  width: 100%;
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .screenshot-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Table styles
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  background: var(--bg-card);
  color: var(--accent);
}

.data-table tr:nth-child(even) td {
  background: rgba(0, 232, 128, 0.03);
}

/* --------------------------------------------------------------------------
   SID Player Bar
   -------------------------------------------------------------------------- */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000c03;
  border-top: 1px solid var(--accent);
  z-index: 1000;
  padding: 0.5rem 0;
}

.player-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.player-bar__btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.player-bar__btn:hover {
  background: var(--accent);
  color: #000;
}

.player-bar__btn--play {
  padding: 0.4rem 0.8rem;
}

.player-bar__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.player-bar__label {
  font-family: var(--font-heading);
  font-size: 0.5rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-bar__format {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* SID player controls injected into music entries */
.sid-player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.sid-player__btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.sid-player__btn:hover {
  background: var(--accent);
  color: #000;
}

.sid-player__link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.sid-player__link:hover {
  border-bottom-color: var(--accent);
}

/* Add bottom padding to body to account for fixed player bar */
body.has-player-bar {
  padding-bottom: 60px;
}

.music-list__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--accent);
  background: rgba(0, 232, 128, 0.03);
}

.music-entry__year {
  font-family: var(--font-body);
  font-size: 0.7em;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 0.5rem;
}
