/* Блог — DUROV MUSIC LAB */
/* Ширина контента = шапка: max 1440px, боковые отступы 40px */

body.dml-blog-view {
  background: #0d0d0d;
  color: #fff;
}

body.dml-blog-view #main-container {
  background: #0d0d0d;
  max-width:  none;
  width:      100%;
}

body.dml-blog-view #main-container > main,
body.dml-blog-view .site-main.dml-blog-main,
body.dml-blog-view .dml-blog-main .ct-container {
  width:     100%;
  max-width: none;
  padding:   0;
  margin:    0;
}

body.dml-blog-view a.blog-article,
body.dml-blog-view a.blog-article:hover,
body.dml-blog-view a.blog-filter__btn,
body.dml-blog-view a.blog-filter__btn:hover {
  color: inherit;
  text-decoration: none;
}

/* --- Блок на главной --- */
.editorial-section {
  background:  #0a0a0a;
  padding:     64px clamp(12px, 1.2vw, 20px) 68px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  border-top:  1px solid rgba(255, 255, 255, 0.04);
}

.editorial-section__header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             20px;
  margin-bottom:   32px;
  padding:         0 clamp(8px, 1vw, 28px);
}

.editorial-section__tag {
  font-size:      clamp(16px, 1.35vw, 20px);
  font-weight:    700;
  letter-spacing: 0.14em;
  color:          rgba(201, 168, 76, 0.85);
  display:        flex;
  align-items:    center;
  gap:            16px;
}
.editorial-section__tag::before {
  content:     '';
  width:       36px;
  height:      2px;
  background:  rgba(201, 168, 76, 0.7);
  flex-shrink: 0;
}

.editorial-section__all {
  font-size:       clamp(12px, 0.95vw, 14px);
  letter-spacing:  0.12em;
  color:           rgba(255, 255, 255, 0.35);
  text-decoration: none;
  border-bottom:   1px solid rgba(255, 255, 255, 0.15);
  padding-bottom:  2px;
  white-space:     nowrap;
  transition:      color 0.2s;
}
.editorial-section__all:hover { color: rgba(255, 255, 255, 0.65); }

.editorial-section__grid {
  display:               grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:                   clamp(16px, 1.8vw, 24px);
  padding:               0 clamp(8px, 1vw, 28px);
}

.ed-card {
  background:      #111;
  border:          1px solid rgba(255, 255, 255, 0.06);
  border-radius:   8px;
  overflow:        hidden;
  text-decoration: none;
  transition:      transform 0.25s, border-color 0.25s;
  display:         block;
  height:          100%;
}
.ed-card:hover {
  transform:    translateY(-3px);
  border-color: rgba(201, 168, 76, 0.25);
}

.ed-card__cover {
  aspect-ratio: 16/10;
  overflow:     hidden;
  background:   #1a1a1a;
}
.ed-card__img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.ed-card__body { padding: 18px 18px 20px; }

.ed-card__cat {
  display:        inline-block;
  font-size:      clamp(9px, 0.75vw, 10px);
  letter-spacing: 0.18em;
  font-weight:    700;
  padding:        4px 9px;
  border-radius:  3px;
  margin-bottom:  12px;
}
.ed-card__cat--novosti { background: rgba(201,168,76,0.14); color: #c9a84c; }
.ed-card__cat--istorii { background: rgba(204,130,60,0.14); color: #cc823c; }

.ed-card__title {
  font-size:     clamp(15px, 1.2vw, 17px);
  font-weight:   600;
  line-height:   1.35;
  color:         #fff;
  margin:        0 0 10px;
}
.ed-card__excerpt {
  font-size:     clamp(12px, 0.95vw, 13px);
  line-height:   1.55;
  color:         rgba(255, 255, 255, 0.42);
  margin:        0 0 14px;
}
.ed-card__meta {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  font-size:       clamp(11px, 0.85vw, 12px);
  gap:             12px;
}
.ed-card__date { color: rgba(255, 255, 255, 0.30); letter-spacing: 0.04em; }
.ed-card__read { color: rgba(201, 168, 76, 0.85); letter-spacing: 0.08em; white-space: nowrap; }

/* --- Страница блога --- */
body.dml-blog-view #main-container .hero-section,
body.dml-blog-view .entry-header,
body.dml-blog-view .page-title,
body.dml-blog-view .ct-page-title {
  display: none !important;
}

.dml-blog-main {
  background: #0d0d0d;
}

.blog-page {
  background:  #0d0d0d;
  padding:     56px 40px 72px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  max-width:   1440px;
  margin:      0 auto;
  width:       100%;
  box-sizing:  border-box;
}

.blog-page__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size:   clamp(28px, 3vw, 36px);
  color:       #fff;
  margin:      0 0 8px;
  font-weight: 400;
}
.blog-page__sub {
  font-size:     clamp(14px, 1.05vw, 15px);
  color:         rgba(255, 255, 255, 0.42);
  line-height:   1.6;
  margin:        0 0 28px;
}

.blog-filter {
  display:       flex;
  flex-wrap:     wrap;
  gap:           8px;
  margin-bottom: 32px;
}
.blog-filter__btn {
  font-size:       clamp(10px, 0.8vw, 11px);
  letter-spacing:  0.14em;
  padding:         9px 16px;
  border-radius:   3px;
  border:          1px solid rgba(255, 255, 255, 0.12);
  background:      transparent;
  color:           rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition:      all 0.2s;
}
.blog-filter__btn.active,
.blog-filter__btn:hover {
  background:   rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color:        #c9a84c;
}

.blog-article {
  display:               grid;
  grid-template-columns: clamp(180px, 16vw, 280px) minmax(0, 1fr);
  gap:                   clamp(20px, 2.2vw, 36px);
  padding:         24px 0;
  border-bottom:   1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  align-items:     start;
}
.blog-article:hover .blog-article__title { color: #c9a84c; }

.blog-article__cover {
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow:      hidden;
  background:    #1a1a1a;
}
.blog-article__cover img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.blog-article__body {
  display:         flex;
  flex-direction:  column;
  justify-content: center;
  min-height:      100%;
}

.blog-article__cat,
.blog-single__cat {
  align-self:     flex-start;
  font-size:      clamp(9px, 0.75vw, 10px);
  letter-spacing: 0.18em;
  font-weight:    700;
  padding:        4px 9px;
  border-radius:  3px;
  margin-bottom:  12px;
}
.blog-article__cat--novosti,
.blog-single__cat--novosti { background: rgba(201,168,76,0.14); color: #c9a84c; }
.blog-article__cat--istorii,
.blog-single__cat--istorii { background: rgba(204,130,60,0.14); color: #cc823c; }

.blog-article__title {
  font-size:     clamp(18px, 1.4vw, 20px);
  font-weight:   600;
  line-height:   1.3;
  color:         #fff;
  margin:        0 0 8px;
  transition:    color 0.2s;
}
.blog-article__excerpt {
  font-size:     clamp(13px, 1vw, 14px);
  line-height:   1.6;
  color:         rgba(255, 255, 255, 0.45);
  margin:        0 0 10px;
}
.blog-article__meta {
  font-size:   clamp(11px, 0.85vw, 12px);
  color:       rgba(255, 255, 255, 0.30);
  letter-spacing: 0.04em;
}
.blog-article__dot { margin: 0 6px; }

.blog-page__empty {
  color:      rgba(255, 255, 255, 0.45);
  font-size:  15px;
  padding:    32px 0;
}

.blog-pagination { margin-top: 36px; }
.blog-pagination .page-numbers {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  min-width:       36px;
  height:          36px;
  margin-right:    6px;
  border-radius:   4px;
  border:          1px solid rgba(255, 255, 255, 0.1);
  color:           rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size:       13px;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.35);
  color: #c9a84c;
}

/* --- Одиночная статья --- */
.blog-single {
  background:  #0a0a0a;
  padding:     56px 40px 72px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  max-width:   1440px;
  margin:      0 auto;
  width:       100%;
  box-sizing:  border-box;
}

.blog-single__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size:   clamp(28px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  color:       #fff;
  margin:      0 0 14px;
}
.blog-single__meta {
  font-size:  clamp(12px, 0.95vw, 13px);
  color:      rgba(255, 255, 255, 0.35);
  margin-bottom: 28px;
}
.blog-single__dot { margin: 0 6px; }

.blog-single__cover {
  border-radius: 8px;
  overflow:      hidden;
  margin-bottom: 32px;
  background:    #1a1a1a;
}
.blog-single__cover img {
  width:      100%;
  height:     auto;
  display:    block;
}

.blog-single__content {
  color:       rgba(255, 255, 255, 0.82);
  font-size:   clamp(16px, 1.15vw, 18px);
  line-height: 1.75;
  max-width:   720px;
}
.blog-single__content p { margin: 0 0 1.2em; }
.blog-single__content h2,
.blog-single__content h3 {
  color:       #fff;
  margin:      1.6em 0 0.6em;
  line-height: 1.3;
}
.blog-single__content a {
  color: #c9a84c;
  text-decoration: underline;
}
.blog-single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.blog-single__footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.blog-single__back {
  color:           rgba(201, 168, 76, 0.85);
  text-decoration: none;
  font-size:       clamp(13px, 1vw, 14px);
  letter-spacing:  0.06em;
  transition:      color 0.2s;
}
.blog-single__back:hover { color: #e8c97a; }

@media (max-width: 1024px) {
  .blog-page,
  .blog-single {
    padding-left:  24px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  .editorial-section__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .blog-page { padding: 40px 16px 56px; }
  .blog-article { grid-template-columns: 1fr; gap: 14px; }
  .editorial-section__grid { grid-template-columns: 1fr; }
  .editorial-section__header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .editorial-section { padding: 48px clamp(12px, 1.2vw, 20px) 52px; }
  .blog-single { padding: 40px 16px 56px; }
}
