:root {
  --page: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #0b0d12;
  --muted: #5b6676;
  --muted-2: #7a8799;
  --stroke: rgba(15, 23, 42, 0.12);
  --stroke-2: rgba(15, 23, 42, 0.08);
  --brand: #0b63ff;
  --brand-2: #00c2ff;
  --shadow: 0 18px 46px rgba(10, 15, 22, 0.10);
  --shadow-2: 0 30px 90px rgba(10, 15, 22, 0.16);
  --radius: 20px;
  --radius-2: 26px;
  --focus: 0 0 0 4px rgba(11, 99, 255, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 10% -10%, rgba(11, 99, 255, 0.14), transparent 60%),
    radial-gradient(900px 650px at 95% 0%, rgba(0, 194, 255, 0.10), transparent 55%),
    linear-gradient(180deg, #fbfcff, var(--page));
  overflow-x: hidden;
}

body[data-theme="colorful"] {
  --brand: #ff6a2b;
  --brand-2: #ffbe0b;
  --focus: 0 0 0 4px rgba(255, 106, 43, 0.18);
  background:
    radial-gradient(1200px 760px at 8% -8%, rgba(255, 106, 43, 0.20), transparent 62%),
    radial-gradient(1000px 720px at 95% 0%, rgba(255, 190, 11, 0.18), transparent 60%),
    radial-gradient(900px 650px at 45% 110%, rgba(255, 0, 110, 0.12), transparent 60%),
    linear-gradient(180deg, #fff7f1, #fffdf8);
}

body[data-theme="dark"] {
  --page: #0b111d;
  --surface: rgba(13, 19, 33, 0.90);
  --surface-solid: #0f172a;
  --text: #e8eefc;
  --muted: #9cadc8;
  --muted-2: #7f90ac;
  --stroke: rgba(190, 209, 242, 0.20);
  --stroke-2: rgba(190, 209, 242, 0.12);
  --brand: #6ea8ff;
  --brand-2: #22d3ee;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  --shadow-2: 0 32px 100px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 4px rgba(110, 168, 255, 0.24);
  background:
    radial-gradient(1200px 760px at 8% -8%, rgba(88, 117, 255, 0.20), transparent 62%),
    radial-gradient(1000px 720px at 95% 0%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, #0b111d, #070d18);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #041017;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(11, 99, 255, 0.14);
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.05;
}
.brand-text strong {
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: auto;
  padding: 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}
.nav::-webkit-scrollbar { height: 8px; }
.nav::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.14);
  border-radius: 999px;
}

.navItem {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 6px;
  font-weight: 800;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.navItem:hover { color: var(--text); }
.navItem.is-active {
  color: var(--text);
  border-bottom-color: var(--brand);
}
.navItem:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.themeSwitch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.74);
}

.themeBtn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 900;
  color: var(--muted);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.themeBtn:hover { color: var(--text); background: rgba(15, 23, 42, 0.06); }
.themeBtn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.themeBtn:focus-visible { outline: none; box-shadow: var(--focus); }

.iconBtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.iconBtn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 15, 22, 0.10); }
.iconBtn:focus-visible { outline: none; box-shadow: var(--focus); }

.page {
  max-width: 1800px;
  margin: 0 auto;
  padding: 22px 18px 76px;
}

.pageHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 18px;
}

.crumb {
  font-size: 0.92rem;
  color: var(--muted-2);
  letter-spacing: 0.2px;
}

h1 {
  font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
  letter-spacing: 0.2px;
  line-height: 1.06;
  margin-top: 8px;
  font-weight: 900;
}

.resultLine {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.headControls {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  gap: 12px;
  align-items: center;
  justify-items: end;
}

.searchBox {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(10, 15, 22, 0.08);
}
.searchBox:focus-within { box-shadow: var(--focus); }
.searchBox input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.searchBox input::placeholder { color: rgba(91, 102, 118, 0.85); }

.clearBtn {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.clearBtn:hover { background: rgba(15, 23, 42, 0.06); color: var(--text); }
.clearBtn:focus-visible { outline: none; box-shadow: var(--focus); }

.sortBox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.78);
  position: relative;
}
.sortBox label { color: var(--muted); font-weight: 800; }
.sortBox select {
  border: none;
  outline: none;
  background: transparent;
  font-weight: 800;
  color: var(--brand);
  cursor: pointer;
  appearance: none;
  padding-right: 18px;
}
.sortBox::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  align-items: start;
}

.weatherStrip {
  margin-bottom: 14px;
  border-radius: var(--radius-2);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.weatherHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.weatherHead strong {
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.weatherHead span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.weatherTicker {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--stroke-2);
  background: rgba(255, 255, 255, 0.58);
}

.weatherTrack {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: max-content;
  padding: 10px;
  animation: weatherSlide 55s linear infinite;
}

.weatherCityCard {
  min-width: 340px;
  border: 1px solid var(--stroke-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.weatherCityName {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.weatherDays {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.weatherDay {
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 3px;
}

.weatherLabel {
  font-size: 0.72rem;
  color: var(--muted-2);
  font-weight: 800;
}

.weatherTemp {
  font-size: 0.78rem;
  font-weight: 900;
}

.weatherDesc {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
}

@keyframes weatherSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sidebar {
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow);
  padding: 14px;
  position: sticky;
  top: 78px;
}

.sidebarHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}
.sidebarHead strong { font-weight: 900; letter-spacing: 0.2px; }

.linkBtn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
}
.linkBtn:hover { background: rgba(11, 99, 255, 0.08); }
.linkBtn:focus-visible { outline: none; box-shadow: var(--focus); }

.facet {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 10px 6px;
}
.facet:first-of-type { border-top: none; }

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
  color: var(--text);
  padding: 10px 6px;
  border-radius: 14px;
}
summary:hover { background: rgba(15, 23, 42, 0.04); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, 0.46);
  border-bottom: 2px solid rgba(15, 23, 42, 0.46);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
  margin-left: auto;
}
details[open] > summary::after { transform: rotate(-135deg); }

.facetBody {
  padding: 8px 6px 2px;
  display: grid;
  gap: 6px;
}

.facetRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 14px;
}
.facetRow:hover { background: rgba(15, 23, 42, 0.04); }

.facetLabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-weight: 700;
}
.facetLabel input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}
.facetLabel span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.count {
  font-size: 0.88rem;
  color: var(--muted-2);
  font-weight: 800;
  flex: 0 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: grid;
  grid-template-columns: minmax(250px, 40%) 1fr;
  min-height: 300px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.media {
  position: relative;
  background:
    radial-gradient(120% 85% at 15% 20%, hsla(var(--h1, 210), 90%, 55%, 0.28), transparent 55%),
    radial-gradient(120% 85% at 90% 0%, hsla(var(--h2, 185), 95%, 60%, 0.20), transparent 55%),
    linear-gradient(135deg, rgba(11, 99, 255, 0.08), rgba(0, 194, 255, 0.08));
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mediaMark {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 46px rgba(10, 15, 22, 0.12);
  font-weight: 900;
  color: rgba(11, 13, 18, 0.86);
  letter-spacing: 0.4px;
}

.cardBody {
  padding: 20px 20px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.cardTitle {
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.cardMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.95);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}
.pill.cat { background: rgba(11, 99, 255, 0.08); border-color: rgba(11, 99, 255, 0.16); color: #0b2b79; }
.pill.ver { background: rgba(0, 194, 255, 0.08); border-color: rgba(0, 194, 255, 0.16); color: #134760; }
.pill.size { background: rgba(15, 23, 42, 0.04); border-color: rgba(15, 23, 42, 0.10); color: var(--muted); }

.cardDesc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.is-expanded .cardDesc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.cardActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.70);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.1px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 15, 22, 0.10); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn.primary {
  color: #041017;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: rgba(11, 99, 255, 0.16);
}
.btn.outline {
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--brand);
}
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.moreBtn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  justify-self: start;
  width: fit-content;
}
.moreBtn:hover { background: rgba(11, 99, 255, 0.08); }
.moreBtn:focus-visible { outline: none; box-shadow: var(--focus); }

.engagementRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.miniStat {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.miniStat b { color: var(--text); }

.voteRow {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.voteBtn {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.voteBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 99, 255, 0.35);
  color: var(--text);
}

.voteBtn.is-active.like {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.42);
  color: #065f46;
}

.voteBtn.is-active.dislike {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #7f1d1d;
}

.commentsPanel {
  display: none;
  margin-top: 6px;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  padding-top: 12px;
  gap: 10px;
}

.card.is-expanded .commentsPanel {
  display: grid;
}

.commentsTitle {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text);
}

.commentList {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
  padding-right: 2px;
}

.commentEmpty {
  color: var(--muted);
  font-size: 0.88rem;
}

.commentItem {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.70);
  display: grid;
  gap: 6px;
}

.commentMeta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.commentText {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.commentForm {
  display: grid;
  gap: 8px;
}

.commentForm input,
.commentForm textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: 0.88rem;
}

.commentForm textarea {
  min-height: 80px;
  resize: vertical;
}

.commentActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.commentBtn {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.commentBtn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041017;
}

.commentBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.commentInfo {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.commentInfo.error { color: #b91c1c; }
.commentInfo.success { color: #047857; }

.state {
  margin-top: 14px;
  padding: 18px 18px;
  border-radius: var(--radius-2);
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.70);
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}
.state-error {
  border-style: solid;
  border-color: rgba(249, 115, 22, 0.22);
  background: rgba(249, 115, 22, 0.08);
  color: #6a340d;
}

.skeleton { position: relative; overflow: hidden; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.62) 35%, transparent 60%);
  transform: translateX(-100%);
  animation: shimmer 1.25s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.footer {
  margin-top: 24px;
  padding: 18px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.94rem;
  font-weight: 700;
}

body[data-theme="dark"] .topbar {
  background: rgba(8, 12, 22, 0.76);
  border-bottom-color: rgba(190, 209, 242, 0.14);
}

body[data-theme="dark"] .themeSwitch,
body[data-theme="dark"] .sortBox,
body[data-theme="dark"] .searchBox,
body[data-theme="dark"] .iconBtn,
body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .card,
body[data-theme="dark"] .state,
body[data-theme="dark"] .facetRow:hover {
  background: rgba(15, 22, 36, 0.86);
  border-color: rgba(190, 209, 242, 0.16);
}

body[data-theme="dark"] .facet {
  border-top-color: rgba(190, 209, 242, 0.16);
}

body[data-theme="dark"] summary {
  color: #e8eefc;
}

body[data-theme="dark"] summary::after {
  border-right-color: rgba(216, 228, 251, 0.72);
  border-bottom-color: rgba(216, 228, 251, 0.72);
}

body[data-theme="dark"] .facetRow {
  background: rgba(15, 22, 36, 0.48);
  border: 1px solid rgba(190, 209, 242, 0.14);
}

body[data-theme="dark"] .facetRow:hover {
  background: rgba(35, 49, 78, 0.70);
  border-color: rgba(190, 209, 242, 0.28);
}

body[data-theme="dark"] .facetLabel {
  color: #dbe6fc;
}

body[data-theme="dark"] .count {
  color: #b6c5df;
}

body[data-theme="dark"] .navItem {
  color: #c5d4ee;
}

body[data-theme="dark"] .navItem.is-active {
  color: #f5f8ff;
}

body[data-theme="dark"] .weatherStrip,
body[data-theme="dark"] .weatherTicker,
body[data-theme="dark"] .weatherCityCard,
body[data-theme="dark"] .weatherDay,
body[data-theme="dark"] .miniStat,
body[data-theme="dark"] .commentItem,
body[data-theme="dark"] .commentForm input,
body[data-theme="dark"] .commentForm textarea,
body[data-theme="dark"] .commentBtn {
  background: rgba(15, 22, 36, 0.84);
  border-color: rgba(190, 209, 242, 0.18);
  color: var(--text);
}

body[data-theme="dark"] .weatherHead span,
body[data-theme="dark"] .weatherDesc,
body[data-theme="dark"] .commentEmpty,
body[data-theme="dark"] .commentInfo,
body[data-theme="dark"] .commentMeta,
body[data-theme="dark"] .miniStat {
  color: #b6c5df;
}

body[data-theme="dark"] .voteBtn {
  background: rgba(15, 22, 36, 0.84);
  border-color: rgba(190, 209, 242, 0.18);
  color: #dbe6fc;
}

body[data-theme="dark"] .voteBtn.is-active.like {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.52);
  color: #d1fae5;
}

body[data-theme="dark"] .voteBtn.is-active.dislike {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.52);
  color: #fecaca;
}

body[data-theme="dark"] .searchBox input::placeholder {
  color: rgba(156, 173, 200, 0.88);
}

body[data-theme="dark"] .btn.outline,
body[data-theme="dark"] .clearBtn:hover,
body[data-theme="dark"] .themeBtn:hover {
  background: rgba(190, 209, 242, 0.12);
  border-color: rgba(190, 209, 242, 0.20);
  color: var(--text);
}

body[data-theme="dark"] .pill {
  background: rgba(190, 209, 242, 0.12);
  border-color: rgba(190, 209, 242, 0.18);
  color: var(--muted);
}

body[data-theme="dark"] .pill.cat {
  background: rgba(110, 168, 255, 0.18);
  border-color: rgba(110, 168, 255, 0.28);
  color: #d9e7ff;
}

body[data-theme="dark"] .pill.ver {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.28);
  color: #d5f8ff;
}

body[data-theme="dark"] .mediaMark {
  background: rgba(15, 22, 36, 0.84);
  border-color: rgba(190, 209, 242, 0.22);
  color: var(--text);
}

body[data-theme="dark"] .navItem:hover,
body[data-theme="dark"] .brand-text strong,
body[data-theme="dark"] .cardTitle,
body[data-theme="dark"] h1 {
  color: var(--text);
}

body[data-theme="dark"] .iconBtn path,
body[data-theme="dark"] .searchBox path,
body[data-theme="dark"] .clearBtn path {
  stroke: #d8e4fb !important;
  stroke-opacity: 0.9 !important;
}

@media (max-width: 1080px) {
  .weatherCityCard { min-width: 300px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: auto; }
  .topbar-inner { grid-template-columns: 240px 1fr auto; }
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
    min-height: 0;
  }
  .media {
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 720px) {
  .weatherCityCard { min-width: 260px; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .themeBtn { padding: 7px 9px; font-size: 0.76rem; }
  .headControls { grid-template-columns: 1fr; justify-items: stretch; }
  .pageHead { align-items: start; }
  .grid { grid-template-columns: 1fr; }
  .cardActions { grid-template-columns: 1fr; }
  .commentActions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .card, .btn, .iconBtn, .navItem { transition: none !important; }
  .skeleton::after { animation: none !important; }
}
