/* Base styles */
body {
  margin: 0;
  padding: 0 40px;
  background-color: #000;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
  text-align: center;
}

/* Layout wrapper */
.page-wrapper {
  background-color: #3235a0; /* Blockbuster blue */
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Logo section */
.logo-section {
  background-color: #000;
  padding: 30px 0;
}

.logo-banner {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.logo-img {
  width: 380px;
  height: auto;
  display: block;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.6));
}

/* Intro text */
.intro {
  max-width: 700px;
  margin: 40px auto 20px;
  padding: 0 20px;
  text-align: left;
  color: #F9BF00;
  font-size: 1.2rem;
}

.intro h2 {
  text-align: center;
  color: #F9BF00;
  text-shadow: 2px 2px #000;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.intro p {
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Buttons */
.sort-buttons button,
.tag-buttons button {
  background-color: #F9BF00;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sort-buttons button:hover,
.tag-buttons button:hover {
  transform: scale(1.1);
  background-color: #F9BF00;
}

/* VHS shelf */
.shelf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  background-color: #F9BF00;
  background-image: 
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 2px,
      transparent 2px,
      transparent 4px
    );
  border-top: 8px solid #333;
  border-bottom: 8px solid #333;
  box-shadow: inset 0 -5px 0 #222, inset 0 5px 0 #222;
}

/* VHS item styling */
.vhs-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vhs-item img {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #000;
  background-color: #222;
  padding: 4px;
  box-shadow: 0 0.5px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.vhs-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.vhs-item p {
  margin: 8px 0 0;
  font-size: 1em;
  font-weight: bold;
  color: #111;
  text-shadow: 0.5px 0.5px 1px rgba(255, 255, 255, 0.5);
  max-width: 140px;
  text-align: center;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 900px; /* increased for larger lightbox images */
}

/* Navigation arrows */
.nav-arrow {
  font-size: 48px;
  color: #FFD300;
  cursor: pointer;
  user-select: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  z-index: 10;
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}

/* Images in lightbox */
.lightbox-images {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.lightbox-images img {
  max-width: 45%;  /* larger, still side by side */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* IMDb link */
.imdb-link {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.imdb-link a {
  color: #FFD300;
  font-weight: bold;
  text-decoration: underline;
  font-size: 1.1em;
}

/* Close button */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

/* Bluesky links under shelf */
.bluesky-links {
  margin-top: 20px;
  padding: 20px;
  background-color: #3235a0; /* Blockbuster blue */
  display: flex;
  justify-content: center;
  gap: 40px;
}

.bluesky-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F9BF00;  /* Blockbuster yellow */
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bluesky-links a img {
  width: 28px;
  height: 28px;
}

.bluesky-links a:hover {
  color: #fff;
  transform: scale(1.1);
}

.shelf .backrooms-link {
  flex: 1 0 100%;        /* full width in flex layout */
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: #F9BF00;
  border: 2px solid #333;
  border-radius: 6px;
  text-decoration: none;
}

.shelf .backrooms-link:hover {
  background: #ffcc00;
}

.shelf .index-link {
  flex: 1 0 100%;        /* full width in flex layout */
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: #F9BF00;
  border: 2px solid #333;
  border-radius: 6px;
  text-decoration: none;
}

.shelf .index-link:hover {
  background: #ffcc00;
}