/* Estilo general del body */
body {
  background: #f8f9fa;
  font-family: 'Poppins', sans-serif; /* o 'Press Start 2P', cursive */
}

/* Header / barra superior */
header {
  background: #328FC6;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
}

/* --- Botón discreto de "Invítame a una cerveza" --- */
.bmc-wrapper {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 10;
}

.bmc-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}
.bmc-icon-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}
.bmc-icon-btn:active {
  transform: scale(0.95);
}

/* Bocadillo / tooltip */
.bmc-tooltip {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 20;
}
.bmc-tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
.bmc-tooltip.visible {
  display: block;
}
.bmc-tooltip a {
  color: #333;
  text-decoration: none;
}
.bmc-tooltip a:hover {
  color: #328FC6;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .bmc-wrapper {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    left: auto;
    z-index: 11;
  }
  .bmc-icon-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
  }
  .bmc-tooltip {
    top: 34px;
    left: auto;
    right: 0;
    transform: none;
    font-size: 12px;
    padding: 6px 10px;
  }
  .bmc-tooltip::before {
    left: auto;
    right: 8px;
    margin-left: 0;
  }
}

/* Estilo de las tarjetas de anime */
.anime-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.anime-card:hover {
  transform: scale(1.01);
}

/* Imagen superior de la tarjeta */
.card-img-top {
  object-fit: cover;
  height: 280px;
}

/* Texto pequeño y atenuado */
.small-muted {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

.material-icons {
  font-size: 20px;
  cursor: pointer;
}
a.text-decoration-none {
  text-decoration: none;
}

/* Badge de nuevos episodios debajo de la imagen */
.anime-cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.new-ep-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
  text-align: center;
  min-width: 20px;
}

/* Episode grid: tarjetas compactas */
.episode-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  background: #fff;
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.episode-card:hover {
  border-color: #ced4da;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.ep-card-head {
  position: relative;
  margin-bottom: 4px;
}
.episode-card .ep-number {
  font-weight: 700;
  font-size: 13px;
  color: #212529;
}
.episode-card .servers .btn-sm {
  font-size: 10px;
  padding: 1px 6px;
  line-height: 1.5;
}

/* Badge dentro de episode-card */
.episode-card .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 6px;
  z-index: 2;
  margin: 0;
}
.episode-card .badge.bg-warning {
  cursor: pointer;
}

/* Asegurar que el dropdown quede por encima de todo */
.episode-card .dropdown-menu {
  z-index: 9999;
}

/* Info sutil del boton Cast en el dropdown */
.cast-info-hint {
  color: #6c757d !important;
  font-size: 11px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.cast-info-hint:hover {
  opacity: 1;
  color: #495057 !important;
  background: #f8f9fa;
}

/* --- Google Sign-In button --- */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #fff;
  color: #444;
  border: 1px solid #dadce0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.google-btn:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  background: #fafafa;
}
.google-btn:active {
  background: #eee;
}

/* Auth area responsive */
#authArea {
  z-index: 10;
}

@media (max-width: 576px) {
  #authArea {
    position: static !important;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
  }
  .google-btn {
    font-size: 12px;
    padding: 6px 14px;
  }
}

/* Estrella de favorito inline junto al título */
.fav-star-inline {
  font-size: 18px;
  cursor: pointer;
  color: #f59e0b;
  transition: transform 0.15s, opacity 0.15s;
  user-select: none;
  vertical-align: middle;
  margin-left: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  top: -2px;
}
.fav-star-inline:hover {
  transform: scale(1.2);
}
.fav-star-inline:active {
  transform: scale(0.9);
}

