/* ريان وريم: فقاعة كلام الرفيق، وصورهما في الترحيب واختيار الرفيق. */
.host-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(247, 241, 227, 0.96);
  color: #1a1206;
  border: 2px solid var(--gold);
  border-radius: 22px;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  text-align: right;
  max-width: 460px;
  margin: 0 auto;
}

.host-avatar {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: #fff;
  cursor: pointer;
}

.host-say {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: 'Cairo', sans-serif;
  line-height: 1.5;
}

.host-say b {
  font-weight: 800;
  font-size: 0.85rem;
  color: #8a6a12;
}

.host-say span {
  font-weight: 700;
  font-size: 1rem;
}

.host-listen {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* صورة ريان وريم معاً */
.hosts-pair {
  width: min(240px, 62vw);
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.host-portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  background: #fff;
}

/* زر الاستماع في الترحيب: ذهبي مثل كل أزرار الصوت في التطبيق (أيقونة مرسومة وحلقة ذهبية). */
.hosts-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.75);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hosts-listen-btn:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* إعادة سماع جملة الشريحة: أهدأ من زر الترحيب لأن الجملة تُسمع تلقائياً عند الوصول. */
.hosts-listen-btn.quiet {
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 40px;
  padding: 6px 16px;
  border-width: 1.5px;
  background: transparent;
}

/* نافذة اختيار الرفيق في صفحة القصص (لمن لم يختره في الترحيب). */
.buddy-dialog {
  margin: auto;
  width: min(360px, calc(100vw - 32px));
  padding: 24px 18px 22px;
  border: 2px solid rgba(212, 175, 55, 0.55);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, var(--black-soft) 0%, var(--black) 85%);
  color: var(--cream);
  text-align: center;
  font-family: 'Cairo', sans-serif;
}

.buddy-dialog::backdrop {
  background: rgba(5, 7, 15, 0.75);
}

.buddy-dialog-title {
  font-family: 'Aref Ruqaa', serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.buddy-dialog-text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 18px;
}

/* اختيار الرفيق */
.buddy-choices {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.buddy-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 14px 16px 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.buddy-choice img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.buddy-choice[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.18);
  transform: scale(1.04);
}

/* الصفحة الرئيسية: ريان وريم بانتظاركم */
.home-hosts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px auto 4px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 2px solid rgba(212, 175, 55, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.home-hosts img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #fff;
}

.home-hosts img + img {
  margin-right: -22px;
}

/* دعاء النوم في آخر قصص النوم */
.host-dua {
  margin: 22px auto 0;
}

.host-dua .host-say span {
  font-size: 1.05rem;
}

/* سؤال القصة يسأله الرفيق */
.story-quiz .host-bubble {
  margin-bottom: 14px;
}

/* صفحة القصص: دعوة الرفيق لاختيار حكاية */
.stories-host {
  margin: 4px auto 18px;
}

/* زر الاستماع لصوت ريان وريم: ذهبي كبقية أزرار الصوت، بأيقونة مرسومة. */
.host-listen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.host-listen .icon {
  width: 1.25em;
  height: 1.25em;
}
