/* ==========================================================================
   CastHub Pro - 10-Foot Design System (Smart TV 60"-70" / 1080p-4K Native)
   Otimizado para idoso a 3 metros | GPU sem lag | Zero box-shadow blur pesado
   Borda vibrante 3px (#388bfd) | scale(1.03) com will-change: transform
   ========================================================================== */

:root {
  --bg-main: #060709; /* Preto Obsidiana Absoluto */
  --bg-card: #0d0f15; /* Superfície Obsidiana */
  --bg-card-hover: #141722;
  --bg-focus: #1f6feb;
  --focus-border: #f0f6fc; /* Borda Titânio / Glass no foco */
  --accent-red: #f85149;
  --accent-green: #3fb950;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(20, 24, 34, 0.5) 0%, transparent 65%);
  color: var(--text-main);
  overflow-x: hidden;
  user-select: none;
}

/* Safe Area lateral de 36px para telas de Smart TV */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 36px 36px 36px;
}

/* ================= HEADER BAR ================= */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: #1f6feb;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  will-change: transform;
}

.tab-btn:hover,
.tab-btn.focused {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.02);
}

.tab-btn.active {
  background: #f0f6fc;
  color: #060709;
  border-color: #f0f6fc;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.tab-btn.icon-only {
  padding: 10px 16px;
  color: var(--text-muted);
}

.tab-btn.icon-only:hover,
.tab-btn.icon-only.focused {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text-muted);
}

.tab-btn.active .tab-badge {
  background: #060709;
  color: #f0f6fc;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

.clock-display {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}



/* ================= TRILHO AO VIVO AGORA (LIVE RAIL) ================= */
.rail-container {
  margin-bottom: 32px;
  contain: layout style paint;
}

.rail-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.live-dot-red {
  width: 11px;
  height: 11px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.rail-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.rail-counter {
  background: rgba(234, 57, 67, 0.25);
  color: #ff7b72;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.live-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.live-strip::-webkit-scrollbar {
  height: 6px;
}

.live-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Live Rail horizontal: 420px com foco responsivo instantâneo e pedestais */
.live-card {
  flex: 0 0 420px;
  background: linear-gradient(160deg, #140d12 0%, #0a080c 100%);
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), border-color 0.12s ease, background 0.12s ease;
  will-change: transform;
}

.live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.live-card:hover,
.live-card.focused {
  background: linear-gradient(160deg, #20111a 0%, #120a10 100%);
  border-color: var(--accent-red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(248, 81, 73, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.live-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
}

.live-tag {
  color: #ff7b72;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.8px;
}

.live-league-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-league-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.live-league-name {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.live-arena-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.live-team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.live-crest-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.live-card:hover .live-crest-box,
.live-card.focused .live-crest-box {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.live-crest-box img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.live-team-name {
  font-size: 16px;
  font-weight: 800;
  color: #f0f6fc;
  text-align: center;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-center-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
}

.live-vs-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* ================= SECTION DIVIDER & FILTERS ================= */
.section-divider {
  margin-bottom: 24px;
}

.filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8b949e;
  padding: 11px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), border-color 0.12s ease, background-color 0.12s ease;
  will-change: transform;
}

.pill-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.filter-pill:hover,
.filter-pill.focused {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px) scale(1.02);
}

.filter-pill:hover .pill-icon,
.filter-pill.focused .pill-icon {
  opacity: 1;
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.filter-pill.active .pill-icon {
  opacity: 1;
  color: #79c0ff;
}

/* ================= MATCHES GRID ================= */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 24px;
  padding-bottom: 32px;
}

/* Card de Partida - Retângulo Minimalista Pure Obsidian (Otimizado para 70" 10-Foot UI) */
.match-card {
  background: linear-gradient(160deg, #11131a 0%, #08090d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px 24px 24px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), border-color 0.12s ease, background 0.12s ease;
  will-change: transform;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.match-card:hover,
.match-card.focused {
  background: linear-gradient(160deg, #171b26 0%, #0b0d13 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.02);
}

/* Destaque sutil para card que estiver ao vivo */
.match-card.is-live {
  border-color: rgba(248, 81, 73, 0.35);
}

.match-card.is-live::before {
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

.match-card.is-live:hover,
.match-card.is-live.focused {
  border-color: var(--accent-red);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 18px rgba(248, 81, 73, 0.35);
}

/* Header do Card */
.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-league-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-icon-frame {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.league-icon-frame .league-crest {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.league-icon-frame .trophy-icon {
  color: #e3b341;
}

.league-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

/* Badges de Status (Upcoming vs Live) */
.match-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.match-status-badge.upcoming {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6edf3;
}

.match-status-badge.upcoming svg {
  color: #79c0ff;
}

.match-status-badge.live {
  background: rgba(248, 81, 73, 0.18);
  border: 1px solid rgba(248, 81, 73, 0.45);
  color: #ff7b72;
}

/* Arena de Confronto */
.match-arena {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0 2px 0;
}

.team-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.crest-pedestal {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.match-card:hover .crest-pedestal,
.match-card.focused .crest-pedestal {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.club-crest {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
}

.club-name {
  font-size: 17px;
  font-weight: 800;
  color: #f0f6fc;
  text-align: center;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* Centro Versus */
.arena-versus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 65px;
}

.vs-emblem {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.match-schedule-label {
  font-size: 12px;
  font-weight: 800;
  color: #79c0ff;
  letter-spacing: 0.3px;
}

/* ================= CARDS ESPECÍFICOS POR MODALIDADE ================= */

/* 🥊 1. Card de Lutas - UFC / Combate / MMA */
.match-card.fight-card {
  background: linear-gradient(160deg, #180d12 0%, #0a0709 100%);
  border-color: rgba(248, 81, 73, 0.22);
}

.match-card.fight-card::before {
  background: linear-gradient(90deg, transparent, rgba(248, 81, 73, 0.4), transparent);
}

.match-card.fight-card:hover,
.match-card.fight-card.focused {
  background: linear-gradient(160deg, #241117 0%, #0f080c 100%);
  border-color: var(--accent-red);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(248, 81, 73, 0.3);
}

.fight-pedestal {
  border-radius: 18px;
  background: radial-gradient(circle, rgba(248, 81, 73, 0.12) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  border: 1px solid rgba(248, 81, 73, 0.25);
}

.fight-emblem {
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.35);
  color: #ff7b72;
  font-size: 10px;
  letter-spacing: 1.2px;
}

.fight-schedule {
  color: #e3b341;
}

/* 🏎️ 2. Card de Automobilismo / MotoGP / F1 */
.match-card.racing-card {
  background: linear-gradient(160deg, #11141c 0%, #07090f 100%);
  border-color: rgba(56, 139, 253, 0.22);
}

.match-card.racing-card::before {
  background: linear-gradient(90deg, transparent, rgba(56, 139, 253, 0.4), transparent);
}

.match-card.racing-card:hover,
.match-card.racing-card.focused {
  background: linear-gradient(160deg, #171f30 0%, #0a0d17 100%);
  border-color: #58a6ff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 139, 253, 0.3);
}

.racing-arena {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 4px;
}

.racing-track-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle, rgba(56, 139, 253, 0.14) 0%, rgba(255, 255, 255, 0.02) 70%, transparent 100%);
  border: 1px solid rgba(56, 139, 253, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #79c0ff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.racing-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.racing-event-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.racing-meta-label {
  font-size: 13px;
  font-weight: 600;
  color: #79c0ff;
}

/* ================= CHANNELS GRID ================= */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
  contain: layout style paint;
}

.channel-card {
  background: linear-gradient(160deg, #11131a 0%, #08090d 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  will-change: transform;
}

.channel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.channel-card:hover,
.channel-card.focused {
  background: linear-gradient(160deg, #171b26 0%, #0b0d13 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.12);
  transform: translateY(-3px) scale(1.02);
}

.channel-logo-wrap {
  width: 104px;
  height: 104px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s cubic-bezier(0, 0, 0.2, 1);
}

.channel-card:hover .channel-logo-wrap,
.channel-card.focused .channel-logo-wrap {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.channel-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.65));
}

.channel-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
  color: #f0f6fc;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}

/* ================= PLAYER OVERLAY ================= */
.player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  background: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-osd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88) 0%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  opacity: 1;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.player-osd.hidden {
  opacity: 0;
}

.osd-header,
.osd-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

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

.osd-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.osd-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 4px;
}

.osd-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
  will-change: transform;
}

.osd-btn:hover,
.osd-btn.focused {
  background-color: var(--bg-focus);
  border: 3px solid var(--focus-border);
  transform: scale(1.03);
}

.osd-controls {
  display: flex;
  gap: 14px;
}

.osd-hints {
  color: var(--text-muted);
  font-size: 14px;
}

/* ================= STREAM DRAWER ================= */
.stream-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: rgba(16, 20, 29, 0.98);
  border-left: 1px solid var(--border-color);
  padding: 32px 24px;
  z-index: 10;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.drawer-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
  will-change: transform;
}

.drawer-item:hover,
.drawer-item.focused {
  background-color: var(--bg-focus);
  color: #ffffff;
  border: 3px solid var(--focus-border);
  transform: scale(1.03);
}

.drawer-item.active {
  border-color: #2ea043;
  background: rgba(46, 160, 67, 0.25);
}

/* ================= LOADING & TOAST ================= */
.loading-state,
.player-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 16px;
}

.player-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.58);
  z-index: 20;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: #58a6ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 28, 41, 0.98);
  border: 2px solid var(--border-color);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10000;
}

.toast.show {
  opacity: 1;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}
