.mznb-block,
.mznb-block *{
  box-sizing: border-box;
  font-family: "Roboto", sans-serif !important;
}

.mznb-block{
  height: var(--mznb-height, 800px);
  width: 100%;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Auto-height mode (height = 0) */
.mznb-block.mznb-auto-height{
  height: auto;
}

/* Header */
.mznb-header{
  padding: 18px 18px 0;
}

.mznb-header-title{
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #111;
}

.mznb-header-line{
  margin-top: 14px;
  height: 1px;
  background: #e0e0e0;
}

/* Scroll area (list) */
.mznb-scroll{
  position: relative;
  flex: 1 1 auto;
  min-height: 0; /* important for flex + overflow */
  overflow: auto;
  padding: 18px 18px 18px;
  scrollbar-width: thin; /* Firefox */
  z-index: 0;
  -webkit-overflow-scrolling: touch;
}

/* In auto-height mode there is no internal scrolling */
.mznb-block.mznb-auto-height .mznb-scroll{
  overflow: visible;
  max-height: none;
}

/* When header exists, top padding should be smaller */
.mznb-block.mznb-has-header .mznb-scroll{
  padding-top: 12px;
}

.mznb-scroll::-webkit-scrollbar{
  width: 8px;
}
.mznb-scroll::-webkit-scrollbar-track{
  background: transparent;
}
.mznb-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}

/* Show scrollbar only on hover (and only when scroll exists) */
.mznb-block:not(.mznb-has-scroll) .mznb-scroll{
  scrollbar-width: none; /* Firefox */
}

.mznb-block:not(.mznb-has-scroll) .mznb-scroll::-webkit-scrollbar{
  width: 0;
}

.mznb-block.mznb-has-scroll .mznb-scroll{
  scrollbar-color: transparent transparent; /* Firefox: hidden by default */
}

.mznb-block.mznb-has-scroll:hover .mznb-scroll{
  scrollbar-color: rgba(0,0,0,.18) transparent;
}

/* Touch devices: no hover, so keep scrollbar visible when it exists */
@media (hover: none), (pointer: coarse){
  .mznb-block.mznb-has-scroll .mznb-scroll{
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.18) transparent;
  }

  .mznb-block.mznb-has-scroll .mznb-scroll::-webkit-scrollbar{
    width: 8px;
  }
}

/* Tablet widths: keep scrollbar visible (hover behavior can be inconsistent) */
@media (min-width: 600px) and (max-width: 1024px){
  .mznb-block.mznb-has-scroll .mznb-scroll{
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.18) transparent;
  }

  .mznb-block.mznb-has-scroll .mznb-scroll::-webkit-scrollbar{
    width: 8px;
  }
}

/* Bottom fade overlay (toggled via JS) */
.mznb-fade{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 70%);
  z-index: 1;
}

.mznb-block.mznb-auto-height .mznb-fade{
  display: none;
}

.mznb-block.mznb-at-end .mznb-fade{
  display: none;
}

.mznb-list{
  display: flex;
  flex-direction: column;
}

.mznb-item{
  padding: 14px 0;
  border-bottom: 1px solid #e0e0e0;
}

.mznb-item:last-child{
  border-bottom: 0;
}

.mznb-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.mznb-link--with-thumb{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mznb-link--with-thumb.mznb-thumb-right{
  flex-direction: row-reverse;
}

.mznb-thumb{
  flex: 0 0 112px;
  width: 112px;
  max-width: 112px;
  overflow: hidden;
  background: #f2f2f2;
}

.mznb-thumb img{
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.mznb-body{
  min-width: 0;
  flex: 1 1 auto;
}

.mznb-title{
  font-size: 16px;
  line-height: 20px;
  font-weight: normal;
  color: #111;
  word-break: break-word;
}

.mznb-date{
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: #d32b2b;
}

.mznb-link:hover .mznb-title{
  color: #d32b2b;
}

/* Actions area (button always visible at bottom) */
.mznb-actions{
  padding: 14px 18px 18px;
  background: #fff;
  position: relative; /* do not stick to viewport */
  z-index: 2;
}

.mznb-load-more{
  width: 100%;
  background: #d32b2b;
  color: #fff;
  border: 0;
  padding: 20px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.mznb-load-more:hover{
  background: #000;
}

.mznb-load-more:disabled{
  opacity: 0.6;
  cursor: wait;
}

