:root {
  /* 1. DARK COLOR SYSTEM */
  --bg-primary: #08111F;
  --bg-header: #091321;
  --bg-card: #0E1929;
  --bg-card-hover: #111D2E;
  --bg-elevated: #142238;

  --border: #1D2A3D;
  --border-hover: #2A3B55;
  --border-input: #24344B;
  --border-ad: #162337;

  --text-primary: #F8FAFC;
  --text-heading: #F1F5F9;
  --text-body: #CBD5E1;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-small: #7F8DA3;
  --text-ad: #475569;

  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --cyan: #38BDF8;

  --gold: #FBBF24;

  --red: #EF4444;
  --red-hover: #F05252;
  --green: #16A34A;
  --green-hover: #22C55E;

  --button-read: #2563EB;
  --button-read-hover: #3B82F6;

  /* Form & Verified elements */
  --bg-input: #0B1626;
  --accent-success: #10B981;
  --accent-success-bg: #064E3B;
  --accent-success-border: #047857;

  /* Typography */
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
}

/* GENERAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-primary);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* 3. NAVBAR */
header {
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
  height: 60px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.gr-logo {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.gr-logo .reads {
  background: linear-gradient(90deg, #38BDF8 0%, #60A5FA 55%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.gr-logo::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='gBack' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23002BE6'/%3E%3Cstop offset='100%25' stop-color='%23005CFF'/%3E%3C/linearGradient%3E%3ClinearGradient id='gPage' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23FFFFFF'/%3E%3Cstop offset='100%25' stop-color='%23E2EDFF'/%3E%3C/linearGradient%3E%3ClinearGradient id='gB' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23003DFF'/%3E%3Cstop offset='50%25' stop-color='%230080FF'/%3E%3Cstop offset='100%25' stop-color='%2300D2FF'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 45,30 C 37,24 28,18 24,18 C 19,18 16,23 16,29 L 16,71 C 16,77 19,82 24,82 C 28,82 37,76 45,80 Z' fill='url(%23gBack)'/%3E%3Cpath d='M 45,38 C 39,33 34,29 31,29 C 27,29 23,33 23,38 L 23,73 C 23,77 27,81 31,81 C 34,81 39,78 45,82 Z' fill='url(%23gPage)'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M 45,30 C 53,24 62,18 66,18 C 74,18 84,26 84,39 C 84,48 78,51 72,52 C 78,53 84,59 84,69 C 84,80 74,82 66,82 C 62,82 53,76 45,80 Z M 45,33 C 55,33 66,35 66,41 C 66,46 55,46 45,46 Z M 45,54 C 55,54 68,56 68,66 C 68,72 55,72 45,72 Z' fill='url(%23gB)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gr-logo:hover {
  color: var(--cyan);
  transform: translateY(-0.5px);
}

.gr-logo:hover::before {
  transform: scale(1.06) rotate(-2deg);
}

/* SEARCH IN HEADER */
.search-container {
  flex: 1;
  max-width: 500px;
  margin: 0 25px;
  position: relative;
}

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

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s ease;
}

.search-input-wrapper i:hover {
  color: var(--text-heading);
}

.search-bar {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  background-color: var(--bg-card);
  color: #D7DEE8;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.search-bar::placeholder {
  color: var(--text-muted);
}

.search-bar:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background-color: var(--bg-card);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 110;
  max-height: 280px;
  overflow-y: auto;
}

.search-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-body);
  transition: background-color 0.15s;
}

.search-item strong {
  color: var(--text-primary);
}

.search-item:hover {
  background-color: var(--bg-card-hover);
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--blue-light);
  text-decoration: none;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-header {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card-hover);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.avatar-header:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* MOBILE NAVIGATION */
.mobile-header-actions { display: none; }
.mobile-search-btn { display: none; }

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--bg-header);
  border-right: 1px solid var(--border);
  box-shadow: 6px 0 25px rgba(0, 0, 0, 0.6);
  z-index: 200;
  transition: left 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
  padding: 30px 20px;
  color: var(--text-body);
}

.mobile-nav-panel.open { left: 0; }

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 150;
  display: none;
}

.mobile-search-bar-row {
  display: none;
  background-color: var(--bg-header);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

/* 4. BOOK HERO & LAYOUT GRID (COMPACT + CLEAN + READABLE) */
.book-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  column-gap: 36px;
  row-gap: 20px;
  padding: 24px 0;
}

.left-column-wrapper {
  grid-column: 1;
  grid-row: 1 / span 9;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.grid-cover { display: flex; justify-content: center; width: 100%; }
.grid-sidebar-actions { width: 100%; flex: 1; }
.grid-header { grid-column: 2; grid-row: 1; }
.grid-description { grid-column: 2; grid-row: 2; }
.grid-genres { grid-column: 2; grid-row: 3; }
.grid-details { grid-column: 2; grid-row: 4; }
.grid-author { grid-column: 2; grid-row: 5; }
.grid-related { grid-column: 2; grid-row: 6; }
.grid-histogram { grid-column: 2; grid-row: 7; }
.grid-leave-review { grid-column: 2; grid-row: 8; }
.grid-reviews { grid-column: 2; grid-row: 9; }

/* 4. BOOK COVER */
.book-cover {
  width: 260px;
  height: 390px;
  border-radius: 6px 12px 12px 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.book-cover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* SIDEBAR ACTIONS (STICKY) */
.sidebar-actions-sticky {
  position: sticky;
  top: 75px;
  padding-top: 4px;
}

/* 6. CTA BUTTONS */
.shelf-btn-group {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.shelf-btn-group:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-shelf {
  flex: 1;
  background-color: var(--button-read);
  color: #FFFFFF !important;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.btn-shelf:hover {
  background-color: var(--button-read-hover);
}

.btn-shelf-dropdown {
  width: 48px;
  height: 52px;
  background-color: var(--button-read);
  color: #FFFFFF !important;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.btn-shelf-dropdown:hover {
  background-color: var(--button-read-hover);
}

.btn-download {
  width: 100%;
  border-radius: 10px;
  height: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--red);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.btn-download:hover {
  background-color: var(--red-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-listen {
  width: 100%;
  border-radius: 10px;
  height: 50px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--green);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.btn-listen:hover {
  background-color: var(--green-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ALSO AVAILABLE ON SECTION */
.available-on-section {
  margin-bottom: 14px;
  text-align: center;
  margin-top: 18px;
}

.available-on-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-small);
  margin-bottom: 10px;
  font-family: var(--font-sans);
  opacity: 0.85;
}

.available-on-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.store-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.store-circle-btn:hover {
  transform: translateY(-2px);
  background-color: var(--bg-elevated);
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.store-circle-btn span {
  color: var(--text-body);
}

.store-circle-btn.amazon:hover svg text { fill: #FF9900; }
.store-circle-btn.amazon:hover svg path { stroke: #FF9900; }
.store-circle-btn.goodreads:hover span { color: var(--gold) !important; }
.store-circle-btn.google-books:hover span { color: var(--cyan) !important; }
.store-circle-btn.scribd:hover svg path { stroke: var(--cyan); }

/* RATING & INTERACTIVE BOX */
.rate-this-box {
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.rate-this-box p {
  font-size: 12px;
  color: var(--text-small);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-stars-interactive {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.rating-stars-interactive i {
  font-size: 20px;
  color: #334155;
  transition: color 0.15s, transform 0.1s;
  cursor: pointer;
}

.rating-stars-interactive i.hover,
.rating-stars-interactive i.active {
  color: var(--gold);
}

.btn-write-review, .btn-share {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 13px;
  background-color: var(--bg-card-hover);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.btn-write-review:hover, .btn-share:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* BADGES */
.edition-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.free-edition-badge {
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.verified-content-badge {
  background: var(--accent-success-bg);
  border: 1px solid var(--accent-success-border);
  color: var(--accent-success);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verified-check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background-color: var(--accent-success);
  border-radius: 50%;
  color: #064E3B;
  font-size: 9px;
}

/* 4. BOOK TITLE & HEADER AREA */
.book-title,
.grid-header .book-title,
h1.book-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: #F8FAFC;
  line-height: 1.25;
  margin-bottom: 6px;
}

.author-line {
  font-size: 16.5px;
  color: #94A3B8;
  margin-bottom: 14px;
}

.author-line a {
  font-weight: 500;
  color: #60A5FA;
}

.author-line a:hover {
  color: #93C5FD;
  text-decoration: underline;
}

/* 5. RATING AREA */
.ratings-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.stars-display {
  color: var(--gold);
  font-size: 14px;
  display: inline-flex;
  gap: 3px;
}

.average-rating {
  font-size: 20px;
  font-weight: 600;
  color: #F8FAFC;
}

.rating-muted {
  color: #94A3B8;
}

.rating-muted:hover {
  color: #60A5FA;
}

.bullet-separator {
  color: var(--border-hover);
}

/* 17. CARD HIERARCHY & GENERAL CARDS */
.description-container,
.genres-container,
.details-section,
.author-section,
.related-books-section,
.leave-review-card,
.reviews-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.description-container:hover,
.genres-container:hover,
.details-section:hover,
.author-section:hover,
.related-books-section:hover,
.leave-review-card:hover,
.reviews-section:hover {
  border-color: var(--border-hover);
}

/* 7. OVERVIEW CARD */
.description-title,
.genres-title,
.author-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.description-text {
  font-size: 15.5px;
  line-height: 1.62;
  color: #CBD5E1;
  max-height: 84px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.3s ease;
  position: relative;
}

.description-text p {
  margin-bottom: 12px;
}

.description-text p:last-child {
  margin-bottom: 0;
}

.description-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(transparent, var(--bg-card));
  transition: opacity 0.3s;
}

.description-container.expanded .description-text {
  display: block;
  -webkit-line-clamp: unset;
  max-height: 1200px;
}

.description-container.expanded .description-text::after {
  opacity: 0;
  pointer-events: none;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #60A5FA;
  margin-top: 12px;
  transition: color 0.15s ease;
}

.btn-read-more:hover {
  color: #93C5FD;
}

/* 8. READING ACTIVITY CARD */
.reading-stats-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 12px 18px;
  align-items: center;
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  gap: 18px;
}

.stats-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 170px;
  padding: 2px 0;
}

.stats-group:first-child {
  border-right: 1px solid var(--border);
  padding-right: 18px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.stats-avatar-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.stats-avatar-item:not(:first-child) {
  margin-left: -13px;
}

.avatar-stack:hover .stats-avatar-item {
  transform: translateY(-2px);
}

.reading-stats-text {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.35;
}

.reading-stats-text strong {
  font-weight: 600;
  font-size: 15px;
  color: #E2E8F0;
}

/* 9. GENRE BADGES (MUTED COLOR PALETTE) */
.genres-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-pill {
  background-color: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #93C5FD;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.genre-pill:hover, .genre-pill.active {
  background-color: rgba(96, 165, 250, 0.2);
  border-color: #60A5FA;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Specific Genre Categories */
.genre-pill[href*="Fiction"], .genre-pill:contains("Fiction") {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #93C5FD;
}
.genre-pill[href*="Fantasy"], .genre-pill:contains("Fantasy") {
  background-color: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.28);
  color: #D8B4FE;
}
.genre-pill[href*="Romance"], .genre-pill:contains("Romance") {
  background-color: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.28);
  color: #FDA4AF;
}
.genre-pill[href*="Mystery"], .genre-pill:contains("Mystery") {
  background-color: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.28);
  color: #67E8F9;
}
.genre-pill[href*="Thriller"], .genre-pill:contains("Thriller") {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #FCA5A5;
}
.genre-pill[href*="Young Adult"], .genre-pill:contains("Young Adult") {
  background-color: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.28);
  color: #5EEAD4;
}
.genre-pill[href*="Ebooks"], .genre-pill:contains("Ebooks") {
  background-color: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: #CBD5E1;
}

/* 10. BOOK DETAILS & EDITIONS */
.details-section h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 14px;
}

.details-table td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #E2E8F0;
  font-weight: 500;
  line-height: 1.5;
}

.details-table td.label {
  font-weight: 500;
  color: #94A3B8;
  width: 155px;
}

/* 11. ABOUT THE AUTHOR */
.author-container {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.author-meta-right { flex: 1; }

.author-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.author-name-row h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: #F8FAFC;
}

.btn-follow-author {
  background-color: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue-light);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 15px;
  border-radius: 16px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-follow-author:hover, .btn-follow-author.following {
  background-color: var(--blue);
  color: #FFFFFF !important;
}

.author-stats {
  font-size: 12.5px;
  color: #64748B;
  margin-bottom: 8px;
  font-weight: 500;
}

.author-bio {
  font-size: 14.5px;
  line-height: 1.55;
  color: #CBD5E1;
}

/* 12. MORE LIKE THIS / SIMILAR BOOKS */
.related-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.related-section-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
}

.btn-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
}

.btn-see-all:hover {
  color: var(--cyan);
}

.related-books-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.related-card {
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-cover-visual {
  width: 100%;
  aspect-ratio: 1 / 1.5;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.25s;
}

.related-card:hover .related-cover-visual {
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border-color: var(--border-hover);
}

.related-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  transition: color 0.15s;
}

.related-card:hover .related-card-title {
  color: #60A5FA;
}

.related-card-author {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 3px;
}

.related-card-rating {
  font-size: 11.5px;
  color: #FBBF24;
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-card-rating span {
  color: #7F8DA3;
}

/* 13. RATINGS & HISTOGRAM */
.histogram-section {
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

.histogram-section h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 15px;
}

.histogram-flex {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.histogram-grid {
  flex: 1;
  min-width: 250px;
}

.histogram-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 8px;
  color: #94A3B8;
}

.histogram-row .label-star {
  min-width: 45px;
  text-align: right;
  font-weight: 500;
  color: #CBD5E1;
}

.histogram-bar-bg {
  flex: 1;
  height: 10px;
  background-color: #172438;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.histogram-bar-fill {
  height: 100%;
  background-color: #FBBF24;
  border-radius: 6px;
  transition: width 0.8s ease;
}

.histogram-pct {
  min-width: 44px;
  text-align: right;
  font-weight: 500;
  color: #94A3B8;
}

.score-emphasis-box {
  text-align: center;
  min-width: 160px;
  padding: 18px 20px;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-emphasis-box .score-val {
  font-size: 44px;
  font-weight: 800;
  color: #F8FAFC;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.score-emphasis-box .stars-display {
  font-size: 16px;
  color: #FBBF24;
  margin-bottom: 4px;
}

/* 14. WRITE A REVIEW & COMMUNITY REVIEWS */
.leave-review-card textarea {
  background-color: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: #E2E8F0 !important;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  font-size: 14px;
  line-height: 1.5;
}

.leave-review-card textarea:focus {
  border-color: var(--blue) !important;
}

.leave-review-card textarea::placeholder {
  color: #64748B;
}

.leave-review-card button.btn-submit-review {
  background-color: var(--button-read);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 6px;
  padding: 8px 18px;
  transition: background-color 0.2s;
}

.leave-review-card button.btn-submit-review:hover {
  background-color: var(--button-read-hover);
}

.review-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

#reviewSortSelect {
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-body);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  outline: none;
}

#reviewSortSelect:focus {
  border-color: var(--blue);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  transition: all 0.2s;
}

.review-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border-color: var(--border-hover);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: top;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.reviewer-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-heading);
}

.reviewer-name {
  font-weight: 600;
  color: #F1F5F9;
  font-size: 14.5px;
}

.reviewer-meta {
  font-size: 11.5px;
  color: #64748B;
}

.review-stars {
  color: #FBBF24;
  font-size: 12px;
  margin-top: 3px;
}

.review-body {
  font-size: 14px;
  line-height: 1.55;
  color: #CBD5E1;
  margin-bottom: 12px;
  word-break: break-word;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.btn-helpful {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 14px;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}

.btn-helpful:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-helpful.active {
  background-color: var(--blue);
  color: white;
  border-color: var(--blue);
}

#btnLoadMoreReviews {
  background-color: var(--bg-card-hover) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-body) !important;
  border-radius: 20px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.2s;
}

#btnLoadMoreReviews:hover {
  background-color: var(--bg-elevated) !important;
  border-color: var(--border-hover) !important;
  color: var(--text-primary) !important;
}

/* AUDIOBOOK WIDGET */
.audiobook-player-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 320px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
  padding: 16px;
  z-index: 550;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.audiobook-player-widget.active {
  display: flex;
  animation: slideInUp 0.30s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.audio-header h4 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.audio-close-btn {
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.2s;
}

.audio-close-btn:hover {
  color: var(--text-primary);
}

.audio-book-details {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-card-hover);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.audio-mini-cover {
  width: 32px;
  height: 48px;
  background-color: var(--blue);
  color: white;
  border-radius: 3px;
  font-size: 8px;
  padding: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.audio-info {
  flex: 1;
  min-width: 0;
}

.audio-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.audio-author {
  font-size: 10.5px;
  color: var(--text-small);
}

.audio-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin: 4px 0;
}

.wave-bar {
  width: 3px;
  height: 10px;
  background-color: var(--cyan);
  border-radius: 12px;
  transform-origin: bottom;
  transition: height 0.15s ease;
}

.wave-bar.active-animating {
  animation: audioWaveChange 0.7s ease-in-out infinite alternate;
}

@keyframes audioWaveChange {
  0% { height: 6px; transform: scaleY(0.6); }
  100% { height: 26px; transform: scaleY(1.3); }
}

.audio-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.audio-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-timeline {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
}

.audio-time-label {
  font-size: 10px;
  font-family: var(--font-sans);
  color: var(--text-small);
  width: 32px;
  text-align: center;
}

.audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.audio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-body);
  transition: all 0.2s;
}

.audio-btn:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.audio-btn.primary {
  width: 40px;
  height: 40px;
  background-color: var(--blue);
  color: white;
  font-size: 15px;
  border: none;
}

.audio-btn.primary:hover {
  background-color: var(--button-read-hover);
}

/* REVIEW MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: 15px;
}

.review-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  max-width: 550px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  font-size: 20px;
  color: var(--text-secondary);
  background: none;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-star-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-star-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-stars { display: flex; gap: 6px; }

.modal-stars i {
  font-size: 24px;
  color: #334155;
  cursor: pointer;
  transition: color 0.1s;
}

.modal-stars i.filled { color: var(--gold); }

.modal-input {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-input);
  color: #E2E8F0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.modal-input:focus { border-color: var(--blue); }

.modal-actions {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 12px;
}

.btn-modal-cancel {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

.btn-modal-cancel:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-modal-submit {
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  background: var(--blue);
  color: white;
}

.btn-modal-submit:hover { background-color: var(--button-read-hover); }

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  z-index: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-container.active { transform: translateX(-50%) translateY(0); }
.toast-container i { color: var(--cyan); font-size: 14px; }

/* FOOTER */
footer {
  background-color: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
  color: var(--text-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 36px;
}

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-heading);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col ul li a { color: var(--text-secondary); }
.footer-col ul li a:hover { color: var(--text-heading); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links { display: flex; gap: 18px; }
.social-links { display: flex; gap: 14px; font-size: 16px; }
.social-links a { color: var(--text-secondary); }
.social-links a:hover { color: var(--cyan); }

/* 15. ADVERTISEMENT / SPONSORED AREA */
.ad-outer-container {
  margin: 0px auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
  background: transparent;
}

.ad-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-ad);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ad-label::before, .ad-label::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  background-color: var(--border-ad);
}

.ad-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding: 0px;
  box-sizing: border-box;
}

/* RESPONSIVE DISPLAY UTILITIES FOR ADS */
.show-desktop-only { display: flex !important; }
.show-mobile-only { display: none !important; }

@media (max-width: 767px) {
  .show-desktop-only { display: none !important; }
  .show-mobile-only { display: flex !important; }
}

/* 20. RESPONSIVE MEDIA QUERIES */
@media (min-width: 1024px) and (max-width: 1279px) {
  .book-layout {
    grid-template-columns: 260px 1fr !important;
    column-gap: 24px !important;
    row-gap: 18px !important;
  }
  .left-column-wrapper {
    width: 260px !important;
  }
  .book-cover {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.5 !important;
  }
}

@media (max-width: 1023px) {
  .left-column-wrapper {
    display: contents !important;
  }
  .sidebar-actions-sticky {
    position: static !important;
  }
  .book-layout {
    display: flex !important;
    flex-direction: column !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 12px !important;
    gap: 20px !important;
  }

  .grid-cover { order: 1 !important; display: flex !important; justify-content: center !important; width: 100% !important; }
  .grid-header { order: 2 !important; text-align: center !important; width: 100% !important; }
  .grid-sidebar-actions { order: 3 !important; width: 100% !important; max-width: 450px !important; margin: 0 auto !important; }
  .grid-description { order: 4 !important; width: 100% !important; }
  .grid-genres { order: 5 !important; width: 100% !important; }
  .grid-details { order: 6 !important; width: 100% !important; }
  .grid-author { order: 7 !important; width: 100% !important; }
  .grid-related { order: 8 !important; width: 100% !important; }
  .grid-histogram { order: 9 !important; width: 100% !important; }
  .grid-leave-review { order: 10 !important; width: 100% !important; }
  .grid-reviews { order: 11 !important; width: 100% !important; }

  .book-title {
    text-align: center !important;
    font-size: 28px !important;
    padding: 0 8px !important;
    margin-bottom: 6px !important;
  }
  .author-line {
    text-align: center !important;
    font-size: 15.5px !important;
    margin-bottom: 10px !important;
  }
  .ratings-row {
    justify-content: center !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    margin-bottom: 14px !important;
  }
  .edition-badge-row {
    justify-content: center !important;
  }
  .book-cover {
    width: 220px !important;
    height: 330px !important;
    min-height: 330px !important;
    margin: 0 auto !important;
  }
  .genres-list {
    justify-content: center !important;
    gap: 8px !important;
  }
  .genres-title {
    text-align: center !important;
    justify-content: center !important;
  }
  .histogram-section h3 {
    text-align: center !important;
  }
  .histogram-flex {
    flex-direction: column-reverse !important;
    gap: 20px !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .histogram-grid {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
  }
  .author-section-title {
    text-align: center !important;
    justify-content: center !important;
  }
  .author-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .author-avatar {
    margin: 0 auto !important;
  }
  .author-name-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .btn-follow-author {
    margin: 4px auto 0 auto !important;
  }
  .author-stats {
    text-align: center !important;
  }

  .grid-related {
    overflow: hidden !important;
  }
  .related-books-row {
    display: flex !important;
    overflow-x: auto !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 14px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none !important;
    grid-template-columns: unset !important;
  }
  .related-card {
    min-width: 115px !important;
    width: 115px !important;
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
  }
  .related-cover-visual {
    width: 100% !important;
    height: 165px !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px !important;
  }
  header {
    height: auto !important;
    padding: 10px 0 !important;
  }
  .header-flex {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-header-actions {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    grid-column: 1 !important;
  }
  .gr-logo {
    grid-column: 2 !important;
    display: block !important;
    justify-self: center !important;
    text-align: center !important;
  }
  .search-container { display: none !important; }
  .nav-links { display: none !important; }
  .nav-profile {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 12px !important;
    grid-column: 3 !important;
  }
  .mobile-menu-btn, .mobile-search-btn {
    display: block !important;
    font-size: 20px !important;
    color: var(--text-heading) !important;
    padding: 4px !important;
    background: none !important;
    border: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 22px !important;
  }
  .social-links {
    justify-content: center !important;
    gap: 16px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .footer-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px 15px !important;
  }
  .audiobook-player-widget {
    width: calc(100% - 32px);
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   21. SHARED STYLES FOR STATIC / LEGAL / CONTACT / 404 / HOME / BLOG PAGES
   ========================================================================== */

/* Legal & Static Content Pages */
.legal-wrapper {
  margin: 40px auto;
  max-width: 960px;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.legal-card h1 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-card .meta-date {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.legal-card h2 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-card h3 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-size: 17px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.legal-card p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-card strong {
  color: var(--text-primary);
}

.legal-card ul, .legal-card ol {
  margin-bottom: 20px;
  padding-left: 24px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.legal-card li {
  margin-bottom: 8px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.15s;
  text-decoration: none;
}

.btn-back:hover {
  color: var(--blue-light);
  text-decoration: none;
}

/* Contact & Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background-color: var(--bg-input);
  color: #E2E8F0;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-submit {
  background-color: var(--button-read);
  color: #ffffff;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background-color: var(--button-read-hover);
}

/* 404 Error Page */
.error-page-wrapper {
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 50px 30px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.error-code {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  background: linear-gradient(135deg, #38BDF8 0%, #60A5FA 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.error-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-body);
  max-width: 440px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* Home / Genres / Blog Shared Elements */
.hero-section {
  padding: 70px 0 54px;
  background: linear-gradient(180deg, #091321 0%, #08111F 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 80%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 58, 138, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #38BDF8;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-badge i {
  color: #F59E0B;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  max-width: 820px;
  margin: 0 auto 18px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-search-wrapper {
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  display: flex;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.12);
  border-radius: 36px;
  background: rgba(14, 25, 41, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.35);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.hero-search-wrapper:focus-within {
  border-color: #60A5FA;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 130, 246, 0.25);
}

.hero-search-wrapper input {
  flex: 1;
  padding: 16px 20px 16px 52px;
  border: none;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: #F8FAFC;
  font-family: var(--font-sans);
}

.hero-search-wrapper input::placeholder {
  color: #64748B;
}

.hero-search-wrapper i.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 18px;
}

.hero-search-wrapper button {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  color: white;
  font-weight: 700;
  padding: 0 32px;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.hero-search-wrapper button:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #2563EB 100%);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(20, 34, 56, 0.5);
  border: 1px solid rgba(45, 60, 80, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-item i {
  color: var(--cyan);
  font-size: 15px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  padding-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.btn-view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-light);
  background: rgba(20, 34, 56, 0.65);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-view-all:hover {
  background: var(--bg-elevated);
  border-color: rgba(96, 165, 250, 0.5);
  color: #FFFFFF;
  transform: translateX(3px);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-view-all i {
  font-size: 12px;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.btn-view-all:hover i {
  transform: translateX(2px);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

@media (max-width: 1100px) {
  .books-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 38px;
  }
}

.book-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 20, 35, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  position: relative;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.45);
  background-color: var(--bg-card-hover);
}

.book-cover-img {
  width: 100%;
  aspect-ratio: 1 / 1.48;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-left: 3px solid rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

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

.book-card .book-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.book-card:hover .book-title {
  color: #60A5FA;
}

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

.book-rating {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-rating span {
  color: var(--text-muted);
  font-size: 11px;
}

.btn-card-read {
  margin-top: auto;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-card-read:hover {
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #2563EB 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  color: #FFFFFF;
  text-decoration: none;
}

/* Genre Cards & Section */
.genres-section {
  padding: 64px 0;
  background: linear-gradient(180deg, #091321 0%, #08111F 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 50px 0;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .genres-grid {
    grid-template-columns: 1fr;
  }
}

.genre-card {
  background: linear-gradient(135deg, rgba(14, 25, 41, 0.9) 0%, rgba(20, 34, 56, 0.7) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.genre-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.45);
  background-color: var(--bg-card-hover);
  text-decoration: none;
}

.genre-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 34, 56, 0.85);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(45, 60, 80, 0.7);
  transition: all 0.2s ease;
}

.genre-card:hover .genre-icon-box {
  background: rgba(30, 58, 138, 0.4);
  color: #38BDF8;
  border-color: #60A5FA;
  transform: scale(1.08);
}

.genre-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  transition: color 0.2s ease;
}

.genre-card:hover .genre-info h4 {
  color: #60A5FA;
}

.genre-info p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Features Benefit Section */
.features-section {
  background: linear-gradient(135deg, rgba(14, 25, 41, 0.95) 0%, rgba(20, 34, 56, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px 40px;
  margin-top: 36px;
  margin-bottom: 56px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: center;
}

@media (max-width: 850px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .features-section {
    padding: 36px 24px;
  }
}

.feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20, 34, 56, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-box:hover .feature-icon-wrap {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.feature-box h4 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

/* ==========================================================================
   BLOG PAGE & READING GUIDES
   ========================================================================== */

.blog-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  position: relative;
}

.blog-header .page-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-header .page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Featured Article Hero */
.featured-article {
  background: linear-gradient(135deg, rgba(14, 25, 41, 0.95) 0%, rgba(20, 34, 56, 0.85) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 44px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(12px);
}

.featured-article:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 20px rgba(37, 99, 235, 0.18);
  transform: translateY(-3px);
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  background: #091321;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-article:hover .featured-img {
  transform: scale(1.05);
}

.featured-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #38BDF8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.featured-tag i {
  font-size: 11px;
  color: #F59E0B;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.32;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}

.featured-article:hover .featured-title {
  color: #60A5FA;
}

.featured-excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 60, 80, 0.6);
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-meta i {
  color: var(--cyan);
  font-size: 13px;
}

@media (max-width: 900px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-img-wrap {
    height: 240px;
    min-height: 240px;
  }
  .featured-body {
    padding: 26px 24px;
  }
  .featured-title {
    font-size: 22px;
  }
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
  margin-bottom: 44px;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.article-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(10, 20, 35, 0.96) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(37, 99, 235, 0.15);
  background-color: var(--bg-card-hover);
}

.article-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #070e1a;
}

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img {
  transform: scale(1.06);
}

.article-content {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 4px 10px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .article-title {
  color: #60A5FA;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 60, 80, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.article-card:hover .article-read-more {
  color: #38BDF8;
  transform: translateX(3px);
}

/* Newsletter Widget Card */
.newsletter-card {
  background: linear-gradient(135deg, rgba(20, 34, 56, 0.95) 0%, rgba(14, 25, 41, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  padding: 44px 36px;
  text-align: center;
  max-width: 820px;
  margin: 40px auto 36px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 99, 235, 0.12);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8 0%, #3B82F6 50%, #818CF8 100%);
}

.newsletter-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.newsletter-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 260px;
  padding: 13px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-input);
  background: rgba(8, 17, 31, 0.85);
  color: #F1F5F9;
  font-size: 14.5px;
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.newsletter-form input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #08111F;
}

.newsletter-form button {
  padding: 13px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid #60A5FA;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #2563EB 100%);
}

@media (max-width: 600px) {
  .newsletter-card {
    padding: 30px 20px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form button {
    width: 100%;
  }
}

/* Category Filter Tabs & Badges */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.filter-chip:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  text-decoration: none;
}

.filter-chip.active {
  background-color: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 20px;
}

.page-btn {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-btn:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.page-btn.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

/* ==========================================================================
   22. GENRES PAGE: FILTER PILLS & CATEGORY SECTIONS
   ========================================================================== */

.filter-pills-row,
#filterPillsContainer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(14, 25, 41, 0.85) 0%, rgba(9, 19, 33, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: rgba(20, 34, 56, 0.65);
  border: 1px solid rgba(45, 60, 80, 0.7);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: nowrap;
  user-select: none;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.filter-pill i {
  font-size: 13px;
  color: var(--cyan);
  transition: transform 0.2s ease, color 0.2s ease;
  opacity: 0.85;
}

.filter-pill:hover {
  background: rgba(30, 58, 138, 0.35);
  color: #F8FAFC;
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.filter-pill:hover i {
  transform: scale(1.15);
  opacity: 1;
  color: #38BDF8;
}

.filter-pill.active {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF !important;
  border-color: #60A5FA;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
  font-weight: 700;
}

.filter-pill.active i {
  color: #FFFFFF !important;
  opacity: 1;
  transform: scale(1.08);
}

.category-block {
  margin-bottom: 48px;
  scroll-margin-top: 30px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.category-title i {
  color: var(--cyan);
  font-size: 20px;
}

.btn-view-more-sm {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  background: rgba(20, 34, 56, 0.6);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-view-more-sm:hover {
  background: var(--bg-elevated);
  border-color: var(--blue);
  color: #FFFFFF;
  transform: translateX(2px);
}

.view-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.btn-view-more {
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
}

.btn-view-more:hover {
  background: var(--bg-elevated);
  border-color: var(--blue);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.btn-view-more i {
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.btn-view-more:hover i {
  transform: translateY(2px);
}

