/* public/css/tv.css - Big Screen & TV High Visibility Spectator UI */
.tv-mode-active body {
  background: #060810;
  font-size: 1.25rem;
}

.tv-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  padding: 24px 30px;
  background: radial-gradient(circle at 50% 50%, #101426 0%, #060810 100%);
  color: #fff;
  position: relative;
  box-sizing: border-box;
}

.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(0, 243, 255, 0.4);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 15px;
}

.tv-brand {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-brand .logo {
  font-size: 2rem;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff007f, #00f3ff);
}

.tv-room-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tv-pin-badge {
  background: rgba(0, 243, 255, 0.15);
  border: 2px solid #00f3ff;
  border-radius: 16px;
  padding: 6px 20px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #00f3ff;
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.tv-pot-badge {
  background: rgba(255, 215, 0, 0.15);
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 6px 20px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.tv-exit-btn {
  background: rgba(255, 71, 87, 0.2);
  border: 2px solid #ff4757;
  color: #ff4757;
  border-radius: 14px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tv-exit-btn:hover {
  background: #ff4757;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.6);
}

/* TV Main Stage & Split Lobby */
.tv-stage-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  width: 100%;
}

.tv-lobby-split-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  background: rgba(20, 26, 48, 0.92);
  border: 2px solid rgba(0, 243, 255, 0.4);
  border-radius: 24px;
  padding: 24px 30px;
  width: 100%;
  max-width: 960px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .tv-lobby-split-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
}

.tv-lobby-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 20px;
}

@media (max-width: 768px) {
  .tv-lobby-left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

.tv-lobby-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
}

.tv-qr-box {
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
}

.tv-qr-box img, .tv-qr-box svg {
  width: 125px;
  height: 125px;
  display: block;
}

.tv-pin-inline {
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 4px 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 3px;
}

.tv-roster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.tv-count-badge {
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid var(--accent-green);
  border-radius: 12px;
  padding: 2px 10px;
}

.tv-scoreboard {
  list-style: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  max-height: 320px;
}

.tv-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  transition: all 0.3s ease;
}

.tv-player-card.leader {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), transparent);
  border-color: #ffd700;
}

/* TV Game Arena Display */
.tv-game-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #00f3ff;
  margin-bottom: 20px;
  text-align: center;
}

.tv-trivia-image {
  max-width: 60%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #ff007f;
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.4);
  margin-bottom: 20px;
}

.tv-trivia-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
}

.tv-opt-card {
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tv-opt-A { background: #ff4757; color: #fff; }
.tv-opt-B { background: #2ed573; color: #fff; }
.tv-opt-C { background: #1e90ff; color: #fff; }
.tv-opt-D { background: #ffa502; color: #fff; }

/* Podium celebration */
.tv-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  width: 100%;
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.podium-pillar {
  width: 110px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
}

.pillar-1 { height: 180px; background: linear-gradient(to top, #ff9900, #ffd700); color: #000; box-shadow: 0 0 30px rgba(255,215,0,0.6); }
.pillar-2 { height: 130px; background: linear-gradient(to top, #718093, #dcdde1); color: #000; }
.pillar-3 { height: 90px; background: linear-gradient(to top, #a55eea, #cd84f1); color: #fff; }
