:root {
  --bg-deep: #06050b;
  --bg-surface: #0e111a;
  --bg-card: rgba(20, 24, 36, 0.75);
  --bg-card-hover: rgba(30, 36, 54, 0.9);

  --border-subtle: rgba(168, 85, 247, 0.16);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --purple-brand: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --fandango-orange: #f97316;
  --ma-blue: #38bdf8;
  --apple-silver: #f1f5f9;
  --gold-awards: #eab308;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* Navbar Button Indicator */
.active-vault-btn {
  background: var(--purple-brand) !important;
  color: #fff !important;
  border-color: var(--purple-brand) !important;
  box-shadow: 0 0 14px var(--purple-glow) !important;
}
/* ==========================================================================
   Skull & Bones: Sticky Control Bar & Filter Drawer
   ========================================================================== */

/* Utility: hide elements cleanly */
.hidden {
  display: none !important;
}

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

/* Constrain SVG icons so they never blow up */
.control-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* Sticky Bar Container */
.vault-controls-bar {
  position: sticky;
  top: 70px; /* Adjust according to your main header height */
  z-index: 40;
  background: rgba(15, 12, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  margin-bottom: 24px;
}

.vault-controls-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Search Input */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  transition: border-color 0.2s, background 0.2s;
}

.search-input-wrapper:focus-within {
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.1);
}

.search-input-wrapper .control-icon {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
}

#vault-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 0;
}

#vault-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.btn-clear {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.btn-clear:hover {
  color: #fff;
}

/* Actions: Sort & Drawer Trigger */
.controls-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select-wrapper select {
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select-wrapper select:focus,
.sort-select-wrapper select:hover {
  border-color: #a855f7;
}

.sort-select-wrapper option {
  background: #181428;
  color: #fff;
}

.btn-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter-trigger:hover {
  background: rgba(168, 85, 247, 0.28);
  border-color: #a855f7;
  color: #fff;
}

.filter-count-badge {
  background: #a855f7;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Active Chips */
.active-chips-container {
  max-width: 1600px;
  margin: 10px auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.8rem;
}

.filter-chip button {
  background: none;
  border: none;
  color: #e9d5ff;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Filter Drawer & Backdrop Overlay
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: opacity 0.3s ease;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #141122;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-drawer.hidden {
  display: flex !important;
  transform: translateX(100%);
  pointer-events: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

.btn-close-drawer {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.btn-close-drawer:hover {
  color: #fff;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group-title {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  font-weight: 600;
}

.filter-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-pill.active {
  background: #a855f7;
  border-color: #a855f7;
  color: #fff;
  font-weight: 500;
}

.drawer-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 12, 28, 0.5);
}

.btn-drawer-primary {
  flex: 2;
  background: #a855f7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-drawer-primary:hover {
  background: #9333ea;
}

.btn-drawer-secondary {
  flex: 1;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  cursor: pointer;
}

.btn-drawer-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
/* ==========================================
   Hero Section with Crypt Banner & Glowing Pill
   ========================================== */

/* Purple Glowing Pill Badge */
.crypt-pill {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c084fc;
  padding: 0.35rem 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid #a855f7;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35),
    inset 0 0 8px rgba(168, 85, 247, 0.2);
  margin-bottom: 1.25rem;
}

/* Classical Cinzel Serif Title */
.crypt-hero-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.glow-purple-text {
  color: #a855f7;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.75),
    0 0 40px rgba(168, 85, 247, 0.35);
}

.vault-subheading {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #94a3b8;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ==========================================
   Main Content Layout
   ========================================== */
.vault-container {
  max-width: 1480px; /* Expands beyond the standard 1200px boundary */
  width: 95%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Retailer Stats Section */
.stats-section {
  margin-bottom: 2.5rem;
}

.retailer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.retailer-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.retailer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--purple-glow);
}

.card-fandango {
  border-top: 3px solid var(--fandango-orange);
}
.card-ma {
  border-top: 3px solid var(--ma-blue);
}
.card-apple {
  border-top: 3px solid var(--apple-silver);
}

.retailer-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.retailer-logo,
.retailer-logo-img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  border-radius: 5px;
  flex-shrink: 0;
}

.retailer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

/* Quality Stat Boxes */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.quality-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.65rem 0.4rem;
}

.q-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* Centered Italicized Timestamp */
.last-sync-notice {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.last-sync-notice em {
  font-style: italic;
}

.last-sync-notice strong {
  color: var(--purple-brand);
  font-style: normal;
}

/* ==========================================
   Toolbar Filters
   ========================================== */
.locker-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

.search-wrap {
  flex: 1 1 240px;
}

.search-wrap input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-wrap input:focus {
  border-color: var(--border-focus);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.service-pill,
.quality-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-pill:hover,
.quality-btn:hover {
  color: #fff;
  border-color: var(--purple-brand);
}

.service-pill.active,
.quality-btn.active {
  background: var(--purple-brand);
  color: #fff;
  border-color: var(--purple-brand);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ==========================================
   Movie Collection Grid
   ========================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures uniform card heights in each row */
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3; /* Hard locks the container to standard poster proportions */
  overflow: hidden; /* Cuts off any rogue pixel bleeding outside 2:3 */
  background: #0d0f14;
}

.card-poster img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3; /* Enforces 2:3 on the image element itself */
  object-fit: cover; /* Centers and scales artwork cleanly without distortion */
  object-position: center;
  display: block;
}

.card-quality-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-4k {
  background: #000;
  color: var(--gold-awards);
  border: 1px solid var(--gold-awards);
}
.card-meta-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-badges-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.service-badge-icon {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.badge-fandango {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.badge-ma {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-apple {
  background: rgba(226, 232, 240, 0.15);
  color: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.3);
}

/* ==========================================
   Pagination Controls
   ========================================== */
.vault-pagination {
  margin-top: 2rem;
  margin-bottom: 3rem; /* Adds a nice 2-3 line buffer space at the bottom */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.vault-pagination button {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: #fff;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vault-pagination button:hover:not(:disabled) {
  border-color: var(--purple-brand);
}

.vault-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.vault-pagination .page-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  letter-spacing: 0.02em;
  user-select: none;
}
/* ==========================================
   Detail Modal
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body-layout {
  display: flex;
  gap: 1.75rem;
}

.modal-poster-col {
  width: 220px;
  flex-shrink: 0;
}

.modal-poster-col img {
  width: 100%;
  border-radius: 8px;
}

.modal-info-col {
  flex: 1;
}

.modal-header-titles {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-year {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.modal-plot {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.services-box {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border-left: 3px solid var(--purple-brand);
}

/* ==========================================
   Back to Top Floating Action Button
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple-brand);
  color: #fff;
  border: none;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 960px) {
  .retailer-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal-body-layout {
    flex-direction: column;
  }
  .modal-poster-col {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}
/* ==========================================
   Old Vault Hero Header & Ecosystem Bar Styles
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.host-badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid #e879f9;
  background: rgba(232, 121, 249, 0.1);
  box-shadow: 0 0 16px rgba(232, 121, 249, 0.25);
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted, #94a3b8);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Service Ecosystem Interactive Filter Bar */
.service-filter-bar {
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid var(--border-subtle, rgba(168, 85, 247, 0.2));
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.ecosystem-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c084fc;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.ecosystem-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
/* ==========================================
   Hero Banner with streamingservicelogos
   ========================================== */
.vault-hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  overflow: hidden;
  background-color: var(--bg-deep, #06050b);
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(6, 5, 11, 0.45) 0%,
    rgba(6, 5, 11, 0.85) 75%,
    var(--bg-deep, #06050b) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ==========================================================================
   Locker Grid & Movie Card Layout Stabilization
   ========================================================================== */

#lockerGrid,
.locker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 16px;
  padding: 0 24px 48px 24px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  align-items: start; /* Prevents whole row cards from stretching when one expands */
}

/* Ensure grid items never blow out column widths */
.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents text overflow from expanding the column */
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
}

/* Force standard 2:3 theatrical poster ratio */
.poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #181428;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

/* Badges positioned over the poster */
/* Card Badges Container */
/* Top-right poster quality badge */
.quality-corner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.badge-uhd {
  background: #1e3a8a; /* Deep navy / dark blue */
  border: 1px solid #3b82f6;
  color: #eff6ff;
}

.badge-hdx {
  background: #ea580c; /* Vivid Orange */
  border: 1px solid #fb923c;
  color: #ffffff;
}

.badge-sd {
  background: #ca8a04; /* Amber / Gold Yellow */
  border: 1px solid #facc15;
  color: #000000;
}

/* Card details and text */
.card-info {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-year {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

/* Retailer Pills Row below the poster */
.retailer-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.retailer-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1.2;
  display: inline-block;
}

/* Platform Colors */
.pill-apple {
  background: #1c1917;
  color: #f5f5f4;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pill-fandango {
  background: #ea580c;
  color: #ffffff;
}

.pill-ma {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

.pill-default {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
/* Modal Tech Specs */
.tech-spec-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-hdr {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-audio {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-edition {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Modal Service Launch Buttons */
.btn-service-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-service-action:hover {
  opacity: 0.9;
}
.btn-service-action.pill-ma {
  background: #db2777;
  color: #ffffff;
  border: 1px solid #f472b6;
}
.btn-service-action.pill-ma:hover {
  background: #be185d;
}

.btn-service-action.btn-fandango {
  background: #ff6600;
  color: #ffffff;
}
