:root {
  --bg-canvas: #050811;
  --bg-card: rgba(13, 20, 36, 0.72);
  --bg-card-hover: rgba(19, 29, 53, 0.85);
  --border-hairline: 1px solid rgba(255, 255, 255, 0.08);
  --border-focus: 1px solid rgba(255, 255, 255, 0.2);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Dynamic White-Label Variables */
  --brand-primary: #00e599;
  --brand-glow: rgba(0, 229, 153, 0.2);
  --brand-dark: rgba(0, 229, 153, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  padding-bottom: 140px; /* Espaço para o player fixo */
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--brand-glow), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.5), transparent 50%);
  background-attachment: fixed;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Container Principal */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Barra Superior */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: var(--border-hairline);
  margin-bottom: 32px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-dark);
  border: 1px solid var(--brand-primary);
  border-radius: 12px;
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 0 20px var(--brand-glow);
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Seletor de Tenant (White-Label Tester) */
.tenant-pill-select {
  background: rgba(15, 23, 42, 0.8);
  border: var(--border-hairline);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tenant-pill-select select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.tenant-pill-select select option {
  background: #0d1424;
  color: #fff;
}

.badge-tag {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.badge-wl {
  background: var(--brand-dark);
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.badge-pro {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Banner: Continuar de Onde Parou */
.resume-banner {
  display: none; /* Ativado via JS */
  background: linear-gradient(90deg, rgba(13, 20, 36, 0.95), rgba(20, 31, 56, 0.85));
  border: 1px solid var(--brand-primary);
  box-shadow: 0 4px 20px var(--brand-glow);
  border-radius: 14px;
  padding: 16px 24px;
  margin-bottom: 32px;
  align-items: center;
  justify-content: space-between;
}

.resume-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.resume-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-dark);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-text h4 {
  font-size: 14px;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.resume-text p {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

.btn-resume {
  background: var(--brand-primary);
  color: #050811;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-resume:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Filtros & Barra de Navegação */
.nav-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  background: rgba(15, 23, 42, 0.6);
  border: var(--border-hairline);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pill-btn.active {
  background: var(--brand-primary);
  color: #050811;
  font-weight: 700;
  border-color: var(--brand-primary);
}

.tier-pills {
  display: flex;
  gap: 8px;
}

.tier-btn {
  background: rgba(15, 23, 42, 0.6);
  border: var(--border-hairline);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Grid de Livros */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: var(--border-hairline);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.book-card.is-plr {
  border-left: 3px solid #f59e0b;
}

.card-cover-wrap {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .card-cover {
  transform: scale(1.05);
}

.card-top-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.book-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.book-author {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.book-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: var(--border-hairline);
}

.book-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play-card {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #050811;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-play-card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--brand-glow);
}

/* =========================================
   PLAYER FLUTUANTE INFERIOR
   ========================================= */
.floating-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 12, 22, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 28px;
  z-index: 100;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: none; /* Exibido ao dar play */
}

.player-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  gap: 24px;
}

@media (max-width: 900px) {
  .player-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .player-side-right {
    display: none;
  }
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: var(--border-hairline);
}

.player-texts h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-texts p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Centro: Controles & Barra */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-ctrl {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  color: #fff;
}

.btn-skip {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.btn-play-main {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #050811;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px var(--brand-glow);
  transition: all 0.2s;
}

.btn-play-main:hover {
  transform: scale(1.06);
}

/* Barra de Progresso */
.progress-bar-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-stamp {
  font-size: 11px;
  color: var(--text-dim);
  min-width: 42px;
}

.progress-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  width: 0%;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--brand-primary);
  border-radius: 3px;
  width: 0%;
}

/* Lado Direito: Velocidade & Capítulos */
.player-side-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.speed-badge {
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-hairline);
  color: #fff;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.speed-badge:hover {
  background: var(--brand-dark);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-chapters-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-hairline);
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-chapters-toggle:hover {
  color: #fff;
}

/* Drawer / Modal de Capítulos */
.chapters-drawer {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-height: 400px;
  background: rgba(13, 20, 36, 0.98);
  backdrop-filter: blur(20px);
  border: var(--border-hairline);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  padding: 18px;
  z-index: 101;
  overflow-y: auto;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text-muted);
}

.chapter-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.chapter-item.active {
  background: var(--brand-dark);
  color: var(--brand-primary);
  font-weight: 700;
}

/* Modal de Upgrade Pro (PLR Gate) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #0d1424;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.15);
}

.modal-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.modal-card h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}

.modal-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-upgrade {
  background: #f59e0b;
  color: #050811;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upgrade:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-close-modal {
  background: transparent;
  border: var(--border-hairline);
  color: var(--text-dim);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* ==========================================================================
   ⭐ SEÇÃO DESTAQUES DA SEMANA (WEEKLY SPOTLIGHT - TOP 5 PT & TOP 5 EN)
   ========================================================================== */
.featured-section {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.65) 0%, rgba(9, 14, 26, 0.45) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: radial-gradient(circle, var(--brand-primary) 0%, transparent 100%);
  opacity: 0.6;
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.featured-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.featured-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.featured-curation-pill {
  font-size: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.08em;
}

.featured-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.featured-tabs {
  display: flex;
  background: rgba(15, 23, 42, 0.8);
  border: var(--border-hairline);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
}

.feat-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
}

.feat-tab-btn:hover {
  color: #fff;
}

.feat-tab-btn.active {
  background: var(--brand-primary);
  color: #050811;
  box-shadow: 0 2px 10px var(--brand-glow);
}

/* Grid/Carousel dos Destaques */
.featured-carousel {
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

@media (max-width: 1100px) {
  .featured-carousel {
    grid-template-columns: repeat(5, 220px);
  }
}

.feat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--brand-glow);
}

.feat-rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.feat-card:first-child .feat-rank-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border-color: #fbbf24;
}

.feat-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feat-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.feat-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-card-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feat-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-btn-play {
  background: var(--brand-primary);
  color: #050811;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.feat-btn-play:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   🔍 BARRA DE BUSCA EM TEMPO REAL & AUTOCOMPLETE
   ========================================================================== */
.search-section {
  margin-bottom: 28px;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

#catalog-search {
  width: 100%;
  height: 48px;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 76px 0 46px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

#catalog-search:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 20px var(--brand-glow);
}

#catalog-search::placeholder {
  color: var(--text-dim);
}

.search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 7px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: #fff;
}

/* Dropdown de Sugestões Instantâneas */
.search-suggestions {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  background: #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  overflow: hidden;
}

.suggestions-header {
  padding: 10px 16px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.highlighted {
  background: rgba(255, 255, 255, 0.06);
}

.sugg-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sugg-thumb {
  width: 32px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  background: #1e293b;
  flex-shrink: 0;
}

.sugg-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sugg-author {
  font-size: 11px;
  color: var(--text-muted);
}

.sugg-btn-play {
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

/* Meta Bar: Tags Rápidas & Contador */
.search-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-tag-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-chip {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-results-count {
  font-size: 12px;
  color: var(--text-dim);
}

/* ==========================================================================
   📖 MOTOR DE CAPAS INTELIGENTES EM CSS PURO (CSS SMART BOOK COVERS)
   ========================================================================== */
.card-cover-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #090d18;
}

/* Capa Inteligente Vetorial em CSS */
.book-smart-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 16px 14px 22px;
  overflow: hidden;
  user-select: none;
  transition: transform 0.4s ease;
}

.book-card:hover .book-smart-cover {
  transform: scale(1.03);
}

/* Lombada Lateral 3D */
.book-smart-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.6) 100%);
  border-right: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 2px 0 4px rgba(0,0,0,0.4);
  z-index: 1;
}

/* Vinco Vertical Sutil */
.book-smart-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* Conteúdo da Capa CSS */
.cover-css-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}

.cover-css-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: auto 0;
  z-index: 2;
  letter-spacing: -0.01em;
}

.cover-css-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 6px;
}

.cover-css-author {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cover-css-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* Imagem Remota com Fade-in Suave */
.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 3;
}

.card-cover.loaded {
  opacity: 1;
}

/* ==========================================================================
   🔄 INFINITE SCROLL & SKELETON LOADERS
   ========================================================================== */
.scroll-sentinel {
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.book-card.fade-in {
  animation: fadeInCard 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
