/* --- Video Panel --- */
#panel-video {
  flex-direction: column;
  background: #000;
}

#video-frame-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-frame-wrapper iframe,
#video-frame-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder-msg {
  text-align: center;
  color: rgba(237,224,192,0.38);
}

.video-placeholder-msg .big-icon { font-size: 60px; margin-bottom: 14px; opacity: 0.45; }
.video-placeholder-msg h3 { font-size: 20px; margin-bottom: 6px; color: var(--cream); }
.video-placeholder-msg p { font-size: 13px; }

/* --- Trivia Panel — field guide quiz spread --- */
#panel-trivia {
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(36,56,40,0.5) 0%, transparent 65%),
    linear-gradient(160deg, var(--peat) 0%, var(--forest) 30%, var(--understory) 100%);
}

.trivia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold-rule);
}

.trivia-header h2 {
  font-size: 26px;
  color: var(--parchment);
  font-style: italic;
  font-weight: 600;
}

.trivia-header h2::before {
  content: 'Field Guide — ';
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  font-style: normal;
  margin-bottom: 4px;
  font-family: 'Libre Franklin', sans-serif;
}

.trivia-score {
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--cream);
  background: var(--gold-ink);
  padding: 7px 18px;
  border-radius: 3px;
  border: 1px solid var(--gold-rule);
}

.trivia-body {
  flex: 1;
  display: flex;
  gap: 24px;
  align-items: center;
  overflow: hidden;
}

.trivia-image-area {
  flex: 1;
  height: 100%;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: var(--understory);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-rule);
}

.trivia-image-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trivia-image-placeholder {
  font-size: 72px;
  text-align: center;
  opacity: 0.3;
}

.trivia-image-placeholder p {
  font-size: 13px;
  color: rgba(237,224,192,0.35);
  margin-top: 8px;
}

.trivia-controls {
  width: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.trivia-round {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(200,150,42,0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.trivia-question {
  font-family: 'Zilla Slab', serif;
  font-size: 24px;
  color: var(--parchment);
  line-height: 1.35;
}

.trivia-answer-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trivia-btn {
  padding: 12px 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: 'Zilla Slab', serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  letter-spacing: 0.02em;
  text-align: left;
}

.trivia-btn-bear {
  background: rgba(52,168,100,0.1);
  border-color: rgba(52,168,100,0.35);
  color: #7ed4a0;
}

.trivia-btn-bear:hover {
  background: #52b878;
  border-color: #52b878;
  color: var(--peat);
  box-shadow: 0 6px 20px rgba(52,184,120,0.3);
}

.trivia-btn-notbear {
  background: rgba(200,74,58,0.1);
  border-color: rgba(200,74,58,0.35);
  color: #e0887a;
}

.trivia-btn-notbear:hover {
  background: #c84a3a;
  border-color: #c84a3a;
  color: white;
  box-shadow: 0 6px 20px rgba(200,74,58,0.3);
}

.trivia-result {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.trivia-result.visible { display: flex; }

.trivia-verdict {
  font-family: 'Zilla Slab', serif;
  font-size: 26px;
  font-weight: 700;
}

.trivia-verdict.correct { color: #52b878; }
.trivia-verdict.wrong   { color: #c84a3a; }

.trivia-species {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.trivia-fact {
  font-size: 13px;
  color: rgba(237,224,192,0.65);
  line-height: 1.65;
}

.trivia-next-btn {
  padding: 11px 20px;
  background: linear-gradient(160deg, var(--gold-warm), var(--gold));
  color: var(--peat);
  border: none;
  border-radius: 3px;
  font-family: 'Zilla Slab', serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(200,150,42,0.3);
}

.trivia-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,150,42,0.4);
}

.trivia-complete {
  text-align: center;
  padding: 30px;
}
