/**
 * RODAN.FUN — Audiobooks Studio & Cloud Player Stylesheet
 * Obsidian Glassmorphism, Specular Edge Reflections, Responsive Design
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-canvas: #090305;
  --bg-card-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 60%, rgba(0, 0, 0, 0.45) 100%);
  --bg-nav-glass: rgba(16, 7, 10, 0.78);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.48);
  --accent-rose: #E11D48;
  --accent-pink: #FF2E5B;
  --accent-purple: #A855F7;
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-hover: rgba(255, 255, 255, 0.35);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --card-radius: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 120px; /* Space for persistent bottom audio dock */
  -webkit-font-smoothing: antialiased;
}

/* AMBIENT BACKGROUND GLOW SPHERES */
.ambient-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #E11D48 0%, rgba(225, 29, 72, 0) 70%);
  top: -100px;
  left: -150px;
  animation: orbDrift1 22s infinite alternate ease-in-out;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #9333EA 0%, rgba(147, 51, 234, 0) 70%);
  bottom: -150px;
  right: -150px;
  animation: orbDrift2 26s infinite alternate ease-in-out;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 70%);
  top: 40%;
  left: 45%;
  animation: orbDrift3 18s infinite alternate ease-in-out;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 100px) scale(1.15); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -80px) scale(1.1); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(0.9); }
}

/* TOP NAVBAR */
.audio-nav {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: 1280px;
  margin: 0 auto 24px auto;
  padding: 0 16px;
}

.audio-nav-card {
  background: var(--bg-nav-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav-brand-pill {
  background: linear-gradient(135deg, #E11D48, #9333EA);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}

.nav-btn-primary {
  background: linear-gradient(135deg, #E11D48 0%, #A855F7 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}

.nav-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

/* MAIN CONTAINER */
.audio-main {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO SECTION */
.audio-hero {
  text-align: center;
  margin: 30px auto 35px auto;
  max-width: 820px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #FDA4AF;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-title span {
  background: linear-gradient(135deg, #FFFFFF 30%, #FDA4AF 70%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* GOOGLE DRIVE EXPLAINER BANNER */
.gdrive-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(147, 51, 234, 0.12) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--card-radius);
  padding: 20px 24px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.gdrive-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.gdrive-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  flex-shrink: 0;
}

.gdrive-banner-text h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.gdrive-banner-text p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* SEARCH & CATEGORY FILTER BAR */
.library-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

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

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 18px 14px 46px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #E11D48;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.25);
}

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

.category-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.category-chips-row::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cat-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: var(--glass-border-hover);
}

.cat-chip.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3) 0%, rgba(147, 51, 234, 0.3) 100%);
  border-color: #E11D48;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.25);
}

/* BOOKS GRID */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

/* INDIVIDUAL BOOK CARD */
.book-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  position: relative;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(225, 29, 72, 0.2);
}

.book-card.is-playing {
  border-color: #E11D48;
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.35);
}

.book-cover-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #15080C;
}

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

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

.book-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(9, 3, 5, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.book-category-tag {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #FDA4AF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #E11D48;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
  transition: all 0.2s ease;
  margin: auto;
}

.play-circle-btn:hover {
  transform: scale(1.1);
  background: #FF2E5B;
  box-shadow: 0 10px 28px rgba(255, 46, 91, 0.6);
}

.book-info-area {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #FFFFFF;
}

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

.book-meta-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.book-duration {
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-source-tag {
  color: #60A5FA;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.72rem;
}

/* PERSISTENT FLOATING AUDIO DOCK */
.audio-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 980px;
  background: rgba(18, 8, 12, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 999;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(225, 29, 72, 0.2);
  transition: all 0.3s ease;
}

.audio-dock.hidden {
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  max-width: 260px;
}

.dock-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #250910;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dock-details {
  overflow: hidden;
}

.dock-title {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #FFFFFF;
}

.dock-author {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 480px;
}

.dock-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.dock-ctrl-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.dock-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E11D48;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4);
  transition: all 0.2s ease;
}

.dock-play-btn:hover {
  transform: scale(1.08);
  background: #FF2E5B;
}

.dock-timeline-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

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

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #E11D48, #A855F7);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.1s linear;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dock-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* MODAL STYLES (ADD BOOK & FULLSCREEN PLAYER) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #14070B;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  max-width: 540px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 29, 72, 0.2);
  transform: translateY(20px) scale(0.97);
  transition: all 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #FFFFFF;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #E11D48;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.25);
}

.modal-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #E11D48 0%, #A855F7 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
}

.modal-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .audio-dock {
    flex-wrap: wrap;
    padding: 12px 16px;
    bottom: 10px;
  }

  .dock-left {
    min-width: 0;
    max-width: none;
    flex: 1;
  }

  .dock-right {
    display: none;
  }

  .dock-center {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .gdrive-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* GUIDE STEPS & HELPER STYLES */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0;
}

.guide-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 16px;
}

.guide-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E11D48, #A855F7);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.guide-step-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.guide-step-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.guide-step-body code {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.76rem;
  color: #60A5FA;
  word-break: break-all;
}

.pro-tip-box {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pro-tip-box svg {
  color: #FDA4AF;
  flex-shrink: 0;
  margin-top: 2px;
}

.pro-tip-box p {
  font-size: 0.82rem;
  color: #FCE7F3;
  line-height: 1.4;
}

/* TIMER OPTIONS GRID */
.timer-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.timer-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timer-opt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.timer-opt-btn.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.25), rgba(168, 85, 247, 0.25));
  border-color: #E11D48;
  color: #FDA4AF;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.3);
}

/* EQUALIZER ANIMATION ON CARD */
.equalizer-anim {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-left: 6px;
}

.eq-bar {
  width: 3px;
  background: #FDA4AF;
  border-radius: 2px;
  animation: eqBounce 1s infinite ease-in-out;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

/* CARD REMOVE BUTTON */
.card-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.2s ease;
}

.book-card:hover .card-remove-btn {
  opacity: 1;
}

.card-remove-btn:hover {
  background: #DC2626;
  color: #FFFFFF;
  transform: scale(1.1);
}

/* EMPTY STATE */
.empty-library-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--glass-border);
  border-radius: var(--card-radius);
}

.empty-library-state svg {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.empty-library-state h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.empty-library-state p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  max-width: 440px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

