/* === COPY FROM ORIGINAL stream-style.css & EXTENSIONS === */
/* === GLOBAL & RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", sans-serif;
  background-color: #f5f5f7;
}

/* === MAIN CONTAINER === */
.stream-page-container {
  max-width: 1440px;
  margin: 20px auto;
  padding: 80px 20px 40px;
}

.stream-main-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* === STREAM LAYOUT (GRID) === */
.stream-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  margin-bottom: 30px;
  height: 600px;
}

/* --- VIDEO SECTION (LEFT) --- */
.video-player-container {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* === NEW UPCOMING STYLES === */

.upcoming-wrapper {
  background-color: #000;
  display: flex;
  flex-direction: column;
  color: white;
  padding: 24px;
}

/* Header inside black box */
.upcoming-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upcoming-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.upcoming-streamer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.up-name {
  font-size: 15px;
  font-weight: 700;
}

.up-rating {
  font-size: 12px;
  color: #fff;
}
.up-rating i {
  color: #ffd700;
  margin-right: 4px;
}

.upcoming-follow-btn {
  background: #e85d26;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
}

/* Center Content */
.upcoming-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.countdown-grid {
  display: flex;
  gap: 60px;
  text-align: center;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-val {
  font-size: 120px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -2px;
}

.count-label {
  font-size: 32px;
  font-weight: 500;
  margin-top: 10px;
}

/* Reminder Button */
.btn-reminder {
  background-color: #e85d26;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reminder i {
  font-size: 24px;
  color: #fff; /* Изначально белый колокольчик */
}

.reminder-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Active State for Reminder Button (Clicked) */
.btn-reminder.active {
  background-color: #fff; /* Белая кнопка */
}

.btn-reminder.active .reminder-text {
  color: #e85d26; /* Оранжевый текст */
}

.btn-reminder.active i {
  color: #e85d26; /* Оранжевый колокольчик */
}

/* Footer inside black box */
.upcoming-footer-text {
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}

/* --- CHAT SECTION (RIGHT) --- */
.chat-container {
  background: white;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 10px;
  font-size: 13px;
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.message-content {
  line-height: 1.4;
}
.content-messege {
  text-align: left;
}
.chat-username {
  font-weight: 700;
  margin-right: 5px;
  color: #555;
}

.chat-message.highlighted .message-content p {
  color: #ff0033;
  font-weight: 500;
}

.chat-input-wrapper {
  padding: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  border: rgba(0, 0, 0, 0);
}
.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
  font-size: 14px;
}
.chat-send-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

/* === PRODUCTS CAROUSEL SECTION === */
.products-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  align-items: flex-start;
}

.product-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  min-width: 348px;
  width: 348px;
  height: 184px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-header-badge {
  height: 28px;
  max-width: 180px;
  display: flex;
  border-radius: 16px 0 16px 0;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
}

.header-red {
  background-color: #ff0033;
}
.header-orange {
  background-color: #e85d26;
}

.card-body-horizontal {
  display: flex;
  padding: 12px;
  height: 100%;
  gap: 16px;
  align-items: center;
}

.card-image-box {
  width: 120px;
  height: 120px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  background: #fff;
}

.card-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.card-image-box:hover img {
  transform: scale(1.05);
}

.card-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 120px;
}

.timer-big {
  font-size: 24px;
  font-weight: 800;
  color: #ff0033;
  line-height: 1;
  text-align: center;
  margin-bottom: 4px;
}

.prod-desc {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discount-label {
  font-size: 10px;
  color: #ff0033;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}

.price-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.price-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.bids-count {
  font-size: 10px;
  color: #777;
}

.btn-action {
  padding: 8px 0;
  width: 80px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-red {
  background-color: #ff0033;
  color: white;
}
.btn-red:hover {
  background-color: #cc0029;
}

.btn-orange {
  background-color: #e85d26;
  color: white;
}
.btn-orange:hover {
  background-color: #d14d1b;
}

.btn-gray {
  background-color: #e0e0e0;
  color: #333;
}
.btn-gray:hover {
  background-color: #d6d6d6;
}

.btn-action.clicked {
  background-color: #333 !important;
  color: white !important;
  pointer-events: none;
  cursor: default;
}

.giveaway-value {
  font-size: 16px;
  font-weight: 800;
  color: #000;
}
.joined-count {
  font-size: 10px;
  color: #777;
  text-align: center;
  margin-bottom: 2px;
}
