/* ═══════════════════════════════════════════════
   LyricVerse — Global Styles
   Shared across all pages
   ═══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

:root {
  --bg-deep: #08070e;
  --bg-surface: #110f1a;
  --bg-card: #1a1726;
  --bg-card-hover: #231f33;
  --accent-lime: #c8ff2e;
  --accent-cyan: #2ef8ff;
  --text-primary: #f0eef6;
  --text-secondary: #9892a6;
  --text-muted: #5e586e;
  --border: #2a2638;
  --radius: 12px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --page-px: 32px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
}

/* ═══ APP CONTAINER ═══ */
.app-container {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  left: 0; top: 0;
  z-index: 1000;
  transition: width 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar.collapsed { width: var(--sidebar-collapsed-width); }

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

.sidebar.collapsed .sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.sidebar-toggle {
  width: 32px; height: 32px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
  flex-shrink: 0;
}

.sidebar-toggle:hover {
  background: var(--accent-lime);
  color: var(--bg-deep);
  border-color: var(--accent-lime);
  transform: scale(1.1);
}

.sidebar-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  transition: transform 0.3s;
}

.sidebar.collapsed .sidebar-toggle svg { transform: rotate(180deg); }

.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--accent-lime);
  font-family: var(--font-display);
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-lime);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-deep); font-size: 20px; flex-shrink: 0;
}

.logo-text { font-size: 1.3rem; font-weight: 700; white-space: nowrap; transition: opacity 0.2s; }
.sidebar.collapsed .logo-text { opacity: 0; width: 0; display: none; }

.nav-section { margin-bottom: 32px; }

.nav-title {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
  margin-bottom: 16px; padding: 0 8px;
  font-weight: 600; transition: opacity 0.2s;
}

.sidebar.collapsed .nav-title { opacity: 0; height: 0; margin: 0; overflow: hidden; }

.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; color: var(--text-secondary);
  border-radius: 10px; font-size: 0.95rem; font-weight: 500;
  margin-bottom: 4px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap; text-decoration: none;
}

.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active { color: var(--accent-lime); font-weight: 700; }
.nav-item.active svg { stroke: var(--accent-lime); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; }
.nav-item span { transition: opacity 0.2s; }
.sidebar.collapsed .nav-item span { opacity: 0; width: 0; display: none; }

.nav-flag {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ═══ MAIN CONTENT ═══ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  transition: margin-left 0.3s ease;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* ═══ SECTION HEADER (shared) ═══ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
}

.section-link {
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
  transition: color 0.2s;
}

.section-link:hover { color: var(--accent-lime); }

/* ═══ MOBILE HEADER ═══ */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(8,7,14,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  align-items: center; justify-content: space-between;
}

.burger-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; padding: 0; transition: all 0.2s;
}

.burger-btn span {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s; transform-origin: center;
}

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 999;
}
.mobile-overlay.show { display: block; }

/* ═══ FOOTER ═══ */
.footer {
  margin-top: 48px;
  padding: 32px var(--page-px);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  color: var(--text-muted); font-size: 0.8rem; text-align: center;
}

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; width: 100%; font-size: 0.78rem;
}

.footer-vk { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.footer-vk-label { font-size: 0.75rem; color: var(--text-muted); }
.footer-vk-links { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: center; width: 100%; }

.vk-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.72rem; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
}
.vk-link:hover { border-color: #4c75a3; color: #4c75a3; background: rgba(76,117,163,0.1); }

/* ═══ BACK TO TOP ═══ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(10px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--bg-card-hover); }
.back-to-top svg { width: 18px; height: 18px; stroke: var(--text-secondary); fill: none; stroke-width: 2; }

/* ═══ POPUP ═══ */
.popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center;
}
.popup-overlay.open { display: flex; }

.popup-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  width: 90%; max-width: 400px;
  position: relative;
}

.popup-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.popup-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.popup-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.popup-icon { font-size: 2rem; margin-bottom: 12px; }
.popup-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.popup-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.popup-field { margin-bottom: 14px; }
.popup-field label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.popup-field input, .popup-field select {
  width: 100%; padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary); font-size: 0.9rem;
  font-family: var(--font-body); outline: none; transition: border-color 0.2s;
}
.popup-field input:focus, .popup-field select:focus { border-color: var(--accent-lime); }
.popup-field select option { background: var(--bg-card); }

.popup-submit {
  width: 100%; padding: 12px;
  background: var(--accent-lime); color: var(--bg-deep);
  border: none; border-radius: 12px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
  margin-top: 6px;
}
.popup-submit:hover { opacity: 0.88; }

.popup-success {
  display: none; text-align: center;
  padding: 16px; color: var(--accent-lime);
  font-weight: 600;
}
.popup-success.show { display: block; }
.popup-success-icon { font-size: 2rem; margin-bottom: 8px; }

/* ═══ ICON BUTTONS (like / share) ═══ */
.icon-btn-wrap { position: relative; display: inline-block; }

.icon-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-body);
}
.icon-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: rgba(255,255,255,0.15); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; }

.icon-btn-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card-hover); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.75rem; white-space: nowrap; color: var(--text-primary);
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.icon-btn-tooltip.show { opacity: 1; }

/* Like — active state */
.icon-btn.liked { border-color: rgba(239,68,68,0.4); color: #ef4444; }
.icon-btn.liked svg.heart { fill: #ef4444; stroke: #ef4444; }
.icon-btn.liked:hover { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.1); color: #ef4444; }

/* ═══ LIST LIKE BUTTON ═══ */
.list-like-btn {
  width: 28px; height: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.list-like-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); color: #ef4444; transform: scale(1.12); }
.list-like-btn.liked { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.45); color: #ef4444; }
.list-like-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; pointer-events: none; }
.list-like-btn.liked svg { fill: #ef4444; }

/* ═══ CARD LIKE BUTTON ═══ */
.card-like-btn {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: rgba(17,15,26,0.7); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  opacity: 1;
}
.card-like-btn svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; pointer-events: none; }
.card-like-btn.liked { opacity: 1; background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); color: #ef4444; }
.card-like-btn.liked svg { fill: #ef4444; }
.card-like-btn:hover { background: rgba(239,68,68,0.3); border-color: rgba(239,68,68,0.6); color: #ef4444; transform: scale(1.12); }

/* ═══ ARTIST LIKE BUTTON ═══ */
.artist-like-btn {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px;
  background: rgba(17,15,26,0.7); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  opacity: 1;
}
.artist-like-btn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; pointer-events: none; }
.artist-like-btn.liked { opacity: 1; background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); color: #ef4444; }
.artist-like-btn.liked svg { fill: #ef4444; }
.artist-like-btn:hover { background: rgba(239,68,68,0.3); border-color: rgba(239,68,68,0.6); color: #ef4444; transform: translateX(-50%) scale(1.12); }

/* ═══ COPY TOAST ═══ */
.copy-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 18px;
  font-size: 0.85rem; color: var(--accent-lime);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 500; white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ RESPONSIVE (shared breakpoints) ═══ */
@media (max-width: 900px) {
  .mobile-header { display: flex; }
  .sidebar {
    left: -var(--sidebar-width);
    transform: translateX(calc(-1 * var(--sidebar-width)));
    width: var(--sidebar-width) !important;
    z-index: 1001;
  }
  .sidebar.mobile-visible { transform: translateX(0); }
  .sidebar-toggle { display: none; }
  .main-content, .main-content.expanded {
    margin-left: 0;
    width: 100%;
    padding-top: 64px;
  }
  .footer { padding: 24px 16px; }
  :root { --page-px: 16px; }
}
/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface-2, rgba(255,255,255,.06));
  color: var(--text-muted, #999);
  font-size: .85rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.page-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.page-btn.active { background: var(--accent-lime, #c8ff2e); color: #111; font-weight: 600; }

/* ── Load more button ───────────────────────────────────── */
.load-more-btn {
  padding: 12px 32px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.load-more-btn:hover:not(:disabled) { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.load-more-btn:disabled { opacity: .5; cursor: default; }

/* ═══ SEARCH BOX (shared: index, translations, artists) ═══ */
.search-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 60px;
  padding: 4px 4px 4px 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}
.search-box:focus-within {
  border-color: rgba(200,255,46,0.4);
  box-shadow: 0 0 40px rgba(200,255,46,0.3);
}
.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 10px;
  width: 20px;
  height: 20px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 0;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-lime), #a8e600);
  color: var(--bg-deep);
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(200,255,46,0.4);
}

/* ═══ LANG / SORT FILTER BUTTONS (shared) ═══ */
.pop-lang-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.plf-btn {
  padding: 7px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.plf-btn:hover { border-color: var(--accent-lime); color: var(--text-primary); }
.plf-btn.active {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: var(--bg-deep);
  font-weight: 700;
}

/* ═══ TRANSLATION CARD (shared: index, translations) ═══ */
.translation-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.translation-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-cover {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
}
.card-cover-initials {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.22);
  letter-spacing: -0.02em;
}
.card-lang {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}
.card-info { padding: 12px; }
.card-info-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.card-title {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-views {
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.card-views svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* card like button */
.card-like-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.card-like-btn svg {
  width: 15px; height: 15px;
  stroke: #fff; fill: none; stroke-width: 2;
  transition: stroke 0.2s, fill 0.2s;
}
.card-like-btn.liked svg { stroke: #ff4d6d; fill: #ff4d6d; }
.card-like-btn:hover { background: rgba(0,0,0,0.75); transform: scale(1.1); }

/* ═══ ARTIST CHIPS (shared: index) ═══ */
.artists-scroll-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%);
  transition: mask-image 0.3s, -webkit-mask-image 0.3s;
}
.artists-scroll-wrap.scrolled-end {
  mask-image: none;
  -webkit-mask-image: none;
}
.artists-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.artists-scroll::-webkit-scrollbar { display: none; }
.artist-chip-new {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
.artist-chip-new:hover { border-color: var(--accent-lime); }
.artist-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.artist-chip-info { display: flex; flex-direction: column; }
.artist-chip-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.artist-chip-count { font-size: 0.75rem; color: var(--text-secondary); }

/* ═══ PAGE LAYOUT HELPERS (shared: translations, recently, artists) ═══ */
.page-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.page-body {
  padding: 24px var(--page-px) 40px;
  flex: 1;
}
.page-header-block {
  padding: 28px var(--page-px) 16px;
}
.page-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.page-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  white-space: nowrap;
}
.load-more-btn {
  padding: 14px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover {
  border-color: var(--accent-lime);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Loading state for lang filter buttons */
.plf-btn.loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px var(--page-px) 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--accent-lime); }
.breadcrumbs span:not(:last-child) { opacity: 0.4; }
.breadcrumbs span:last-child { color: var(--text-secondary); }

/* ═══ NOT-FOUND PAGES (shared across all templates) ═══ */
.notfound-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  padding: 60px var(--page-px);
}
.notfound-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.notfound-orb { position: absolute; border-radius: 50%; filter: blur(120px); }
.notfound-orb.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.15), transparent 70%);
  top: -20%; right: -10%;
  animation: orbFloat1 8s ease-in-out infinite;
}
.notfound-orb.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(46,248,255,0.1), transparent 70%);
  bottom: -10%; left: 5%;
  animation: orbFloat2 10s ease-in-out infinite;
}
.notfound-orb.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,255,46,0.08), transparent 70%);
  top: 40%; left: 30%;
  animation: orbFloat1 12s ease-in-out infinite reverse;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-20px) translateX(15px); }
}
.notfound-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 0;
}
.nf-icon-wrap {
  width: 96px; height: 96px; border-radius: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  box-shadow: 0 0 60px rgba(200,255,46,0.06);
}
.nf-icon-wrap svg {
  width: 44px; height: 44px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.notfound-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; color: var(--text-primary);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.notfound-sub {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 420px; margin-bottom: 40px;
}
.notfound-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.notfound-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-lime); color: #000;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  padding: 12px 24px; border-radius: 50px;
  transition: opacity 0.2s, transform 0.2s;
}
.notfound-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.notfound-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: 50px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.notfound-btn-secondary:hover { border-color: var(--accent-lime); color: var(--accent-lime); transform: translateY(-1px); }
@media (max-width: 600px) {
  .notfound-sub br { display: none; }
  .notfound-actions { flex-direction: column; width: 100%; }
  .notfound-btn-primary, .notfound-btn-secondary { width: 100%; justify-content: center; }
}
