:root {
  --bn-bg: #ffffff;
  --bn-soft: #f6f8fb;
  --bn-border: #e3e8ef;
  --bn-text: #172033;
  --bn-muted: #64748b;
  --bn-primary: #154475;
  --bn-like: #16825d;
  --bn-dislike: #c5203d;
  --bn-radius: 14px;
  --bn-shadow: 0 8px 28px rgba(23, 32, 51, 0.08);
}

.bn-single,
.breaking-news-grid,
.bn-empty {
  direction: rtl;
  box-sizing: border-box;
}

.bn-single *,
.breaking-news-grid * {
  box-sizing: border-box;
}

.bn-single {
  width: 100%;
  color: var(--bn-text);
}

.bn-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 16px;
  color: var(--bn-muted);
  font-size: 13px;
  line-height: 1.8;
}

.bn-breadcrumb a {
  color: var(--bn-primary);
  text-decoration: none;
}

.bn-breadcrumb a:hover {
  text-decoration: underline;
}

.bn-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--bn-border);
  border-radius: 12px;
  background: var(--bn-soft);
  color: var(--bn-muted);
  font-size: 13px;
}

.bn-story-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bn-story-meta svg,
.bn-card__meta svg,
.bn-source-box svg,
.bn-vote-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.bn-sentiment {
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.bn-sentiment--bullish {
  background: #e8f7f1;
  color: #126b4e;
}

.bn-sentiment--bearish {
  background: #fdecef;
  color: #a21731;
}

.bn-article-body {
  overflow-wrap: anywhere;
}

.bn-article-body img,
.bn-article-body video,
.bn-article-body iframe {
  max-width: 100%;
  height: auto;
}

.bn-source-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 0;
  padding: 15px 17px;
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  background: var(--bn-soft);
}

.bn-source-box > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bn-source-box a {
  color: var(--bn-primary);
  direction: ltr;
  overflow-wrap: anywhere;
}

.bn-voting {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  background: var(--bn-bg);
  box-shadow: var(--bn-shadow);
}

.bn-voting__text {
  display: grid;
  gap: 4px;
}

.bn-voting__text strong {
  font-size: 16px;
}

.bn-voting__text span {
  color: var(--bn-muted);
  font-size: 12px;
}

.bn-voting__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bn-vote-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--bn-border);
  border-radius: 11px;
  background: #fff;
  color: var(--bn-text);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.bn-vote-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(23, 32, 51, 0.1);
}

.bn-vote-button:focus-visible {
  outline: 3px solid rgba(21, 68, 117, 0.22);
  outline-offset: 2px;
}

.bn-vote-button b {
  min-width: 22px;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--bn-soft);
  font-size: 12px;
  text-align: center;
}

.bn-vote-button--like:hover,
.bn-vote-button--like.is-success {
  border-color: rgba(22, 130, 93, 0.45);
  background: #effaf6;
  color: var(--bn-like);
}

.bn-vote-button--dislike:hover,
.bn-vote-button--dislike.is-success {
  border-color: rgba(197, 32, 61, 0.4);
  background: #fff2f4;
  color: var(--bn-dislike);
}

.bn-vote-button.is-loading {
  opacity: 0.65;
}

.bn-vote-button.is-error {
  border-color: var(--bn-dislike);
}

.bn-voting__status {
  position: absolute;
  inset-inline: 18px;
  bottom: -24px;
  min-height: 18px;
  margin: 0;
  color: var(--bn-muted);
  font-size: 12px;
}

.breaking-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.breaking-news-card {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  background: var(--bn-bg);
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.breaking-news-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--bn-shadow);
}

.bn-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 122px;
  padding: 16px;
  color: inherit;
  text-decoration: none !important;
}

.bn-card__content {
  min-width: 0;
  flex: 1;
}

.bn-card__content h3 {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--bn-text);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bn-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--bn-muted);
  font-size: 12px;
}

.bn-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bn-card__meta svg {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.bn-card__thumb {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bn-soft);
}

.bn-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.bn-empty {
  padding: 18px;
  border: 1px dashed var(--bn-border);
  border-radius: var(--bn-radius);
  text-align: center;
}

@media (max-width: 782px) {
  .breaking-news-grid {
    grid-template-columns: 1fr;
  }

  .bn-voting {
    grid-template-columns: 1fr;
  }

  .bn-voting__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bn-vote-button {
    width: 100%;
  }

  .bn-source-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .bn-story-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .bn-card__link {
    min-height: 104px;
    padding: 13px;
  }

  .bn-card__thumb {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }

  .bn-card__content h3 {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .bn-voting {
    padding: 15px;
  }

  .bn-vote-button span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breaking-news-card,
  .bn-vote-button {
    transition: none;
  }
}
