/* ============================================
   SecretChapters – Blog / Feed / Read Mode
   blog.css (mahmuda.fun)
   Simple, clean, reader-first design:
    - Big comfortable type for reading
    - Wide comfortable column
    - Perfect image / video / audio support
    - Soft ad slots that never break the layout
   ============================================ */

/* =========================================
   FEED SECTION
   ========================================= */
.feed-section { padding: 96px 24px 80px; }
.feed-header { text-align: center; margin-bottom: 36px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-desc { color: var(--text-secondary); font-size: 1rem; }

/* Compact hero banner (feed page) */
.hero-compact {
  padding: 118px 24px 40px;
  background: radial-gradient(circle at 50% -20%, var(--accent-soft), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.hero-content { text-align: center; }
.hero-eyebrow {
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; font-weight: 500;
}
.hero-compact .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-compact .hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-weight: 300; }

/* Hero post */
.hero-section { margin-bottom: 56px; }
.hero-card { background: transparent !important; border: none !important; padding: 0 !important; }
.hero-card:hover { transform: none !important; box-shadow: none !important; }
.feed-hero-cover {
  width: 100%; border-radius: var(--radius);
  overflow: hidden; margin: 0 0 28px;
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}
.feed-hero-cover img {
  width: 100%; height: auto; max-height: 560px;
  object-fit: cover; border-radius: 0;
  display: block;
}
.hero-title { font-size: clamp(1.9rem, 4.5vw, 2.7rem) !important; margin-bottom: 18px; }

/* Hero post on the feed: keep it as a rich preview, not the whole book.
   Full reading happens in Read Mode (reader panel). */
.hero-section .feed-full-content { max-height: 420px; overflow: hidden; position: relative; }
.hero-section .feed-full-content::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}

/* Card grid */
.regular-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.feed-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.feed-card.expanded {
  grid-column: 1 / -1;
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: none;
}
/* Inline expanded card content stays scroll-limited and friendly */
.feed-card.expanded .feed-full-content {
  max-height: 55vh;
  overflow-y: auto;
  border-radius: var(--radius-sm);
  padding: 0 2px;
}

/* Card cover image */
.feed-card-media {
  margin: -20px -20px 16px;
  height: 180px;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  background: var(--bg-secondary);
}
.feed-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; display: block;
  transition: transform 0.4s ease;
}
.feed-card:hover .feed-card-media img { transform: scale(1.04); }

/* Media chips (video/audio icons) */
.media-chips {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 6px; z-index: 2;
}
.media-chips span {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.75rem; color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Card metadata */
.feed-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feed-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #96791b);
  color: #0a0a0c; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-glow);
}
.feed-author { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.feed-time { font-size: 0.8rem; color: var(--text-muted); }
.feed-type-badge {
  margin-left: auto; font-size: 0.7rem; padding: 4px 10px;
  border-radius: 20px; background: var(--accent-soft);
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  white-space: nowrap;
}

.feed-title {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}
.feed-excerpt { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* =========================================
   FULL STORY CONTENT (simple reader typography)
   ========================================= */
.feed-full-content {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-top: 22px;
  text-align: left;
}
.feed-full-content h1,
.feed-full-content h2,
.feed-full-content h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 1.6em 0 0.6em;
  line-height: 1.3;
}
.feed-full-content h2 { font-size: 1.5rem; }
.feed-full-content h3 { font-size: 1.2rem; }
.feed-full-content p { margin-bottom: 1.15em; }
.feed-full-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px; margin: 1.2em 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.feed-full-content hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2em 0;
}
.feed-full-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.feed-full-content a:hover { color: var(--text-primary); }

/* Images inside story content */
.feed-full-content img {
  width: 100%; height: auto; max-height: 560px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin: 1.4em 0;
  background: var(--bg-secondary);
  box-shadow: var(--shadow);
}
/* Videos / audio inside story content */
.feed-full-content video,
.feed-full-content audio {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.4em 0;
  background: #000;
  box-shadow: var(--shadow);
}
.feed-media-block { position: relative; margin: 1.4em 0; }
.media-label {
  display: inline-block; margin-top: 8px;
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.feed-full-content iframe {
  width: 100%; aspect-ratio: 16 / 9;
  border: 0; border-radius: var(--radius-sm); margin: 1.4em 0;
}

.loading-text { color: var(--text-muted); font-style: italic; }

/* Buttons & tags */
.feed-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; }
.read-more-btn {
  display: inline-block; width: 100%; padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary); font-weight: 500; font-size: 0.95rem;
  transition: all 0.25s ease;
  text-align: center;
}
.read-more-btn:hover { background: var(--accent); color: #0a0a0c; }

.inline-next {
  display: block; width: 100%; padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent); font-weight: 600;
  border: 1px solid var(--accent);
  transition: all 0.25s ease;
  text-align: center;
}
.inline-next:hover { background: var(--accent); color: #0a0a0c; }

.feed-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.feed-tag {
  font-size: 0.8rem; color: var(--text-muted);
  padding: 4px 12px; border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* =========================================
   READ MODE (immersive reader panel)
   ========================================= */
/* Starts below the real, measured header height (--nav-h, set by
   assets/js/navigation.js's updateNavHeightVar() — topline + navbar,
   whichever is present) instead of covering the full viewport. The
   header used to sit *behind* this modal (lower z-index, same screen
   area), so the whole nav effectively vanished the moment a story
   opened; a first pass at fixing that used a hardcoded top offset that
   didn't account for index.html's announcement bar sitting above the
   nav, which left the sticky close button positioned underneath the
   real navbar — silently swallowing every click meant for it (the
   navbar has the higher stacking position, so it wins hit-testing for
   that whole overlapping region). Now it stays fixed/visible above the
   reader at all times; only the content below it scrolls. */
/* No backdrop-filter here on purpose. This element is both
   position:fixed *and* its own scroll container (overflow-y: auto for
   the whole reading experience) — on iOS Safari that specific
   combination is a known WebKit compositing bug: it has to keep
   recomputing the blurred backdrop as content scrolls *inside* the
   blurred element itself, and during momentum/rubber-band scrolling it
   can smear or ghost, making the (fully opaque) .reader-panel's own
   text look hazy/low-contrast on top of it.
   background is solid (not semi-transparent) rather than a "frosted
   glass" partial-opacity look: without blur, a see-through backdrop
   just shows the page underneath at reduced opacity with sharp edges
   instead of a soft blur — legible enough to read as ghosted/doubled
   text behind the reader's own, which is its own readability problem.
   Solid removes that risk entirely. */
.reader-modal {
  position: fixed; top: var(--nav-h, 96px); right: 0; bottom: 0; left: 0; z-index: 900;
  display: flex; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: var(--bg-secondary);
  overflow-y: auto;
}
.reader-modal.open { visibility: visible; opacity: 1; }
.reader-backdrop { position: fixed; top: var(--nav-h, 96px); right: 0; bottom: 0; left: 0; }
.reader-panel {
  position: relative;
  width: 100%; max-width: 760px;
  margin: 60px auto;
  padding: 44px 48px 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reader-modal.open .reader-panel { transform: translateY(0); }
.reader-close {
  position: sticky; top: 8px; float: right;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.3rem;
  display: grid; place-items: center;
  z-index: 5;
  transition: all 0.25s ease;
}
.reader-close:hover { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }

.reader-head { margin-bottom: 28px; }
.reader-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.reader-time { font-size: 0.85rem; color: var(--text-muted); }
.reader-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 20px;
}
.reader-cover {
  width: 100%; height: auto; max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* Simple, friendly reader body */
.reader-body {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-primary);
  font-family: var(--font-body);
}
[data-theme="light"] .reader-body { font-weight: 400; }
.reader-body h1, .reader-body h2, .reader-body h3 {
  font-family: var(--font-display);
  margin: 1.8em 0 0.7em; line-height: 1.3;
}
.reader-body h2 { font-size: 1.6rem; }
.reader-body h3 { font-size: 1.25rem; }
.reader-body p { margin-bottom: 1.3em; }
.reader-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px; margin: 1.4em 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary); font-style: italic;
}
.reader-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.reader-body hr { border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }
.reader-body img {
  width: 100%; height: auto; max-height: 560px; object-fit: contain;
  border-radius: var(--radius-sm); margin: 1.6em 0;
  background: var(--bg-secondary); box-shadow: var(--shadow);
}
.reader-body video, .reader-body audio {
  width: 100%; border-radius: var(--radius-sm);
  margin: 1.6em 0; background: #000; box-shadow: var(--shadow);
}

.reader-nav { display: flex; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.reader-nav .inline-next { flex: 1; }

/* Inline ad containers inside story content (auto-injected by builder) */
.ad-inline {
  margin: 1.8em auto;
  padding: 0;
  max-width: 100%;
}
.ad-inline .ad-slot { display: block; }

/* =========================================
   READING PROGRESS BAR (read mode)
   ========================================= */
.reader-progress {
  position: fixed; top: 72px; left: 0; right: 0;
  height: 3px; background: transparent;
  z-index: 2001; display: none;
}
.reader-modal.open ~ .reader-progress,
body.reader-open .reader-progress { display: block; }
.reader-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #f5d77a);
  transition: width 0.1s linear;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .feed-section { padding: 88px 0 60px; }
  .regular-stories-grid { grid-template-columns: 1fr; gap: 20px; }
  .feed-card { padding: 0; border-radius: 0 !important; border-left: 0; border-right: 0; }
  .feed-card-media { margin: 0; border-radius: 0; height: 200px; }
  .feed-card-header, .feed-title, .feed-excerpt, .feed-actions, .feed-full-content {
    padding-left: 16px; padding-right: 16px;
  }
  .feed-full-content { font-size: 1.02rem !important; line-height: 1.9 !important; }
  .hero-title { font-size: 1.7rem !important; }

  .reader-panel {
    margin: 0; padding: 20px 18px 40px;
    border-radius: 0; border: 0;
    min-height: 100vh;
  }
  .reader-body { font-size: 1.08rem; line-height: 1.95; }
  .reader-title { font-size: 1.5rem; }
}

@media (min-width: 900px) {
  .reader-modal { padding: 40px 24px; }
}

.feed-exclusive-badge { background: var(--accent-soft); color: var(--accent); margin-left: 6px; }

.locked-story-teaser {
  margin-top: 18px; padding: 24px 20px; border-radius: var(--radius);
  border: 1px dashed var(--border-strong); background: var(--bg-elevated); text-align: center;
}
.locked-story-icon { font-size: 1.6rem; margin-bottom: 8px; }
.locked-story-teaser p { color: var(--text-secondary); }

/* Compact inline "★ 4.5 (12)" badge used on feed/category/series cards */
.rr-inline-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 20px; padding: 3px 10px;
  white-space: nowrap;
}
.rr-inline-star { font-size: 0.85rem; line-height: 1; }
.rr-inline-count { color: var(--text-muted); font-weight: 500; }

.top-rated-section { margin-bottom: 32px; }
.top-rated-title {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--text-primary);
  margin: 0 0 14px; display: flex; align-items: center; gap: 8px;
}
.top-rated-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.top-rated-card {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border); text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.top-rated-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.top-rated-card .top-rated-name {
  font-family: var(--font-display); font-weight: 600; color: var(--text-primary);
  margin: 8px 0 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================
   RATINGS & REVIEWS WIDGET
   ========================================= */
.rating-review-shell {
  margin-top: 28px; padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg-card);
}
.rating-review-shell h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); }

.rr-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.rr-stars { display: inline-flex; gap: 2px; }
.rr-star-static { color: var(--accent); font-size: 1.15rem; line-height: 1; }
.rr-average { font-weight: 600; color: var(--text-primary); font-size: 1rem; }
.rr-count { color: var(--text-muted); font-size: .85rem; }

.rr-rate-block { margin-bottom: 22px; }
.rr-label { margin: 0 0 6px; color: var(--text-secondary); font-size: .85rem; }
.rr-stars-interactive .rr-star {
  background: none; border: none; padding: 2px; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--accent);
  transition: transform var(--transition);
}
.rr-stars-interactive .rr-star:hover { transform: scale(1.15); }
.rr-stars-interactive .rr-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* "Recommend this story" toggle + count */
.rr-reaction-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rr-reaction-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-primary); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all var(--transition);
}
.rr-reaction-btn:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.rr-reaction-btn:disabled { opacity: .6; cursor: default; }
.rr-reaction-btn.rr-reaction-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rr-reaction-count { color: var(--text-muted); font-size: .85rem; }
.rr-inline-reaction { color: var(--danger); background: rgba(224, 122, 122, 0.12); }

.rr-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.rr-field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--text-secondary); }
.rr-field input, .rr-field textarea {
  font: inherit; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary);
  resize: vertical;
}
.rr-field input:focus, .rr-field textarea:focus { outline: none; border-color: var(--accent); }
.rr-submit {
  align-self: flex-start; padding: 10px 22px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #96791b); color: #14110a;
  font-weight: 600; cursor: pointer; transition: opacity var(--transition), transform var(--transition);
}
.rr-submit:hover:not(:disabled) { transform: translateY(-1px); }
.rr-submit:disabled { opacity: .6; cursor: default; }

.rr-hint { margin: 4px 0 0; font-size: .85rem; color: var(--text-muted); }
.rr-hint.rr-error { color: var(--danger); }
.rr-hint.rr-success { color: var(--accent); }

.rr-item-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rr-item-name { font-weight: 600; color: var(--text-primary); font-size: .9rem; }
.rr-item-date { color: var(--text-muted); font-size: .78rem; white-space: nowrap; }
.rr-item-text { margin: 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.6; white-space: pre-wrap; }

/* Reviews marquee — auto-scrolls, pauses on hover/focus, and stays a
   normal horizontally-scrollable strip the rest of the time (drag/swipe
   or a trackpad works same as the homepage category ticker). */
.rr-marquee { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 4px; }
.rr-marquee::-webkit-scrollbar { display: none; }
.rr-marquee-track { display: inline-flex; gap: 12px; animation: rr-marquee-scroll 34s linear infinite; }
.rr-marquee:hover .rr-marquee-track,
.rr-marquee:focus-within .rr-marquee-track { animation-play-state: paused; }
.rr-marquee-static .rr-marquee-track { animation: none; }
@keyframes rr-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rr-marquee-track { animation: none; }
}
.rr-marquee .rr-item {
  flex: 0 0 260px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; background: var(--bg-secondary);
}
/* Site-wide reviews marquee (assets/js/site-reviews-marquee.js) links each
   card to the story it's about — reset the anchor and add the "on <story>"
   line the per-story marquee doesn't need (it's already on that story). */
a.rr-item { display: block; text-decoration: none; transition: border-color var(--transition); }
a.rr-item:hover { border-color: var(--accent); }
.rr-item-story { display: block; margin-top: 8px; font-size: .76rem; color: var(--accent); }

/* =========================================
   CATEGORY-SECTIONED HOME FEED (assets/js/blog.js renderCategorySections)
   One horizontally-scrolling row per category.
   ========================================= */
.cat-row-section { max-width: 1200px; margin: 0 auto 40px; padding: 0 24px; }
.cat-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cat-row-head h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-primary); margin: 0; }
.cat-row-viewall { font-size: .85rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cat-row-viewall:hover { text-decoration: underline; }
.cat-row-track {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.cat-row-track::-webkit-scrollbar { height: 6px; }
.cat-row-track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.cat-row-card {
  flex: 0 0 240px; scroll-snap-align: start; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.cat-row-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.cat-row-media { position: relative; aspect-ratio: 16/10; background: var(--bg-secondary); }
.cat-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-row-badge {
  position: absolute; top: 8px; right: 8px; font-size: .68rem; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--bg-glass); color: var(--accent);
  backdrop-filter: blur(6px);
}
.cat-row-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cat-row-title {
  font-family: var(--font-display); font-size: .98rem; font-weight: 600; color: var(--text-primary);
  margin: 0; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-row-excerpt {
  font-size: .82rem; color: var(--text-secondary); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-row-readmore { font-size: .78rem; color: var(--accent); font-weight: 600; margin-top: 2px; }
.cat-row-body [data-rating-slot], .cat-row-body .rr-inline-badge { margin-top: 2px; }
@media (max-width: 600px) {
  .cat-row-card { flex-basis: 200px; }
}
