/* ================================================================
   ROOT THEME
   ================================================================ */
:root {
  --bg: #0d0a08;
  --bg2: #1c1410;
  --surface: #1c1410;
  --surface2: #120202;
  --border: #2e2018;
  --border2: #252d3a;
  --gold: #c9943a;
  --gold-light: #e8b96a;
  --gold-glow: rgba(201,148,58,0.18);
  --gold-dim: #f3b54f;
  --crimson: #8b1f2f;
  --teal: #1a8a7a;
  --cream: #eee6d0;
  --cream-dim: #ede1c7;
  --text: #d8ccb4;
  --text-dim: #d1cfcf;
  --mega-bg: #0e1118;
  --font-display: 'Cormorant Garamond', serif;
  --font-tamil: 'Noto Serif Tamil', serif;
  --font-body: 'Outfit', sans-serif;
  --font-reader: 'Merriweather', serif;
  --nav-h: 64px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding-top: var(--nav-h);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
.hidden { display: none !important; }

/* Grain texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ================================================================
   HEADER / NAV
   ================================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(7,8,10,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.logo img { height: 52px; }
.nav-bar { display: flex; align-items: center; gap: 0.05rem; }
.nav-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.65rem; background: none; border: none;
  color: var(--cream-dim); font-family: var(--font-body); font-size: .9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: color 0.2s; border-radius: 3px; white-space: nowrap;
}
.nav-btn:hover, .nav-btn.active { color: var(--gold-light); }
.nav-btn .fa-caret-down { font-size: 0.5rem; opacity: 0.5; transition: transform 0.2s; }
.nav-btn.active .fa-caret-down { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.social-icon { color: var(--text-dim); font-size: 1rem; transition: color 0.2s; }
.social-icon:hover { color: #1877f2; }
.nav-cta {
  padding: 0.4rem 1rem; border: 1px solid var(--gold-dim);
  color: var(--gold-light); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: all 0.2s; border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

/* ================================================================
   MEGA MENUS
   ================================================================ */
.mega-overlay {
  position: fixed; inset: 0; top: var(--nav-h);
  background: rgba(0,0,0,0.65); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.mega-overlay.open { opacity: 1; pointer-events: auto; }
.mega-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 950;
  background: var(--mega-bg); border-bottom: 1px solid var(--border2);
  padding: 2rem 2.5rem 2.5rem; display: none;
  animation: megaSlide 0.2s ease;
}
.mega-menu.open { display: block; }
@keyframes megaSlide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mega-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}
.mega-col h3 {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border2);
}
.mega-item {
  display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.45rem 0.5rem;
  color: var(--text-dim); border-radius: 3px; transition: all 0.15s; margin-bottom: 2px;
  cursor: pointer; background: none; border: none; width: 100%; text-align: left;
}
.mega-item:hover { background: var(--surface2); color: var(--text); }
.mega-item:hover .item-title { color: var(--gold-light); }
.mega-item > i { font-size: 0.8rem; color: var(--gold-dim); margin-top: 2px; width: 14px; text-align: center; flex-shrink: 0; }
.mega-item:hover > i { color: var(--gold); }
.item-info { display: flex; flex-direction: column; gap: 1px; }
.item-title { font-size: 0.9rem; font-weight: 500; color: var(--cream-dim); transition: color 0.15s; line-height: 1.3; }
.item-desc { font-size: 0.65rem; color: var(--text-dim); line-height: 1.3; }
.mega-close {
  position: absolute; top: 1rem; right: 2rem; background: none; border: none;
  color: var(--text-dim); font-size: 1.2rem; cursor: pointer; transition: color 0.2s;
}
.mega-close:hover { color: var(--cream); }
.mega-header {
  grid-column: 1/-1; display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.mega-header i { font-size: 1.2rem; color: var(--gold); }
.mega-header-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--cream); }
.mega-header-sub { font-size: 0.72rem; color: var(--text-dim); margin-left: auto; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; padding: 3.5rem 2rem 2.5rem; text-align: center;
  background: linear-gradient(to bottom, rgba(26, 15, 10, 0.4), var(--bg)), url(https://cdn.tamilbookshelf.in/assets/images/tamilbookshelf.webp);
    background-size: cover;
    background-position: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.hero::before {
  content: '⌂';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-8deg);
  font-size: 22rem; color: rgba(201,148,58,0.025);
  pointer-events: none; user-select: none; z-0;
  line-height: 1;
}
.hero h2 {
  font-family: var(--font-display); font-size: clamp(2rem,5vw,3.5rem);
  color: var(--cream-dim); font-weight: 600; margin-bottom: 0.6rem;
  transition: opacity 0.3s; position: relative; z-index: 1;
}
.hero p {
  font-size: 0.85rem; color: var(--text-dim); max-width: 620px;
  margin: 0 auto; line-height: 1.75; position: relative; z-index: 1;
  transition: opacity 0.3s;
}

/* ================================================================
   SEARCH BAR
   ================================================================ */
.search-section {
  background: var(--surface2); border-bottom: 1px solid var(--border);
  padding: 1.2rem 2rem; display: flex; justify-content: center;
}
.search-wrap {
  display: flex; gap: 0; max-width: 640px; width: 100%;
  border: 1px solid var(--border2); border-radius: 4px; overflow: hidden;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--gold); }
.search-input {
  flex: 1; background: var(--surface); border: none; outline: none;
  color: var(--cream); font-family: var(--font-body); font-size: 0.85rem;
  padding: 0.75rem 1.1rem;
}
.search-input::placeholder { color: var(--text-dim); }
.search-btn {
  background: var(--gold); border: none; color: var(--bg);
  padding: 0.75rem 1.4rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--gold-light); }
.search-clear {
  background: var(--surface); border: none; border-left: 1px solid var(--border2);
  color: var(--text-dim); padding: 0.75rem 0.9rem; font-size: 0.8rem; transition: color 0.2s;
}
.search-clear:hover { color: var(--crimson); }

/* ================================================================
   GENRE BUTTONS
   ================================================================ */
.genre-container {
  padding: 1rem 2rem 0.8rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  max-width: 100%; overflow: hidden;
}
.genre-btn {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text-dim); font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.85rem;
  border-radius: 2px; cursor: pointer; transition: all 0.18s;
}
.genre-btn:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-glow); }
.genre-btn.active {
  background: var(--gold); color: var(--bg); border-color: var(--gold);
  font-weight: 600;
}

/* ================================================================
   TRANSLATE
   ================================================================ */
#translate-wrapper {
  display: flex; justify-content: center; padding: 0.6rem 1rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
#main-content { padding: 0 5% 3rem; }

.section-container { margin-bottom: 3.5rem; padding-top: 2rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 0.6rem;
}
.section-title h2 {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--cream-dim); font-weight: 600;
}
.section-title h2 .genre-tag {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-glow); border: 1px solid rgba(201,148,58,0.2);
  padding: 0.15rem 0.5rem; border-radius: 2px; margin-left: 0.6rem;
  vertical-align: middle; font-family: var(--font-body); font-weight: 500;
}
.section-title span { font-size: 0.72rem; color: var(--text-dim); }

.view-all-btn {
  background: none; border: 1px solid var(--border2); color: var(--cream-dim);
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 2px;
  cursor: pointer; transition: all 0.2s;
}
.view-all-btn:hover { border-color: var(--gold); color: var(--gold-light); background: var(--gold-glow); }

/* ================================================================
   BOOK CARDS GRID
   ================================================================ */
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}

.midi-card {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 4px; overflow: hidden; cursor: pointer;
  transition: all 0.25s; display: flex; flex-direction: column;
  position: relative;
}
.midi-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,148,58,0.12);
}
.card-cover {
  height: 80px; background: var(--surface); flex-shrink: 0;
  background-size: contain !important; background-repeat: no-repeat !important;
  background-position: center !important; background-color: #f9f6f036 !important;
  position: relative; overflow: hidden;
}
.card-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(22,26,32,0.5));
}
.card-name {
  font-size: 0.82rem; color: var(--cream-dim); font-weight: 600;
  padding: 0.65rem 0.8rem 0.1rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-desc {
  font-size: 0.7rem; color: var(--text-dim); padding: 0.1rem 0.8rem;
  line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer {
  display: flex; justify-content: space-between; padding: 0.4rem 0.8rem 0.6rem;
  font-size: 0.62rem; border-top: 1px solid var(--border); margin-top: auto;
}
.card-lang { color: var(--text-dim); }
.card-genre { color: var(--gold-dim); font-weight: 600; text-align: right; flex: 1; padding-left: 0.3rem;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Fade in */
.fade-in { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ================================================================
   DETAIL VIEW
   ================================================================ */
#detail-view { padding: 2rem 5%; }
.back-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer; margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem; border: 1px solid var(--border2); border-radius: 2px;
  transition: all 0.2s; background: none; font-family: var(--font-body);
}
.back-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.load-more-container { text-align: center; margin-top: 2rem; padding: 1rem; }

/* ================================================================
   GENRE GRID
   ================================================================ */
#genre-grid { min-height: 100px; }

/* ================================================================
   OFFCANVAS / AUTHOR SIDEBAR
   ================================================================ */
#offcanvas-menu {
  position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
  background: var(--surface2); border-right: 1px solid var(--border);
  z-index: 1500; transition: left 0.3s ease; overflow-y: auto; padding: 1.5rem 1rem;
}
#offcanvas-menu.active { left: 0; }
#offcanvas-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 1400; backdrop-filter: blur(2px);
}
#offcanvas-overlay.active { display: block; }
#offcanvas-menu h3 {
  font-family: var(--font-display); font-size: 1rem; color: var(--gold-light);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
#category-list { list-style: none; }
#category-list li {
  padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s; border-radius: 2px;
  display: flex; justify-content: space-between; align-items: center;
}
#category-list li:hover { background: var(--surface); color: var(--gold-light); }
.cat-name { font-size: 0.78rem; color: var(--cream-dim); }
.cat-tamil { font-size: 0.6rem; color: var(--text-dim); }

/* ================================================================
   EBOOK READER
   ================================================================ */
#reader-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  display: none; flex-direction: column;
  animation: readerIn 0.3s ease;
}
#reader-overlay.open { display: flex; }
@keyframes readerIn { from { opacity: 0; } to { opacity: 1; } }

/* Reader toolbar */
.reader-toolbar {
  background: rgba(13,10,8,0.98); border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  flex-shrink: 0; flex-wrap: wrap;
}
.reader-toolbar-left { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 0; }
.reader-back-btn {
  background: var(--surface); border: 1px solid var(--border2); color: var(--text-dim);
  padding: 0.45rem 0.9rem; border-radius: 3px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; transition: all 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
.reader-back-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.reader-book-info { min-width: 0; }
.reader-book-title {
  font-family: var(--font-display); font-size: 1rem; color: var(--cream-dim);
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader-book-author { font-size: 0.68rem; color: var(--gold-dim); }

.reader-toolbar-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.reader-ctrl {
  background: var(--surface); border: 1px solid var(--border2); color: var(--text-dim);
  padding: 0.4rem 0.7rem; border-radius: 3px; font-size: 0.72rem; transition: all 0.18s;
  display: flex; align-items: center; gap: 0.3rem;
}
.reader-ctrl:hover { border-color: var(--gold); color: var(--gold-light); }
.reader-ctrl.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold-light); }

/* Font size display */
.reader-font-display {
  font-size: 0.7rem; color: var(--text-dim); min-width: 32px; text-align: center;
}

/* Reader body */
.reader-body {
  flex: 1; overflow-y: auto; padding: 0;
  display: flex; justify-content: center;
}
.reader-content-wrap {
  max-width: 780px; width: 100%; padding: 3rem 2rem;
  transition: max-width 0.3s;
}
.reader-content-wrap.wide { max-width: 1100px; }
.reader-content-wrap.narrow { max-width: 560px; }

/* Book header in reader */
.reader-book-header {
  text-align: center; margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.reader-book-header h1 {
  font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.8rem);
  color: var(--cream-dim); font-weight: 600; margin-bottom: 0.4rem;
}
.reader-book-header .meta { font-size: 0.78rem; color: var(--text-dim); }
.reader-book-header .meta strong { color: var(--gold-dim); }

/* Reader themes */
.reader-body[data-theme="dark"] .reader-content-wrap { background: transparent; }
.reader-body[data-theme="dark"] #reader-text p { color: var(--cream-dim); }
.reader-body[data-theme="sepia"] { background: #f4ecd8; }
.reader-body[data-theme="sepia"] .reader-content-wrap { background: #f4ecd8; }
.reader-body[data-theme="sepia"] .reader-book-header h1 { color: #3e2723; }
.reader-body[data-theme="sepia"] .reader-book-header .meta { color: #6d4c41; }
.reader-body[data-theme="sepia"] #reader-text p { color: #3e2723; }
.reader-body[data-theme="light"] { background: #fafafa; }
.reader-body[data-theme="light"] .reader-content-wrap { background: #fafafa; }
.reader-body[data-theme="light"] .reader-book-header h1 { color: #1a1a1a; }
.reader-body[data-theme="light"] .reader-book-header .meta { color: #555; }
.reader-body[data-theme="light"] #reader-text p { color: #1a1a1a; }

/* Reader text */
#reader-text p {
  font-family: var(--font-reader); font-size: 1.1rem; line-height: 1.95;
  color: var(--cream-dim); margin-bottom: 1.6rem; text-align: justify;
  transition: font-size 0.15s, line-height 0.15s;
}
#reader-text .loading-msg {
  text-align: center; padding: 4rem 1rem; color: var(--text-dim);
  font-size: 0.9rem;
}
.reader-spinner {
  display: inline-block; width: 32px; height: 32px;
  border: 2px solid var(--border2); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reader progress bar */
.reader-progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 2100;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 0%; transition: width 0.1s;
}

/* Reader error */
.reader-error {
  text-align: center; padding: 4rem 1rem;
}
.reader-error i { font-size: 2.5rem; color: var(--crimson); margin-bottom: 1rem; opacity: 0.7; }
.reader-error p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.4rem; }
.reader-error code { font-size: 0.7rem; color: var(--text-dim); word-break: break-all; }

/* Chapter break */
.chapter-break {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Reader footer stats */
.reader-stats {
  background: rgba(13,10,8,0.98); border-top: 1px solid var(--border);
  padding: 0.5rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.65rem; color: var(--text-dim);
  flex-shrink: 0;
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 500;
  background: var(--gold); border: none; color: var(--bg);
  width: 42px; height: 42px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.3s; opacity: 0;
  box-shadow: 0 4px 20px rgba(201,148,58,0.4);
}
.back-to-top:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: linear-gradient(180deg, #090c10 0%, #05060a 100%);
  border-top: 1px solid var(--border);
}
.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 2rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .footer-logo img { height: 50px; opacity: 0.8; margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.78rem; color: var(--text-dim); line-height: 1.7;
  max-width: 280px; margin-bottom: 1.2rem;
}
.footer-brand-stats {
  display: flex; gap: 1.5rem; margin-top: 1rem;
}
.fstat { text-align: center; }
.fstat-num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light);
  font-weight: 600; line-height: 1;
}
.fstat-lbl { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }

.footer-col h5 {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border2);
}
.footer-col a, .footer-col button {
  display: block; color: var(--text-dim); font-size: 0.76rem;
  margin-bottom: 0.55rem; transition: color 0.18s; background: none; border: none;
  text-align: left; padding: 0; font-family: inherit; cursor: pointer;
}
.footer-col a:hover, .footer-col button:hover { color: var(--gold-light); }

/* Verse band */
.footer-verse-band {
  background: var(--gold-glow); border-top: 1px solid rgba(201,148,58,0.2);
  border-bottom: 1px solid rgba(201,148,58,0.1); padding: 1.5rem 2rem; text-align: center;
}
.footer-verse-band blockquote {
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic;
  color: var(--gold-light); max-width: 600px; margin: 0 auto;
}
.footer-verse-band cite { font-size: 0.68rem; color: var(--text-dim); display: block; margin-top: 0.4rem; font-style: normal; letter-spacing: 0.1em; }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}
.footer-bottom p { font-size: 0.65rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: 0.65rem; color: var(--text-dim); transition: color 0.18s; }
.footer-links a:hover { color: var(--gold-light); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .nav-lbl { display: none; }
  .mega-inner { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 1rem; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .nav-bar { display: none; }
  .instrument-grid { grid-template-columns: repeat(2,1fr); gap: 0.7rem; }
  .genre-container { padding: 0.7rem 1rem; }
  .reader-content-wrap { padding: 2rem 1rem; }
  .reader-toolbar-right { gap: 0.3rem; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
.logo img {
    width: 75px;
    height: auto;
}
#reader-text p {
    hyphens: auto;
}
#reader-stat-url {
    display: none !important;
}
#btn-reader-dl {
    display: none !important;
}
#btn-reader-ext {
    display: none !important;
}
.skiptranslate iframe{display:none;height:0}.skiptranslate{margin-top:-15px !important;}.skiptranslate span {display:none;}
            
            .goog-te-gadget {
				color: #1c1410 !important;
			}
            #translate-wrapper {
				height: 30px;
			}
            .goog-te-banner-frame.skiptranslate {
                display: none !important;
            }
            
            #google_translate_element select {
                margin: 4px 0;
                background: #1a0f0a;
                border: none;
                color: #ede1c7 !important;
                padding: 5px 12px;
                outline: none;
                font-size: 1rem;
                 cursor: pointer;
            }