:root {
  --bg: #0b0f14;
  --card: #0f1720;
  --muted: #98a6b3;
  --accent-orange: #ff7a29;
  --accent-blue: #2ba6ff;
  --glass: rgba(255, 255, 255, 0.03);
  --bubble: #0c1720;
}

* {
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  color: #e6eef3;
  background: linear-gradient(180deg, #000000 0%, #ff7a29 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* SPLASH SCREEN ================================= */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #000000 0%, #ff7a29 100%);
  z-index: 9999;
  animation: splashFade 5s ease forwards;
}

.splash img {
  width: 160px;
  height: auto;
  opacity: 0;
  transform: scale(0.6);
  animation: splashZoom 4s ease forwards;
  filter: drop-shadow(0 0 15px rgba(255, 122, 41, 0.8));
}

@keyframes splashZoom {
  0% { opacity: 0; transform: scale(0.6); filter: brightness(0.3) drop-shadow(0 0 2px #000); }
  30% { opacity: 1; transform: scale(1.05); filter: brightness(1.3) drop-shadow(0 0 20px #ff7a29); }
  60% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 10px #ff7a29); }
}

@keyframes splashFade {
  0%, 90% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; display: none; }
}

/* CONTAINER E HEADER ============================= */
.container {
  max-width: 1100px;
  margin: 26px auto;
  padding: 18px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

.title {
  font-size: 20px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* PLAYER ============================= */
.player-card,
.chat-card {
  background: rgba(15, 23, 32, 0.85);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 26px rgba(2, 6, 10, 0.6);
  backdrop-filter: blur(8px);
}

.video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--accent-orange);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress {
  flex: 1;
  height: 6px;
  background: var(--glass);
  border-radius: 4px;
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  width: 30%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.03)
  );
}

.btn {
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CHAT ================================== */
.chat-card {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
}

.chat-window {
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: 10px;
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column-reverse;
}

.message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 6px;
  border-radius: 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), #165f91);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.msg-bubble {
  background: rgba(0, 0, 0, 0.35);
  padding: 10px;
  border-radius: 10px;
  flex: 1;
  border-left: 4px solid var(--accent-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.msg-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.msg-text {
  font-size: 15px;
  line-height: 1.3;
  color: #eaf6ff;
}

/* INPUT AREA ========================== */
.chat-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls-area {
  display: flex;
  gap: 8px;
}

.input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
}

.send-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.login-btn {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

/* MODAL ================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 10, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: linear-gradient(180deg, #0b131a, #071018);
  padding: 18px;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.form-input {
  padding: 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
}

.form-submit {
  padding: 10px;
  border-radius: 8px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* INFO BOXES =========================== */
.meta-box {
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
}

/* RESPONSIVIDADE ======================= */
@media (max-width: 920px) {
  .chat-card {
    grid-template-columns: 1fr;
  }

  .video-wrap {
    height: 300px;
  }
}
