/**
 * AQIO Games - Unified Design System
 * Общая дизайн-система для всех игр
 */

/* ========================================
   CSS Variables - Цветовая палитра и типографика
   ======================================== */

:root {
  /* Основные цвета фона */
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #252542;
  
  /* Акценты */
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  
  /* Градиенты */
  --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-button: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-danger: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  
  /* Состояния */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  
  /* Текст */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Quiz-специфичные цвета ответов */
  --quiz-a: #ef4444;
  --quiz-b: #3b82f6;
  --quiz-c: #f59e0b;
  --quiz-d: #10b981;
  
  /* Шрифты */
  --font-display: 'Nunito', 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Размеры — Host (большой экран) */
  --host-title: clamp(2rem, 5vw, 4rem);
  --host-subtitle: clamp(1.25rem, 3vw, 2rem);
  --host-body: clamp(1rem, 2vw, 1.5rem);
  --host-small: clamp(0.875rem, 1.5vw, 1.125rem);
  
  /* Размеры — Player (мобильный) */
  --player-title: 1.75rem;
  --player-subtitle: 1.25rem;
  --player-body: 1rem;
  --player-small: 0.875rem;
}

/* ========================================
   Base Reset
   ======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Player Screen - Базовая структура
   ======================================== */

.player-screen {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.player-header {
  flex-shrink: 0;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  min-height: 0;
}

.player-footer {
  flex-shrink: 0;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Buttons - Кнопки
   ======================================== */

.btn {
  position: relative;
  border: none;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.96);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
}

.btn-primary {
  width: 100%;
  height: 56px;
  background: var(--gradient-button);
  color: white;
  font-size: 1.125rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Кнопки ответов Quiz — 2x2 сетка */
.btn-answer {
  aspect-ratio: 2 / 1;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1rem;
  color: white;
  padding: 16px;
}

.btn-answer-a { background: var(--quiz-a); }
.btn-answer-b { background: var(--quiz-b); }
.btn-answer-c { background: var(--quiz-c); }
.btn-answer-d { background: var(--quiz-d); }

.btn-letter {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  text-align: left;
}

/* Кнопки голосования */
.btn-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-tertiary);
  min-width: 80px;
  min-height: 80px;
  border-radius: 16px;
}

.btn-avatar {
  font-size: 2.5rem;
  line-height: 1;
}

.btn-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  text-align: center;
}

.btn-vote.selected {
  background: var(--gradient-main);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.btn-vote.voted {
  opacity: 0.5;
  pointer-events: none;
}

/* ========================================
   Timer - Таймер
   ======================================== */

.timer {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.timer-progress {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}

.timer[data-urgent="true"] .timer-progress {
  stroke: var(--danger);
  animation: pulse 0.5s ease-in-out infinite;
}

.timer-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timer-large {
  width: 120px;
  height: 120px;
}

.timer-large .timer-value {
  font-size: 2rem;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   Tabs - Табы
   ======================================== */

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-tertiary);
  border-radius: 12px;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--player-body);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab:active {
  transform: scale(0.95);
}

.tab.active {
  background: var(--gradient-button);
  color: white;
}

/* ========================================
   Input - Ввод текста
   ======================================== */

.input-group {
  position: relative;
  width: 100%;
}

.input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  padding-right: 60px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.input::placeholder {
  color: var(--text-muted);
}

.input-counter {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--text-primary);
  font-size: var(--player-body);
  font-family: var(--font-body);
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.textarea::placeholder {
  color: var(--text-muted);
}

/* ========================================
   Avatar Grid - Выбор аватарки
   ======================================== */

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.avatar-option {
  aspect-ratio: 1;
  font-size: 2rem;
  background: var(--bg-tertiary);
  border: 3px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.avatar-option:active {
  transform: scale(0.9);
}

.avatar-option.selected {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  animation: bounce 0.3s;
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================================
   Reactions - Реакции
   ======================================== */

.reactions-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.reaction-btn {
  width: 56px;
  height: 56px;
  font-size: 1.75rem;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.reaction-btn:active {
  transform: scale(0.85);
  background: var(--accent-purple);
}

.reaction-btn.sent {
  animation: fly-up 0.5s forwards;
}

@keyframes fly-up {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5) translateY(-20px); opacity: 0; }
}

.reactions-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

.flying-reaction {
  position: absolute;
  right: var(--start-x, 20%);
  bottom: 0;
  font-size: 3rem;
  animation: fly-reaction 3s ease-out forwards;
}

@keyframes fly-reaction {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(-100vh - 100px)) scale(0.5) rotate(20deg);
    opacity: 0;
  }
}

/* ========================================
   Waiting State - Состояние ожидания
   ======================================== */

.waiting-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.waiting-icon {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-avatar {
  font-size: 3rem;
  z-index: 1;
  position: relative;
}

.waiting-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-main);
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.waiting-text {
  font-size: var(--player-title);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.waiting-subtext {
  color: var(--text-secondary);
  font-size: var(--player-body);
  text-align: center;
}

/* ========================================
   Feedback - Состояния обратной связи
   ======================================== */

.feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.feedback-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.feedback-success .feedback-icon {
  background: var(--gradient-success);
}

.feedback-correct .feedback-icon {
  background: var(--gradient-success);
  animation: celebrate 0.6s ease;
}

.feedback-wrong .feedback-icon {
  background: var(--gradient-danger);
  animation: shake 0.4s ease;
}

@keyframes celebrate {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.2) rotate(-10deg); }
  75% { transform: scale(1.2) rotate(10deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.feedback-text {
  font-size: var(--player-title);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.feedback-points {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Host Screen - Базовая структура
   ======================================== */

.host-screen {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto 1fr;
  background: var(--bg-primary);
  overflow: hidden;
}

.host-header {
  grid-column: 1 / -1;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.host-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.host-game-info {
  font-size: var(--host-small);
  color: var(--text-secondary);
}

.host-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.host-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  overflow-y: auto;
}

.host-screen.no-sidebar {
  grid-template-columns: 1fr;
}

.host-screen.no-sidebar .host-sidebar {
  display: none;
}

/* ========================================
   Lobby - Лобби
   ======================================== */

.lobby-container {
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.qr-code {
  width: 250px;
  height: 250px;
  padding: 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.qr-url {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
}

.players-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 500px;
}

.player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.player-avatar {
  font-size: 1.75rem;
}

.player-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   Question (Quiz) - Вопрос
   ======================================== */

.question-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.question-number {
  font-size: var(--host-subtitle);
  color: var(--text-secondary);
}

.question-text {
  font-size: var(--host-title);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--text-primary);
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.answer-card {
  padding: 24px 32px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  font-size: var(--host-body);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.answer-a { background: var(--quiz-a); }
.answer-b { background: var(--quiz-b); }
.answer-c { background: var(--quiz-c); }
.answer-d { background: var(--quiz-d); }

.answer-card.correct {
  box-shadow: 0 0 40px currentColor;
  animation: correct-pulse 0.5s;
}

@keyframes correct-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.answer-card.wrong {
  opacity: 0.4;
}

.answer-letter {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.voters-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.voters-avatars {
  display: flex;
  margin-left: -8px;
}

.voters-avatars > * {
  margin-left: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  font-size: 1.25rem;
}

/* ========================================
   Leaderboard - Таблица лидеров
   ======================================== */

.leaderboard {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leaderboard-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  overflow: hidden;
  animation: slide-in 0.4s ease-out;
  animation-delay: calc(var(--rank, 0) * 0.1s);
  animation-fill-mode: both;
}

.leaderboard-row.top-3 {
  background: linear-gradient(90deg, var(--bg-tertiary) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.score-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-main);
  transition: width 0.5s ease-out;
}

.leaderboard .rank {
  width: 40px;
  text-align: center;
  font-size: 1.25rem;
}

.leaderboard .name {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.leaderboard .score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-purple);
}

/* ========================================
   Game-specific - Специфичные элементы игр
   ======================================== */

/* Who Are You - Сетка голосования */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  width: 100%;
  max-height: 60vh;
}

.vote-grid[data-count="2"],
.vote-grid[data-count="3"],
.vote-grid[data-count="4"] {
  grid-template-columns: repeat(2, 1fr);
}

.vote-grid[data-count="5"],
.vote-grid[data-count="6"] {
  grid-template-columns: repeat(3, 1fr);
}

.vote-grid[data-count="7"],
.vote-grid[data-count="8"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Quiz - Сетка ответов 2x2 (Player) */
.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  flex: 1;
  max-height: 50vh;
  min-height: 300px;
}

/* Truth or Lie - Карточки фактов */
.facts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.fact-card {
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: all 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fact-card:active {
  transform: scale(0.98);
}

.fact-card.selected {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.1);
}

.fact-letter {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: var(--accent-purple);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 12px;
}

/* Story - Ввод текста */
.story-input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.story-context {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border-left: 4px solid var(--accent-purple);
  font-style: italic;
  color: var(--text-secondary);
  max-height: 30vh;
  overflow-y: auto;
  font-size: var(--player-body);
  line-height: 1.6;
}

.story-textarea {
  flex: 1;
  min-height: 120px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: 16px;
  color: var(--text-primary);
  font-size: var(--player-body);
  font-family: var(--font-body);
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.story-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.genre-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.genre-emoji {
  font-size: 1.5rem;
}

.genre-hint {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   Global Animations - Глобальные анимации
   ======================================== */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-list > * {
  animation: slide-up 0.3s ease-out both;
}

.animate-list > *:nth-child(1) { animation-delay: 0ms; }
.animate-list > *:nth-child(2) { animation-delay: 50ms; }
.animate-list > *:nth-child(3) { animation-delay: 100ms; }
.animate-list > *:nth-child(4) { animation-delay: 150ms; }
.animate-list > *:nth-child(5) { animation-delay: 200ms; }
.animate-list > *:nth-child(6) { animation-delay: 250ms; }

/* ========================================
   Responsive - Адаптивность
   ======================================== */

/* Tablet */
@media (min-width: 640px) {
  .player-content {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .avatar-grid {
    max-width: 320px;
  }
}

/* Desktop (Host) */
@media (min-width: 1024px) {
  .host-content {
    padding: 48px;
  }
}

/* Large screens / TV */
@media (min-width: 1400px) {
  :root {
    --host-title: 4rem;
    --host-body: 1.5rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
