/* === Reviews Widget — rv- prefix === */
.rv { font-size: 1.6rem; line-height: 1.5; color: #333; }
.rv * { box-sizing: border-box; }

/* Header */
.rv-header { display: flex; align-items: center; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; }
.rv-header__info { display: flex; align-items: center; gap: 2rem; }
.rv-header__rating-big { font-size: 5.6rem; font-weight: 800; color: #000; line-height: 1; letter-spacing: -.02em; }
.rv-header__details { display: flex; flex-direction: column; gap: .4rem; }
.rv-header__count { font-size: 1.6rem; color: #999; }
.rv-header__platforms { display: flex; gap: 1rem; flex-wrap: wrap; }
.rv-header__platform-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.6rem; background: #f5f5f5; border-radius: 10rem; font-size: 1.6rem; font-weight: 600; color: #333; text-decoration: none; transition: all .2s; }
.rv-header__platform-badge:hover { background: #eee; color: #000; }

/* Stars */
.rv-stars { display: inline-flex; gap: .2rem; align-items: center; }
.rv-star { width: 1.6rem; height: 1.6rem; }
.rv-star--filled { color: #FACC15; }
.rv-star--empty { color: #E5E7EB; }
.rv-header .rv-stars .rv-star { width: 2rem; height: 2rem; }

/* Tabs */
.rv-tabs { display: flex; gap: .6rem; margin-bottom: 3rem; border-bottom: 2px solid #f0f0f0; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.rv-tabs::-webkit-scrollbar { display: none; }
.rv-tab { padding: 1.2rem 2rem; font-size: 1.8rem; font-weight: 600; color: #999; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; margin-bottom: -2px; }
.rv-tab:hover { color: #333; }
.rv-tab--active { color: #e60f2d; border-bottom-color: #e60f2d; }
.rv-tab__count { font-size: 1.4rem; background: #f0f0f0; color: #666; padding: .2rem .7rem; border-radius: 10rem; font-weight: 700; }
.rv-tab--active .rv-tab__count { background: #fef0f0; color: #e60f2d; }

/* Panels */
.rv-panel[hidden] { display: none; }
.rv-panel--active { display: block; }

/* Grid */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Card */
.rv-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 1.6rem; padding: 2.4rem; transition: all .3s; display: flex; flex-direction: column; }
.rv-card:hover { border-color: #e0e0e0; box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.06); }

/* Card header */
.rv-card__header { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 1.6rem; }
.rv-card__avatar { width: 4.4rem; height: 4.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.8rem; font-weight: 700; flex-shrink: 0; line-height: 1; }
.rv-card__meta { flex: 1; min-width: 0; }
.rv-card__name-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .4rem; }
.rv-card__name { font-size: 1.8rem; font-weight: 700; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-platform-icon { flex-shrink: 0; border-radius: 50%; width: 2.4rem; height: 2.4rem; object-fit: contain; }
.rv-card__platform-link { display: inline-flex; transition: opacity .2s; }
.rv-card__platform-link:hover { opacity: .7; }
.rv-card__date-stars { display: flex; align-items: center; gap: .8rem; }
.rv-card__date { font-size: 1.5rem; color: #bbb; }

/* Card body */
.rv-card__body { flex: 1; }
.rv-card__text { font-size: 1.6rem; color: #555; line-height: 1.65; }
.rv-card__preview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card__full { display: none; }
.rv-card--expanded .rv-card__preview { display: none; }
.rv-card--expanded .rv-card__full { display: block !important; }
.rv-card__more { background: none; border: none; color: #e60f2d; font-size: 1.6rem; font-weight: 600; cursor: pointer; padding: .6rem 0 0; transition: color .2s; }
.rv-card__more:hover { color: #c40d26; }
.rv-card--expanded .rv-card__more::after { content: none; }

/* Empty */
.rv-empty { text-align: center; color: #bbb; font-size: 1.6rem; padding: 4rem 0; grid-column: 1 / -1; }

/* Footer (short mode) */
.rv-footer { text-align: center; margin-top: 3rem; }
.rv-footer__link { display: inline-block; padding: 1.4rem 4rem; background: #e60f2d; color: #fff; border-radius: 1rem; font-weight: 700; font-size: 1.6rem; text-decoration: none; transition: all .3s; }
.rv-footer__link:hover { background: #c40d26; transform: translateY(-.2rem); box-shadow: 0 .8rem 2.4rem rgba(230,15,45,.25); color: #fff; }

/* Responsive */
@media (max-width: 991px) {
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .rv-header__rating-big { font-size: 4.4rem; }
}
@media (max-width: 600px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-tab { padding: 1rem 1.4rem; font-size: 1.6rem; }
  .rv-card { padding: 2rem; }
  .rv-card__avatar { width: 3.8rem; height: 3.8rem; font-size: 1.6rem; }
}
