﻿/* Overrides + reproductor/detalle sobre TV Cadoso */
:root {
  --border: var(--line);
  --muted: var(--text-2);
  --text: var(--text-0);
  --card: var(--bg-2);
  --card-hover: var(--bg-3);
}

.hidden { display: none !important; }
.client-view { display: none; }
.client-view.active { display: block; }

.home-greeting { margin-bottom: 16px; padding: 0 4px; color: var(--text-2); font-size: 14px; }
.home-greeting strong { color: #fff; }

.sidebar-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.4; }
.sidebar-footer .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7280; flex-shrink: 0; }
.sidebar-footer .status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.sidebar-footer .status-dot.offline { background: var(--accent); }

.sidebar-toggle {
  display: none; background: var(--bg-2); border: 1px solid var(--line); color: #fff;
  border-radius: 8px; padding: 8px 10px; cursor: pointer; margin-right: 4px;
}

.detail-overlay {
  position: fixed; inset: 0; z-index: 300; background: var(--bg-0);
  overflow-y: auto; overflow-x: hidden;
}
.detail-overlay .modal-backdrop-close { display: none; }
.detail-overlay .detail-page { min-height: 100vh; width: 100%; }
.detail-overlay .modal {
  position: relative; top: 0; left: 0; right: auto; bottom: auto;
  width: 100%; max-width: 100%; border: none; box-shadow: none; animation: none;
}
#details-hero { min-height: 320px; background-color: var(--bg-1); }

.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 20px; color: var(--text-2);
}
.spinner {
  width: 34px; height: 34px; border: 3px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-genres .genre-badge {
  font-size: 12px; font-weight: 700; color: var(--text-0); background: var(--bg-2);
  padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line);
  display: inline-block; margin: 0 8px 8px 0;
}

.id-modal { position: fixed; inset: 0; z-index: 1100; }
.id-modal.hidden { display: none !important; }
.id-form-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #ff6b6b;
}
body.needs-username .main,
body.needs-username .topbar,
body.needs-login .app {
  pointer-events: none;
  user-select: none;
  filter: blur(8px) saturate(0.75);
}
body.needs-username .sidebar-profile {
  pointer-events: auto;
  filter: none;
}
body.needs-login .id-modal {
  pointer-events: auto;
  filter: none;
}
.id-card input {
  width: 100%; margin-top: 8px; padding: 12px 14px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 8px; color: #fff; font-size: 16px;
}

.servers-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.server-btn {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-0);
  border-radius: 8px; padding: 10px 16px; font-size: 13px; cursor: pointer; transition: var(--transition);
}
.server-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.chapters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* Reproductor TV Cadoso â€” fullscreen, separado del detalle */
#player-overlay { z-index: 450; }
#player-overlay.hidden { display: none !important; }
body.player-open { overflow: hidden; }
#player-overlay .vp-stage {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
}
#player-overlay .player-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; pointer-events: none;
}
#player-overlay .player-unmute {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 8;
  border: 0; cursor: pointer; background: rgba(0,0,0,0.78); color: #fff; font: 600 15px/1.2 inherit;
  padding: 12px 18px; border-radius: 999px;
}
#player-overlay .player-resume-hint {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%); z-index: 6;
  background: rgba(0,0,0,0.72); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px;
}
#player-overlay .vp-stage iframe#player-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 3;
}
#player-overlay.is-iframe .vp-top,
#player-overlay.is-iframe .vp-bottom { opacity: 1; pointer-events: auto; }
#player-overlay .loading-state {
  position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,0.55);
}
#player-overlay.show-ui .vp-top,
#player-overlay.show-ui .vp-bottom,
#player-overlay.is-paused .vp-top,
#player-overlay.is-paused .vp-bottom { opacity: 1; pointer-events: auto; transform: none; }
#player-overlay:not(.show-ui):not(.is-paused) .vp-top,
#player-overlay:not(.show-ui):not(.is-paused) .vp-bottom { opacity: 0; pointer-events: none; transform: translateY(8px); }
#player-overlay .player-server-tag {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); padding: 3px 8px; border-radius: 6px;
}
#player-overlay .player-menu-wrap { position: relative; }
#player-overlay .player-menu {
  position: absolute; right: 0; bottom: 48px; min-width: 160px; max-height: 280px; overflow-y: auto;
  background: rgba(18,18,18,0.96); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 6px; z-index: 20;
}
#player-overlay .player-menu-item {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #fff;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
#player-overlay .vp-servers { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#player-overlay .vp-servers.hidden { display: none !important; }
#player-overlay .vp-icon-btn.active { background: var(--accent); border-color: var(--accent); }
#player-overlay .vp-icon-btn.is-disabled { opacity: 0.35; pointer-events: none; }
#player-overlay .vp-error {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  max-width: min(420px, 92vw); text-align: center; padding: 20px 24px; border-radius: 12px;
  background: rgba(18,18,18,0.92); border: 1px solid rgba(229, 9, 20, 0.35); color: #ff8a90;
}
#player-overlay #vp-server-picker.hidden { display: none !important; }
#player-overlay #vp-server-picker:not(.hidden) { display: flex; }
#player-overlay #vp-episodes-picker.hidden { display: none !important; }
#player-overlay #vp-episodes-picker:not(.hidden) { display: flex; }
#player-overlay #vp-spinner:not(.hidden) { display: block; }
#player-overlay #pc-play2:not(.hidden) { display: flex; }

.seasons-carousel { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; }
.season-card { flex: 0 0 200px; min-width: 200px; aspect-ratio: 16/9; border-radius: 12px; background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.season-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.season-card-number { font-size: 32px; font-weight: 800; color: #fff; }
/* â”€â”€â”€ Lista horizontal de episodios (estilo Netflix) â”€â”€â”€ */
.episodes-grid { display: flex; flex-direction: column; gap: 8px; }
.episode-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px 10px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 76px;
}
.episode-row:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  transform: translateX(2px);
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.18);
}
.episode-row-thumb {
  position: relative;
  width: 132px; height: 76px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #0b0f19;
}
.episode-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.episode-row:hover .episode-row-thumb img { transform: scale(1.08); }
.episode-row-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff; border: 0; cursor: pointer;
  opacity: 0; transition: opacity 0.18s ease;
  font-size: 22px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.episode-row:hover .episode-row-play { opacity: 1; }

.episode-row-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
  justify-content: center;
}
.episode-row-badges {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.episode-row-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.episode-row-title {
  font-size: 14.5px; font-weight: 700;
  color: var(--text-0); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.episode-row-runtime {
  font-size: 11.5px; color: var(--text-2); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.episode-row-runtime::before {
  content: "â±"; font-size: 10px; opacity: 0.85;
}

.episode-row-playbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.14);
  color: var(--accent);
  border: 1px solid rgba(229, 9, 20, 0.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.18s ease;
}
.episode-row:hover .episode-row-playbtn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.5);
}
.episode-row-playbtn:hover { transform: scale(1.05); }

@media (max-width: 640px) {
  .episode-row { padding: 8px 12px 8px 8px; gap: 10px; min-height: 64px; }
  .episode-row-thumb { width: 110px; height: 64px; }
  .episode-row-playbtn { width: 34px; height: 34px; }
  .episode-row-title { font-size: 13px; }
}

@media (max-width: 900px) {
  .sidebar-toggle { display: inline-flex; }
  .sidebar { position: fixed; z-index: 500; transform: translateX(-100%); transition: transform 0.2s; height: 100vh; box-shadow: 8px 0 32px rgba(0,0,0,0.45); }
  .sidebar.open { transform: translateX(0); }
  .search { min-width: 0; flex: 1; }
  .breadcrumb small { display: none; }
}


/* ─── Continuar viendo ─── */
.continue-watching-row { margin-bottom: 18px; }
.continue-watching-scroller {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.continue-watching-scroller::-webkit-scrollbar { height: 6px; }
.continue-watching-scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.continue-card {
  flex: 0 0 220px; min-width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: all 0.18s ease;
  font: inherit;
  color: inherit;
}
.continue-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.2);
}
.continue-card-poster {
  position: relative; aspect-ratio: 2/3; background: var(--bg-1);
  overflow: hidden;
}
.continue-card-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.continue-card:hover .continue-card-poster img { transform: scale(1.05); }
.continue-card-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  opacity: 0; transition: opacity 0.18s ease;
}
.continue-card:hover .continue-card-play { opacity: 1; }
.continue-card-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: rgba(0,0,0,0.55);
}
.continue-card-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff4d57);
  transition: width 0.3s ease;
}
.continue-card-meta { padding: 10px 12px; }
.continue-card-title {
  font-size: 13px; font-weight: 700; color: var(--text-0);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.continue-card-progress {
  font-size: 11px; color: var(--text-2); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.novel-chapter-filter-wrap { margin: 0 0 16px; }
.novel-chapter-filter {
  position: relative;
}
.novel-chapter-filter-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
}
.novel-chapter-filter input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-0);
  font-size: 14px;
}
.novel-chapter-filter input:focus {
  outline: none;
  border-color: rgba(229, 9, 20, 0.45);
}

.home-row-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.home-row-sub {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}
.recent-done-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: #ffcc00;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 12px;
  width: 100%;
}
.history-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  width: 100%;
}
.history-card-thumb {
  position: relative;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--bg-1);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2/3;
  cursor: pointer;
  display: block;
}
.history-card-thumb-channel {
  aspect-ratio: 16/9;
  min-height: 100px;
  background: #0a0a0e;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.history-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-card-thumb-channel img {
  object-fit: contain;
  background: #0a0a0e;
}
.history-card-thumb .continue-card-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.history-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  color: #ffcc00;
  font-size: 28px;
  font-weight: 800;
}
.history-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 6px;
}
.history-card-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.history-card-status {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.history-card-play {
  font-size: 13px;
  padding: 8px 16px;
}
@media (max-width: 640px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-card { grid-template-columns: 100px 1fr; gap: 10px; }
}


/* ─── Banner "Visto recientemente" (estilo hero full-width) ─── */
.recent-watched-row { margin-bottom: 18px; }

/* Fade-in suave cuando el banner se inserta/re-renderiza. Evita el
   parpadeo de "se quita y se pone" cuando refreshHomeDynamicSections
   actualiza la sección cada 30s. */
@keyframes recent-row-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.recent-watched-row:not([data-head-key]) {
  animation: recent-row-fade-in 0.25s ease-out;
}
.recent-banner {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 0;
  margin: 0 0 14px 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  isolation: isolate;
}
.recent-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.15);
  z-index: 0;
}
.recent-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.recent-banner-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0) 100%
  ), linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 50%
  );
}
.recent-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 28px 36px;
  max-width: 65%;
}
.recent-banner-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.recent-banner-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 14px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-banner-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.recent-banner-time { color: rgba(255, 255, 255, 0.7); }
.recent-banner-pct { color: var(--accent); font-weight: 800; }
.featured-badge {
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.featured-badge-done {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.recent-banner-progress {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.recent-banner-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff4d57);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.recent-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.recent-banner-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 22px;
  border-radius: 8px;
  transition: all 0.18s ease;
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
}
.recent-banner:hover .recent-banner-play {
  background: #ff1a25;
  transform: scale(1.03);
}
.recent-banner-info {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.18s ease;
}
.recent-banner:hover .recent-banner-info {
  background: rgba(255, 255, 255, 0.22);
}
.recent-rest-head {
  display: flex;
  align-items: center;
  font-size: 17px !important;
  font-weight: 800;
  color: var(--text-0) !important;
  text-transform: none;
  letter-spacing: 0;
  margin: 18px 0 12px 0;
  gap: 8px;
}
.recent-rest-head .accent-dot {
  flex-shrink: 0;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
@media (max-width: 720px) {
  .recent-banner { height: 280px; }
  .recent-banner-content { max-width: 100%; padding: 18px 22px; }
  .recent-banner-title { font-size: 24px; }
  .recent-banner-progress { width: 100%; }
}


/* ─── "VER TODO" sticky al final de cada row de catálogo ─── */
/* Truco: el row reserva 176px a la derecha (160 ancho + 16 gap),
   y el see-all-card se posiciona absolute al borde derecho del wrapper,
   manteniéndose siempre visible. */
.section.row-section .row-wrapper { position: relative; }
.section.row-section .row {
  padding-right: 176px !important; /* espacio reservado para el VER TODO */
}
.section.row-section .row-see-all-card {
  position: absolute !important;
  right: 4px !important;
  top: 4px !important;
  bottom: 14px !important;
  width: 160px !important;
  z-index: 5;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(255, 77, 87, 0.10));
  border: 1px dashed rgba(229, 9, 20, 0.45);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  transition: all 0.18s ease;
}
.section.row-section .row-see-all-card:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.32), rgba(255, 77, 87, 0.18));
  border-color: rgba(229, 9, 20, 0.75);
  transform: translateY(-2px);
}
.section.row-section .row-see-all-card .row-see-all-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.4);
}
.section.row-section .row-see-all-card .row-see-all-text {
  font-size: 13px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.section.row-section .row-see-all-card .row-see-all-count {
  font-size: 11px; color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
@media (max-width: 720px) {
  /* En mobile no forzamos sticky: el scroll es natural */
  .section.row-section .row { padding-right: 0 !important; }
  .section.row-section .row-see-all-card {
    position: relative !important;
    right: auto !important; top: auto !important; bottom: auto !important;
    margin-top: 10px;
  }
}

/* Login Firebase */
.auth-card {
  position: relative;
  max-width: 400px;
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, #1a1c28 0%, #12141c 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.auth-brand {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.auth-card h2 { margin: 0 0 8px; font-size: 26px; }
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: #9b9fb3; font-size: 18px; cursor: pointer;
}
.auth-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.auth-sub { color: var(--text-2); font-size: 14px; line-height: 1.45; margin: 0 0 22px; }
.auth-in-panel { text-align: center; }
.auth-in-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: 4px auto 14px;
  background: linear-gradient(135deg, #e50914, #ff3d4a);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.auth-in-name { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.auth-in-sub { color: var(--text-2); font-size: 13px; margin: 0 0 8px; }
.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  background: #fff; color: #1f1f1f; border: 0; font-size: 15px; font-weight: 700;
}
.auth-google:hover { filter: brightness(0.95); }
.auth-google:disabled { opacity: 0.6; cursor: wait; }
.auth-google-icon { display: flex; }
.auth-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: #6b6f82; font-size: 12px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-full { width: 100%; margin-top: 18px; justify-content: center; }
.auth-card .id-card input {
  margin-top: 6px; margin-bottom: 2px;
}
.auth-switch {
  text-align: center; margin: 18px 0 6px; color: var(--text-2); font-size: 14px;
}
.auth-switch-btn {
  background: none; border: 0; color: #fff; font-weight: 800; cursor: pointer;
  font-size: 14px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px;
}
.auth-switch-btn:hover { color: var(--accent); }
.auth-guest {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: none; border: 0; color: #6b6f82; cursor: pointer; font-size: 13px;
}
.auth-guest:hover { color: #fff; }
#auth-in-panel .profile-editor-actions { justify-content: center; }
