/* ============================================
   BRAJ AWADHI KAVYALOK — Main Stylesheet
   Dark Gold Theme
   ============================================ */

:root {
  --accent:        #c0392b;
  --accent-light:  #e05540;
  --gold:          #e8b87a;
  --gold-light:    #f5d9a0;
  --gold-dim:      #c9906a;

  --bg:            #1a0e08;
  --bg-card:       #221208;
  --bg-elevated:   #2c1810;
  --bg-header:     #120804;

  --text:          #f0e0c8;
  --text-light:    #a07858;
  --text-dim:      #7a5c44;

  --border:        #3d2215;
  --border-light:  #5a3020;

  --font-hi:       'Tiro Devanagari Hindi', serif;
  --font-en:       'Lora', Georgia, serif;

  --header-h:      64px;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
[data-lang="hi"] .lang-en { display: none; }
[data-lang="en"] .lang-hi { display: none; }
html:not([data-lang]) .lang-en { display: none; }

.lang-toggle {
  background: rgba(232,184,122,0.12);
  color: var(--gold);
  border: 1px solid rgba(232,184,122,0.3);
  border-radius: 20px;
  padding: 0.25rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-en);
  margin-left: 1.5rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(232,184,122,0.22);
  color: var(--gold-light);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-hi);
  line-height: 1.8;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg-header);
  color: var(--text);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

/* Logo */
.site-logo {
  text-decoration: none;
  color: var(--gold-light);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-hi { font-size: 1.15rem; font-weight: bold; color: var(--gold-light); }
.logo-en { font-size: 0.7rem; opacity: 0.6; font-family: var(--font-en); color: var(--gold-dim); }

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  color: rgba(240,224,200,0.7);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.9rem;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover { color: var(--gold); }

/* Header right cluster */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ============================================
   HAMBURGER BUTTON (mobile only)
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(232,184,122,0.08);
  border: 1px solid rgba(232,184,122,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(232,184,122,0.16); }
.ham-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] .ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .ham-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-nav-overlay.is-open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  background: #0e0604;
  border-left: 1px solid var(--border-light);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.7);
}
.mobile-nav.is-open { right: 0; }

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.mobile-nav-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-en);
}
.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-close:hover { background: var(--border); color: var(--text); }

.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-hi);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(61,34,21,0.4);
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
}
.mobile-nav-link:hover {
  background: rgba(232,184,122,0.05);
  color: var(--gold);
  padding-left: 1.9rem;
}
.mnl-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.mobile-nav-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-lang-toggle {
  width: 100%;
  margin-left: 0;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ============================================
   HERO (old, kept for non-home pages)
   ============================================ */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); margin-bottom: 0.5rem; }
.hero-sub { font-family: var(--font-en); font-style: italic; color: var(--gold-dim); font-size: 1.2rem; margin-bottom: 1rem; }
.hero-desc { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ============================================
   HOME SECTIONS (legacy)
   ============================================ */
.home-section { margin-bottom: 3rem; }
.home-section h2 {
  font-size: 1.5rem;
  color: var(--gold);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.home-section h2 .en {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: normal;
  margin-left: 0.5rem;
}

/* ============================================
   GRIDS
   ============================================ */
.poem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.poet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

/* ============================================
   POEM CARD
   ============================================ */
.poem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.poem-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: translateY(-2px);
  border-color: var(--border-light);
}
.poem-card-link {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.card-title { font-size: 1.1rem; color: var(--gold); margin-bottom: 0.4rem; }
.card-poet  { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.audio-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-top: 0.5rem;
}

/* ============================================
   POET CARD
   ============================================ */
.poet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.poet-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.5); border-color: var(--border-light); }
.poet-card a { text-decoration: none; color: inherit; }
.poet-thumb {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
  margin-bottom: 0.75rem;
}
.poet-thumb-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #3b0a0a;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  border: 2px solid var(--border-light);
}
.poet-card h3   { font-size: 1rem; color: var(--gold); }
.poet-card .dates { font-size: 0.8rem; color: var(--text-light); margin-top: 0.25rem; }

/* ============================================
   THEME TAGS
   ============================================ */
.theme-tag {
  display: inline-block;
  background: rgba(232,184,122,0.08);
  color: var(--gold-dim);
  border: 1px solid rgba(232,184,122,0.2);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  margin: 0.2rem;
  transition: background 0.2s, color 0.2s;
}
.theme-tag:hover { background: rgba(232,184,122,0.18); color: var(--gold-light); }
.theme-tag.small { font-size: 0.75rem; }
.theme-tag.mini  { font-size: 0.7rem; padding: 0.1rem 0.5rem; }
.theme-cloud { line-height: 2.2; }

/* ============================================
   POEM PAGE
   ============================================ */
.poem-page { max-width: 700px; margin: 0 auto; }
.poem-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.poem-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--gold); margin-bottom: 0.75rem; }
.poem-poet  { color: var(--text-light); margin-bottom: 0.75rem; }
.poem-poet a { color: var(--gold-dim); text-decoration: none; }
.poem-poet a:hover { color: var(--gold); }

.poem-body {
  font-size: 1.2rem;
  line-height: 2.2;
  margin-bottom: 2.5rem;
  font-family: var(--font-hi);
  color: var(--text);
}
.poem-body p { margin-bottom: 1.5rem; }

.poem-word {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s, color 0.2s;
}
.poem-word:hover { border-bottom-color: var(--gold-dim); color: var(--gold); }

/* ============================================
   WORD TOOLTIP — compact scrollable card
   ============================================ */
.word-tooltip {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #0d0604;
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.75);
  z-index: 1000;
  width: 270px;
  max-height: 190px;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.word-tooltip.hidden { display: none; }

.tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem 0.45rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tooltip-word {
  font-weight: bold;
  font-family: var(--font-hi);
  color: var(--gold);
  font-size: 1rem;
}
.tooltip-body {
  padding: 0.5rem 0.85rem 0.6rem;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.tooltip-body::-webkit-scrollbar { width: 4px; }
.tooltip-body::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

.tooltip-meaning {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--text-light);
  font-size: 0.87rem;
  line-height: 1.55;
}
.tooltip-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 0.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.tooltip-close:hover { color: var(--text); }

/* ============================================
   AUDIO & NOTES
   ============================================ */
.poem-audio, .poem-notes {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.poem-audio h3, .poem-notes h3 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.poem-audio iframe { border-radius: 4px; }

.custom-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  max-width: 480px;
}
.play-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  line-height: 0;
  transition: color 0.2s;
}
.play-btn:hover { color: var(--gold-light); }
.seeker-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  font-size: 0.76rem;
  color: var(--text-light);
  font-family: var(--font-en);
}
.seeker {
  flex: 1;
  accent-color: var(--gold);
  cursor: pointer;
  height: 3px;
}
.hidden { display: none !important; }

.add-recitation {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.recitation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-dim);
  font-size: 0.88rem;
  font-family: var(--font-hi);
  text-decoration: none;
  border: 1px dashed var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.recitation-link:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(232,184,122,0.05);
}

/* ============================================
   POET PAGE
   ============================================ */
.poet-page { max-width: 800px; margin: 0 auto; }
.poet-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.poet-image img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--border-light);
}
.poet-meta h1     { font-size: 2rem; color: var(--gold); }
.poet-meta .dates, .poet-meta .region { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; }
.poet-bio  { margin-bottom: 2rem; line-height: 1.9; color: var(--text); }
.poet-poems h2 { font-size: 1.4rem; color: var(--gold); margin-bottom: 1.25rem; }

/* ============================================
   LIST PAGES
   ============================================ */
.list-header { margin-bottom: 2rem; }
.list-header h1 { font-size: 2rem; color: var(--gold); }
.list-header p  { color: var(--text-light); }

.filter-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}
.filter-bar span { color: var(--text-light); margin-right: 0.5rem; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-all {
  display: inline-block;
  color: var(--gold-dim);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-all:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-en);
  background: var(--bg-header);
}

/* ============================================
   ENGLISH TEXT
   ============================================ */
.en {
  font-family: var(--font-en);
  font-weight: normal;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 2rem;
}
.pagination a, .pagination span {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--gold-dim);
  background: var(--bg-card);
}
.pagination .active {
  background: #3b0a0a;
  color: var(--gold);
  border-color: var(--border-light);
}

/* ============================================
   FORM TABS
   ============================================ */
.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}
.form-tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-hi);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.form-tab:hover { border-color: var(--gold-dim); color: var(--gold); }
.form-tab.active { background: #3b0a0a; color: var(--gold); border-color: var(--border-light); }
.form-tab .count { font-size: 0.75rem; opacity: 0.8; }
.form-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.4rem;
  background: var(--bg-card);
}

/* ============================================
   COLLECTIONS — LIST
   ============================================ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.collection-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transform: translateY(-3px);
  border-color: var(--border-light);
}
.collection-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.collection-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--border);
}
.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.collection-card:hover .collection-card-image img { transform: scale(1.04); }
.collection-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b0a0a 0%, #1a0505 100%);
  color: rgba(232,184,122,0.3);
  font-size: 4rem;
  font-family: var(--font-hi);
}
.collection-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.collection-card-body h3 { font-size: 1.15rem; color: var(--gold); line-height: 1.3; }
.collection-card-desc  { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.poem-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-en);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   COLLECTIONS — SINGLE PAGE
   ============================================ */
.collection-page { max-width: 900px; margin: 0 auto; }
.collection-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.collection-cover {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  aspect-ratio: 4/3;
}
.collection-cover img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-family: var(--font-en);
}
.breadcrumb a { color: var(--gold-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.collection-meta h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.collection-desc { color: var(--text-light); font-size: 1rem; line-height: 1.7; }
.collection-body { margin-bottom: 2rem; line-height: 1.9; color: var(--text); }
.collection-poems h2 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}
.count-badge {
  background: #3b0a0a;
  color: var(--gold);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-family: var(--font-en);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-weight: normal;
}
.empty-msg { color: var(--text-dim); font-style: italic; padding: 2rem 0; }

/* ── POET FORM SECTIONS ───────────────────────── */
.poet-form-section { margin-bottom: 2.5rem; }
.poet-form-heading {
  font-size: 1rem;
  color: var(--gold-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-hi);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   RESPONSIVE — TABLET (≤900px)
   ============================================ */
@media (max-width: 900px) {
  .main-nav a { margin-left: 1rem; font-size: 0.85rem; }
  .collection-header { grid-template-columns: 1fr; }
  .collection-cover  { max-height: 220px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {

  /* ── Header layout ── */
  .site-header { padding: 0 1rem; }
  .header-inner { height: 56px; gap: 0.75rem; }
  --header-h: 56px;

  /* Logo: tighten */
  .logo-hi { font-size: 1rem; }
  .logo-en { font-size: 0.65rem; }

  /* Hide desktop nav; show hamburger */
  .main-nav { display: none; }
  .hamburger { display: flex; }

  /* Hide search bar in header on mobile */
  .header-search { display: none; }

  /* ── Main content ── */
  .main-content { padding: 1.25rem 1rem 3rem; }

  /* ── Grids collapse to single column ── */
  .poem-grid { grid-template-columns: 1fr; }
  .poet-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .collection-grid { grid-template-columns: 1fr; }

  /* ── Poet page ── */
  .poet-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .poet-image img { width: 110px; height: 110px; }
  .poet-meta h1 { font-size: 1.6rem; }

  /* ── Poem page ── */
  .poem-body { font-size: 1.1rem; line-height: 2; }
  .poem-title { font-size: 1.4rem; }

  /* ── Word tooltip: full-width bottom bar on mobile ── */
  .word-tooltip {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-height: 160px;
  }

  /* ── Custom player ── */
  .custom-player { max-width: 100%; }

  /* ── Form tabs: scrollable strip ── */
  .form-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .form-tab {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.3rem 0.85rem;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .header-inner { height: 52px; }
  .logo-hi { font-size: 0.95rem; line-height: 1.25; }
  .logo-en { display: none; }   /* save space — brand is clear */

  .main-content { padding: 1rem 0.85rem 3rem; }

  /* Poem body slightly smaller */
  .poem-body { font-size: 1.05rem; }

  /* Collection header stacked */
  .collection-header { gap: 1.25rem; }
}