/* ==========================================================================
   STREAM.HTML STYLESHEET - FÚTBOL LIBRE TV HD (futbollibretv.one)
   Paleta: Verde Esmeralda (#15803d / #16a34a), Blanco y Gris Neutro
   ========================================================================== */

.stream-page-body {
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
}

.stream-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.stream-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back-agenda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back-agenda:hover {
  background: var(--fl-green-700);
  border-color: var(--fl-green-600);
  color: #ffffff;
}

/* Banner de Partido */
.stream-match-banner {
  background: #1e293b;
  border: 1px solid #334155;
  border-top: 3px solid var(--fl-green-600);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.match-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pill-live-glow {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill-league-tag {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.pill-time-tag {
  color: #94a3b8;
  font-size: 0.76rem;
}

.stream-match-teams-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  text-align: center;
}

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

.team-badge-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.team-badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.stream-team-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.stream-vs-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #334155;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Grid Layout */
.stream-grid-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  margin-bottom: 24px;
}

.player-box-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-viewport-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.player-viewport-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-loader-overlay {
  position: absolute;
  inset: 0;
  background: #090d16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.88rem;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.player-loader-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-controls-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.server-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.server-bar-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 700;
  margin-right: 4px;
}

.btn-server-choice {
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-server-choice:hover {
  background: #334155;
  color: #ffffff;
}

.btn-server-choice.active {
  background: var(--fl-green-600);
  border-color: var(--fl-green-700);
  color: #ffffff;
}

.player-aux-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-player-aux {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0f172a;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-player-aux:hover {
  background: #334155;
  color: #ffffff;
}

/* Chat Box */
.stream-chat-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
}

.chat-box-header {
  padding: 10px 14px;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  background: #0f172a;
}

.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.chat-viewers-count {
  font-size: 0.72rem;
  color: #94a3b8;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg-row {
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-user-tag {
  font-weight: 700;
  color: #4ade80;
  margin-right: 4px;
}

.chat-text {
  color: #e2e8f0;
}

.chat-input-bar {
  display: flex;
  padding: 8px;
  border-top: 1px solid #334155;
  background: #0f172a;
  gap: 6px;
}

.chat-text-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.btn-send-chat {
  background: var(--fl-green-600);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-send-chat:hover {
  background: var(--fl-green-700);
}

.stream-tv-guide-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 14px;
}

.stream-tv-guide-card h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.channels-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tv-channel-tag {
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
}

@media screen and (max-width: 860px) {
  .stream-grid-layout {
    grid-template-columns: 1fr;
  }

  .stream-chat-box {
    height: 340px;
  }
}
