@charset "UTF-8";
/* styles.v5.css — Wave B
 * 1) Unified compact "glass-pill" segment style applied to BOTH
 *    #telegramSwitch and .v5-sort so they look identical.
 * 2) View counter badge on cards + detail page.
 */

/* ── Unified segment look (rose glow on active) ── */

#homeView .post-head {
  flex-wrap: wrap;
  row-gap: 10px;
  align-items: center;
}

#homeView .post-head .segment,
#homeView .post-head #telegramSwitch,
#homeView .post-head .v5-sort {
  display: inline-flex;
  gap: 4px;
  flex-wrap: nowrap;
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 244, 222, 0.08);
  background: rgba(28, 24, 19, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-left: auto;
}

#homeView .post-head .segment .segment-btn,
#homeView .post-head #telegramSwitch .segment-btn,
#homeView .post-head .v5-sort .segment-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: rgba(200, 185, 161, 0.84);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: all 160ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
}

#homeView .post-head .segment .segment-btn:hover,
#homeView .post-head #telegramSwitch .segment-btn:hover,
#homeView .post-head .v5-sort .segment-btn:hover {
  color: #fff;
  background: rgba(255, 244, 222, 0.06);
}

#homeView .post-head .segment .segment-btn.active,
#homeView .post-head #telegramSwitch .segment-btn.active,
#homeView .post-head .v5-sort .segment-btn.active {
  color: #fff;
  background: linear-gradient(180deg, rgba(216, 74, 99, 0.32), rgba(216, 74, 99, 0.14));
  border: 0;
  box-shadow:
    0 0 0 1px rgba(216, 74, 99, 0.32),
    0 10px 26px -14px rgba(216, 74, 99, 0.55);
}

#homeView .post-head > * + .segment,
#homeView .post-head > * + .v5-sort {
  margin-left: 8px;
}

@media (max-width: 720px) {
  #homeView .post-head .segment,
  #homeView .post-head #telegramSwitch,
  #homeView .post-head .v5-sort {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  #homeView .post-head .segment .segment-btn,
  #homeView .post-head #telegramSwitch .segment-btn,
  #homeView .post-head .v5-sort .segment-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* ── Views counter on the post-rating row ── */

.post-rating .v5-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(200, 185, 161, 0.78);
  font-weight: 600;
}
.post-rating .v5-views::before {
  content: "";
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8b9a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/><circle cx='12' cy='12' r='3'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
}

/* Views meta-item on the detail page */
.detail-meta .meta-item[data-v5-views] strong {
  background: linear-gradient(135deg, #ffe5b3, #ffd99c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.005em;
}
