*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --yellow:  #FFD93D;
  --red:     #FF4757;
  --dark:    #1a1a2e;
  --darker:  #0f0f1a;
  --card-bg: #16213e;
  --text:    #f0f0f0;
  --shadow:  4px 4px 0px #000;
}
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--darker);
  background-image: url('assets/bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.82);
  z-index: 0;
}
#app { 
    position: relative; 
    z-index: 1; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    overflow-x: hidden;
}

/* ─── Header ────────────────────────────────────── */
header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}
header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
  -webkit-text-stroke: 1px #000;
  cursor: pointer;
}
/* ─── Breadcrumb / Filter-Anzeige ───────────────── */
#filter-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 1rem;
  flex-wrap: wrap;
}
#filter-bar.show { display: flex; }
.filter-badge {
  background: var(--yellow);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 2px solid #000;
}
.filter-type {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#btn-back {
  background: var(--card-bg);
  border: 2px solid #555;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
}
#btn-back:hover { border-color: var(--yellow); background: #1e2d50; }
/* ─── Grid ──────────────────────────────────────── */
#comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}
/* ─── Comic Card ────────────────────────────────── */
.comic-card {
  background: var(--card-bg);
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.comic-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px #000;
}
.comic-card-cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid #000;
  cursor: pointer;
}
.comic-card-info {
  padding: 0.6rem 0.75rem 0.75rem;
  cursor: pointer;
}
.comic-card-info h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.comic-card-meta {
  display: flex;
  flex-direction: column;
  margin-top: 0.35rem;
  gap: 0.2rem;
}
.comic-card-author {
  font-size: 0.78rem;
  color: #aaa;
}
.comic-card-author .clickable-tag {
  color: #7eb8ff;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.1s;
}
.comic-card-author .clickable-tag:hover { color: var(--yellow); }
.comic-card-collection {
  font-size: 0.75rem;
  color: #aaa;
}
.comic-card-collection .clickable-tag {
  color: #7eb8ff;
  cursor: pointer;
  transition: color 0.1s;
}
.comic-card-collection .clickable-tag:hover { color: var(--yellow); }
.comic-card-pages {
  font-size: 0.72rem;
  color: #555;
}
/* Info-Button auf der Card */
.btn-info {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  border: 1.5px solid #555;
  border-radius: 50%;
  color: #aaa;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  z-index: 2;
  line-height: 1;
}
.btn-info:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}
/* ─── Info Popup ────────────────────────────────── */
#info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#info-overlay.open { display: flex; }
#info-box {
  background: var(--card-bg);
  border: 3px solid #333;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  -webkit-overflow-scrolling: touch;
}
#info-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0.8rem;
  border-bottom: 2px solid #222;
  gap: 1rem;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 1;
}
#info-box-header h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}
#btn-info-close {
  background: none;
  border: 2px solid #555;
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btn-info-close:hover { border-color: var(--yellow); }
#info-box-meta {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.info-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.info-meta-label {
  color: #666;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 80px;
  padding-top: 1px;
}
.info-meta-value { color: #ccc; }
.clickable-tag {
  display: inline-block;
  color: #7eb8ff;
  cursor: pointer;
  transition: color 0.1s;
  text-decoration: none;
}
.clickable-tag:hover { color: var(--yellow); }
.tag-pill {
  background: #1a2a40;
  border: 1px solid #2a3a55;
  border-radius: 12px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  color: #7eb8ff;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  display: inline-block;
  margin: 2px 2px 2px 0;
}
.tag-pill:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
#info-box-body {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #bbb;
}
#info-box-body h2 { color: var(--yellow); font-size: 0.95rem; margin: 1rem 0 0.4rem; }
#info-box-body h3 { color: #ccc; font-size: 0.88rem; margin: 0.8rem 0 0.3rem; }
#info-box-body p  { margin-bottom: 0.6rem; }
#info-box-body ul { padding-left: 1.2rem; }
.no-meta-hint {
  padding: 1rem 1.2rem;
  color: #555;
  font-size: 0.82rem;
  font-style: italic;
}
/* ─── Reader ────────────────────────────────────── */
#reader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 100;
  flex-direction: column;
}
#reader-overlay.open { display: flex; }
#reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--darker);
  border-bottom: 2px solid #333;
  flex-shrink: 0;
  gap: 0.5rem;
}
#reader-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
#page-counter { font-size: 0.85rem; color: #aaa; white-space: nowrap; }
.toolbar-btn {
  background: none;
  border: 2px solid #555;
  border-radius: 6px;
  color: var(--text);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, border-color 0.1s;
  flex-shrink: 0;
}
.toolbar-btn:hover { background: #333; border-color: var(--yellow); }
#reader-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
}
#current-page-img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  user-select: none;
  display: block;
  cursor: zoom-in;
}
#reader-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--darker);
  border-top: 2px solid #333;
  flex-shrink: 0;
}
.nav-btn {
  background: var(--card-bg);
  border: 2px solid #444;
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  width: 52px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.nav-btn:hover:not(:disabled) {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
  transform: scale(1.05);
}
.nav-btn:disabled { opacity: 0.25; cursor: default; }
#progress-bar-wrap { height: 4px; background: #222; flex-shrink: 0; }
#progress-bar { height: 100%; background: var(--yellow); transition: width 0.2s; }
#thumb-strip {
  display: none;
  overflow-x: auto;
  gap: 6px;
  padding: 6px 1rem;
  background: #0a0a14;
  border-top: 1px solid #222;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
#thumb-strip.open { display: flex; }
.thumb {
  height: 60px;
  width: auto;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.1s, border-color 0.1s;
}
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--yellow); opacity: 1; }

@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 8px rgba(255,71,87,0.4); }
  50%       { box-shadow: 0 0 18px rgba(255,71,87,0.9); }
}

/* ─── Empty / Error ─────────────────────────────── */
#empty-msg {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: #555;
}
#empty-msg.show { display: block; }
#empty-msg p { font-size: 1rem; margin-bottom: 0.5rem; }
#empty-msg small { font-size: 0.8rem; color: #444; }
/* ─── Loading ───────────────────────────────────── */
#loading {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
#loading.show { display: flex; }
.spinner {
  width: 48px; height: 48px;
  border: 5px solid #333;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ─── Responsive ────────────────────────────────── */
@media (max-width: 480px) {
  #current-page-img { max-height: calc(100vh - 160px); }
  .nav-btn { width: 44px; height: 40px; font-size: 1.1rem; }
  #info-box { max-height: 92vh; }
  .info-meta-label { min-width: 65px; }
}

/* ─── Controls Bar ──────────────────────────────────── */
#controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

#search-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  position: relative;
}

#search-wrap::before {
  content: '🔍';
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: var(--card-bg);
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  outline: none;
  transition: border-color 0.15s;
}

#search-input:focus { border-color: var(--yellow); }
#search-input::placeholder { color: #555; }

/* Suchfeld X Button nativ ausblenden, eigenes styling */
#search-input::-webkit-search-cancel-button { display: none; }

#sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#sort-field {
  background: var(--card-bg);
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

#sort-field:focus { border-color: var(--yellow); }

#sort-dir {
  background: var(--card-bg);
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, border-color 0.1s;
  user-select: none;
}

#sort-dir:hover { border-color: var(--yellow); background: #1e2d50; }
#sort-dir.desc  { transform: scaleY(-1); }

#size-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

#card-size {
  width: 80px;
  accent-color: var(--yellow);
  cursor: pointer;
}

/* ─── Download Button ───────────────────────────────── */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-download:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

/* ─── No-results ────────────────────────────────────── */
.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #555;
  font-size: 0.9rem;
}


/* ─── Zoom Overlay ──────────────────────────────────── */
#zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.97);
  cursor: zoom-out;
  overflow: hidden;
}

#zoom-overlay.open { display: block; }

#zoom-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
  will-change: transform;
}

#zoom-overlay img.dragging { cursor: grabbing; }

#zoom-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #ccc;
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 401;
  opacity: 1;
  transition: opacity 0.6s;
}

#zoom-hint.hidden { opacity: 0; }

/* ─── Page Caption ──────────────────────────────────── */
#page-caption {
  text-align: center;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: #666;
  background: var(--darker);
  flex-shrink: 0;
  min-height: 24px;
  font-style: italic;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

#page-caption.has-text { color: #999; }


/* ─── Video Card ────────────────────────────────────── */
.comic-card.video-card .comic-card-cover-wrap {
  position: relative;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.15s;
}

.comic-card:hover .video-play-badge { background: rgba(0,0,0,0.15); }

.video-play-badge::after {
  content: '▶';
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

.comic-card-type-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1.5px solid #000;
}

/* ─── Video Popup ───────────────────────────────────── */
#video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}

#video-overlay.open { display: flex; }

#video-box {
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  min-width: 320px;
}

#video-box iframe,
#video-box video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
  background: #000;
  min-height: 200px;
}

#video-box-title {
  padding: 0.6rem 1rem;
  background: var(--darker);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#video-box-title span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#btn-video-close {
  background: none;
  border: 2px solid #555;
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-video-close:hover { border-color: var(--yellow); }

/* ─── Consent Overlay für externe Videos ────────────── */
#video-consent-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a14;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-consent-box {
  text-align: center;
  padding: 1.5rem;
  max-width: 420px;
}

#video-consent-box .consent-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

#video-consent-box h3 {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

#video-consent-box p {
  color: #888;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#video-consent-box p a {
  color: #7eb8ff;
  text-decoration: none;
}

#video-consent-box p a:hover { color: var(--yellow); }

#btn-consent-accept {
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
  display: block;
  margin: 0 auto 0.5rem;
}

#btn-consent-accept:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

#video-consent-box .consent-hint {
  font-size: 0.7rem;
  color: #444;
}

/* ─── Cookie Banner ─────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: rgba(10, 10, 20, 0.97);
  border-top: 2px solid #222;
  padding: 0.75rem 1rem;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

#cookie-banner.hidden {
  transform: translateY(110%);
}

#cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

#cookie-text {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.5;
}

#cookie-text a {
  color: #7eb8ff;
  text-decoration: none;
}

#cookie-text a:hover { color: var(--yellow); }

#btn-cookie-ok {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid #000;
  border-radius: 6px;
  padding: 0.35rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #000;
}

#btn-cookie-ok:hover { opacity: 0.85; }

/* ─── Footer ────────────────────────────────────────── */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 2px solid #1a1a2e;
  margin-top: auto;
  padding: 1.5rem 1rem;
  background: rgba(5, 5, 15, 0.85);
}

#footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-link {
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.footer-link:hover { color: #aaa; }

.footer-donate {
  color: var(--red) !important;
  font-weight: 700;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  transition: background 0.15s, color 0.15s !important;
}

.footer-donate:hover {
  background: var(--red);
  color: #fff !important;
}

#footer-copy {
  font-size: 0.75rem;
  color: #ffffff;
}

/* ─── Grid Mobile MEdia Query ────────────────────────────────────────── */
/* Desktop: Slider sichtbar, Dropdown versteckt */
#cols-wrap { display: none; }

@media (max-width: 600px) {
  #size-wrap { display: none; }
  #cols-wrap { display: flex; align-items: center; }

  #grid-cols {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ccc;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  #comic-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 0.5rem;
    gap: 0.75rem;
  }

  #app, body {
    overflow-x: hidden;
  }

  #controls-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  #search-wrap { width: 100%; }

  #site-footer { padding: 1rem; }

  #footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  #footer-links { justify-content: center; }
}