:root {
  --bb-blue: #0a2a66;
  --bb-blue-2: #0f2f78;
  --bb-yellow: #ffd300;
  --text: #f5f7ff;
  --muted: #c6d2ff;
  --sweet-pink: #ff6ec7;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  font-family: Inter, Arial, system-ui;
  background: linear-gradient(180deg, #0a2a66 0%, #081e49 100%);
  color: var(--text);
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}
.store-header {
  background: linear-gradient(180deg, #10358c, #0c2b76);
  border: 2px solid var(--bb-yellow);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 6px 0 #001646, inset 0 0 40px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.site-title {
  margin: 0;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--bb-yellow);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 211, 0, 0.35);
  font-size: 2.4rem;
  letter-spacing: 1px;
}
.site-sub {
  margin-top: 4px;
  font-weight: 800;
  color: #ffe86b;
}
.header-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.employee-badge {
  background: #0b2b70;
  border: 2px solid var(--bb-yellow);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 240px;
}
.badge-title {
  font-size: 0.9rem;
}
.badge-name {
  font-weight: 900;
  font-size: 1.15rem;
  color: #fff;
  margin-top: 3px;
}
.badge-quote {
  font-size: 0.9rem;
  color: #ffe86b;
  margin-top: 2px;
  min-height: 1.2em;
}
.robot-select {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #0b2b70;
  border: 2px solid var(--bb-yellow);
  border-radius: 8px;
  padding: 8px 10px;
}
.robot-select label {
  font-weight: 700;
}
.robot-select select {
  appearance: none;
  background: #0c2e74;
  border: 1px solid #193c88;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
}
/* Panels */
.panel {
  background: linear-gradient(180deg, #11347f 0%, #0f2f78 100%);
  border: 2px solid var(--bb-yellow);
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px;
  box-shadow: 0 6px 0 #001646, inset 0 0 40px rgba(0, 0, 0, 0.25);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.panel-title {
  background: var(--bb-yellow);
  color: #1a1a1a;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
}
.panel-hint {
  color: #c6d2ff;
}
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.controls.center {
  justify-content: center;
}
.btn {
  background: #113783;
  color: #fff;
  border: 2px solid #0b2b70;
  padding: 0.52rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.btn.primary {
  background: var(--bb-yellow);
  color: #121212;
  border-color: #906f00;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/* Reels */
.reels-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.reel-block {
  min-width: 260px;
  flex: 1 1 300px;
  max-width: 340px;
}
.reel-label {
  display: block;
  margin: 3px 0 6px 4px;
  font-weight: 800;
}
.reel {
  height: 56px;
  overflow: hidden;
  border: 2px solid #0b2b70;
  border-radius: 8px;
  background: #081f52;
}
.cell {
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-weight: 900;
}
/* Preview */
.preview-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
#filmPoster {
  width: 260px;
  height: 390px;
  border-radius: 10px;
  background: #0a0a0a center/contain no-repeat;
  border: 2px solid #0b2b70;
}
.title {
  text-align: center;
  font-weight: 900;
  margin-top: 6px;
}
.meta {
  text-align: center;
  color: #d0d8ff;
  font-size: 0.95rem;
}
/* Candidates */
.candidates-panel {
  margin-top: 10px;
}
.panel-head.sub {
  background: transparent;
  border-bottom: none;
  margin-bottom: 6px;
}
.candidates {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.candidate {
  width: 150px;
  text-align: center;
}
.candidate .cand-poster {
  width: 150px;
  height: 225px;
  border-radius: 8px;
  background: #0a0a0a center/contain no-repeat;
  border: 2px solid #0b2b70;
}
.candidate .cand-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 6px;
}
.candidate.highlight .cand-poster {
  border-color: var(--bb-yellow);
  transform: scale(1.03);
}
.candidate.highlight .cand-title {
  color: var(--bb-yellow);
}
.candidate-message {
  text-align: center;
  margin-top: 8px;
  color: #ffe86b;
  font-weight: 800;
  font-size: 1rem;
}
/* Respin */
.respin-panel {
  margin-top: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid var(--bb-yellow);
  text-align: center;
}
.respin-message {
  color: #ffe86b;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.big-yellow {
  background: var(--bb-yellow);
  color: #121212;
  border: 2px solid #906f00;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-weight: 900;
  margin-top: 10px;
  cursor: pointer;
}
/* Lineup */
.lineup {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.slot {
  text-align: center;
  min-width: 220px;
  max-width: 260px;
}
.slot .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.slot .head .label {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bb-yellow);
  color: #121212;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slot .head span:last-child {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.slot .poster {
  width: 180px;
  height: 270px;
  margin: 0.5rem auto;
  border-radius: 8px;
  background: #0a0a0a center/contain no-repeat;
  border: 2px solid #0b2b70;
  position: relative;
}
.slot .poster.bigChoice {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0d2a69, #0c2356);
  cursor: pointer;
}
.slot .poster.bigChoice span {
  font-weight: 1000;
  font-size: 3rem;
  color: var(--bb-yellow);
  text-shadow: 0 2px 0 #00133b, 0 0 12px rgba(255, 211, 0, 0.35);
}
.blank {
  background: #091b47 !important;
}
.slot .title {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 3px;
}
.slot .tagline {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 3px;
}
.slot .byline {
  font-size: 0.74rem;
  color: rgba(198, 210, 255, 0.7);
  font-weight: 600;
}
.caption {
  text-align: center;
  margin-top: 0.5rem;
  color: #d0d8ff;
}
.yellow-caption {
  color: var(--bb-yellow) !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 8px 0;
}
/* Rental message and return */
.rental-message {
  text-align: center;
  color: var(--bb-yellow);
  font-weight: 900;
  margin-top: 10px;
}
/* Pick and Mix */
.sweet-instruction {
  text-align: center;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}
.sweet-slot {
  width: 340px;
  height: 64px;
  margin: 12px auto;
  overflow: hidden;
  border: 2px solid var(--bb-yellow);
  border-radius: 10px;
  background: #081f52;
}
#sweetCells .cell {
  height: 64px;
  line-height: 64px;
  text-align: center;
  font-weight: 900;
}
.sweet-result {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffe86b;
  text-align: center;
}
/* Pick & Mix — purple/pink theme */
.sweet-panel {
  background: linear-gradient(160deg, rgba(220, 120, 180, 0.38) 0%, rgba(140, 60, 180, 0.32) 100%);
  border-color: #c44dff;
  box-shadow: 0 6px 0 #6b3494, inset 0 0 40px rgba(0, 0, 0, 0.15), 0 0 10px rgba(196, 77, 255, 0.35);
}
.sweet-panel .panel-title {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.sweet-panel .sweet-instruction {
  color: rgba(255, 255, 255, 0.92);
}
.sweet-panel .sweet-slot {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.12);
}
.sweet-panel .sweet-result {
  color: #fff;
}
.sweet-panel .btn.primary {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.sweet-panel .btn.primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.38);
}
/* === FIX: keep Generate/Stop button (btnFilm) steady width === */
#btnFilm {
  min-width: 130px;
  text-align: center;
}
/* Joan Collins */
.joan-chat {
  min-height: 90px;
  max-height: 280px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid #0b2b70;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.joan-chat::-webkit-scrollbar { width: 5px; }
.joan-chat::-webkit-scrollbar-track { background: transparent; }
.joan-chat::-webkit-scrollbar-thumb { background: #906f00; border-radius: 3px; }
.joan-msg {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 88%;
  font-size: 0.93rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.joan-msg.user {
  background: #113783;
  border: 1px solid #0b2b70;
  align-self: flex-end;
  color: #fff;
  border-radius: 8px 8px 2px 8px;
}
.joan-msg.joan {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 211, 0, 0.2);
  align-self: flex-start;
  color: #fff;
  font-style: italic;
  border-radius: 8px 8px 8px 2px;
}
.joan-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.joan-input {
  flex: 1;
  background: #0c2e74;
  border: 1px solid #193c88;
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.93rem;
  font-family: Inter, Arial, system-ui;
  outline: none;
  transition: border-color 150ms;
}
.joan-input:focus {
  border-color: var(--bb-yellow);
}
.joan-input::placeholder {
  color: rgba(198, 210, 255, 0.5);
}
.joan-send-btn {
  background: var(--bb-yellow) !important;
  border-color: #906f00 !important;
  color: #121212 !important;
  white-space: nowrap;
}
.joan-send-btn:hover:not(:disabled) {
  background: #ffe86b !important;
}
.joan-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  min-height: 1.4em;
  margin-top: 6px;
  font-style: italic;
  font-weight: 600;
}
/* Responsive tweaks */
@media (max-width: 720px) {
  .panel-head {
    flex-direction: column;
    align-items: center;
  }
  .controls.center {
    justify-content: center;
  }
  .joan-input-row {
    flex-wrap: wrap;
  }
  .joan-input {
    flex: 1 1 100%;
  }
}
/* === RETURNS SHELF === */
.returns-shelf-outer {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 14px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #906f00 #081e49;
}
.returns-shelf-outer::-webkit-scrollbar {
  height: 6px;
}
.returns-shelf-outer::-webkit-scrollbar-track {
  background: #081e49;
}
.returns-shelf-outer::-webkit-scrollbar-thumb {
  background: #906f00;
  border-radius: 3px;
}
.returns-shelf-outer.dragging {
  cursor: grabbing;
}
.returns-shelf {
  display: flex;
  flex-direction: row;
  gap: 14px;
  padding: 0 2px;
  min-width: max-content;
}
.return-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  flex-shrink: 0;
}
.return-poster {
  width: 110px;
  height: 165px;
  background: #0a0a0a center/cover no-repeat;
  border-radius: 7px;
  border: 2px solid #0b2b70;
  flex-shrink: 0;
}
.return-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  margin-top: 5px;
  white-space: normal;
  line-height: 1.2;
  color: var(--text);
  width: 100%;
}
.return-score {
  font-size: 0.95rem;
  color: var(--bb-yellow);
  font-weight: 900;
  margin-top: 3px;
  text-align: center;
}
.return-score.pending {
  color: var(--muted);
  font-style: italic;
}
.returns-avg {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bb-yellow);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 211, 0, 0.2);
}
/* === SPLASH SCREEN === */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 800ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#splash.hidden {
  opacity: 0;
  pointer-events: none;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
.splash-image {
  display: block;
  max-width: min(90vw, 820px);
  max-height: min(80vh, 820px);
  width: auto;
  height: auto;
  background: #fff;
  border: 12px solid #ffffff;
  border-radius: 8px;
  object-fit: contain;
}
.enter-btn {
  background: var(--bb-yellow);
  color: #0b0b0b;
  border: 2px solid #8a7300;
  font-size: 1.15rem;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, background 160ms ease;
}
.enter-btn:hover {
  transform: translateY(-1px);
  background: #ffe86b;
}
body:not(.entered) #main-content {
  opacity: 0.3;
  filter: blur(2px);
  transition: opacity 800ms ease, filter 800ms ease;
}
body.entered #main-content {
  opacity: 1;
  filter: none;
}
