:root {
  --font-family: 'Outfit', sans-serif;
  --bg-dark: #05091e;
  --bg-gradient: linear-gradient(150deg, #05091e 0%, #060c24 55%, #040810 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(147, 197, 253, 0.6);
  --accent-color: #93c5fd;
  --accent-secondary: #2563eb;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(191, 219, 254, 0.12);
  --hover-glow: rgba(37, 99, 235, 0.4);
  --transition-speed: 0.3s;
  --result-radius: 12px;
  --sidebar-width: 220px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  background: var(--bg-gradient);
  color: var(--text-primary);
}

/* Background: blobs + static star field */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-blobs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 22%, rgba(255, 255, 255, 0.5)  0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 14%, rgba(191, 219, 254, 0.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 32%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 58%, rgba(191, 219, 254, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 74% 62%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 48% 80%, rgba(191, 219, 254, 0.4)  0%, transparent 100%),
    radial-gradient(2px 2px at 91% 85%, rgba(255, 255, 255, 0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 6%  88%, rgba(191, 219, 254, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 46%, rgba(255, 255, 255, 0.3)  0%, transparent 100%);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #1e3a8a;
  opacity: 0.3;
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #312e81;
  opacity: 0.35;
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #0c4a6e;
  opacity: 0.3;
  top: 40%;
  left: 60%;
  animation-duration: 15s;
}

@keyframes float {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

/* ─── App Shell ────────────────────────────────────────────────────────────── */

.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ─── Sidebar ───────────────────────────────────────────────────────────────  */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  padding: 1.5rem 0.875rem;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.5rem 1.5rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0.75rem;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─── Feature Grid (Home) ───────────────────────────────────────────────────  */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.4rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card--active {
  cursor: pointer;
}

.feature-card--active:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.feature-card--soon {
  opacity: 0.6;
}

.feature-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(247, 37, 133, 0.12);
  border: 1px solid rgba(247, 37, 133, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.feature-icon--dim {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.feature-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.feature-status--active {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.feature-status--soon {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(247, 37, 133, 0.4);
  background: rgba(247, 37, 133, 0.1);
  color: var(--accent-color);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.feature-cta:hover {
  background: rgba(247, 37, 133, 0.2);
  border-color: rgba(247, 37, 133, 0.7);
}

/* ─── AI Teaser Card ────────────────────────────────────────────────────────  */

.ai-teaser-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(114, 9, 183, 0.08);
  border: 1px solid rgba(114, 9, 183, 0.2);
  backdrop-filter: blur(12px);
}

.ai-teaser-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(114, 9, 183, 0.2);
  border: 1px solid rgba(114, 9, 183, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(180, 100, 255, 0.9);
  flex-shrink: 0;
}

.ai-teaser-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.15rem;
}

.ai-teaser-card-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.4;
}

/* ─── Coming Soon View ──────────────────────────────────────────────────────  */

.coming-soon-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.coming-soon-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.5rem;
}

.coming-soon-view .page-title {
  margin-bottom: 0;
}

.coming-soon-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.coming-soon-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.coming-soon-features li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coming-soon-features li::before {
  content: '·';
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  line-height: 1;
}

.coming-soon-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* ─── Search Bar ────────────────────────────────────────────────────────────  */

.search-section {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-btn {
  position: absolute;
  left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 10;
  color: var(--text-secondary);
  transition: color var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--accent-color);
}

.search-icon {
  width: 20px;
  height: 20px;
}

#movie-search,
#movies-search-input {
  width: 100%;
  padding: 1.1rem 1.25rem 1.1rem 3.5rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: rgba(191, 219, 254, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed);
}

#movie-search::placeholder {
  color: rgba(191, 219, 254, 0.35);
}

#movie-search:focus {
  background: rgba(191, 219, 254, 0.08);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* ─── Results Bar ───────────────────────────────────────────────────────────  */

.results-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
  margin-bottom: 0.75rem;
  animation: fadeIn 0.3s ease-in-out;
}

#results-count {
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.35);
}

.text-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.text-btn:hover {
  color: var(--accent-color);
  background: rgba(147, 197, 253, 0.08);
}

/* ─── Results List ──────────────────────────────────────────────────────────  */

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  min-height: 100px;
  padding-bottom: 2rem;
}

/* Film Card */
.film-card {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--result-radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: slideIn 0.35s forwards ease-out;
  transition: background 0.2s, box-shadow 0.2s;
}

.film-card:hover {
  background: rgba(191, 219, 254, 0.06);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.film-card--removing {
  animation: slideOutLeft 0.38s forwards ease-in;
  pointer-events: none;
}

/* Spine color block */
.film-spine-block {
  width: 52px;
  min-width: 52px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.75rem;
}

.spine-number {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Film body */
.film-body {
  flex: 1;
  padding: 1rem 1.1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

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

.film-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0f4ff;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.film-director {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.film-meta {
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.3);
  letter-spacing: 0.3px;
}

.film-streaming {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

/* ─── Streaming Pills ───────────────────────────────────────────────────────  */

.streaming-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(147, 197, 253, 0.22);
  color: #bfdbfe;
  white-space: nowrap;
}

.streaming-pill--pending {
  color: rgba(191, 219, 254, 0.2);
  background: transparent;
  border-color: rgba(191, 219, 254, 0.07);
  font-weight: 400;
}

.streaming-pill--loading {
  color: rgba(191, 219, 254, 0.4);
  font-style: italic;
  background: transparent;
  border-color: rgba(191, 219, 254, 0.07);
  font-weight: 400;
}

.streaming-pill--empty {
  color: rgba(191, 219, 254, 0.2);
  background: transparent;
  border-color: rgba(191, 219, 254, 0.07);
  font-style: italic;
  font-weight: 400;
}

.streaming-pill--error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}

/* ─── Mark Watched Button ───────────────────────────────────────────────────  */

.mark-watched-btn {
  background: transparent;
  border: 1px solid rgba(191, 219, 254, 0.15);
  color: rgba(191, 219, 254, 0.3);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mark-watched-btn:hover {
  background: rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
  color: #2ecc71;
  transform: scale(1.1);
}

.mark-watched-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ─── Empty State ───────────────────────────────────────────────────────────  */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

.empty-subtitle {
  font-size: 1rem;
  color: rgba(191, 219, 254, 0.35);
}

/* ─── CTA Button ────────────────────────────────────────────────────────────  */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  background: var(--accent-secondary);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
  margin-top: 1.5rem;
}

.cta-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.55);
}

/* ─── Shuffle FAB ───────────────────────────────────────────────────────────  */

.shuffle-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent-secondary);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
  transition: transform 0.3s, box-shadow 0.2s;
  z-index: 100;
}

.shuffle-fab:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 6px 28px rgba(37, 99, 235, 0.7);
}

/* ─── Mobile Bottom Nav ─────────────────────────────────────────────────────  */

.bottom-nav {
  display: none;
}

/* ─── Animations ────────────────────────────────────────────────────────────  */

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Shared search input (books + criterion) ───────────────────────────────  */

.search-input {
  width: 100%;
  padding: 1.1rem 2.75rem 1.1rem 3.5rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-speed);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 4px rgba(114, 9, 183, 0.2), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.search-clear-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Books Filter Tabs ─────────────────────────────────────────────────────  */

.books-tabs {
  display: flex;
  gap: 0.25rem;
}

.books-tab {
  background: none;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.18s;
}

.books-tab:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.books-tab--active {
  background: rgba(247, 37, 133, 0.13);
  border-color: rgba(247, 37, 133, 0.25);
  color: var(--accent-color);
}

/* ─── Books Search Results ──────────────────────────────────────────────────  */

.books-search-results {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--result-radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.books-search-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-result-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.book-result-card:last-child {
  border-bottom: none;
}

.book-result-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.book-result-cover-wrap {
  width: 36px;
  min-width: 36px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.book-result-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-result-body {
  flex: 1;
  min-width: 0;
}

.book-result-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-result-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-add-btn {
  background: rgba(247, 37, 133, 0.1);
  border: 1px solid rgba(247, 37, 133, 0.35);
  color: var(--accent-color);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.book-add-btn:hover:not(:disabled) {
  background: rgba(247, 37, 133, 0.25);
  transform: scale(1.1);
}

.book-add-btn--added {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.35);
  color: #2ecc71;
  font-size: 0.9rem;
}

.book-add-btn:disabled {
  cursor: default;
}

/* ─── Book Card (Library) ───────────────────────────────────────────────────  */

.book-card {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--result-radius);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: slideIn 0.35s forwards ease-out;
  transition: background 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

.book-cover-block {
  width: 56px;
  min-width: 56px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-cover-fallback {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-secondary), #3a0ca3);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-height: 72px;
}

.book-cover-fallback--sm {
  width: 36px;
  height: 52px;
  border-radius: 4px;
  font-size: 0.65rem;
}

/* ─── Book Status ───────────────────────────────────────────────────────────  */

.book-status-row {
  margin-top: 0.5rem;
}

.book-status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.book-status-pill--unread {
  background: rgba(114, 9, 183, 0.15);
  border: 1px solid rgba(114, 9, 183, 0.3);
  color: rgba(180, 100, 255, 0.9);
}

.book-status-pill--read {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #2ecc71;
}

.film-title--read {
  opacity: 0.55;
}

.mark-watched-btn--done {
  background: rgba(46, 204, 113, 0.2) !important;
  border-color: #2ecc71 !important;
  color: #2ecc71 !important;
}

/* ─── Responsive ────────────────────────────────────────────────────────────  */

@media (max-width: 768px) {
  html, body {
    overflow: hidden;
  }

  .app-shell {
    flex-direction: column;
    height: calc(100vh - 64px);
  }

  .sidebar {
    display: none;
  }

  .main-content {
    padding: 1.5rem 1.25rem 1.5rem;
    height: 100%;
    overflow-y: auto;
  }

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

  .page-title {
    font-size: 1.6rem;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 12, 41, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 200;
    align-items: stretch;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.18s;
    padding: 0.5rem 0.25rem;
  }

  .bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.75);
  }

  .bottom-nav-item.active {
    color: var(--accent-color);
  }

  .shuffle-fab {
    bottom: 4.75rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
}
