:root {
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #4f46e5;
  --primary-soft: #eef2ff;
  --primary-hover: #4338ca;
  
  --sidebar-width: 250px;
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 8px -2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.03);
  --shadow-hover: 0 12px 24px -4px rgba(15,23,42,0.12), 0 4px 8px -2px rgba(15,23,42,0.06);
  --shadow-modal: 0 25px 50px -12px rgba(15,23,42,0.25);
}

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

body.light-theme {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ana Düzen */
.layout-container {
  display: flex;
  min-height: 100vh;
}

/* Sol Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 40;
}

.sidebar-header {
  padding-bottom: 4px;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.04em;
  display: inline-block;
}
.brand-logo span {
  color: var(--primary);
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 1px;
}

/* Arama */
.sidebar-search {
  position: relative;
  margin: 16px 0 14px;
  display: flex;
  align-items: center;
}
.sidebar-search svg {
  position: absolute;
  left: 10px;
  color: var(--text-light);
  pointer-events: none;
}
.sidebar-search input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface-subtle);
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}
.sidebar-search input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.sidebar-search input::placeholder {
  color: var(--text-light);
}

/* Sidebar Navigasyon */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin: 14px 0 6px;
  padding-left: 4px;
}

.segmented-control {
  display: flex;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border-subtle);
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 5px 0;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.seg-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
}
.nav-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.sidebar-ad-card {
  min-height: 110px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  margin-bottom: 10px;
  padding: 6px;
  overflow: hidden;
  text-align: center;
}
.sidebar-ad-card ins.adsbygoogle {
  width: 100%;
}
.ad-label-micro {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-block;
}
.top-banner-ad-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.top-banner-ad {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  overflow: hidden;
  text-align: center;
}
.top-banner-ad ins.adsbygoogle {
  width: 100%;
}
.legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-light);
}
.legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.legal-links a:hover { color: var(--text-main); }
.free-notice {
  font-size: 0.70rem;
  line-height: 1.5;
  color: var(--text-light);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: center;
}
.free-notice strong { color: var(--text-main); }
.footer-copy {
  margin-top: 8px;
  font-size: 0.66rem;
  color: var(--text-light);
  text-align: center;
}
.license-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0 4px;
  font-size: 0.92rem;
  color: #1e1b4b;
}
.license-box strong { color: #4338ca; }

/* Ana İçerik / Galeri Alanı */
.main-content {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
}
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.content-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.page-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.wallpapers-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* =========================================================
   MASONRY GRID (Pinterest / Unsplash Akıcı Tuğla Dizilimi)
   Boşluksuz, her resmin doğal yüksekliğine oturan sütun yapısı
========================================================= */
.wallpapers-grid {
  column-count: 4;
  column-gap: 12px;
}

@media (min-width: 1600px) {
  .wallpapers-grid {
    column-count: 5;
  }
}
@media (max-width: 1300px) {
  .wallpapers-grid {
    column-count: 3;
  }
}
@media (max-width: 860px) {
  .wallpapers-grid {
    column-count: 2;
    column-gap: 8px;
  }
}
@media (max-width: 480px) {
  .wallpapers-grid {
    column-count: 2;
    column-gap: 6px;
  }
}

.wallpaper-card {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 860px) {
  .wallpaper-card {
    margin-bottom: 8px;
  }
}
@media (max-width: 480px) {
  .wallpaper-card {
    margin-bottom: 6px;
  }
}

.wallpaper-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
}

.wallpaper-card.is-mobile {
  max-height: 290px;
}

.wallpaper-card img {
  width: 100%;
  height: auto;
  display: block;
}

.wallpaper-card.is-mobile img {
  max-height: 290px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 860px) {
  .wallpaper-card.is-mobile,
  .wallpaper-card.is-mobile img {
    max-height: 230px;
  }
}

/* Kart Üzeri Hover Overlay */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0) 40%, rgba(15,23,42,0.6) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  pointer-events: none;
}
.wallpaper-card:hover .card-hover-overlay {
  opacity: 1;
}

.overlay-top {
  display: flex;
  justify-content: flex-end;
}
.overlay-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.overlay-title {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  padding-right: 8px;
}

.overlay-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: var(--radius-sm);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  pointer-events: auto;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.overlay-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}
.overlay-btn.liked {
  color: #ef4444;
}

/* =========================================================
   FOTOĞRAF DETAY VE İNDİRME MODALI (Resme tıklanınca)
========================================================= */
.photo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.photo-modal-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.photo-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.96) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modal Üst Bar */
.pm-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
.pm-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-badge {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.pm-meta-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
}

.pm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-fav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pm-fav-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
}
.pm-fav-btn.active {
  color: #ef4444;
  border-color: #fecaca;
  background: #fef2f2;
}
.pm-heart {
  font-size: 0.95rem;
  line-height: 1;
}

/* =========================================================
   LUMINA SIGNATURE DOWNLOAD HUB & RESOLUTION POPOVER
   ========================================================= */
.lumina-dl-hub {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lumina-dl-hub:hover {
  border-color: #6366f1;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.btn-lumina-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn-lumina-dl:hover {
  background: rgba(255, 255, 255, 0.08);
}
.lumina-badge-res {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn-lumina-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: transparent;
  color: #c7d2fe;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  transition: all 0.15s ease;
}
.btn-lumina-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Studio Resolution Popover Card */
.lumina-dl-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 20px 35px -5px rgba(15, 23, 42, 0.22), 0 8px 16px -4px rgba(15, 23, 42, 0.1);
  width: 320px;
  padding: 10px;
  z-index: 100;
  display: none;
  flex-direction: column;
  animation: popoverFadeIn 0.18s ease-out;
}
.lumina-dl-popover.open {
  display: flex;
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.popover-title {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
}
.popover-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  padding: 2px 7px;
  border-radius: 999px;
}

.popover-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lumina-res-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
  width: 100%;
}
.lumina-res-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateX(2px);
}
.lumina-res-card.active-master {
  background: #f5f3ff;
  border-color: #ddd6fe;
}
.lumina-res-card.active-master:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
}
.res-card-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.res-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge-rec {
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.res-card-desc {
  font-size: 0.70rem;
  color: #64748b;
  line-height: 1.25;
}
.res-card-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 10px;
}
.res-card-dim {
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  font-family: ui-monospace, monospace;
}

.popover-footer {
  margin-top: 8px;
  padding: 8px 6px 2px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.pm-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  margin-left: 4px;
}
.pm-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

/* Modal Görsel Sahnesi */
.pm-stage {
  background: #090d16;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 56vh;
  min-height: 280px;
  overflow: hidden;
}
.pm-stage img {
  max-width: 100%;
  max-height: 54vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Modal Alt Bölümü */
.pm-footer {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pm-details {
  min-width: 0;
  flex: 1;
}
.pm-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.pm-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 3px 0 8px;
  line-height: 1.4;
}
.pm-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pm-pill-item {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
}
.pm-stat-pill {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.pm-stat-pill strong {
  font-weight: 700;
  color: var(--text-main);
  margin-left: 2px;
}

/* In-Feed AdSense Card (Masonry uyumlu para kazanma kartı) */
.ad-card-feed {
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  cursor: default;
  box-shadow: none;
}
.ad-card-feed:hover {
  transform: none;
  box-shadow: none;
}
.ad-feed-inner {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-surface-subtle);
  color: var(--text-light);
  margin-bottom: 8px;
  display: inline-block;
}
.ad-feed-body {
  padding: 12px 6px;
}
.ad-feed-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 6px;
}
.ad-feed-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.ad-feed-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pm-ad-slot {
  min-width: 290px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.modal-ad-wrap {
  width: 100%;
  min-height: 80px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.modal-ad-wrap ins.adsbygoogle {
  width: 100%;
}
.ad-placeholder-small {
  width: 280px;
  height: 60px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
  background: var(--bg-app);
}

/* Legal Sayfalar (/privacy, /terms, /about, /contact) */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 0 40px;
}
.legal-container h1 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
  letter-spacing: -0.03em;
}
.legal-container .last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 22px 0 6px;
  color: var(--text-main);
}
.legal-content p, .legal-content ul {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-content ul {
  padding-left: 20px;
}
.legal-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}
.legal-bottom-ad {
  margin: 26px 0 8px;
  padding: 12px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
}
.legal-bottom-ad ins.adsbygoogle { width: 100%; }

/* Mobil ve Responsive */
.mobile-header, .sidebar-backdrop { display: none; }

@media (max-width: 860px) {
  .layout-container { flex-direction: column; }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
  }
  .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.1);
  }
  .sidebar.open { left: 0; }
  
  .sidebar-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 35;
  }
  
  .main-content { padding: 14px 12px; }
  
  .pm-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pm-ad-slot {
    width: 100%;
    justify-content: center;
  }
}


/* -- Pagination Bar -------------------------------------------------------- */
#paginationBar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 28px 16px 40px;
  width: 100%;
}
.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1;
}
.pg-btn:hover:not(.pg-disabled):not(.pg-active) {
  background: #f1f5f9;
  border-color: #6366f1;
  color: #6366f1;
}
.pg-btn.pg-active {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
  cursor: default;
}
.pg-btn.pg-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #f8fafc;
}
.pg-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  color: #94a3b8;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
