/* ==========================================================================
   CHILD PATHSHALA - TRIVIA GAME SHOW STUDIO ENGINE
   Theme: High-Stakes TV Quiz Show, Lifelines (50:50, Audience), Stage Lights
   ========================================================================== */

:root {
  --tv-bg: #0b071a;
  --tv-panel: #150f2e;
  --tv-border: #291d54;
  --tv-gold: #f59e0b;
  --tv-neon: #a855f7;
  --tv-cyan: #38bdf8;
  --tv-green: #10b981;
  --tv-rose: #f43f5e;
}

.tv-wrapper {
  background: radial-gradient(circle at 50% 15%, #2a114f 0%, #0b071a 75%);
  border-radius: 26px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Studio Stage Header & Lifelines */
.tv-studio-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Lifelines Controls */
.tv-lifelines-row {
  display: flex;
  gap: 0.5rem;
}

.tv-lifeline-btn {
  background: linear-gradient(180deg, #26164d 0%, #150f2e 100%);
  border: 1px solid #4c2882;
  color: #d8b4fe;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tv-lifeline-btn:hover:not(:disabled) {
  border-color: var(--tv-gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.tv-lifeline-btn:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: line-through;
}

/* Question Stage & Timer Clock */
.tv-stage-box {
  background: rgba(21, 15, 46, 0.95);
  border: 1px solid var(--tv-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tv-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 7, 26, 0.8);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--tv-cyan);
  margin-bottom: 0.75rem;
}

.tv-timer-badge.danger {
  color: #f87171;
  border-color: #ef4444;
  animation: tvPulse 0.5s ease infinite alternate;
}

@keyframes tvPulse {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.06); }
}

.tv-question-text {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* Choices Grid */
.tv-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (max-width: 580px) {
  .tv-options-grid {
    grid-template-columns: 1fr;
  }
}

.tv-option-btn {
  background: linear-gradient(180deg, #1c143d 0%, #110b27 100%);
  border: 2px solid #332066;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  position: relative;
}

.tv-option-btn:hover:not(:disabled) {
  border-color: var(--tv-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.tv-option-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.tv-option-btn.eliminated {
  opacity: 0.15;
  pointer-events: none;
}

.tv-option-btn.correct {
  background: linear-gradient(180deg, #059669 0%, #064e3b 100%);
  border-color: #34d399;
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.5);
}

.tv-option-btn.wrong {
  background: linear-gradient(180deg, #dc2626 0%, #7f1d1d 100%);
  border-color: #f87171;
  box-shadow: 0 0 25px rgba(248, 113, 113, 0.4);
}

.tv-poll-badge {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-left: 8px;
}

/* Grand Champion Podium */
.tv-podium-wrap {
  text-align: center;
  padding: 2rem 1rem;
}

.tv-trophy-icon {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  animation: tvPulse 0.8s ease infinite alternate;
}
