/* ── Black market: daily discount rotation ─────────────────────────────────── */
.bm-block {
  max-width: 1240px;
  margin: 18px auto 0;
  padding: 20px 22px 22px;
  background:
    radial-gradient(ellipse at top left, rgba(220, 38, 38, 0.10), transparent 55%),
    linear-gradient(180deg, #17100f 0%, var(--panel) 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 32px rgba(220, 38, 38, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bm-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f87171;
  text-shadow: 0 0 18px rgba(220, 38, 38, 0.45);
}

.bm-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.bm-timer {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 8px;
  padding: 7px 12px;
  white-space: nowrap;
}

/* ── Cards grid ── */
.bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.bm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #1a1414 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.bm-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 18px rgba(220, 38, 38, 0.10);
}

.bm-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.45);
}

.bm-img {
  height: 110px;
  border-radius: 8px;
  background-color: var(--panel2);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
}

.bm-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  min-height: 2.4em;
}

/* ── Prices ── */
.bm-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bm-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bm-old {
  font-size: 13px;
  color: var(--dim);
  opacity: 0.55;
  text-decoration: line-through;
}

.bm-new {
  font-size: 19px;
  font-weight: 800;
  color: #f87171;
}

.bm-new-oz {
  color: var(--acc);
}

/* ── Buy buttons ── */
.bm-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.bm-buy {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid rgba(220, 38, 38, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.bm-buy:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.35);
}

.bm-buy:disabled {
  opacity: 0.5;
  cursor: default;
  filter: none;
  box-shadow: none;
}

.bm-buy-oz {
  color: var(--acc);
  background: var(--panel2);
  border-color: var(--border2);
}

.bm-buy-oz:hover {
  box-shadow: 0 0 14px rgba(174, 242, 58, 0.18);
  border-color: rgba(174, 242, 58, 0.4);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .bm-block {
    margin: 12px 10px 4px;
    padding: 14px;
  }

  .bm-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .bm-title {
    font-size: 18px;
  }

  .bm-timer {
    font-size: 12px;
  }
}

/* Closed teaser (не пятница) */
.bm-head.bm-closed { margin-bottom: 0; opacity: .92; }
.bm-head.bm-closed .bm-timer { color: #d99; }
