/* Biến dùng chung, nhận từ inline style trên wrapper:
   --bg, --text, --btn-bg, --btn-text, --border
   --logo-w, --logo-h, --font-tag, --font-brand, --font-promo
*/

/* ===== LIST 1/2/3: full-width rows, logo cột cố định, text wrap ===== */
.hot-game-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent !important;
}

.hot-game-list,
.hot-game-sidebar {
  background: transparent !important;
}

.hot-game-list .game-item {
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  transition: 0.25s;
  cursor: pointer;
}

.hot-game-list .game-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Một hàng: logo (ô cố định) | info | khuyến mãi | nút */
.hot-game-list .game-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Cột logo: luôn cùng bề ngang — căn giữa ảnh trong ô vuông */
.hot-game-list .logo-col {
  flex: 0 0 auto;
  width: var(--logo-w);
  min-width: var(--logo-w);
  max-width: var(--logo-w);
  align-self: flex-start;
}

.hot-game-list .logo-wrap {
  width: var(--logo-w);
  height: var(--logo-h);
  min-width: var(--logo-w);
  min-height: var(--logo-h);
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
}

.hot-game-list .logo-wrap img {
  width: 100%;
  height: 100%;
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  display: block;
}

.hot-game-list .info-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.hot-game-list .brand {
  font-weight: bold;
  font-size: var(--font-brand);
  line-height: 1.25;
  max-width: 100%;
}

.hot-game-list .game-rating {
  color: #f2b01e;
  font-size: calc(var(--font-brand) - 2px);
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.hot-game-list .tag {
  font-size: var(--font-tag);
  line-height: 1.35;
  max-width: 100%;
  white-space: normal;
}

.hot-game-list .promo-col {
  flex: 1 1 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.hot-game-list .promo {
  font-weight: bold;
  font-size: var(--font-promo);
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.hot-game-list .actions-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: min(120px, 100%);
}

.hot-game-list .btn {
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  display: block;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.2;
}

.hot-game-list .btn-play {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.hot-game-list .btn-review {
  background: #6b6b6b;
  color: #fff;
  border-color: #555;
}

/* Mobile: 1 hàng = logo | tên+sao+tag | nút xếp dọc; dưới = promo full width (như mẫu) */
@media (max-width: 640px) {
  .hot-game-list .game-item {
    padding: 10px 10px 10px 12px;
  }

  .hot-game-list .game-body {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    row-gap: 10px;
  }

  .hot-game-list .logo-col {
    order: 1;
    flex: 0 0 var(--logo-w);
  }

  .hot-game-list .info-col {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }

  .hot-game-list .actions-col {
    order: 3;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
    min-width: 0;
  }

  .hot-game-list .actions-col .btn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hot-game-list .promo-col {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hot-game-list .brand {
    font-size: max(16px, calc(var(--font-brand) * 0.85));
  }

  .hot-game-list .tag {
    opacity: 0.92;
  }

  .hot-game-sidebar .promo {
    margin: 8px 0;
    line-height: 1.35;
  }
}

/* ===== SIDEBAR ===== */
.hot-game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
}

.hot-game-sidebar .sidebar-item {
  position: relative;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.hot-game-sidebar .tag {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: var(--font-tag);
}

.hot-game-sidebar .logo-brand-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hot-game-sidebar .logo-brand-stars img {
  width: var(--logo-w);
  height: var(--logo-h);
  border-radius: 6px;
  object-fit: contain;
}

.hot-game-sidebar .brand-stars {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hot-game-sidebar .brand {
  font-weight: bold;
  font-size: var(--font-brand);
}

.hot-game-sidebar .game-rating {
  color: #f2b01e;
  font-size: calc(var(--font-brand) - 2px);
  font-weight: 700;
}

.hot-game-sidebar .promo {
  margin: 6px 0;
  font-weight: 600;
  font-size: var(--font-promo);
}

.hot-game-sidebar .actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}

.hot-game-sidebar .btn {
  flex: 0 0 auto;
  width: 100%;
  display: block;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--border);
  line-height: 1.2;
}
