/* controller-shell */
/* ==========================================================================
   FAKE NEWS - Mobile Player Controller Styles
   Ergonomic Touch Targets, Smooth Transitions, and Clean Contrast
   ========================================================================== */

.mobile-container {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px calc(76px + env(safe-area-inset-bottom, 20px)) 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  -webkit-touch-callout: none;
}

button, .btn, .avatar-option, .mobile-topic-btn, .mobile-option-btn, .emote-btn {
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 242, 254, 0.25);
  user-select: none;
  -webkit-user-select: none;
}

.controller-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 14px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.controller-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.controller-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.controller-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.controller-avatar {
  font-size: 1.85rem;
  line-height: 1;
}

.controller-name {
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controller-score {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--accent-cyan);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
}

.live-pulse {
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.score-pop {
  animation: scorePop 0.55s ease;
}
@keyframes scorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); color: var(--accent-yellow); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   VIP ADMIN TAB BAR & PANELS
   ========================================================================== */
.admin-tab-bar {
  display: flex;
  background: rgba(18, 18, 30, 0.85);
  border: 1px solid rgba(255, 189, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.admin-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(255, 189, 0, 0.25), rgba(255, 0, 127, 0.25));
  color: #fff;
  border: 1px solid rgba(255, 189, 0, 0.6);
  box-shadow: 0 0 14px rgba(255, 189, 0, 0.25);
}

.tab-content-pane {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.admin-panel-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-action-btn {
  width: 100%;
  min-height: 52px;
  font-size: 1.08rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* STATUS & WAITING SCREEN */
.waiting-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  gap: 18px;
}

.spinner-glow {
  width: 54px;
  height: 54px;
  border: 3.5px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spinSmooth 1.4s ease-in-out infinite;
}

.result-card {
  padding: 22px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  width: 100%;
}

/* AUDIENCE LIVE EMOTE REACTION TRAY (Sticky Bottom) */
.emote-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 8px)) 16px;
  background: rgba(13, 14, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  margin: 0;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.55);
}

.emote-btn {
  font-size: 2.05rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-user-select: none;
}

.emote-btn:active {
  transform: scale(1.45);
}

/* FLOATING LIVE EMOTE PARTICLES ON CONTROLLER */
.floating-emote {
  position: fixed;
  bottom: 80px;
  font-size: 3.2rem;
  pointer-events: none;
  z-index: 9999;
  animation: floatEmoteUp 2.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.finale-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #ffbd00, #ff007f);
}

.mobile-greatest-hits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-hit-card {
  text-align: left;
  background: rgba(14, 18, 36, 0.82);
  border: 1px solid rgba(255, 0, 127, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-hit-author {
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-hit-lie {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.mobile-hit-fools {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-top: 4px;
}

@keyframes floatEmoteUp {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translateY(-30px) scale(1.3) rotate(-8deg);
  }
  80% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-400px) scale(0.9) rotate(15deg);
  }
}

