hr {
  margin-top: 30px;
  margin-bottom: 20px;
}

.post-feed {
  display: grid;
  gap: 16px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.post-feed-item {
  margin: 0;
}

.post-feed-link {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.post-feed-link:hover,
.post-feed-link:focus-visible {
  background-color: #fafafa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.post-feed-link:focus-visible {
  outline: 3px solid #2a7ae2;
  outline-offset: 3px;
}

.post-feed-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  object-fit: cover;
}

.post-feed-content {
  min-width: 0;
}

.post-feed-date {
  margin: 0 0 4px;
  color: #666;
  font-size: 0.85em;
}

.post-feed-title {
  margin: 0 0 8px;
  font-size: 1.15em;
  line-height: 1.3;
}

.post-feed-excerpt {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .post-feed-link {
    grid-template-columns: minmax(88px, 30%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .post-feed-title {
    font-size: 1em;
  }
}

.video-preview {
  margin: 24px 0 32px;
}

.video-preview-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.video-preview-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: #c00;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-preview-play::before {
  content: "";
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid #fff;
  margin-left: 4px;
}

.video-preview-link:hover .video-preview-play,
.video-preview-link:focus-visible .video-preview-play {
  background: #900;
}

.video-preview-link:focus-visible {
  outline: 3px solid #2a7ae2;
  outline-offset: 4px;
}

.video-preview figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9em;
}

/* Post navigation links */
.post_navi {
  display: flex;
}

.post_navi-label {
  font-size: 0.8em;
  opacity: 0.5;
}

.post_navi .post_navi-item {
  padding: 0 2.2em;
  width: 50%;
  position: relative;
  color: inherit !important;
}

.post_navi .nav_prev {
  text-align: left;
}

.post_navi .nav_next {
  text-align: right;
}

.post_navi .nav_prev .post_navi-arrow {
  left: 0;
}

.post_navi .nav_next .post_navi-arrow {
  right: 0;
}

.post_navi .post_navi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  opacity: 0.3;
}

/* ── Book entries (used in "My YYYY in books" posts) ── */
.book-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.book-cover img {
  width: 90px;
  min-width: 90px;
  height: 135px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.18);
  background-color: #f5f5f5;
}

.book-info {
  flex: 1;
}

.book-title {
  margin: 0 0 4px;
  font-size: 1.1em;
}

.book-author {
  margin: 0 0 6px;
  color: #666;
  font-style: italic;
  font-size: 0.95em;
}

.book-description {
  margin: 8px 0 0;
  font-size: 0.95em;
}

/* Star rating */
.star-rating {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1;
}

.star-rating .star {
  color: #ddd;
}

.star-rating .star.full {
  color: #f5a623;
}

.star-rating .star.empty {
  color: #ddd;
}

/* Half star: clip the coloured fill to the left 50% */
.star-rating .star.half {
  position: relative;
  display: inline-block;
  color: #ddd;
}

.star-rating .star.half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f5a623;
}