/* /live — sin franja vacía bajo el video; más espacio para chat */

body[data-page="live"] .live-stage {
  margin-bottom: 8px;
}

body[data-page="live"] .player-panel {
  position: relative;
}

body[data-page="live"] .panel-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body[data-page="live"] .player-panel .player-footer {
  display: none !important;
}

body[data-page="live"] .live-meta-edge {
  position: absolute;
  right: 6px;
  top: 56px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

body[data-page="live"] .live-meta-edge__line {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 85%;
  overflow: hidden;
  opacity: 0.82;
}

body[data-page="live"] #live-lower-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 280px);
  gap: 12px;
  align-items: stretch;
  margin-top: 0;
}

body[data-page="live"] .chat-shell-v2 {
  min-height: min(64vh, 620px);
}

body[data-page="live"] .chat-scroll,
body[data-page="live"] #chat-list {
  max-height: none;
  flex: 1 1 auto;
}

@media (min-width: 1100px) {
  body[data-page="live"] #live-lower-section {
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 300px);
  }

  body[data-page="live"] .chat-shell-v2 {
    min-height: min(68vh, 660px);
  }
}

@media (max-width: 900px) {
  body[data-page="live"] #live-lower-section {
    grid-template-columns: 1fr;
  }
}

/* Inicio — leyenda en orilla, sin franja bajo el video */

body.aor-home-pro .home-live-stage {
  margin-bottom: 8px;
}

body.aor-home-pro .player-panel {
  position: relative;
}

body.aor-home-pro .home-live-stage .player-footer {
  display: none !important;
}

body.aor-home-pro .home-live-meta-edge {
  position: absolute;
  right: 6px;
  top: 52px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

body.aor-home-pro .home-live-meta-edge__line {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.82;
}

body.aor-home-pro .home-live-stage .panel-head__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Chat en vivo — compacto tipo WhatsApp */

body[data-page="live"] .chat-shell-v2 {
  background: #0b141a;
  border-color: rgba(148, 163, 184, 0.15);
}

body[data-page="live"] .chat-scroll,
body[data-page="live"] #chat-list {
  padding: 4px 6px 2px;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  background: #0b141a;
}

body[data-page="live"] .chat-feed-inner--live {
  margin-top: 0;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  width: 100%;
  display: block;
  gap: 0;
}

body[data-page="live"] .chat-feed-spacer {
  display: none !important;
}

body[data-page="live"] .chat-row {
  margin: 0;
  padding: 0;
  justify-content: flex-start;
}

body[data-page="live"] .chat-line {
  margin: 0 0 3px;
  padding: 3px 8px;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 4px;
  background: rgba(31, 44, 52, 0.55);
  text-align: left;
}

body[data-page="live"] .chat-row.is-mine .chat-line {
  background: rgba(26, 46, 40, 0.7);
  border-left: 2px solid #00a884;
  padding-left: 6px;
}

body[data-page="live"] .chat-user {
  font-size: 12px;
  font-weight: 700;
  color: #53bdeb;
  margin-right: 6px;
}

body[data-page="live"] .chat-time {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.9);
  margin-right: 8px;
}

body[data-page="live"] .chat-text {
  font-size: 13px;
  color: #e8edf0;
  word-break: break-word;
}

body[data-page="live"] .chat-bubble {
  width: auto;
  max-width: 100%;
  padding: 0;
  background: transparent;
}

body[data-page="live"] #chat-form.chat-composer-v2 {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 6px 8px;
  background: #1f2c34;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

body[data-page="live"] #chat-form.chat-composer-v2 .textarea {
  min-height: 36px;
  max-height: 96px;
  padding: 8px 12px;
  border-radius: 18px;
  background: #2a3942;
  border-color: transparent;
  font-size: 13px;
}

body[data-page="live"] #chat-form.chat-composer-v2 .btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  background: #00a884;
  border: none;
}

body[data-page="live"] #chat-form.chat-composer-v2 .btn::after {
  content: "➤";
  font-size: 15px;
  color: #fff;
}

