.ra2 {
  margin: 20px 0;
}

.ra2-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ra2-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.ra2-tab img {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
}

.ra2-tab.is-active {
  border-color: var(--accent, #f0c400);
  box-shadow: inset 0 0 0 1px var(--accent, #f0c400);
}

.ra2-pane {
  display: none;
}

.ra2-pane.is-active {
  display: block;
}

.ra2-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

.ra2-head__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.ra2-head__summary {
  white-space: nowrap;
}

.ra2-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ra2-stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 14px;
  letter-spacing: 2px;
}

.ra2-stars__base {
  color: #d7d7d7;
}

.ra2-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  color: #f0b90b;
  overflow: hidden;
  white-space: nowrap;
}

.ra2-btn {
  background: var(--accent, #f0c400);
  padding: 8px 12px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
}

.ra2-source-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  border: 2px solid var(--btn-bg, #e53935);
  background: var(--btn-bg, #e53935);
  color: var(--btn-color, #ffffff);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ra2-source-btn:hover {
  background: var(--btn-color, #ffffff);
  color: var(--btn-bg, #e53935);
}

.ra2-sort {
  min-width: 180px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #222;
  font-weight: 600;
}

.ra2-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ra2.ra2--view-list .ra2-grid {
  grid-template-columns: 1fr;
}

.ra2 .ra2-card {
  position: relative;
  padding: 12px;
  padding-bottom: 42px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
}

.ra2 .ra2-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ra2 .ra2-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.ra2 .ra2-card__avatar--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #a1a7b3;
}

.ra2 .ra2-card__title {
  font-weight: 600;
  margin: 0;
}

.ra2 .ra2-card__rating {
  margin-bottom: 8px;
}

.ra2 .ra2-card__text {
  color: #2a2a2a;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ra2 .ra2-card__text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ra2 .ra2-toggle {
  display: inline-block;
  margin-top: 8px;
  border: 0 !important;
  background: transparent !important;
  color: #1f5ca8;
  cursor: pointer;
  padding: 0 !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: none !important;
  letter-spacing: 0;
  border-radius: 0;
  box-shadow: none !important;
  border-bottom: 1px dotted currentColor;
}

.ra2 .ra2-card__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 10px;
}

.ra2 .ra2-card__date {
  color: #7a7a7a;
  font-size: 12px;
}

.ra2-more {
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}

@media (max-width: 1100px) {
  .ra2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ra2-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ra2-head__actions {
    width: 100%;
  }

  .ra2-source-btn,
  .ra2-sort {
    width: 100%;
  }

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