/* ================= POSTERS PAGE ================= */
.container {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.nav-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 14px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.nav-row .item {
  flex: 1;
}

.posters-intro {
  width: 100%;
  flex-shrink: 0;
  background-color: rgba(0,0,0,0.88);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,220,100,0.03) 0px,
    rgba(255,220,100,0.03) 1px,
    transparent 1px,
    transparent 12px
  );
  border: 2px solid #ffe8a0;
  box-shadow: 0 0 20px rgba(255,220,100,0.4);
  padding: 10px 20px;
  box-sizing: border-box;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.posters-intro .intro-title {
  font-size: 20px;
  margin: 0;
  color: #ffe8a0;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'MS Gothic', serif;
  text-shadow: 0 0 12px rgba(255,220,100,1);
  white-space: nowrap;
  flex-shrink: 0;
}

.posters-intro .intro-blurb {
  font-size: 12px;
  line-height: 1.6;
  color: #ccc;
  font-family: 'MS Gothic', serif;
  margin: 0;
}

/* ================= GRID WRAP ================= */
.posters-grid-wrap {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: scroll;
  scrollbar-color: #ffe8a0 #1a0000;
  scrollbar-width: thin;
}

.posters-grid-wrap::-webkit-scrollbar {
  width: 8px;
}
.posters-grid-wrap::-webkit-scrollbar-track {
  background: #1a0000;
  border-left: 1px solid #ffe8a0;
}
.posters-grid-wrap::-webkit-scrollbar-thumb {
  background: #ffe8a0;
  border: 1px solid #1a0000;
}
.posters-grid-wrap::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

/* ================= GRID ================= */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 5px;
  width: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.posters-loading {
  color: #ffe8a0;
  font-family: 'MS Gothic', serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: lowercase;
  padding: 10px 0;
}

/* ================= FILM CARD ================= */
.film-card {
  position: relative;
  aspect-ratio: 2 / 3;
  display: block;
  text-decoration: none;
  overflow: visible;
}

.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,220,100,0.2);
  filter: sepia(0.15) contrast(1.05);
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.film-card:hover img {
  filter: sepia(0) contrast(1.15) brightness(1.1);
  border-color: #ffe8a0;
}

/* ================= TOOLTIP ================= */
.film-tooltip {
  display: none;
  position: fixed;
  background: rgba(0,0,0,0.95);
  border: 1px solid #ffe8a0;
  box-shadow: 0 0 10px rgba(255,220,100,0.4);
  padding: 6px 10px;
  z-index: 9999;
  min-width: 130px;
  max-width: 200px;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
}

.tooltip-name {
  display: block;
  color: #ffe8a0;
  font-family: 'MS Gothic', serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(255,220,100,0.6);
  margin-bottom: 3px;
  line-height: 1.4;
}

.tooltip-date {
  display: block;
  color: #aaa;
  font-family: 'MS Gothic', serif;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.tooltip-rating {
  display: block;
  color: #ffe8a0;
  font-family: 'MS Gothic', serif;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 3px;
  text-shadow: 0 0 6px rgba(255,220,100,0.8);
}

/* ================= NO POSTER FALLBACK ================= */
.film-no-poster {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,220,100,0.3);
  color: #ffe8a0;
  font-family: 'MS Gothic', serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  line-height: 1.3;
}

/* ================= RESPONSIVE OVERRIDES =================*/
@media (max-width: 900px) {
  .posters-grid-wrap {
    flex: none;
    overflow: visible;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .posters-intro {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
  }
  .posters-intro .intro-title {
    white-space: normal;
  }
}