/* =========================================================
   The Features Live — main.css
   ========================================================= */

/* ----- CSS Variables ----- */
:root {
  --bg: #181818;
  --surface: #222;
  --surface-2: #232323;
  --border: #333;
  --accent: #3498db;
  --accent-hover: #217dbb;
  --accent-light: #6ec6ff;
  --text: #fff;
  --text-muted: #aaa;
  --text-dim: #ddd;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.65);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ----- Shared: Back / Nav Buttons ----- */
.back-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: none;
  transition: background 0.18s;
  margin: 32px 0 16px 0;
}
.back-btn:hover {
  background: var(--accent-hover);
}
@media (max-width: 500px) {
  .back-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* ----- Generated Setlist Archive ----- */
.archive-body {
  background: var(--bg);
}
.archive-site-header {
  padding-bottom: 0.75rem;
}
.archive-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.archive-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.archive-nav a {
  background: var(--accent);
  color: var(--text) !important;
  min-height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.archive-nav a:hover,
.archive-nav a:focus,
.archive-nav a.is-current {
  background: var(--accent-hover);
  color: var(--accent-light) !important;
  transform: translateY(-2px);
}
.archive-nav a.is-current {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.archive-page a {
  color: var(--accent-light);
}
.archive-hero {
  margin: 0 0 2rem;
  padding: 2rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.archive-hero-compact {
  padding: 1.75rem 1.5rem;
}
.archive-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.archive-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.archive-hero-compact h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.archive-lede {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--text-dim);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}
.archive-lede code {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}
.archive-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: 2rem auto 1.5rem;
}
.archive-section-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
}
.archive-section-header p {
  margin: 0;
  color: var(--text-muted);
}
.archive-stat-grid,
.archive-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem auto;
}
.archive-stat-grid {
  grid-template-columns: repeat(4, 1fr);
}
.archive-stat-card,
.archive-show-card {
  background: var(--accent);
  color: var(--text) !important;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.archive-stat-card:hover,
.archive-show-card:hover,
.archive-stat-card:focus,
.archive-show-card:focus {
  background: var(--accent-hover);
  color: var(--accent-light) !important;
  transform: translateY(-3px);
}
.archive-stat-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.archive-stat-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}
.archive-stat-card span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}
.archive-show-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.archive-card-date {
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-card-title {
  margin-top: 0.75rem;
  font-size: 1.08rem;
  font-weight: bold;
  line-height: 1.2;
}
.archive-card-meta {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.archive-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem auto;
  background: var(--surface-2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
}
.archive-list-compact {
  grid-template-columns: repeat(3, 1fr);
}
.archive-list a {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  background: var(--accent);
  color: var(--text) !important;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.archive-list a:hover,
.archive-list a:focus {
  background: var(--accent-hover);
  color: var(--accent-light) !important;
  transform: translateY(-3px);
}
.archive-list strong {
  line-height: 1.2;
}
.archive-list span,
.archive-muted {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.archive-panel {
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.archive-panel h2 {
  margin: 1.25rem 0 0.75rem;
  color: var(--accent-light);
}
.archive-panel h2:first-child {
  margin-top: 0;
}
.archive-setlist {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.85;
}
.archive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.archive-table th,
.archive-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 13px;
  text-align: left;
  vertical-align: top;
}
.archive-table th {
  color: var(--text);
  background: var(--accent);
}
.archive-table tr:hover td {
  background: rgba(52, 152, 219, 0.12);
}
@media (min-width: 1001px) {
  .archive-nav {
    width: min(1200px, calc(100vw - 3rem));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 1000px) {
  .archive-stat-grid,
  .archive-card-grid,
  .archive-list,
  .archive-list-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .archive-site-header {
    padding-top: 1rem;
  }
  .archive-page {
    padding: 1.5rem 1rem 3rem;
  }
  .archive-nav {
    position: static;
    gap: 0.75rem;
    padding: 1rem;
  }
  .archive-nav {
    grid-template-columns: repeat(6, 1fr);
  }
  .archive-nav a:nth-child(1),
  .archive-nav a:nth-child(2) {
    grid-column: span 3;
  }
  .archive-nav a:nth-child(3),
  .archive-nav a:nth-child(4),
  .archive-nav a:nth-child(5) {
    grid-column: span 2;
  }
  .archive-stat-grid,
  .archive-card-grid,
  .archive-list,
  .archive-list-compact {
    grid-template-columns: 1fr;
  }
  .archive-section-header {
    display: block;
  }
  .archive-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   HOME PAGE
   ========================================================= */

.home-header {
  background: var(--surface);
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.responsive-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

.header-img {
  max-width: 100%;
  width: 100vw;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  background: #111;
  margin-left: auto;
  margin-right: auto;
}

/* Show Grid */
.show-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  background: var(--surface-2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
}

.show-card {
  background: var(--accent);
  color: var(--text);
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 110px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: none;
  outline: none;
}
.show-card:hover,
.show-card:focus {
  background: var(--accent-hover);
  color: var(--accent-light);
}

/* Thumbnail items interleaved in the show grid */
.thumbnail-item {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.thumbnail-item:nth-of-type(1) { grid-column: 4 / 6; grid-row: 1 / 3; }
.thumbnail-item:nth-of-type(2) { grid-column: 1 / 3; grid-row: 3 / 5; }
.thumbnail-item:nth-of-type(3) { grid-column: 4 / 6; grid-row: 5 / 7; }
.thumbnail-item:nth-of-type(4) { grid-column: 1 / 3; grid-row: 7 / 9; }
.thumbnail-item:nth-of-type(5) { grid-column: 4 / 6; grid-row: 9 / 11; }

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

/* Further Reading section */
.further-reading {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 0 1.5rem;
}
.further-reading h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}
.further-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Posters nav card */
.posters-nav {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Home footer */
.home-footer {
  text-align: center;
  margin-top: 3rem;
}
.home-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

/* Home responsive */
@media (max-width: 1000px) {
  .thumbnail-item {
    display: none;
  }
  .show-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem 0.75rem;
    margin: 1.5rem 1rem;
  }
}
@media (max-width: 700px) {
  .show-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.75rem 0.75rem;
    margin: 1rem 0.75rem;
    gap: 0.75rem;
  }
  .show-card {
    height: 90px;
    font-size: 1rem;
  }
  .further-reading-grid {
    grid-template-columns: 1fr;
  }
  .further-reading {
    padding: 0 0.75rem;
  }
  .posters-nav {
    padding: 0 0.75rem;
  }
}
@media (max-width: 500px) {
  .show-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    padding: 0.6rem 0.6rem;
    margin: 0.75rem 0.5rem;
  }
  .show-card {
    height: 75px;
    font-size: 0.9rem;
  }
}
@media (max-width: 360px) {
  .show-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0.5rem 0.5rem;
    padding: 0.5rem;
  }
  .show-card {
    height: 60px;
    font-size: 0.88rem;
  }
}

/* =========================================================
   SHOW PAGES
   ========================================================= */

.show-header {
  background: var(--surface);
  padding: 2rem 0 1rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.back-link {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 1rem;
  position: absolute;
  left: 0;
  top: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.show-poster {
  width: 340px;
  max-width: 95vw;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  background: #111;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.show-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0.5rem 0 0.2rem 0;
  letter-spacing: 1px;
  word-break: break-word;
}

.show-date {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.venue {
  color: var(--accent-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.opener {
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.show-page {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  background: var(--surface-2);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem 7rem 1.5rem;
  position: relative;
}

.setlist-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  margin-top: 2rem;
  letter-spacing: 1px;
  color: var(--text);
}
.setlist-title:first-child {
  margin-top: 0;
}

.song-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.song-list li {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.song-list li:last-child {
  border-bottom: none;
}
.song-list li.active {
  background: rgba(52, 152, 219, 0.08);
}

.encore-label {
  display: block;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: none;
  cursor: default;
}

.song-title {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.08rem;
  text-align: left;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
  outline: none;
  word-break: break-word;
}
.song-title:hover,
.song-list li.active .song-title,
.song-title:focus {
  color: var(--accent-light);
  text-decoration: underline;
}

.song-duration {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-left: 1rem;
  min-width: 48px;
  text-align: right;
}

/* Fixed audio player bar */
.audio-player-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.2rem 0.5rem;
  display: flex;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.65);
  align-items: center;
  gap: 1rem;
}
.audio-player-bar audio {
  width: 100%;
  max-width: 500px;
  outline: none;
  background: var(--surface-2);
  border-radius: 8px;
}

.audio-nav-btn {
  background: var(--surface-2);
  border: none;
  color: var(--accent-light);
  font-size: 1.5rem;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}
.audio-nav-btn:disabled {
  color: #444;
  cursor: not-allowed;
  background: var(--bg);
}
.audio-nav-btn:hover:not(:disabled) {
  background: var(--border);
}

/* Show page responsive */
@media (max-width: 700px) {
  .show-header {
    padding: 2.5rem 0 0.75rem 0;
  }
  .show-page {
    padding: 1rem 0.75rem 7rem 0.75rem;
    margin: 0.75rem 0 0 0;
    border-radius: 0;
  }
  .show-poster {
    width: 90vw;
    max-width: 90vw;
    margin-bottom: 1rem;
  }
  .setlist-title {
    font-size: 1.1rem;
  }
  .song-title {
    font-size: 1rem;
  }
  .audio-player-bar {
    padding: 0.7rem 0.5rem;
    gap: 0.5rem;
  }
  .audio-player-bar audio {
    max-width: calc(100vw - 7rem);
  }
  .back-link {
    font-size: 0.9rem;
    top: 0.6rem;
    left: 0.75rem;
  }
}
@media (max-width: 400px) {
  .show-header {
    padding: 2.5rem 0 0.5rem 0;
  }
  .show-title {
    font-size: 1.4rem;
    padding: 0 0.5rem;
  }
  .show-poster {
    width: 95vw;
    max-width: 95vw;
  }
  .back-link {
    font-size: 0.85rem;
    top: 0.5rem;
    left: 0.5rem;
  }
  .song-list li {
    padding: 0.6rem 0.25rem;
  }
}

/* =========================================================
   POSTERS PAGE
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 24px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  background: var(--bg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
  color: var(--text);
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1.5px solid var(--surface-2);
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  transition: transform 0.2s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

.description {
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  background: #1f1f1f;
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px 12px;
  }
  .gallery-item img {
    height: 200px;
  }
}

/* Lightbox modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}
.modal-close {
  position: fixed;
  top: 16px;
  right: 24px;
  color: var(--text);
  font-size: 48px;
  font-weight: bold;
  transition: color 0.2s;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  z-index: 1001;
}
.modal-close:hover,
.modal-close:focus {
  color: var(--text-muted);
}
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-size: 1.2rem;
}

/* =========================================================
   VIDEOS PAGE
   ========================================================= */

.video-layout {
  display: block;
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
}

.video-label {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text);
  margin: 0 0 16px 0;
}

.video-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.video-embed {
  width: calc(33.333% - 14px);
  max-width: 240px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.video-facade {
  position: relative;
  width: calc(33.333% - 14px);
  max-width: 240px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
}
.video-facade:hover img,
.video-facade:focus img {
  filter: brightness(0.75);
}
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.video-play-btn::after {
  content: '';
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px;
  transition: transform 0.15s, background-color 0.15s;
}
.video-facade:hover .video-play-btn::after,
.video-facade:focus .video-play-btn::after {
  transform: scale(1.15);
  background-color: var(--accent);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  flex-wrap: wrap;
  padding: 0 16px;
}
.pagination button {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s;
}
.pagination button:hover {
  background: var(--accent-hover);
}
.pagination button:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.6;
}
.page-info {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Video lightbox modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.video-modal.is-open {
  display: flex;
}
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.15s;
  z-index: 1;
}
.video-modal-close:hover,
.video-modal-close:focus {
  color: var(--text-muted);
}
.video-modal-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-modal-yt-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.video-modal-yt-link:hover {
  background: #cc0000;
}

@media (max-width: 700px) {
  .video-label {
    font-size: 1.4rem;
  }
  .video-list {
    flex-direction: column;
    gap: 12px;
  }
  .video-embed,
  .video-facade {
    width: 100%;
    max-width: 100%;
  }
  .video-layout {
    padding: 0 0.75rem;
  }
  .video-play-btn::after {
    width: 40px;
    height: 40px;
    background-size: 22px;
  }
  .video-modal-close {
    top: -2rem;
    font-size: 2rem;
  }
}
@media (max-width: 400px) {
  .video-label {
    font-size: 1.2rem;
  }
  .pagination {
    gap: 8px;
    padding: 0 0.5rem;
  }
  .pagination button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

/* =========================================================
   404 PAGE
   ========================================================= */

.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}
.page-404 h1 {
  font-size: 6rem;
  margin: 0;
}
.page-404 p {
  font-size: 1.5rem;
  margin: 0.5rem 0 2rem;
}
.page-404 a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.page-404 a:hover {
  background-color: var(--accent-hover);
}

/* =========================================================
   THUMBNAILS (missing from old _headers, covered here)
   ========================================================= */
/* assets/thumbnails/* is handled in _headers */
