/* ============================================
   COCINARIO — Diseño cálido y minimalista
   Inspirado en cocinario-cookbook-app.vercel.app
   ============================================ */

/* --- Tabler Icons — tamaño global --- */
.ti { font-size: 1.2em; vertical-align: -0.15em; }

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #F5F0EC;
  color: #2D2418;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 100px; /* espacio para bottom nav (85px + margen) */
  line-height: 1.55;
}

/* --- Tipografía — TODO Inter, sin serif --- */
h1, h2, h3, h4, h5, h6,
.recipe-title {
  font-family: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  color: #2D2418;
  letter-spacing: -0.3px;
}

/* --- Header — sticky con backdrop blur para que no se mezcle con el contenido al hacer scroll --- */
header {
  background: rgba(245, 240, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #2D2418;
  padding: 24px 24px 16px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* --- Logo en cabecera --- */
.app-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 56px;
  object-fit: contain;
}

/* --- Contenedor principal --- */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 1.5rem;
}

/* --- Tabs --- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Formulario nueva receta --- */
.recipe-form {
  text-align: center;
  padding: 2rem 0.5rem;
}

.form-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.recipe-form h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-desc {
  color: #8B7E74;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Input group --- */
.input-group {
  position: relative;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8B7E74;
  font-size: 20px;
  z-index: 2;
}

.input-group .form-control {
  padding-left: 44px;
  height: 48px;
  border: 1.5px solid #E8E0D8;
  border-radius: 12px;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #2D2418;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group .form-control:focus {
  outline: none;
  border-color: #5C7A3C;
  box-shadow: 0 0 0 3px rgba(92, 122, 60, 0.1);
}

/* --- Botón generar / acción principal --- */
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #5C7A3C;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-generate:hover {
  background: #4E6A32;
}

.btn-generate:active {
  transform: scale(0.97);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Estado del proceso --- */
.process-status {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #FCFAF8;
  border-radius: 17px;
  text-align: center;
}

.status-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #E8E0D8;
  border-top-color: #5C7A3C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#statusText {
  color: #8B7E74;
  font-size: 0.9rem;
  margin: 0;
}

.status-steps {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #8B7E74;
}

.status-steps .step {
  padding: 4px 0;
}

.status-steps .step.done {
  color: #5C7A3C;
}

.status-steps .step.done::before {
  content: "✓ ";
}

/* --- Recetario --- */
.recetario-header {
  margin-bottom: 1.5rem;
}

.recetario-header h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.search-bar {
  position: relative;
  margin-bottom: 1rem;
}

.search-bar .material-icons {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8B7E74;
  font-size: 20px;
  z-index: 2;
}

.search-bar .form-control {
  padding-left: 44px;
  height: 44px;
  border: 1.5px solid #E8E0D8;
  border-radius: 12px;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #2D2418;
}

.search-bar .form-control:focus {
  outline: none;
  border-color: #5C7A3C;
  box-shadow: 0 0 0 3px rgba(92, 122, 60, 0.1);
}

/* --- Botón toggle de tags --- */
.tag-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 10px;
  border: 1.5px solid #E8E0D8;
  border-radius: 10px;
  background: #FCFAF8;
  color: #5C4A3A;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-toggle-btn:hover {
  background: #F0EBE3;
  border-color: #D0C8BC;
}

.tag-toggle-btn .material-icons {
  font-size: 16px;
}

.tag-toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.tag-toggle-btn.open .tag-toggle-arrow {
  transform: rotate(180deg);
}

/* --- Tags / Filtros (pill verde oliva) --- */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}

.tag-filter {
  padding: 4px 12px;
  border: none;
  border-radius: 9999px;
  background: #E8E0D8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
  color: #5C4A3A;
}

.tag-filter:hover {
  background: #DDD4CA;
}

.tag-filter.active {
  background: #5C7A3C;
  color: #FCFAF8;
}

/* --- Grid de recetas --- */
.recipes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.empty-state {
  width: 100%;
  text-align: center;
  color: #8B7E74;
  padding: 3rem 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.empty-state .material-icons {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
  color: #D0C8BC;
}

/* --- Tarjeta de receta (sin sombra, 17px radius, ancho fijo) --- */
.recipe-card {
  background: #FCFAF8;
  border-radius: 17px;
  overflow: hidden;
  flex: auto;
  min-width: 150px;
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.15s;
}

@media (max-width: 480px) {
  .recipe-card {
    max-width: none;
  }
}

.recipe-card:hover {
  transform: translateY(-1px);
}

.recipe-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #F0EBE3;
}

.recipe-card-body {
  padding: 12px 14px;
}

.recipe-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #2D2418;
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.recipe-tag {
  padding: 2px 8px;
  background: #F0EBE3;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #5C4A3A;
}

.recipe-card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.73rem;
  color: #8B7E74;
}

.recipe-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.recipe-card-meta .material-icons {
  font-size: 14px;
}

/* --- Modal de contraseña --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 24, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-card {
  background: #FCFAF8;
  border-radius: 20px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.modal-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal-card p {
  color: #8B7E74;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.modal-card .form-control {
  width: 100%;
  height: 44px;
  border: 1.5px solid #E8E0D8;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
  background: #fff;
  color: #2D2418;
}

.modal-card .form-control:focus {
  outline: none;
  border-color: #5C7A3C;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-cancel, .btn-confirm {
  padding: 10px 20px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.btn-cancel {
  background: #E8E0D8;
  color: #5C4A3A;
}

.btn-cancel:hover {
  background: #DDD4CA;
}

.btn-confirm {
  background: #5C7A3C;
  color: #fff;
}

.btn-confirm:hover {
  background: #4E6A32;
}

.error-msg {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* --- Bottom nav (85px alto, translúcido, sin sombra) --- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(252, 250, 248, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  gap: 2rem;
  height: 85px;
  padding: 8px 1rem 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 20px;
  border: none;
  background: transparent;
  color: #8B7E74;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  border-radius: 12px;
}

.nav-tab .material-icons {
  font-size: 24px;
}

.nav-tab.active {
  color: #5C7A3C;
  font-weight: 600;
}

.nav-tab:hover {
  color: #5C7A3C;
}

/* --- Preview de receta --- */
.recipe-preview {
  margin-top: 2rem;
  text-align: left;
}

/* --- Modal de confirmación genérico (reemplaza confirm() nativo) --- */
.app-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 24, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.app-confirm-card {
  background: #FCFAF8;
  border-radius: 16px;
  padding: 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  animation: slideUp .25s ease;
}
.app-confirm-card .material-icons {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}
.app-confirm-card p {
  font-size: 0.9rem;
  color: #5C4A3A;
  margin-bottom: 18px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.app-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-confirm-actions button {
  padding: 9px 22px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.btn-confirm-yes { background: #5C7A3C; color: #fff; }
.btn-confirm-yes:hover { background: #4E6A32; }
.btn-confirm-no { background: #E8E0D8; color: #5C4A3A; }
.btn-confirm-no:hover { background: #DDD4CA; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }

/* --- Toast de notificación (reemplaza alert() nativo) --- */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #2D2418;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 400;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ================ */
@media (min-width: 768px) {
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 640px;
    width: 100%;
    border-radius: 17px 17px 0 0;
  }

  body {
    padding-bottom: 100px;
  }

  header {
    padding: 28px 28px 18px;
  }

  .container {
    padding: 0 24px 2rem;
  }
}

/* =============================================
   ESCRITORIO (≥1024px) — Sidebar + contenido amplio
   ============================================= */

/* Sidebar: oculto por defecto (móvil) */
.app-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  /* Ocultar elementos móviles */
  body > header {
    display: none;
  }

  .bottom-nav {
    display: none;
  }

  /* Scroll global */
  body {
    padding-bottom: 0;
    padding-left: 232px;
  }

  /* Contenedor más amplio */
  .container {
    max-width: 1000px;
    padding: 0 36px 2.5rem;
  }

  /* ========== Sidebar ========== */
  .app-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 232px;
    background: #FCFAF8;
    border-right: 1px solid #E8E0D8;
    z-index: 200;
    overflow-y: auto;
  }

  .sidebar-brand {
    padding: 24px 20px 18px;
    border-bottom: 1px solid #F0EBE3;
  }

  .sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2D2418;
  }

  .sidebar-logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .sidebar-logo-text {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
  }

  .sidebar-nav {
    flex: 1;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #5C4A3A;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar-nav-item:hover {
    background: #F0EBE3;
    color: #2D2418;
  }

  .sidebar-nav-item.active {
    background: #5C7A3C;
    color: #fff;
  }

  .sidebar-nav-item .ti {
    font-size: 1.15em;
  }

  .sidebar-footer {
    padding: 14px 20px 20px;
    border-top: 1px solid #F0EBE3;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #5C7A3C;
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
  }

  .sidebar-btn-login,
  .sidebar-btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: "Inter", sans-serif;
    transition: all 0.15s;
    width: 100%;
    justify-content: center;
  }

  .sidebar-btn-login {
    background: #5C7A3C;
    color: #fff;
  }

  .sidebar-btn-login:hover {
    background: #4E6A32;
  }

  .sidebar-btn-logout {
    background: #F0EBE3;
    color: #5C4A3A;
  }

  .sidebar-btn-logout:hover {
    background: #E8E0D8;
  }

  /* Cards más grandes en desktop */
  .recipe-card {
    max-width: 260px;
  }

  .recipe-card-img {
    height: 160px;
  }

  .recipe-card-body h3 {
    font-size: 1rem;
  }

  /* Ajustes para vistas internas */
  .detalle-container,
  .editor-container {
    max-width: 900px;
    padding: 24px 36px;
  }

  .detalle-header h1 {
    font-size: 1.8rem;
  }
}

/* --- Botones de acción dentro de las tarjetas --- */
.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 0.75rem;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  background: #F0EBE3;
  color: #5C4A3A;
}

.btn-card-action:hover {
  background: #E8E0D8;
  color: #2D2418;
}

.btn-card-action .material-icons {
  font-size: 16px;
}

/* --- Botón PDF en cards del recetario --- */
.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 7px 14px;
  background: #2D2418;
  color: #FCFAF8;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-pdf-download:hover {
  background: #1a1510;
  color: #FCFAF8;
}

.btn-pdf-download:active {
  transform: scale(0.96);
}

.btn-pdf-download .material-icons {
  font-size: 18px;
}

/* --- Contenedor PDF + Imprimir (50/50) --- */
.pdf-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pdf-actions-row .btn-pdf-download,
.pdf-actions-row .btn-print-recipe {
  flex: 1;
  margin-top: 0;
  justify-content: center;
}

/* --- Botón Imprimir (principal, oscuro, a la izquierda) --- */
.btn-print-recipe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 14px;
  background: #2D2418;
  color: #FCFAF8;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-print-recipe:hover {
  background: #1a1510;
  color: #FCFAF8;
}

.btn-print-recipe:active {
  transform: scale(0.96);
}

.btn-print-recipe .material-icons {
  font-size: 18px;
}

/* --- Botón secundario "Estándar" (modo sin IA) --- */
.btn-generate-std {
  background: #FCFAF8 !important;
  color: #5C4A3A !important;
  border: 1.5px solid #E8E0D8 !important;
  font-size: 0.85rem !important;
  padding: 10px 20px !important;
}

.btn-generate-std:hover {
  background: #F0EBE3 !important;
  border-color: #D0C8BC !important;
}

/* --- Saved playlists selector --- */
.saved-playlists-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid #E8E0D8;
  border-radius: 10px;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #2D2418;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B7E74' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.saved-playlists-select:focus {
  outline: none;
  border-color: #5C7A3C;
  box-shadow: 0 0 0 3px rgba(92, 122, 60, 0.1);
}
.saved-playlists-select option {
  color: #2D2418;
  background: #fff;
  padding: 8px;
}
.btn-icon-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid #E8E0D8;
  border-radius: 10px;
  background: #FCFAF8;
  color: #c0392b;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.btn-icon-delete:hover {
  background: #fdecea;
  border-color: #c0392b;
}
.btn-icon-delete .material-icons {
  font-size: 18px;
}

/* --- Playlist grid --- */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.playlist-video-card {
  background: #FCFAF8;
  border: 1px solid #E8E0D8;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.playlist-video-card:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.playlist-video-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #F5F0EC;
}
.playlist-video-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  background: #F0EBE3;
}
.playlist-video-info {
  padding: 8px 10px;
}
.playlist-video-title {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2D2418;
}
.playlist-video-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
  z-index: 2;
}
.playlist-video-badge.available {
  background: #5C7A3C;
  color: #fff;
}
.playlist-video-badge.generated {
  background: #8B7E74;
  color: #fff;
}

/* --- Separador "o" --- */
.separator-text {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 1.5rem auto;
  color: #B0A69A;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
}

.separator-text::before,
.separator-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E8E0D8;
}

.separator-text span {
  flex-shrink: 0;
}

/* --- Botón crear manualmente --- */
.btn-manual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: #FCFAF8;
  color: #5C7A3C;
  border: 1.5px solid #5C7A3C;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-manual:hover {
  background: #F0F2E8;
  box-shadow: 0 0 0 3px rgba(92, 122, 60, 0.08);
}

.btn-manual:active {
  transform: scale(0.97);
}
