/* ─── Lahoz design tokens (MKS → site bridge) ─── */
.blog-shell {
  --foreground: var(--color-text);
  --muted-foreground: #4b5563;
  --background: var(--color-bg);
  --card: var(--color-surface);
  --surface-2: #eef1f5;
  --border: rgba(13, 27, 42, 0.1);
  --primary: var(--color-primary);
  --warning: var(--color-accent);
  --accent-foreground: var(--color-text);
  --space-1: var(--space-xs);
  --space-2: var(--space-sm);
  --space-3: var(--space-md);
  --space-4: var(--space-lg);
  --space-5: var(--space-xl);
  --space-6: var(--space-2xl);
  --space-8: var(--space-3xl);
  --space-12: 3rem;
  --space-16: 4rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.feed-main-wrap {
  padding-top: var(--nav-height);
}

.blog-shell {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.03), transparent 320px),
    var(--color-bg);
}

body.blog-shell::before {
  display: none;
}

body.blog-shell::before {
  display: none;
}

.blog-shell .navbar {
  background: rgba(248, 244, 239, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.blog-shell .nav-logo,
.blog-shell .navbar.scrolled .nav-logo {
  color: var(--color-primary);
}

.blog-shell .nav-links a,
.blog-shell .navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.blog-shell .nav-links a.active,
.blog-shell .nav-links a:hover {
  color: var(--color-accent);
}

.blog-shell .nav-toggle span,
.blog-shell .navbar.scrolled .nav-toggle span {
  background: var(--color-primary);
}

.blog-shell .lang-switcher__select,
.blog-shell .navbar.scrolled .lang-switcher__select {
  border-color: rgba(13, 27, 42, 0.15);
  background-color: var(--color-surface);
  color: var(--color-text);
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231a1a2e' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}

.blog-shell .lang-switcher__select option {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.blog-hero {
  padding-block: clamp(2rem, 4vw, 4.5rem) var(--space-8);
  border-bottom: 1px solid var(--border);
}

.blog-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: var(--space-8);
  align-items: end;
}

.blog-kicker {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-title {
  margin: var(--space-3) 0;
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 5rem);
  line-height: 0.96;
}

.blog-copy {
  max-width: 660px;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-search {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
}

.blog-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
}

.topic-strip {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-block: var(--space-5);
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  color: var(--foreground);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--card);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.topic-chip.active,
.topic-chip:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-8);
  padding-block: var(--space-8);
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  margin-bottom: var(--space-8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.featured-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.featured-post__image-wrap {
  overflow: hidden;
  border-radius: 14px;
}

.featured-post__image,
.post-card__image,
.blog-detail__image {
  width: 100%;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post__image {
  aspect-ratio: 16 / 9;
  height: 100%;
}

.featured-post:hover .featured-post__image {
  transform: scale(1.03);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.post-card:hover .post-card__image {
  transform: scale(1.06);
}

.post-card__image-wrap {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
}

.post-card__image {
  width: 100%;
  height: 100%;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 500;
}

.post-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--foreground);
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-excerpt {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-aside {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.blog-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-5);
  background: var(--card);
}

.blog-panel h2,
.blog-panel h3 {
  margin-top: 0;
  font-size: 1rem;
}

.compact-post-list {
  display: grid;
  gap: var(--space-4);
}

.compact-post-list a {
  color: inherit;
  text-decoration: none;
}

.blog-detail {
  max-width: 920px;
  margin-inline: auto;
}

.blog-detail__header {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-8);
}

.blog-detail__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.blog-detail__image {
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  margin-bottom: var(--space-8);
}

.blog-content {
  color: var(--foreground);
  font-size: 1.08rem;
  line-height: 1.85;
}

.blog-content h2,
.blog-content h3 {
  margin-top: 2.2em;
  line-height: 1.15;
}

.blog-content img {
  max-width: 100%;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .blog-hero__grid,
  .blog-layout,
  .featured-post {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  .blog-search__row,
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── BuzzFeed / Onedio feed (not-listesi) ─── */

.blog-feed {
  --feed-accent: var(--color-primary);
  --feed-accent-dark: #081018;
  --feed-warm: var(--color-accent);
  --feed-highlight: var(--color-accent);
  --feed-bg: var(--color-bg);
  --feed-surface: var(--color-surface);
  --feed-text: var(--color-text);
  --feed-muted: var(--color-text-muted);
  --feed-border: rgba(13, 27, 42, 0.1);
  background: var(--feed-bg);
}

.blog-feed h1,
.blog-feed h2,
.blog-feed h3,
.blog-feed .feed-card__title,
.blog-feed .feed-hero__title {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.blog-feed .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top trending ticker */
.feed-topbar {
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  border-bottom: 2px solid var(--color-accent);
}

.feed-topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 2.5rem;
  padding-block: 0.35rem;
}

.feed-topbar__badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.feed-topbar__scroll {
  display: flex;
  gap: 2.5rem;
  overflow: hidden;
  white-space: nowrap;
  animation: feed-ticker 40s linear infinite;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.feed-topbar__item {
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.95;
  transition: opacity 0.15s;
}

.feed-topbar__item:hover {
  opacity: 1;
  text-decoration: underline;
}

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

/* Header */
.feed-header {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--feed-border);
  padding-block: clamp(1.75rem, 4vw, 3rem);
}

.feed-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr);
  gap: var(--space-8);
  align-items: center;
}

.feed-header__kicker {
  margin: 0 0 var(--space-2);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feed-header__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  color: var(--color-primary);
  min-height: auto;
  font-family: var(--font-heading);
  font-weight: 700;
}

.feed-header__desc {
  margin: 0;
  max-width: 540px;
  color: var(--feed-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Search */
.feed-search__box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  background: var(--feed-bg);
  border: 2px solid var(--feed-border);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-search__box:focus-within {
  border-color: var(--feed-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.feed-search__icon {
  flex-shrink: 0;
  color: var(--feed-muted);
}

.feed-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--feed-text);
  outline: none;
}

.feed-search__input::placeholder {
  color: var(--feed-muted);
}

.feed-search__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  background: var(--feed-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.feed-search__btn:hover {
  background: var(--feed-accent-dark);
  transform: scale(1.02);
}

/* Category chips */
.feed-categories-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  background: var(--feed-surface);
  border-bottom: 1px solid var(--feed-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  min-height: 3.25rem;
}

.feed-categories {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-block: var(--space-3);
  scrollbar-width: none;
  min-height: 2.75rem;
}

.feed-cat--skeleton {
  display: inline-block;
  width: 5.5rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--feed-border);
  opacity: 0.45;
  pointer-events: none;
  animation: feed-pulse 1.2s ease-in-out infinite;
}

.feed-categories::-webkit-scrollbar {
  display: none;
}

.feed-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--feed-border);
  background: var(--feed-bg);
  color: var(--feed-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.feed-cat__count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--feed-muted);
  background: var(--feed-surface);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.feed-cat:hover {
  border-color: var(--feed-accent);
  color: var(--feed-accent);
}

.feed-cat.active {
  background: var(--feed-accent);
  border-color: var(--feed-accent);
  color: #fff;
}

.feed-cat.active .feed-cat__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.feed-cat--child {
  border-style: dashed;
  font-size: 0.78rem;
}

.feed-cat__parent {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--feed-muted);
}

.feed-cat.active .feed-cat__parent {
  color: rgba(255, 255, 255, 0.82);
}

/* Layout */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  padding-block: var(--space-8);
  align-items: start;
}

.feed-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
}

.feed-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
}

.feed-section-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--feed-accent);
  flex-shrink: 0;
}

.feed-section-label h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--feed-text);
}

/* Hero / manşet */
.feed-hero {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feed-hero__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 21 / 9;
  min-height: 280px;
}

.feed-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feed-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.feed-hero__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  z-index: 1;
}

.feed-hero__label {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 0.25rem 0.65rem;
  background: var(--feed-accent);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
}

.feed-hero__category {
  display: inline-block;
  margin-left: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.85;
}

.feed-hero__title {
  margin: var(--space-2) 0;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  color: #fff;
  max-width: 720px;
}

.feed-hero__excerpt {
  margin: 0 0 var(--space-4);
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.88;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-hero__cta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--warning);
  color: var(--foreground);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
}

.feed-hero:hover .feed-hero__image {
  transform: scale(1.04);
}

/* Card grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .feed-grid {
    gap: var(--space-8);
  }
}

.feed-card {
  background: var(--feed-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.feed-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.feed-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.feed-card__media--generated,
.feed-hero__link:has(.feed-hero__image--generated) {
  background: linear-gradient(135deg, #1a2e1a 0%, #234a3a 55%, #2d8a6e 100%);
}

.feed-hero__image--generated {
  position: absolute;
  inset: 0;
}

.feed-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feed-card:hover .feed-card__image {
  transform: scale(1.06);
}

.feed-card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 0.25rem 0.65rem;
  background: var(--feed-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
}

.feed-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}

.feed-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.feed-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 3px;
}

.feed-badge--new {
  background: var(--feed-accent);
  color: #fff;
}

.feed-badge--hot {
  background: var(--feed-warm);
  color: #fff;
}

.feed-badge--tag {
  background: var(--feed-bg);
  color: var(--feed-muted);
  font-weight: 700;
}

.feed-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--feed-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.feed-card:hover .feed-card__title {
  color: var(--feed-accent);
}

.feed-card__excerpt {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--feed-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.feed-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--feed-muted);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--feed-border);
}

.feed-card__meta-dot {
  opacity: 0.5;
}

.feed-card__trend {
  color: var(--feed-warm);
  font-weight: 800;
}

/* Sidebar widgets */
.feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-self: start;
}

.feed-widget {
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.feed-widget--hot {
  border-top: 4px solid var(--feed-accent);
}

.feed-widget__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--feed-text);
}

.feed-widget__emoji {
  font-size: 1.1rem;
}

.feed-widget__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--feed-accent);
}

.feed-widget__icon svg {
  width: 100%;
  height: 100%;
}

.feed-ranked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  min-height: 12rem;
}

.feed-ranked-item {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--feed-border);
}

.feed-ranked-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feed-ranked-item:first-child {
  padding-top: 0;
}

.feed-ranked-item__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--feed-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  border-radius: 6px;
}

.feed-ranked-item:nth-child(n + 4) .feed-ranked-item__num {
  background: var(--feed-bg);
  color: var(--feed-muted);
}

html[data-theme='dark'] .feed-ranked-item:nth-child(n + 4) .feed-ranked-item__num {
  background: #2a2a2a;
}

.feed-ranked-item__body {
  min-width: 0;
}

.feed-ranked-item__title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--feed-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.feed-ranked-item__title:hover {
  color: var(--feed-accent);
}

.feed-ranked-item__meta {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--feed-muted);
}

.feed-ranked-item--empty {
  color: var(--feed-muted);
  font-size: 0.85rem;
}

.feed-ranked-item--skeleton .feed-ranked-item__num {
  opacity: 0.35;
}

.feed-ranked-item__skel {
  flex: 1;
  height: 2.5rem;
  border-radius: 6px;
  background: var(--feed-border);
  opacity: 0.45;
  animation: feed-pulse 1.2s ease-in-out infinite;
}

@keyframes feed-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.25; }
}

.feed-widget--cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #162a3f 100%);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: #fff;
  text-align: center;
}

.feed-widget__cta-title {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 900;
  font-family: system-ui, sans-serif;
  min-height: 1.35rem;
}

.feed-widget__cta-text {
  margin: 0 0 var(--space-4);
  font-size: 0.85rem;
  opacity: 0.92;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  min-height: 2.55rem;
}

.feed-widget__cta-link {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, background 0.15s;
  font-family: var(--font-body);
}

.feed-widget__cta-link:hover {
  transform: scale(1.04);
}

/* Loading & empty */
.feed-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-8);
  color: var(--feed-muted);
  font-weight: 600;
}

.feed-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--feed-border);
  border-top-color: var(--feed-accent);
  border-radius: 50%;
  animation: feed-spin 0.7s linear infinite;
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.feed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--feed-muted);
}

.feed-empty__icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
}

.feed-empty__link {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--feed-accent);
  font-weight: 700;
  text-decoration: none;
}

.feed-load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.feed-load-more__btn {
  border: 2px solid var(--feed-accent);
  background: transparent;
  color: var(--feed-accent);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}

.feed-load-more__btn:hover:not(:disabled) {
  background: var(--feed-accent);
  color: #fff;
}

.feed-load-more__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feed-footer,
.site-footer.feed-footer {
  background: var(--color-primary);
  color: rgba(248, 244, 239, 0.85);
  border-top: none;
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: 0.875rem;
}

.feed-footer .footer-social {
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feed-footer .social-links a {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.feed-footer .social-links a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* First card spans full width on wide screens */
@media (min-width: 768px) {
  .feed-grid .feed-card:first-child {
    grid-column: 1 / -1;
  }

  .feed-grid .feed-card:first-child .feed-card__link {
    flex-direction: row;
  }

  .feed-grid .feed-card:first-child .feed-card__media {
    flex: 0 0 55%;
    aspect-ratio: auto;
    min-height: 220px;
  }

  .feed-grid .feed-card:first-child .feed-card__body {
    justify-content: center;
    padding: var(--space-6);
  }

  .feed-grid .feed-card:first-child .feed-card__title {
    font-size: 1.45rem;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 960px) {
  .feed-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feed-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .feed-widget--cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .feed-header__inner {
    grid-template-columns: 1fr;
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }

  .feed-grid .feed-card:first-child .feed-card__link {
    flex-direction: column;
  }

  .feed-grid .feed-card:first-child .feed-card__media {
    flex: none;
    aspect-ratio: 16 / 10;
  }

  .feed-sidebar {
    grid-template-columns: 1fr;
  }

  .feed-hero__link {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .feed-categories-bar {
    top: var(--nav-height);
  }
}

/* ─── BuzzFeed / Onedio article (not-detay) ─── */

.blog-article {
  --feed-accent: var(--color-primary);
  --feed-accent-dark: #081018;
  --feed-warm: var(--color-accent);
  --feed-bg: var(--color-bg);
  --feed-surface: var(--color-surface);
  --feed-text: var(--color-text);
  --feed-muted: #4b5563;
  --feed-subtle: #374151;
  --feed-border: rgba(13, 27, 42, 0.1);
  background: var(--feed-bg);
}

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article .article-title {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--feed-accent), var(--feed-warm));
  z-index: 100;
  transition: width 0.12s linear;
}

.article-wrap {
  padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-12);
}

.article-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-16);
  color: var(--feed-muted);
  font-weight: 600;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-6);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--feed-subtle);
}

.article-breadcrumb a {
  color: var(--feed-subtle);
  text-decoration: none;
  transition: color 0.15s;
}

.article-breadcrumb a:hover {
  color: var(--feed-accent);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-8);
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-hero {
  margin-bottom: var(--space-6);
}

.article-category-pill {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.3rem 0.75rem;
  background: var(--feed-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s;
}

.article-category-pill:hover {
  background: var(--feed-accent-dark);
  transform: translateY(-1px);
}

.article-title {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  color: var(--feed-text);
}

.article-lead {
  margin: 0 0 var(--space-5);
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--feed-subtle);
  max-width: 720px;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--feed-border);
  border-bottom: 1px solid var(--feed-border);
  margin-bottom: var(--space-4);
}

.article-byline__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-author-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s, opacity 0.15s;
}

a.article-author-link:hover {
  color: inherit;
  opacity: 0.92;
}

a.article-author-link:hover .article-author-box__name,
a.article-author-link:hover [data-not-author] {
  color: var(--feed-accent);
}

a.article-author-box.article-author-link {
  border-radius: 12px;
}

a.article-author-box.article-author-link:focus-visible {
  outline: 2px solid var(--feed-accent);
  outline-offset: 3px;
}

.article-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--feed-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.article-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-avatar__img[hidden],
.article-avatar__fallback[hidden] {
  display: none !important;
}

.article-avatar__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-avatar--has-image {
  background: var(--feed-border);
}

.article-avatar--lg {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.25rem;
}

.article-byline__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--feed-subtle);
  margin-top: 2px;
}

.article-byline__stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--feed-subtle);
  min-width: 11.5rem;
  min-height: 1.25rem;
  flex-shrink: 0;
}

.article-byline__stats [data-not-reading],
.article-byline__stats [data-not-views] {
  white-space: nowrap;
}

.article-byline__dot {
  opacity: 0.65;
  color: var(--feed-subtle);
}

.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.article-share__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.article-share__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--feed-subtle);
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--feed-border);
  background: var(--feed-surface);
  color: var(--feed-text);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.article-share__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--feed-accent);
}

.article-share__btn-icon svg {
  width: 100%;
  height: 100%;
}

.article-share__btn:hover {
  border-color: var(--feed-accent);
  color: var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent) 8%, var(--feed-surface));
}

.article-share--hero {
  margin-bottom: var(--space-4);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-tags .feed-badge--tag {
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.article-tags .feed-badge--tag:hover {
  background: var(--feed-accent);
  color: #fff;
}

.article-cover {
  margin: 0 0 var(--space-8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  aspect-ratio: 21 / 11;
  background: var(--feed-border);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-cover--generated,
.media-cover--generated {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(135deg, #1a2e1a 0%, #234a3a 55%, #2d8a6e 100%);
  text-align: center;
}

.article-cover__generated-text,
.media-cover__text {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-weight: 700;
  line-height: 1.25;
  color: #e8f5ef;
  text-wrap: balance;
  max-width: 92%;
}

.article-cover__generated-text {
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
}

.media-cover--generated-sm {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: var(--space-4);
}

.media-cover--generated-sm .media-cover__text {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-related-card__media--generated {
  background: linear-gradient(135deg, #1a2e1a 0%, #234a3a 55%, #2d8a6e 100%);
}

.article-content {
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.blog-article .article-content {
  font-size: 1.06rem;
  line-height: 1.88;
  color: var(--feed-text);
}

.blog-article .article-content h2,
.blog-article .article-content h3 {
  scroll-margin-top: 5rem;
  position: relative;
  padding-right: 2rem;
}

.blog-article .article-content h2 {
  margin-top: 2.4em;
  margin-bottom: 0.75em;
  font-size: 1.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--feed-accent);
}

.blog-article .article-content h3 {
  margin-top: 1.8em;
  font-size: 1.2rem;
  color: color-mix(in srgb, var(--feed-text) 90%, var(--feed-accent));
}

.article-heading-anchor {
  position: absolute;
  right: 0;
  top: 0.15em;
  opacity: 0;
  color: var(--feed-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85em;
  transition: opacity 0.15s;
}

.article-heading:hover .article-heading-anchor {
  opacity: 0.7;
}

.blog-article .article-content p {
  margin-bottom: 1.25em;
}

.blog-article .article-content ul,
.blog-article .article-content ol {
  margin: 1.25em 0;
  padding-left: 1.4em;
}

.blog-article .article-content li {
  margin-bottom: 0.5em;
}

.blog-article .article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin-block: 1.5em;
}

.blog-article .article-content figure {
  margin: 0;
  max-width: 100%;
}

.blog-article .article-content figcaption {
  font-size: 0.82rem;
  color: var(--feed-text-muted, #6b7280);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

.blog-article .article-content .align-left {
  float: left;
  margin: 0 1.25rem 1rem 0;
  max-width: 50%;
}

.blog-article .article-content .align-right {
  float: right;
  margin: 0 0 1rem 1.25rem;
  max-width: 50%;
}

.blog-article .article-content .align-center {
  display: block;
  margin: 1.25rem auto;
  text-align: center;
  float: none;
}

.blog-article .article-content .align-full-width {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  float: none;
}

.blog-article .article-content .align-inline {
  display: inline-block;
  float: none;
  margin: 0 0.5rem;
  vertical-align: middle;
}

.blog-article .article-content::after {
  content: "";
  display: table;
  clear: both;
}

.blog-article .article-content figure:has(table),
.article-content .rich-table-wrap {
  display: block;
  overflow-x: auto;
  margin: 1.5em 0;
  max-width: 100%;
}

.blog-article .article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--feed-surface);
}

.blog-article .article-content table th,
.blog-article .article-content table td {
  border: 1px solid var(--feed-border);
  padding: 0.65rem 0.85rem;
  vertical-align: top;
}

.blog-article .article-content table th {
  background: color-mix(in srgb, var(--feed-accent) 8%, var(--feed-surface));
  font-weight: 700;
  text-align: left;
}

.blog-article .article-content table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--feed-bg) 60%, var(--feed-surface));
}

.article-content-figure {
  margin: 1.75em 0;
}

.article-pullquote {
  margin: 2em 0;
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent) 6%, var(--feed-surface));
  border-radius: 0 12px 12px 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--feed-text);
}

/* Rich links */
.article-rich-link {
  color: var(--feed-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--feed-accent) 40%, transparent);
  text-underline-offset: 3px;
}

.article-rich-link__badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: lowercase;
  background: color-mix(in srgb, var(--feed-accent) 12%, var(--feed-bg));
  border-radius: 4px;
  text-decoration: none;
  vertical-align: middle;
}

.article-rich-link--card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 1.75em 0;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--feed-border);
  border-radius: 12px;
  background: var(--feed-bg);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-rich-link--card:hover {
  border-color: var(--feed-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.article-rich-link__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.article-rich-link__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.article-rich-link__title {
  font-size: 0.95rem;
  color: var(--feed-text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-rich-link__url {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--feed-muted);
}

.article-rich-link__arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--feed-accent);
}

.article-footer {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.article-related {
  margin-top: var(--space-12);
  padding-top: var(--space-4);
}

.article-footer-card {
  background: var(--feed-surface);
  border: 1px solid var(--feed-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.article-footer-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
}

.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.article-author-box__content {
  min-width: 0;
}

.article-author-box__label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--feed-muted);
}

.article-author-box__name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--feed-text);
}

.article-author-box__bio {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-footer__share {
  flex-shrink: 0;
}

.article-share--footer {
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
  margin: 0;
}

.article-share--footer .article-share__label {
  text-align: right;
}

@media (max-width: 720px) {
  .article-footer-card__body {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    padding: var(--space-5);
  }

  .article-footer__share {
    width: 100%;
    padding-top: var(--space-4);
    border-top: 1px solid var(--feed-border);
  }

  .article-share--footer {
    align-items: stretch;
  }

  .article-share--footer .article-share__label {
    text-align: left;
  }

  .article-share--footer .article-share__actions {
    width: 100%;
  }

  .article-share--footer .article-share__btn {
    flex: 1;
    justify-content: center;
  }
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.article-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--feed-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.article-related-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.article-related-card:hover .article-related-card__media img {
  transform: scale(1.05);
}

.article-related-card__cat {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 0.2rem 0.5rem;
  background: var(--feed-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 3px;
}

.article-related-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.article-related-card__body h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}

.article-related-card:hover h3 {
  color: var(--feed-accent);
}

.article-related-card__body p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--feed-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-related-card__meta {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--feed-muted);
}

.article-back {
  margin-top: var(--space-8);
}

.article-back__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--feed-accent);
  text-decoration: none;
}

.article-back__link:hover {
  text-decoration: underline;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: start;
}

.article-sidebar .feed-widget {
  padding: var(--space-4);
}

.article-sidebar .feed-widget__title {
  margin-bottom: var(--space-3);
  font-size: 0.82rem;
  line-height: 1.2;
}

.article-sidebar .feed-widget--hot {
  border-top-width: 3px;
}

.article-sidebar .feed-ranked-item {
  padding-block: var(--space-2);
}

.article-sidebar .feed-widget--cta {
  padding: var(--space-4);
}

.article-sidebar .feed-widget__cta-text {
  margin-bottom: var(--space-3);
}

/* SPA yolu: sidebar API ile dolana kadar alan rezerve et */
[data-sidebar-trending]:empty,
[data-sidebar-related]:empty {
  min-height: 14rem;
}

[data-article-share]:empty {
  min-height: 2.75rem;
}

.article-toc {
  display: grid;
  gap: 0.1rem;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  margin: 0;
  padding-right: 2px;
}

.article-toc__link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--feed-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.article-toc__link--h3 {
  padding-left: 1.15rem;
  font-size: 0.78rem;
}

.article-toc__link:hover,
.article-toc__link.active {
  color: var(--feed-accent);
  background: color-mix(in srgb, var(--feed-accent) 8%, var(--feed-surface));
  border-left-color: var(--feed-accent);
}

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-main {
    order: 1;
  }

  .article-sidebar {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .article-widget-toc {
    grid-column: 1 / -1;
  }

  .feed-widget--cta {
    grid-column: 1 / -1;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .article-cover {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .article-content {
    padding: var(--space-4);
    border-radius: 12px;
  }
}

/* ─── Premium AI Audio Player Styles ─── */
.article-audio-player {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

[data-theme="light"] .article-audio-player,
body:not([data-theme="dark"]) .article-audio-player {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

.audio-player-main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.audio-play-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.audio-play-btn:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--primary) 85%, black);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.audio-play-btn:active {
  transform: scale(0.98);
}

.audio-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.audio-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--foreground);
}

.audio-duration-display {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.audio-timeline-row {
  display: flex;
  align-items: center;
}

.audio-progress {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.audio-progress::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
}

.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  margin-top: -3px;
  transition: transform 0.15s ease;
}

.audio-progress:hover::-webkit-slider-thumb {
  transform: scale(1.3);
}

.audio-controls {
  flex-shrink: 0;
}

.audio-speed-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--foreground);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .audio-speed-btn,
body:not([data-theme="dark"]) .audio-speed-btn {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.audio-speed-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Sarı marker (highlight) efekti */
.audio-reading-highlight {
  background: linear-gradient(120deg, rgba(254, 240, 138, 0.3) 0%, rgba(254, 240, 138, 0.5) 100%);
  border-radius: 6px;
  padding-inline: 4px;
  margin-inline: -4px;
  transition: background 0.3s ease, color 0.3s ease;
  box-shadow: 0 1px 4px rgba(234, 179, 8, 0.05);
}

[data-theme="dark"] .audio-reading-highlight {
  background: linear-gradient(120deg, rgba(250, 204, 21, 0.1) 0%, rgba(250, 204, 21, 0.18) 100%);
  color: #fff;
}

/* Sticky ve Minimalist Yapılandırmalar */
.article-audio-player {
  position: sticky;
  top: 4rem; /* Navbar yüksekliği */
  z-index: 39;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sayfa kaydırıldığında minimalist hale bürünen yapışkan oynatıcı */
.article-audio-player.is-sticky {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 8px 16px;
  margin-block: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .article-audio-player.is-sticky {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(51, 65, 85, 0.6);
}

/* Sticky modda butonların küçülmesi */
.article-audio-player.is-sticky .audio-play-btn {
  width: 36px;
  height: 36px;
}

.article-audio-player.is-sticky .audio-play-btn svg {
  width: 16px;
  height: 16px;
}

.article-audio-player.is-sticky .audio-title {
  font-size: 0.8rem;
}

.article-audio-player.is-sticky .audio-duration-display {
  font-size: 0.72rem;
}

.article-audio-player.is-sticky .audio-speed-btn {
  padding: 4px 8px;
  font-size: 0.72rem;
}

/* Ses Ayarı Kontrolleri */
.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.audio-volume-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-foreground);
}

.audio-volume-wrapper:hover {
  color: var(--foreground);
}

.audio-volume-slider {
  width: 50px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.audio-volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  margin-top: -3px;
}

.audio-volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

.audio-reading-span {
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 4px;
  padding-inline: 2px;
}

@media (max-width: 640px) {
  .audio-volume-wrapper {
    display: none;
  }
}



