/* ═══════════════════════════════════════════════════════════════
   RSSddit — Design System "Oráculo" (Prophet AI)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --ease: cubic-bezier(.22, .8, .36, 1);

  --bg0: #0F1113;
  --bg1: #222529;
  --bg2: #2A2D32;
  --bg3: #33373D;
  --line: #3D4148;
  --line-soft: #2C3035;

  --ink: #F0F4F8;
  --ink-dim: #A0AAB5;
  --ink-faint: #7A808A;

  --accent: #4FA8B8;
  --accent-hi: #6DC4D4;
  --accent-ink: #0A1A1F;
  --accent-dim: rgba(79, 168, 184, .14);

  --teal: #6fd3c7;
  --teal-dim: rgba(111, 211, 199, .13);

  --rose: #e57389;
  --rose-dim: rgba(229, 115, 137, .13);
  --ok: #8fd98f;
  --warn: #e5b95e;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 30px rgba(0,0,0,.5);
  --shadow-3: 0 24px 70px rgba(0,0,0,.6);
  --scrim: rgba(13, 14, 16, .62);
  --code-bg: #14171A;

  --sidebar-width: 280px;
  --header-height: 52px;
}

/* ── base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font: 400 14.5px/1.6 var(--font-ui);
  background: var(--bg0);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-top: var(--header-height);
}

::selection { background: var(--accent-dim); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

kbd {
  font: 500 10.5px/1 var(--font-mono);
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 5px 3px;
  background: var(--bg1);
}

.i { display: inline-flex; width: 16px; height: 16px; flex: none; align-items: center; justify-content: center; }
.i svg { width: 100%; height: 100%; }

/* ── scrollbars ──────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ═══════════════════════════════════════════════════════════
   SKIP-LINK (acessibilidade)
   ═══════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ═══════════════════════════════════════════════════════════
   HEADER (padrão #hdr do Prophet)
   ═══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

/* brand mark (igual ao .sb-brand-mark do Prophet) */
.header__brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  background:
    radial-gradient(circle at 50% 42%, var(--accent-hi) 0 3px, transparent 3.5px),
    conic-gradient(from 210deg, var(--accent), #2D5A63 55%, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 14px rgba(79,168,184,.28);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header__logo-text {
  font: 600 18px/1 var(--font-ui);
  letter-spacing: .02em;
}

.header__logo-text em {
  font-style: normal;
  color: var(--accent);
}

/* ghost button (ícone 32x32) — padrão Prophet */
.ghost-btn {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-dim);
  transition: background .12s, color .12s;
}
.ghost-btn:hover { background: var(--bg2); color: var(--ink); }

/* header__search — input pill sem borda visível, focus ciano */
.header__search {
  flex: 1;
  max-width: 540px;
  position: relative;
  margin: 0 auto;
}

.header__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  pointer-events: none;
  flex: none;
}

.header__search-input {
  width: 100%;
  background: var(--bg0);
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 32px 8px 38px;
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .15s;
}

.header__search-input::placeholder { color: var(--ink-faint); }
.header__search-input:focus { border-color: var(--accent); }

/* Search clear button */
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink-faint);
  transition: color .12s;
  line-height: 1;
}
.search-clear:hover { color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* ═══════════════════════════════════════════════════════════
   BOTÕES (padrão .btn do Prophet)
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
}

.btn:hover { background: var(--bg3); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover { background: var(--accent-hi); }

.btn--small {
  padding: 5px 10px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  gap: 20px;
  min-height: calc(100vh - var(--header-height));
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-y: auto;
}

.sidebar__inner {
  background: var(--bg1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px;
}

.sidebar__title {
  font: 600 10.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-faint);
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}

.sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background .12s, color .12s;
  color: var(--ink);
}

.sidebar__item:hover {
  background: var(--bg2);
  color: var(--ink);
}

/* Feed active state */
.sidebar__item--active {
  background: var(--accent-dim);
  color: var(--accent-hi);
}

.sidebar__item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Feed post count badge */
.sidebar__item-count {
  font: 600 10px/1 var(--font-mono);
  color: var(--ink-faint);
  background: var(--bg2);
  border-radius: 10px;
  padding: 2px 6px;
  margin: 0 4px;
  flex-shrink: 0;
}
.sidebar__item--active .sidebar__item-count {
  color: var(--accent);
  background: rgba(79, 168, 184, .2);
}

.sidebar__item-remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity .12s, color .12s;
  flex-shrink: 0;
  line-height: 1;
}

.sidebar__item:hover .sidebar__item-remove { opacity: 1; }
.sidebar__item-remove:hover { color: var(--rose); }

.sidebar__add {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.sidebar__add-input {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.85rem;
  outline: none;
  transition: border-color .15s;
}

.sidebar__add-input:focus { border-color: var(--accent); }
.sidebar__add-input::placeholder { color: var(--ink-faint); }

.sidebar__hint {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  min-width: 0;
  max-width: 700px;
}

/* ═══════════════════════════════════════════════════════════
   SORT BAR (tabs estilo Prophet .alp-view-tab)
   ═══════════════════════════════════════════════════════════ */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

/* Post count badge */
.post-count {
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-faint);
  margin-right: auto;
  padding: 8px 0;
}

/* View toggle (list / grid) */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 3px;
}

.view-toggle__btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  border-radius: 5px;
  color: var(--ink-faint);
  transition: all .15s var(--ease);
}

.view-toggle__btn:hover {
  color: var(--ink-dim);
  background: var(--bg2);
}

.view-toggle__btn--active {
  background: var(--accent-dim);
  color: var(--accent-hi);
}

.view-toggle__btn--active:hover {
  color: var(--accent-hi);
  background: var(--accent-dim);
}

.sort-bar__btn {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s var(--ease);
}

.sort-bar__btn:hover { color: var(--ink); }

.sort-bar__btn--active {
  background: var(--accent-dim);
  color: var(--accent-hi);
}

/* ═══════════════════════════════════════════════════════════
   POSTS CONTAINER
   ═══════════════════════════════════════════════════════════ */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── GRID VIEW ────────────────────────────────────────────── */
.posts-container--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 6px;
}

.posts-container--grid .post-card {
  flex-direction: column;
}

.posts-container--grid .post-card__content {
  flex-direction: column;
  padding: 0;
  gap: 0;
}

/* Thumbnail full-width on top */
.posts-container--grid .post-card__thumbnail,
.posts-container--grid .skeleton-thumb {
  width: 100%;
  height: 72px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  flex-shrink: 0;
}

/* Text area */
.posts-container--grid .post-card__text {
  padding: 8px 10px;
  gap: 4px;
  justify-content: flex-start;
}

.posts-container--grid .post-card__title {
  font-size: 0.82rem;
  -webkit-line-clamp: 2;
}

.posts-container--grid .post-card__desc {
  display: none;
}

/* Copy button repositioned for grid */
.posts-container--grid .post-card__copy {
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
}

/* Grid skeleton overrides */
.posts-container--grid .post-card--skeleton {
  flex-direction: column;
}

.posts-container--grid .post-card--skeleton .post-card__content {
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.posts-container--grid .post-card--skeleton .skeleton-thumb {
  width: 100%;
}

.posts-container--grid .post-card--skeleton .post-card__text {
  padding: 8px 10px;
}

/* ═══════════════════════════════════════════════════════════
   POST CARD
   ═══════════════════════════════════════════════════════════ */
.post-card {
  display: flex;
  background: var(--bg1);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  contain: layout style paint;
  transition: border-color .15s, background .15s, transform .13s var(--ease);
}

.post-card:hover {
  border-color: var(--line);
  background: var(--bg2);
  transform: translateY(-1px);
}

/* Post read state */
.post-card--read { opacity: .55; }
.post-card--read:hover { opacity: .85; }

/* Post selected state (keyboard nav) */
.post-card--selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Copy link button (appears on hover) */
.post-card__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--bg1);
  border: 1px solid var(--line-soft);
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity .12s, color .12s;
  font-size: 13px;
  z-index: 2;
}
.post-card:hover .post-card__copy { opacity: 1; }
.post-card__copy:hover { color: var(--accent); border-color: var(--accent); }

.post-card__content {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 8px 12px 8px 8px;
  gap: 12px;
}

.post-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.post-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-faint);
}

/* badge estilo .tier do Prophet */
.post-card__badge {
  font: 700 10px/1 var(--font-mono);
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--accent-dim);
  color: var(--accent);
  white-space: nowrap;
}

.post-card__sep {
  color: var(--ink-faint);
  opacity: 0.5;
}

.post-card__author,
.post-card__time {
  white-space: nowrap;
  color: var(--ink-faint);
}

.post-card__desc {
  font-size: 0.8rem;
  color: var(--ink-dim);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__thumbnail {
  width: 140px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   SKELETON SHIMMER (loading state)
   ═══════════════════════════════════════════════════════════ */
.post-card--skeleton {
  pointer-events: none;
}
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-line--title { width: 70%; height: 16px; margin-bottom: 8px; }
.skeleton-line--meta { width: 40%; height: 10px; margin-bottom: 6px; }
.skeleton-line--desc { width: 90%; }
.skeleton-thumb {
  width: 140px;
  height: 96px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-2);
  transition: opacity .2s, transform .2s var(--ease), color .12s;
  z-index: 900;
}
.scroll-top:hover { color: var(--accent); transform: translateY(-2px); }
.scroll-top[hidden] { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ═══════════════════════════════════════════════════════════
   ESTADOS: LOADING, ERROR, EMPTY (padrão .msg-system)
   ═══════════════════════════════════════════════════════════ */
.state-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-dim);
  gap: 12px;
}

.state-message__icon {
  font-size: 2.5rem;
  opacity: 0.6;
}

.state-message__text {
  font-size: 1rem;
  max-width: 400px;
  line-height: 1.5;
}

.state-message__sub {
  font-size: 11.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* Spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   TOASTS (padrão Prophet)
   ═══════════════════════════════════════════════════════════ */
#toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 11px 15px;
  max-width: 360px;
  font-size: 13px;
  font-weight: 500;
  animation: toast-in .25s var(--ease);
}

.toast--err { border-left-color: var(--rose); }
.toast--ok { border-left-color: var(--ok); }

.toast__icon {
  flex: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.toast--err .toast__icon { color: var(--rose); }
.toast--ok .toast__icon { color: var(--ok); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(14px); }
}

.toast--out {
  opacity: 0;
  transform: translateX(14px);
  transition: all .25s var(--ease);
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}

.pagination[hidden] { display: none !important; }

.pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink-dim);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
}

.pagination__btn:hover:not(:disabled) {
  background: var(--bg3);
  color: var(--ink);
  border-color: var(--accent);
}

.pagination__btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.pagination__btn svg {
  width: 14px;
  height: 14px;
}

.pagination__info {
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .post-card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO — MOBILE (padrão Prophet)
   ═══════════════════════════════════════════════════════════ */
.sidebar-toggle {
  display: none;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: grid;
    place-items: center;
  }

  .header {
    padding: 10px 12px;
    gap: 6px;
  }

  .header__logo-text span:not(em) { display: none; }

  .header__search { max-width: none; }

  .layout {
    padding: 12px;
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    max-height: none;
    z-index: 2000;
    transition: left .28s var(--ease);
    padding: 0;
    background: var(--bg1);
  }

  .sidebar--open { left: 0; }

  .sidebar__inner {
    border: none;
    border-radius: 0;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--scrim);
    z-index: 1999;
  }

  .sidebar-overlay--visible { display: block; }

  .main { max-width: 100%; }

  .post-card__thumbnail,
  .skeleton-thumb {
    width: 100px;
    height: 72px;
  }

  .post-card__title { font-size: 0.9rem; }

  .post-card__content {
    padding: 6px 8px 6px 6px;
    gap: 8px;
  }

  .sort-bar__btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .scroll-top {
    bottom: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  #toasts {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .post-card__thumbnail,
  .skeleton-thumb {
    width: 80px;
    height: 60px;
  }

  .post-card__content {
    padding: 4px 6px;
    gap: 6px;
  }

  .post-card__title { font-size: 0.85rem; }

  .post-card__meta { font-size: 0.7rem; }
}
