/* Лента новостей / поимок — Озёра Адыгеи */

.feed-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-2, #f0ece4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feed-status.is-error {
  color: #8a3b2a;
  border-color: rgba(138, 59, 42, 0.25);
}

.post__fish-link,
.post__sector-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-hover);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}

.post__fish-link:hover,
.post__sector-link:hover {
  text-decoration: underline;
}

.post__action.is-active {
  color: var(--accent-hover);
}

.post__action--icon {
  min-width: 40px;
  justify-content: center;
  gap: 4px;
}

.post__action.is-shared {
  color: var(--accent-hover);
}

.post.is-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Загрузка / infinite scroll —— */
.feed-skeleton {
  display: grid;
  gap: 14px;
  padding: 0;
}

.feed-skeleton[hidden] { display: none !important; }

.feed-skel-card {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg,
      rgba(240, 236, 228, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 45%,
      rgba(240, 236, 228, 0.9) 100%);
  background-size: 220% 100%;
  animation: feed-shimmer 1.35s ease-in-out infinite;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.feed-skel-card:nth-child(2) { animation-delay: 0.12s; }
.feed-skel-card:nth-child(3) { animation-delay: 0.24s; }

.post.post--enter {
  animation: feed-post-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes feed-post-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-skel-card,
  .feed-more__spinner,
  .post.post--enter {
    animation: none !important;
  }
}

.feed-skel-card::before,
.feed-skel-card::after {
  content: "";
  position: absolute;
  left: 14px;
  border-radius: 8px;
  background: rgba(52, 143, 133, 0.08);
}

.feed-skel-card::before {
  top: 14px;
  width: 42%;
  height: 14px;
}

.feed-skel-card::after {
  top: 56px;
  left: 0;
  right: 0;
  height: 58%;
  border-radius: 0;
  background: rgba(52, 143, 133, 0.06);
}

@keyframes feed-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.feed-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.feed-more[hidden] { display: none !important; }

.feed-more__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(52, 143, 133, 0.2);
  border-top-color: var(--accent);
  animation: feed-spin 0.7s linear infinite;
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.feed-end {
  text-align: center;
  padding: 16px 12px 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.feed-end[hidden] { display: none !important; }

.feed-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

@media (max-width: 768px) {
  .feed-skeleton {
    padding: 0 16px;
  }
}

.post__comments {
  margin: 0 14px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.post__comments-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.post__comments-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.post__comments-list li:last-child { border-bottom: 0; }

.post__comments-author {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-heading);
  margin-right: 8px;
}

.post__comments-time {
  font-size: 12px;
  color: var(--text-faint);
}

.post__comments-body {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.post__comments-empty,
.post__comments-login {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.post__comments-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.post__comments-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text-heading);
}

.post__comments-input:focus {
  outline: 2px solid var(--accent-soft, rgba(52, 143, 133, 0.25));
  border-color: var(--accent);
}

.post__comments-send {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
}

.map-block__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 14px;
  overflow: hidden;
  background: #1a2a28;
}

.map-block__stage .map-block__img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.map-block__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fish-detail__hero--empty {
  background:
    linear-gradient(160deg, rgba(52, 143, 133, 0.25), rgba(40, 36, 30, 0.1)),
    var(--surface-2, #f0ece4);
  min-height: 220px;
}
:root {
      --surface-2: #f0ece4;
      --accent-soft: rgba(52, 143, 133, 0.12);
      --feed-max: 1080px;
    }

    body.feed-page {
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
    }

    .feed-page .site-header { flex-shrink: 0; }
    .feed-page .site-footer { margin-top: auto; }

    .feed-main {
      flex: 1 0 auto;
      width: 100%;
      max-width: var(--feed-max);
      margin: 0 auto;
      padding: 18px 24px 48px;
    }

    .feed-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 240px;
      gap: 28px;
      align-items: start;
    }

    /* Stories */
    .stories {
      display: flex;
      gap: 10px;
      overflow-x: auto;
      padding: 0 0 14px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .stories[hidden] { display: none !important; }
    .stories::-webkit-scrollbar { display: none; }

    .story {
      flex: 1 1 0;
      min-width: 0;
      max-width: 100px;
      aspect-ratio: 9 / 16;
      border-radius: 10px;
      position: relative;
      overflow: hidden;
      background: var(--surface-2);
      scroll-snap-align: start;
      padding: 0;
      border: 0;
      cursor: pointer;
      font: inherit;
      color: inherit;
    }

    .story--create {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      padding-bottom: 12px;
      background: #e5e2da;
    }

    .story__add {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      display: grid;
      place-items: center;
      margin-bottom: 8px;
    }

    .story__add svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2.2;
    }

    .story__label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-heading);
    }

    .story__bg {
      position: absolute;
      inset: 0;
      background: center / cover no-repeat;
    }

    .story__fade {
      position: absolute;
      inset: auto 0 0;
      height: 50%;
      background: linear-gradient(transparent, rgba(40, 36, 30, 0.65));
      pointer-events: none;
    }

    .story__meta {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 8px;
      z-index: 1;
      text-align: center;
      padding: 0 4px;
    }

    .story__name {
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .surface {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    /* —— Create —— */
    .create-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 13px 16px;
      margin-bottom: 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
      color: var(--text-heading);
      font: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
    }

    .create-bar[hidden] { display: none !important; }
    .create-bar:hover { background: var(--surface-2); border-color: #ddd7ce; }

    .create-bar svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }

    /* —— Section title —— */
    .view-head {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 16px;
    }

    .view-head[hidden] { display: none !important; }

    .view-head h2 {
      margin: 0;
      font-family: var(--serif);
      font-size: 1.35rem;
      font-weight: 500;
      letter-spacing: -0.02em;
      color: var(--text-heading);
    }

    .view-head__meta {
      font-size: 13px;
      color: var(--text-muted);
    }

    /* —— Posts —— */
    .feed { display: flex; flex-direction: column; gap: 12px; }
    .feed[hidden] { display: none !important; }

    .post {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      padding: 0;
    }

    .post__head {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px 10px;
    }

    .post__avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--surface-2);
      color: var(--accent);
      display: grid;
      place-items: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .post__avatar svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.6;
    }

    .post__avatar--brand {
      background: #111;
      border: 1px solid var(--border);
    }

    .post__avatar--brand img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .post__author { flex: 1; min-width: 0; }

    .post__name {
      margin: 0;
      font-size: 14px;
      font-weight: 650;
      color: var(--text-heading);
    }

    .post__time {
      margin: 1px 0 0;
      font-size: 14px;
      font-weight: 550;
      color: var(--text-muted);
    }

    .post__lake {
      color: var(--accent);
      font-weight: 600;
    }

    .post__media {
      position: relative;
      overflow: hidden;
      background: var(--surface-2);
      aspect-ratio: 16 / 10;
      touch-action: pan-y;
      user-select: none;
    }

    .post__track {
      display: flex;
      height: 100%;
      transition: transform 0.28s ease;
      will-change: transform;
    }

    .post__slide {
      flex: 0 0 100%;
      height: 100%;
      min-width: 100%;
    }

    .post__slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
      background: transparent;
      transition: opacity 0.25s ease;
    }

    .post__slide img.is-loading {
      opacity: 0.55;
      background:
        linear-gradient(90deg,
          rgba(240, 236, 228, 0.9) 0%,
          rgba(255, 255, 255, 0.95) 45%,
          rgba(240, 236, 228, 0.9) 100%);
      background-size: 220% 100%;
      animation: feed-shimmer 1.35s ease-in-out infinite;
    }

    .post__slide img.is-ready { opacity: 1; }

    .post__slide img.is-error {
      opacity: 1;
      min-height: 160px;
      object-fit: none;
      background: #ebe7df;
      position: relative;
    }

    .post__badge {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 600;
      color: #fff;
      background: rgba(40, 36, 30, 0.5);
    }

    .post__nav {
      position: absolute;
      top: 50%;
      z-index: 2;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      border: 0;
      border-radius: 50%;
      background: rgba(253, 251, 247, 0.88);
      color: var(--text-heading);
      cursor: pointer;
      display: grid;
      place-items: center;
      box-shadow: 0 1px 4px rgba(88, 82, 72, 0.18);
    }

    .post__nav:hover { background: #fff; }
    .post__nav[disabled] { opacity: 0.35; cursor: default; }
    .post__nav--prev { left: 8px; }
    .post__nav--next { right: 8px; }
    .post__nav svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2.2;
    }

    .post__dots {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 10px;
      z-index: 2;
      display: flex;
      justify-content: center;
      gap: 5px;
      pointer-events: none;
    }

    .post__dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
    }

    .post__dot.is-active { background: #fff; }

    .post__text {
      margin: 0;
      padding: 12px 14px 4px;
      font-size: 15px;
      line-height: 1.55;
      color: var(--text);
    }

    .post__actions {
      display: flex;
      gap: 4px;
      margin-top: 4px;
      padding: 4px 8px 8px;
      border-top: 1px solid var(--border);
    }

    .post__action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border: 0;
      background: none;
      color: var(--text-muted);
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      border-radius: 6px;
    }

    .post__action:hover { color: var(--accent-hover); background: var(--accent-soft); }

    .post__action.is-liked {
      color: var(--accent-hover);
    }

    .post__action.is-liked svg {
      fill: var(--accent);
      stroke: var(--accent);
    }

    .post__action.is-guest {
      opacity: 0.75;
    }

    .post__action--admin {
      margin-left: auto;
      font-size: 13px;
      color: var(--text-muted);
    }

    .post__action--admin:hover {
      color: var(--accent-hover);
    }

    .post__action--danger:hover {
      color: #8a4b3a;
      background: rgba(138, 75, 58, 0.08);
    }

    .post__comments-admin {
      float: right;
      display: inline-flex;
      gap: 8px;
      margin-left: 8px;
    }

    .post__comments-admin button {
      border: 0;
      background: none;
      padding: 0;
      font: inherit;
      font-size: 12px;
      color: var(--text-muted);
      cursor: pointer;
    }

    .post__comments-admin button:hover {
      color: var(--accent-hover);
    }

    .post__comments-admin button.is-danger:hover {
      color: #8a4b3a;
    }

    .post__like-count {
      font-variant-numeric: tabular-nums;
      min-width: 1ch;
    }

    .post__action svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.8;
    }

    .feed-auth-hint {
      margin: 0 0 12px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .feed-auth-hint a { color: var(--accent); }

    .feed-empty {
      padding: 36px 20px;
      text-align: center;
      color: var(--text-muted);
      font-size: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .feed-empty[hidden],
    .panel[hidden] { display: none !important; }

    /* —— Fish list —— */
    .fish-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .fish-item {
      display: block;
      width: 100%;
      padding: 0 0 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
      overflow: hidden;
      text-align: left;
      cursor: pointer;
      font: inherit;
      color: inherit;
    }

    .fish-item:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    .fish-item__photo {
      aspect-ratio: 4 / 3;
      overflow: hidden;
      background: #e5e2da;
    }

    .fish-item__photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.35s ease;
    }

    .fish-item:hover .fish-item__photo img { transform: scale(1.03); }

    .fish-item__name {
      margin: 10px 0 0;
      padding: 0 12px;
      font-family: var(--serif);
      font-size: 1.15rem;
      font-weight: 500;
      color: var(--text-heading);
      letter-spacing: -0.01em;
    }

    .fish-item__meta {
      margin: 3px 0 0;
      padding: 0 12px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .fish-item__weight {
      color: var(--accent-hover);
      font-weight: 650;
      font-family: var(--font);
      font-variant-numeric: lining-nums tabular-nums;
    }

    /* —— Records —— */
    .records-wrap {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 4px 16px;
    }

    .records {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .records li {
      display: grid;
      grid-template-columns: 2rem 1fr auto;
      gap: 12px;
      align-items: center;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .records__rank {
      font-size: 13px;
      font-weight: 700;
      color: var(--text-faint);
    }

    .records__name {
      margin: 0;
      font-size: 15px;
      font-weight: 650;
      color: var(--text-heading);
    }

    .records__date {
      margin: 4px 0 0;
      font-size: 12px;
      color: var(--accent-hover);
      font-weight: 550;
    }

    .records__meta {
      margin: 2px 0 0;
      font-size: 12px;
      color: var(--text-muted);
    }

    .records__weight {
      font-family: var(--font);
      font-variant-numeric: lining-nums tabular-nums;
      font-size: 1.05rem;
      font-weight: 650;
      color: var(--text-heading);
      white-space: nowrap;
    }

    .records button {
      display: contents;
      cursor: pointer;
      font: inherit;
      color: inherit;
      text-align: left;
    }

    .records button:hover .records__name { color: var(--accent); }

    /* —— Map —— */
    .map-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 14px;
    }

    .map-block__img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 8px;
      display: block;
      background: var(--surface-2);
    }

    .map-block__stage .map-block__img {
      border-radius: 0;
      aspect-ratio: auto;
    }

    .map-block__text {
      margin: 12px 0 16px;
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.5;
    }

    /* —— Fish detail —— */
    .fish-detail[hidden] { display: none !important; }

    .fish-detail {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 16px;
      max-width: 100%;
      overflow-x: hidden;
      box-sizing: border-box;
    }

    .fish-detail__toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 16px;
    }

    .fish-detail__back,
    .fish-detail__share {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin: 0;
      padding: 0;
      border: 0;
      background: none;
      color: var(--text-muted);
      font: inherit;
      font-size: 13px;
      cursor: pointer;
      min-height: 44px;
    }

    .fish-detail__back:hover,
    .fish-detail__share:hover { color: var(--accent); }

    .fish-detail__share.is-shared {
      color: var(--accent-hover);
      font-weight: 650;
    }

    .fish-detail__back svg,
    .fish-detail__share svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }

    .fish-detail__hero {
      border-radius: 8px;
      overflow: hidden;
      background: #e5e2da;
      aspect-ratio: 4 / 3;
      max-width: 100%;
    }

    .fish-detail__hero img {
      width: 100%;
      max-width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      display: block;
    }

    .fish-detail__thumbs {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .fish-detail__thumbs button {
      width: 64px;
      height: 48px;
      padding: 0;
      border: 2px solid transparent;
      border-radius: 6px;
      overflow: hidden;
      background: none;
      cursor: pointer;
    }

    .fish-detail__thumbs button.is-active { border-color: var(--accent); }

    .fish-detail__thumbs img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .fish-detail__title {
      margin: 18px 0 12px;
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 500;
      letter-spacing: -0.03em;
      color: var(--text-heading);
      line-height: 1.15;
    }

    .fish-detail__facts {
      margin: 0 0 22px;
      font-size: 15px;
      line-height: 1.55;
      color: var(--text);
    }

    .fish-detail__facts p {
      margin: 0 0 6px;
    }

    .fish-detail__facts p:last-child {
      margin-bottom: 0;
    }

    .fish-detail__facts-break {
      margin-top: 14px;
    }

    .fish-detail__fav {
      margin: 18px 0 0;
      font-size: 15px;
      font-weight: 550;
      color: var(--text-heading);
    }

    .fish-detail__fav a {
      color: var(--accent-hover);
      text-decoration: none;
    }

    .fish-detail__fav a:hover {
      text-decoration: underline;
    }

    .fish-history-box {
      margin: 8px 0 0;
      border-top: 1px solid var(--border);
      padding-top: 4px;
    }

    .fish-history-box__summary {
      cursor: pointer;
      list-style: none;
      padding: 12px 0;
      font-size: 13px;
      font-weight: 650;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-muted);
      user-select: none;
    }

    .fish-history-box__summary::-webkit-details-marker {
      display: none;
    }

    .fish-history-box__summary::after {
      content: " ▾";
      font-size: 11px;
      color: var(--text-faint);
    }

    .fish-history-box[open] .fish-history-box__summary::after {
      content: " ▴";
    }

    .fish-catch-list {
      list-style: none;
      margin: 0 0 8px;
      padding: 0;
    }

    .fish-catch {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr);
      gap: 12px;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }

    .fish-catch--plain {
      grid-template-columns: 1fr;
    }

    .fish-catch__photo {
      border-radius: 8px;
      overflow: hidden;
      background: #e5e2da;
      aspect-ratio: 1;
    }

    .fish-catch__photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .fish-catch__body p {
      margin: 0 0 4px;
      font-size: 14px;
      line-height: 1.45;
      color: var(--text);
    }

    .fish-catch__body p:last-child {
      margin-bottom: 0;
    }

    .fish-detail__species {
      margin: 0 0 18px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .fish-detail__species:has(+ .fish-detail__epithet) {
      margin-bottom: 4px;
    }

    .fish-detail__epithet {
      margin: 0 0 18px;
      font-size: 14px;
      font-weight: 550;
      color: var(--accent-hover);
    }

    .fish-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 22px;
      padding: 16px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .fish-owner {
      margin: 0 0 22px;
      padding: 0 0 4px;
    }

    .fish-owner__row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 4px 0 2px;
    }

    .fish-owner .post__avatar {
      width: 44px;
      height: 44px;
    }

    .fish-owner__body { min-width: 0; }

    .fish-owner__name {
      font-size: 15px;
      font-weight: 650;
      color: var(--text-heading);
      line-height: 1.3;
    }

    .fish-owner__meta {
      margin-top: 2px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .fish-stats__label {
      display: block;
      font-size: 11px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-faint);
      margin-bottom: 4px;
    }

    .fish-stats__value {
      font-family: var(--font);
      font-variant-numeric: lining-nums tabular-nums;
      font-size: 1.05rem;
      font-weight: 650;
      color: var(--text-heading);
    }

    .fish-stats__value--accent { color: var(--accent-hover); }

    /* Вес в заголовках постов («Юрьич · 23,525 кг») — без oldstyle Georgia */
    .post__text strong {
      font-family: var(--font);
      font-variant-numeric: lining-nums tabular-nums;
      font-weight: 650;
    }

    /* —— Потенциал роста —— */
    .fish-growth {
      margin: 0 0 22px;
      padding: 16px 0 4px;
      border: 0;
      border-top: 1px solid var(--border);
      border-radius: 0;
      background: none;
    }

    .fish-growth__head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 12px;
    }

    .fish-growth__label {
      font-size: 13px;
      font-weight: 650;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .fish-growth__badge {
      font-size: 12px;
      font-weight: 650;
      padding: 0;
      border-radius: 0;
      background: none;
      color: var(--text-heading);
    }

    .fish-growth__badge.is-high { color: #2a6b3a; }
    .fish-growth__badge.is-mid { color: var(--accent-hover); }
    .fish-growth__badge.is-low { color: #7a6240; }

    .fish-growth__bar {
      height: 6px;
      border-radius: 2px;
      background: rgba(40, 36, 30, 0.08);
      overflow: hidden;
    }

    .fish-growth__fill {
      height: 100%;
      border-radius: inherit;
      background: var(--accent-hover);
      transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .fish-growth[data-level="is-high"] .fish-growth__fill {
      background: #2a6b3a;
    }

    .fish-growth[data-level="is-low"] .fish-growth__fill {
      background: #8a7a5c;
    }

    .fish-growth__scale {
      display: flex;
      justify-content: space-between;
      margin: 6px 0 12px;
      font-size: 12px;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--text-muted);
    }

    .fish-growth__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .fish-growth__grid .fish-stats__value {
      font-size: 0.98rem;
      font-variant-numeric: lining-nums tabular-nums;
    }

    .fish-growth__hint {
      margin: 10px 0 0;
      font-size: 12px;
      line-height: 1.4;
      color: var(--text-faint);
    }

    .fish-history__delta.is-up { color: #2a6b3a; }
    .fish-history__delta.is-down { color: #8a4b3a; }

    .fish-detail__section-title {
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 650;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .fish-history {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .fish-history li {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
    }

    .fish-history__who { color: var(--text-heading); font-weight: 550; }
    .fish-history__when { color: var(--text-muted); font-size: 13px; }
    .fish-history__delta {
      color: var(--accent-hover);
      font-weight: 650;
      white-space: nowrap;
      font-family: var(--font);
      font-variant-numeric: lining-nums tabular-nums;
    }

    .fish-detail__note {
      margin: 18px 0 0;
      font-size: 14px;
      line-height: 1.55;
      color: var(--text);
    }

    .fish-bio {
      margin: 0 0 22px;
      padding: 0 0 4px;
    }

    .fish-bio__summary {
      margin: 0 0 16px;
      font-size: 15px;
      line-height: 1.55;
      color: var(--text);
    }

    .fish-bio__facts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 12px;
      margin: 0 0 18px;
      padding: 14px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .fish-bio__fact .fish-stats__value {
      font-size: 0.98rem;
      word-break: break-word;
    }

    .fish-bio__empty {
      margin: 0 0 16px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .fish-bio__map-line {
      margin: 0 0 10px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .fish-bio__map-link {
      font-weight: 550;
      color: var(--accent-hover);
    }

    .fish-bio__map-link:hover { color: var(--accent); }

    .fish-milestones {
      list-style: none;
      margin: 0 0 22px;
      padding: 0;
      border-top: 1px solid var(--border);
    }

    .fish-milestones li {
      display: grid;
      grid-template-columns: 7.5rem minmax(0, 1fr);
      gap: 12px 16px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }

    .fish-milestones__when {
      font-size: 13px;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--text-muted);
      line-height: 1.4;
      padding-top: 1px;
    }

    .fish-milestones__what {
      font-size: 14px;
      font-weight: 550;
      color: var(--text-heading);
      line-height: 1.4;
    }

    .fish-milestones__who {
      margin-top: 3px;
      font-size: 13px;
      color: var(--text);
    }

    .fish-weight {
      margin: 0 0 22px;
      padding: 0 0 4px;
      border-top: 1px solid var(--border);
    }

    .fish-weight__plot {
      position: relative;
      margin: 4px 0 0;
      padding: 8px 0 0 36px;
    }

    .fish-weight__y {
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 28px;
      width: 34px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-size: 11px;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--text-faint);
      line-height: 1;
      text-align: right;
      padding-right: 8px;
      pointer-events: none;
    }

    .fish-weight__plot svg {
      display: block;
      width: 100%;
      height: 148px;
    }

    .fish-weight__x {
      display: flex;
      justify-content: space-between;
      margin-top: 2px;
      padding-left: 36px;
      font-size: 11px;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--text-faint);
    }

    .fish-weight__meta {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .fish-weight__meta .fish-stats__value { font-size: 0.98rem; }

    .fish-weight__hint {
      margin: 10px 0 0;
      font-size: 12px;
      line-height: 1.4;
      color: var(--text-faint);
    }

    .fish-sectors {
      list-style: none;
      margin: 0 0 18px;
      padding: 0;
      display: grid;
      gap: 0;
      border-top: 1px solid var(--border);
    }

    .fish-sectors__row {
      display: grid;
      grid-template-columns: minmax(72px, 0.9fr) 1.4fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px 0;
      border: 0;
      border-bottom: 1px solid var(--border);
      border-radius: 0;
      background: none;
      text-decoration: none;
      color: inherit;
    }

    a.fish-sectors__row:hover {
      background: none;
      border-color: transparent;
      border-bottom-color: rgba(52, 143, 133, 0.45);
    }

    .fish-sectors__label {
      font-weight: 650;
      color: var(--text-heading);
      font-size: 14px;
    }

    .fish-sectors__bar {
      display: block;
      height: 6px;
      border-radius: 2px;
      background: rgba(40, 36, 30, 0.08);
      overflow: hidden;
    }

    .fish-sectors__bar > span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--accent-hover);
    }

    .fish-sectors__meta {
      font-size: 13px;
      font-weight: 650;
      font-variant-numeric: lining-nums tabular-nums;
      color: var(--accent-hover);
      white-space: nowrap;
    }

    .fish-anglers {
      list-style: none;
      margin: 0 0 8px;
      padding: 0;
      display: grid;
      gap: 6px;
    }

    .fish-anglers li {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
      font-size: 14px;
    }

    .fish-anglers__name {
      color: var(--text-heading);
      font-weight: 550;
    }

    .fish-anglers__count {
      color: var(--accent-hover);
      font-weight: 700;
      font-variant-numeric: lining-nums tabular-nums;
    }

    .fish-history__sector {
      color: var(--accent-hover);
      font-weight: 650;
      text-decoration: none;
    }

    a.fish-history__sector:hover { text-decoration: underline; }

    .fish-detail__rfid {
      display: inline-block;
      margin-top: 8px;
      font-family: ui-monospace, Consolas, monospace;
      font-size: 12px;
      color: var(--text-muted);
      letter-spacing: 0.04em;
    }

    /* —— Sidebar —— */
    .feed-sidebar {
      position: sticky;
      top: calc(var(--header-h) + 18px);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 14px 16px 12px;
    }

    .side-nav__label {
      margin: 0 0 10px;
      font-size: 11px;
      font-weight: 650;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-faint);
    }

    .side-nav {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .side-nav > li + li { margin-top: 2px; }

    .side-nav__sep {
      height: 1px;
      background: var(--border);
      margin: 10px 0;
    }

    .side-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 8px 0;
      border: 0;
      background: none;
      color: var(--text);
      font: inherit;
      font-size: 14px;
      text-align: left;
      cursor: pointer;
      border-radius: 0;
    }

    .side-link:hover { color: var(--accent-hover); }
    .side-link.is-active {
      color: var(--accent-hover);
      font-weight: 650;
    }

    .side-link__chev {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      transition: transform 0.15s;
      opacity: 0.55;
    }

    .side-link.is-expanded .side-link__chev { transform: rotate(180deg); }

    .side-sub {
      list-style: none;
      margin: 0 0 6px;
      padding: 0 0 0 12px;
      border-left: 1px solid var(--border);
    }

    .side-sub[hidden] { display: none !important; }

    .side-sub a {
      display: block;
      padding: 6px 0 6px 2px;
      color: var(--text-muted);
      font-size: 13px;
      text-decoration: none;
    }

    .side-sub a:hover { color: var(--accent-hover); text-decoration: none; }
    .side-sub a.is-active {
      color: var(--accent-hover);
      font-weight: 650;
    }

    @media (max-width: 900px) {
      .feed-layout {
        grid-template-columns: 1fr;
      }

      .feed-sidebar {
        position: static;
        order: -1;
      }
    }

    @media (max-width: 768px) {
      html { font-size: 17px; }
      html, body.feed-page {
        overflow-x: hidden;
        max-width: 100%;
      }

      .feed-main { padding: 14px 0 40px; }

      .feed-sidebar {
        margin: 0 12px 14px;
      }

      .view-head {
        padding-left: 12px;
        padding-right: 12px;
        margin-bottom: 14px;
      }

      .view-head h2 {
        font-size: 1.7rem;
      }

      .view-head__meta {
        font-size: 15px;
      }

      .panel {
        padding-left: 12px;
        padding-right: 12px;
      }

      .feed-empty {
        margin: 0 12px;
        font-size: 16px;
      }

      .fish-detail {
        margin: 0 12px;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px;
        overflow-x: hidden;
      }

      .create-bar {
        width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        box-sizing: border-box;
      }

      .stories {
        padding: 0 0 14px 12px;
        gap: 10px;
      }

      .stories::after { content: ""; flex: 0 0 12px; }

      .story {
        flex: 0 0 96px;
        max-width: none;
        min-width: 96px;
        height: 168px;
        aspect-ratio: auto;
      }

      .feed {
        gap: 14px;
        padding: 0 12px;
      }

      .post__head {
        padding: 14px 14px 12px;
        gap: 12px;
      }

      .post__avatar {
        width: 44px;
        height: 44px;
      }

      .post__name {
        font-size: 15px;
      }

      .post__time {
        font-size: 13px;
      }

      /* Фото целиком: без обрезки под квадрат */
      .post__media {
        aspect-ratio: auto;
        min-height: 0;
        background: #ebe7df;
      }

      .post__track {
        height: auto;
        align-items: center;
      }

      .post__slide {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ebe7df;
      }

      .post__slide img {
        width: 100%;
        height: auto;
        max-height: min(82vh, 860px);
        object-fit: contain;
        object-position: center;
      }

      .post__text {
        padding: 14px 14px 6px;
        font-size: 16px;
        line-height: 1.45;
      }

      .post__actions {
        padding: 6px 10px 10px;
        gap: 4px;
      }

      .post__action {
        font-size: 14px;
        padding: 8px 12px;
        min-height: 44px;
      }

      .post__action svg {
        width: 20px;
        height: 20px;
      }

      .post__action span.label { display: none; }

      .post__comments {
        margin: 0 14px 14px;
      }

      .post__comments-body {
        font-size: 15px;
      }

      .post__comments-input {
        font-size: 16px; /* без зума iOS */
        min-height: 44px;
      }

      .side-link {
        font-size: 15px;
        padding: 12px 14px;
      }

      .fish-item__name {
        font-size: 1.25rem;
        padding: 0 14px;
      }

      .fish-item__meta {
        font-size: 14px;
        padding: 0 14px 4px;
      }

      .fish-detail__back,
      .fish-detail__share {
        font-size: 16px;
        min-height: 44px;
        padding: 8px 0;
      }

      .fish-detail__back svg,
      .fish-detail__share svg {
        width: 20px;
        height: 20px;
      }

      .fish-detail__hero {
        aspect-ratio: auto;
        width: 100%;
        max-width: 100%;
        background: #ebe7df;
      }

      .fish-detail__hero img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: min(55vh, 520px);
        object-fit: contain;
        object-position: center;
      }

      .fish-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
      .fish-stats__label { font-size: 13px; }
      .fish-stats__value { font-size: 1.3rem; }
      .fish-detail__title { font-size: 2rem; line-height: 1.2; }
      .fish-detail__species { font-size: 16px; }
      .fish-detail__note { font-size: 16px; line-height: 1.5; }
      .fish-detail__section-title { font-size: 14px; }
      .fish-bio__summary { font-size: 16px; }
      .fish-bio__facts { grid-template-columns: 1fr 1fr; gap: 12px; }
      .fish-detail__epithet { font-size: 15px; }
      .fish-milestones li {
        grid-template-columns: 1fr;
        gap: 4px;
      }
      .fish-weight__meta { grid-template-columns: 1fr 1fr; }
      .fish-sectors__row {
        grid-template-columns: 1fr;
        gap: 6px;
      }
      .fish-sectors__meta { justify-self: start; }
      .side-link { font-size: 16px; min-height: 48px; }

      .fish-growth__grid {
        grid-template-columns: 1fr 1fr;
      }

      .fish-growth__grid > div:last-child {
        grid-column: 1 / -1;
      }

      .records__name { font-size: 16px; }
      .records__weight { font-size: 1.15rem; }

      .feed-skel-card { height: 320px; }
    }

    @media (max-width: 520px) {
      .fish-grid { grid-template-columns: 1fr; gap: 12px; }
    }
