/* Alan Photo Carousel — VHS Retro Aesthetic */

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

:root {
  --neon-blue: #00d4ff;
  --neon-pink: #ff2d7b;
  --warm-amber: #ffb347;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a2e;
  --text-primary: #e0e0e0;
  --text-muted: #888;
  --card-width: 200px;
  --card-height: 250px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'VT323', monospace;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  animation: fade-in 0.8s ease-out;
  /* Column layout lets mobile reorder the photo preview above the header. */
  display: flex;
  flex-direction: column;
}

/* Keep the centered preview at its natural width inside the flex column. */
.commentary-display {
  width: 100%;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* CRT scanlines + vignette */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* Start gate overlay */
.start-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #14142a 0%, #050505 80%);
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-inner {
  text-align: center;
  padding: 1rem;
}

.start-logo {
  font-family: 'VT323', monospace;
  font-size: 5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.7), 0 0 40px rgba(0, 212, 255, 0.35);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.start-sub {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.start-btn {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  color: var(--bg-dark);
  background: var(--neon-blue);
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.2s;
  animation: start-pulse 1.8s ease-in-out infinite;
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

@keyframes start-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0, 212, 255, 0.45); }
  50% { box-shadow: 0 0 32px rgba(0, 212, 255, 0.85); }
}

.start-note {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--warm-amber);
  margin-top: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1.2rem;
  border-bottom: 2px solid var(--neon-blue);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.logo {
  font-family: 'VT323', monospace;
  font-size: 3.5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.3);
  letter-spacing: 0.05em;
  line-height: 1;
}

.tagline {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 45, 123, 0.4);
  margin-top: 0.3rem;
}

/* VHS date stamp */
.vhs-date {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  z-index: 500;
  pointer-events: none;
}

/* Carousel */
.photo-shelf {
  padding: 1.5rem 0 2rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
}

.carousel {
  position: relative; /* makes cards' offsetParent the carousel (cheap offsetLeft math) */
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 1.5rem 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
  touch-action: pan-x;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: 'VT323', monospace;
}

.carousel-arrow:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
}

.carousel-arrow-left {
  left: 0.5rem;
}

.carousel-arrow-right {
  right: 0.5rem;
}

/* Photo cards */
.photo-card {
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  height: var(--card-height);
  min-width: var(--card-width);
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 3px 3px 0 #000, inset 1px 1px 0 rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  opacity: 0.65;
  z-index: 1;
  will-change: opacity;
}

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

.photo-date {
  position: absolute;
  bottom: 4px;
  right: 5px;
  z-index: 3;
  font-family: 'VT323', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--warm-amber);
  background: rgba(0, 0, 0, 0.55);
  padding: 0 4px;
  border-radius: 2px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.photo-card:hover {
  opacity: 1;
}

.photo-card:active {
  opacity: 1;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4), 3px 3px 0 #000;
}

.photo-card.center-highlight {
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 3px 3px 0 #000;
  z-index: 2;
}

/* Opacity controlled by JS for smooth distance-based gradient */

/* Skeleton cards */
.skeleton-card {
  flex: 0 0 var(--card-width);
  height: var(--card-height);
  background: linear-gradient(110deg, #1a1a2e 30%, #252540 50%, #1a1a2e 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Layout order: big photo + caption on top, scrolling photos directly beneath
   it, then the "Alan" title, then footer. (Same arrangement on desktop and
   mobile.) */
#commentary-display { order: -2; }
#main-content { order: -1; }
.site-header { order: 1; }
.site-footer { order: 2; }

/* Commentary display */
.commentary-display {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.5s ease;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.6);
  /* Reserve a stable block for the caption so showing it (or swapping photos)
     never shifts the carousel below it. */
  height: 88vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.commentary-display.hidden {
  opacity: 0;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}

.preview-img {
  max-width: 100%;
  max-height: calc(88vh - 96px);
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 8px 30px rgba(0, 0, 0, 0.6);
  display: none;
}

.preview-date {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--warm-amber);
  text-shadow: 0 0 6px rgba(255, 179, 71, 0.4);
  margin-top: 0.4rem;
  text-align: center;
}

.commentary-text {
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  margin-top: 0.6rem;
  min-height: 2rem;
}

.commentary-text.typing::after {
  content: '\2588';
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--neon-blue);
  opacity: 0.6;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0; }
}

.speech-status {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--neon-pink);
  margin-top: 0.3rem;
  min-height: 1.5rem;
}

.speech-status.speaking {
  animation: pulse-glow 1s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 4px rgba(255, 45, 123, 0.4);
    opacity: 1;
  }
  50% {
    text-shadow: 0 0 16px rgba(255, 45, 123, 0.8), 0 0 30px rgba(255, 45, 123, 0.4);
    opacity: 0.7;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
  transition: color 0.2s;
  font-family: 'VT323', monospace;
}

.lightbox-close:hover {
  color: var(--neon-pink);
}

/* Idle hint */
.idle-hint {
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0 1rem;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.idle-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Photo skip arrows, fixed at the top corners. Back = previous photo (left),
   forward = next photo (right). Styled like the other neon circular buttons. */
.nav-arrow {
  position: fixed;
  top: 0.9rem;
  z-index: 650;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--neon-blue);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-blue);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.nav-arrow:hover {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255, 45, 123, 0.5);
}

.nav-arrow:active {
  transform: scale(0.92);
}

.nav-arrow-back { left: 1rem; }
.nav-arrow-fwd { right: 1rem; }

/* Music play/pause control (bottom-left), with a label beneath the button. */
.music-control {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.music-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--neon-blue);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-blue);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.music-toggle-btn:hover {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.music-toggle-btn.playing {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.controls-bar {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 10, 10, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.slider-label {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-control input[type="range"] {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #333;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.slider-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-blue);
  cursor: pointer;
}

.slider-control input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-blue);
  border: none;
  cursor: pointer;
}

.music-player {
  display: flex;
  gap: 0.3rem;
}

/* Labeled button controls (slideshow / music / next track) */
.btn-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.btn-label {
  font-family: 'VT323', monospace;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--text-muted);
  white-space: nowrap;
}

.music-btn {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  background: transparent;
  border: 1px solid #444;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.music-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.music-play.playing {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
}

/* Slideshow pause/play button */
.slideshow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--neon-blue);
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid var(--neon-blue);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.slideshow-btn:hover {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.slideshow-btn.paused {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

/* Error state */
.error-message {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.4rem;
  color: var(--neon-pink);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  border-top: 1px solid #222;
}

.footer-link {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--neon-pink);
}

/* ── Desktop: full-bleed photo that scales to the browser window, with a
   Ken Burns drift. Landscape fills the window; portrait runs nearly full
   width and zooms in harder, panning down through the subject. ── */
@media (min-width: 769px) {
  .commentary-display {
    position: relative;
    width: 96vw;
    max-width: 1600px;
    height: 88vh;
    margin: 0 auto;
    padding: 0;
    display: block;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
  }

  .preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
    will-change: transform;
  }

  /* Landscape: fills the window with a gentle zoom + drift. */
  .preview-img.landscape {
    object-position: center;
    transform-origin: center center;
    animation: kb-desk-land 26s ease-in-out infinite alternate;
  }
  @keyframes kb-desk-land {
    0%   { transform: scale(1.06) translate(-1.5%, -1%); }
    100% { transform: scale(1.2) translate(1.5%, 2%); }
  }

  /* Portrait: nearly full width (large), zoomed in more, panning downward
     from the top through the subject. */
  .preview-img.portrait {
    object-position: center top;
    transform-origin: center top;
    animation: kb-desk-port 26s ease-in-out infinite alternate;
  }
  @keyframes kb-desk-port {
    0%   { transform: scale(1.15) translateY(0); }
    100% { transform: scale(1.5) translateY(-9%); }
  }

  /* Caption typed across the bottom over a dark scrim. */
  .commentary-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 600;
    padding: 5rem 2rem 2.5rem;
    font-size: 1.9rem;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    pointer-events: none;
  }

  /* Date and REC status pinned to the top corners, clear of the skip arrows. */
  .preview-date {
    position: absolute;
    top: 1.1rem;
    right: 5rem;
    margin: 0;
    z-index: 3;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.95);
  }
  .speech-status {
    position: absolute;
    top: 1.1rem;
    left: 5rem;
    margin: 0;
    z-index: 3;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.95);
  }
}

/* Responsive: tablet */
@media (max-width: 768px) {
  :root {
    --card-width: 150px;
    --card-height: 190px;
  }

  /* Mobile order: the full-screen photo first, the scrolling carousel directly
     beneath it (off the bottom of the screen until you scroll down), then the
     "Alan" title, then footer. */
  #commentary-display { order: -2; }
  #main-content { order: -1; }
  .site-header { order: 1; }
  .site-footer { order: 2; }

  /* The centered photo fills the whole screen; the narration is typed over it. */
  .commentary-display {
    position: relative;
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    display: block;
    border: none;
    border-radius: 0;
    background: #000;
    overflow: hidden;
  }

  /* Photo fills the screen. Portrait shots fit fully (letterboxed on black);
     landscape shots are zoomed in a little toward the people (upper-center). */
  .preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* Landscape photos: a slow Ken Burns drift (gentle ~1.25x zoom + pan toward
     the people). The animation is restarted per photo in app.js. */
  .preview-img.landscape {
    object-fit: contain;
    /* Anchor the letterboxed image near the top so the black space collects at
       the bottom (under the narration scrim) instead of above the photo. */
    object-position: center top;
    transform-origin: center top;
    animation: ken-burns 16s ease-in-out forwards;
  }

  @keyframes ken-burns {
    0% {
      transform: scale(1.4) translate(4%, 3%);
    }
    100% {
      transform: scale(2) translate(-4%, -4%);
    }
  }

  /* Narration typed across the bottom of the photo, over a dark scrim. */
  .commentary-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 600;
    padding: 4rem 1.2rem 5.5rem;
    font-size: 1.6rem;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
    pointer-events: none;
  }

  /* Date stamp pinned to the top-right over the photo. */
  /* Pushed below the top-corner skip arrows so they don't overlap. */
  .preview-date {
    position: absolute;
    top: 4rem;
    right: 0.9rem;
    margin: 0;
    z-index: 3;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.95);
  }

  /* Speech / REC status pinned to the top-left over the photo, below the arrow. */
  .speech-status {
    position: absolute;
    top: 4rem;
    left: 0.9rem;
    margin: 0;
    z-index: 3;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.95);
  }

  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .site-header {
    padding: 1.5rem 1rem 1rem;
  }

  .carousel-wrapper {
    padding: 0 1.5rem;
  }

  .carousel {
    gap: 10px;
    padding: 1rem 0.3rem;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .photo-card.center-highlight {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: 0.5rem;
    right: 0.8rem;
    font-size: 2rem;
  }
}

/* Responsive: phone */
@media (max-width: 480px) {
  :root {
    --card-width: 120px;
    --card-height: 150px;
  }

  .logo {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .site-header {
    padding: 1.2rem 0.8rem 0.8rem;
  }

  .carousel-wrapper {
    padding: 0 0.3rem;
  }

  .carousel-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .carousel-arrow-left {
    left: 0.1rem;
  }

  .carousel-arrow-right {
    right: 0.1rem;
  }

  .commentary-text {
    font-size: 1.35rem;
    padding: 3.5rem 1rem 5.5rem;
  }

  .speech-status {
    font-size: 1rem;
  }

  .photo-shelf {
    padding: 1rem 0 1.5rem;
  }

  .lightbox {
    padding: 0.5rem;
  }

  .controls-bar {
    bottom: 0.5rem;
    right: 0.5rem;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem;
  }

  .slider-control input[type="range"] {
    width: 45px;
  }

  .slider-label {
    font-size: 0.75rem;
  }

  .btn-label {
    font-size: 0.6rem;
  }

  .vhs-date {
    bottom: 5.5rem;
    font-size: 0.65rem;
  }

  .idle-hint {
    font-size: 0.95rem;
  }
}
