: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: 900;
  text-transform: uppercase;
  color: var(--bb-yellow);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.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 {
  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-message {
  text-align: center;
  margin-top: 8px;
  color: #ffe86b;
  font-weight: 800;
  font-size: 1rem;
}
.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;
}

/* 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 .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);
}
.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;
}
.caption {
  text-align: center;
  margin-top: 0.5rem;
  color: #d0d8ff;
}

/* Rental message and return */
.rental-message {
  display: none;
  text-align: center;
  color: var(--bb-yellow);
  font-weight: 900;
  margin-top: 10px;
}

/* Pick and Mix */
.sweet-panel .panel-title {
  background: var(--sweet-pink);
  color: #241e2e;
}
.sweet-instruction {
  text-align: center;
  margin-bottom: 6px;
  color: #ffd0ef;
  font-weight: 800;
}
.sweet-slot {
  width: 340px;
  height: 64px;
  margin: 12px auto;
  overflow: hidden;
  border: 2px solid var(--sweet-pink);
  border-radius: 10px;
  background: #2c1140;
}
#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: #ffb4e8;
  text-align: center;
}

/* Kiss */
.kiss-wrap {
  text-align: center;
  margin: 16px 0 24px;
}
.kiss-btn {
  background: var(--bb-yellow);
  color: #121212;
}
.kiss-note {
  margin-left: 0.5rem;
  font-weight: 900;
  color: var(--bb-yellow);
}

/* === FIX: keep Generate/Stop button (btnFilm) steady width === */
#btnFilm {
  min-width: 130px;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .panel-head {
    flex-direction: column;
    align-items: center;
  }
  .controls.center {
    justify-content: center;
  }
}
