/* =====================================================
   ZonaDeStar — tema oscuro estilo plataforma de streaming
   ===================================================== */

:root {
  --brand: #e50914;
  --brand-dark: #a80712;
  --brand-glow: rgba(229, 9, 20, 0.45);
  --panel: rgba(17, 17, 20, 0.72);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-muted: rgba(255, 255, 255, 0.65);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fondo cinematográfico: resplandor rojo ambiental + viñeta + grano sutil */
  background-color: #060608;
  background-image:
    radial-gradient(ellipse 900px 600px at 20% -10%, rgba(229, 9, 20, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(120, 20, 40, 0.16), transparent 55%),
    radial-gradient(ellipse 1000px 700px at 50% 120%, rgba(30, 0, 8, 0.5), transparent 60%),
    linear-gradient(180deg, #0b0b0d 0%, #08080a 45%, #030303 100%);
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

/* Grano/textura sutil para dar sensación "cine" sin depender de una imagen externa */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

/* =====================================================
   Tarjeta principal
   ===================================================== */
.stream-card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 40px var(--brand-glow);
  animation: fade-up 0.5s ease-out both, ambient-glow 5s ease-in-out infinite;
  overflow: hidden;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stream-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

@keyframes ambient-glow {
  0%, 100% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.02),
      0 0 30px rgba(229, 9, 20, 0.3);
  }
  50% {
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.02),
      0 0 50px rgba(229, 9, 20, 0.55);
  }
}

/* Logo */
.logo {
  display: block;
  max-width: 170px;
  width: 60%;
  height: auto;
  margin: 0 auto 0.5rem;
  filter: drop-shadow(0 4px 18px rgba(229, 9, 20, 0.35));
}

@media (min-width: 768px) {
  .logo {
    max-width: 200px;
    width: auto;
  }
}

/* Título */
.stream-title {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 0.25rem 0 1.5rem;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.stream-title i,
.stream-title .accent {
  color: var(--brand);
  text-shadow: 0 0 12px var(--brand-glow);
}

/* Aviso / nota — versión oscura, coherente con el resto de la interfaz */
.stream-notice {
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-left: 3px solid #ffc107;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.stream-notice strong {
  color: #ffc107;
}

.stream-notice ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

/* Alerta de error — misma idea que .stream-notice pero en rojo, para que
   combine con el tema oscuro en vez del alert-danger claro de Bootstrap */
.stream-alert-danger {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9em;
  line-height: 1.55;
  color: #fff;
}

.stream-alert-danger i {
  color: var(--brand);
}

/* Input de correo */
.stream-input-group .input-group-text {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: none;
  color: var(--text-muted);
}

.stream-input-group .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  color: #fff;
}

.stream-input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.stream-input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(229, 9, 20, 0.25);
  color: #fff;
}

/* Fila de botones: todas las columnas a la misma altura */
.stream-actions {
  align-items: stretch;
}

.stream-actions > [class*="col-"] {
  display: flex;
}

/* Botones estilo streaming: degradado, elevación al pasar el cursor,
   tamaño uniforme sin importar cuánto ocupe el texto */
.btn-stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 78px;
  padding: 0.75rem 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: normal;
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-stream i {
  font-size: 1.15rem;
  margin: 0 !important;
}

.btn-stream:hover,
.btn-stream:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(229, 9, 20, 0.5);
  filter: brightness(1.08);
  color: #fff;
}

.btn-stream:active {
  transform: translateY(-1px);
}

.btn-stream:disabled {
  opacity: 0.6;
  transform: none;
  filter: none;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .btn-stream {
    flex-direction: row;
    min-height: 56px;
  }
}

/* Pie de página discreto (WhatsApp) para quienes quieran su propia web */
.stream-footer {
  position: relative;
  z-index: 1;
  padding: 8px 16px 18px;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.32);
  animation: fade-up 0.5s ease-out 0.15s both;
}

.stream-footer i {
  color: rgba(37, 211, 102, 0.45);
  margin-right: 0.3rem;
}

.stream-footer a {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  text-decoration: none;
  margin-left: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.stream-footer a:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
}

@media (min-width: 1200px) {
  .stream-card {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}
