.public-input input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 20px;
  color: #fff;
  background: #272727;
  font-size: 13px;
  outline: none;
}
.public-input input:focus { border-color: #666; background: #181818; }
.public-input .chat-send { color: #0f0f0f; background: #f1f1f1; font-size: 14px; }
.public-input .chat-send:disabled { opacity: .45; }
.engine-state { display: none; }
.chat-message.user-public-message { margin: 4px -4px; padding: 8px 4px; border-radius: 6px; background: #263850; }
.chat-message.user-public-message .chat-message__meta strong { color: #8ab4f8; font-weight: 700; }

.right-rail { min-width: 0; }
.right-rail .live-chat-panel { position: relative; top: auto; height: calc(100dvh - 94px); }
.description-box { overflow: hidden; }
.description-box summary { cursor: pointer; list-style: none; }
.description-box summary::-webkit-details-marker { display: none; }
.description-box summary > strong { display: block; }
.description-preview { display: block; margin-top: 9px; line-height: 1.5; }
.show-more { display: block; margin-top: 10px; }
.description-box[open] .description-preview { display: none; }
.description-box[open] .show-more { display: none; }
.description-content { max-width: 820px; padding-top: 8px; font-size: 14px; line-height: 1.65; }
.description-content h2 { margin: 20px 0 8px; font-size: 17px; }
.description-content p { margin: 8px 0; }
.description-content hr { margin: 24px 0; border: 0; border-top: 1px solid #484848; }
.description-content ol,
.description-content ul { margin: 8px 0; padding-left: 24px; }
.description-content li { margin: 5px 0; }
.description-content dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; }
.description-content dd { margin: 0; color: #8ab4f8; }
.collapse-description { display: block; margin-top: 24px; padding: 0; border: 0; color: #f1f1f1; background: transparent; font-weight: 700; cursor: pointer; }
.account-avatar,
.channel-avatar,
.chat-message__avatar.user-avatar-image { display: block; object-fit: cover; }
.recommendations { display: grid; gap: 12px; margin-top: 18px; }
.recommendation-link { display: block; border-radius: 8px; color: inherit; text-decoration: none; }
.recommendation-link:focus-visible { outline: 2px solid #3ea6ff; outline-offset: 3px; }
.recommendation-link article { transition: background-color .16s ease-out; }
.recommendation-link:hover article { background: #1c1c1c; }
.recommendation-tabs { display: flex; gap: 8px; overflow: hidden; }
.recommendation-tabs button { flex: 0 0 auto; padding: 8px 13px; border: 0; border-radius: 8px; color: #fff; background: #272727; font-size: 13px; font-weight: 700; }
.recommendation-tabs button.is-active { color: #0f0f0f; background: #fff; }
.recommendations article { position: relative; display: grid; grid-template-columns: 168px 1fr; gap: 10px; min-width: 0; }
.recommendations article .recommendation-thumbnail { width: 168px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; }
.recommendations article strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recommendations article p,
.recommendations article small { display: block; margin: 5px 0 0; color: #aaa; font-size: 12px; }
.recommendation-copy { min-width: 0; }
.recommendations article .recommendation-channel { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #aaa; }
.recommendations article .recommendation-channel img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; background: #272727; }
.duration { position: absolute; left: 126px; top: 70px; padding: 2px 4px; border-radius: 3px; background: rgba(0,0,0,.8); font-size: 10px; font-weight: 700; }
@media (max-width: 850px) { .right-rail .live-chat-panel { height: 600px; } .recommendations { margin: 18px 12px 0; } }

/* Match the supplied café composition: tall comment frame left, half-body host center-right. */
.stream-chat-overlay { left: 2.8%; top: 3.5%; width: 42.5%; height: 92%; }
.stream-chat-feed { top: 17%; bottom: 6%; gap: 4px; }
.stream-chat-line { padding-bottom: 4px; line-height: 1.35; }
.stream-info-overlay { position: absolute; z-index: 6; top: 3%; right: 2.5%; width: 22%; aspect-ratio: 2.75; display: grid; place-content: center; color: #745c68; text-align: center; pointer-events: none; }
.stream-info-overlay > img,
.character-caption > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.stream-info-overlay span,
.stream-info-overlay strong { position: relative; z-index: 1; display: block; }
.stream-info-overlay span { font-size: clamp(7px, .72vw, 10px); font-weight: 700; }
.stream-info-overlay strong { font-size: clamp(11px, 1.35vw, 19px); }
.character-caption { left: auto; right: 2.5%; top: 16%; bottom: auto; width: 24%; max-width: 24%; min-height: 18%; padding: 0; border-radius: 0; color: #745c68; background: transparent; transform: none; }
.character-caption > div { position: relative; z-index: 1; min-height: 100%; display: grid; place-content: center; padding: 17% 12% 11%; }
.character-caption small { color: #bd748d; }

@media (max-width: 540px) {
  .stream-info-overlay { display: grid; }
  .character-caption { left: auto; right: 2%; top: 16%; width: 27%; min-width: 0; max-width: 27%; font-size: 8px; }
}

.stream-intro { position: absolute; z-index: 30; inset: 0; overflow: hidden; background: #000; }
.stream-intro.is-finished { display: none; }
.waiting-video,
.transition-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.waiting-video { z-index: 1; opacity: 1; }
.transition-video { z-index: 2; opacity: 0; }
.stream-intro.is-transitioning { background: transparent; pointer-events: none; }
.stream-intro.is-transitioning .waiting-video { opacity: 1; }
.stream-intro.is-transitioning .transition-video { opacity: 1; }
.standby-caption { position: absolute; z-index: 4; left: 50%; bottom: 8%; width: min(82%, 720px); padding: 10px 18px; border-radius: 4px; color: #fff; background: rgba(15,15,15,.76); font-size: clamp(12px,1.25vw,18px); line-height: 1.45; text-align: center; transform: translateX(-50%); opacity: 0; transition: opacity .18s ease-out; pointer-events: none; }
.standby-caption.is-visible { opacity: 1; }
.birthday-event-overlay{position:absolute;z-index:29;inset:0;display:none;overflow:hidden;background:#000;pointer-events:none}.birthday-event-overlay.is-visible{display:block;animation:birthdayEventIn .28s ease-out}.birthday-event-overlay video{width:100%;height:100%;display:block;object-fit:cover}.birthday-event-overlay.is-closing{opacity:0;transition:opacity .35s ease-in}@keyframes birthdayEventIn{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:none}}
.reconnect-overlay,.stream-ended-overlay{position:absolute;z-index:31;inset:0;display:none;place-items:center;overflow:hidden;background:#080808;color:#fff;text-align:center}.reconnect-overlay.is-visible,.stream-ended-overlay.is-visible{display:grid}.reconnect-overlay video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}.reconnect-overlay>div,.stream-ended-overlay>*{position:relative;z-index:1}.reconnect-overlay>div{display:grid;gap:8px;padding:18px 24px;border-radius:8px;background:rgba(15,15,15,.72);backdrop-filter:blur(8px)}.reconnect-overlay strong{font-size:clamp(16px,2vw,26px)}.reconnect-overlay span{color:#f1dbe4;font-size:clamp(12px,1.2vw,17px)}.stream-ended-overlay{align-content:center;gap:12px;background:radial-gradient(circle at 50% 42%,#30202b,#09080a 68%)}.stream-ended-overlay strong{font-size:clamp(28px,5vw,68px);letter-spacing:.12em}.stream-ended-overlay span{color:#e8ccd8;font-size:clamp(13px,1.35vw,19px)}
.chat-message > div { min-width: 0; }
img.chat-message__avatar { object-fit: cover; }

/* YouTube-style Super Chat hierarchy. The side rail carries the full card;
   the player only receives a compact acknowledgement strip. */
.chat-message.super-chat {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 6px -8px;
  padding: 11px 10px;
  color: var(--sc-ink, #fff);
  background: var(--sc-color);
  animation: superChatIn .42s cubic-bezier(.16, 1, .3, 1);
}
.super-chat--blue { --sc-color: #1565c0; }
.super-chat--cyan { --sc-color: #00b8d4; --sc-ink: #071e22; }
.super-chat--green { --sc-color: #00bfa5; --sc-ink: #06241e; }
.super-chat--yellow { --sc-color: #ffca28; --sc-ink: #241b00; }
.super-chat--orange { --sc-color: #e65100; }
.super-chat--magenta { --sc-color: #c2185b; }
.super-chat--red { --sc-color: #d50000; }
.super-chat__avatar {
  display: block;
  align-self: start;
  width: 34px;
  height: 34px;
  margin: 1px 0 0;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  overflow: hidden;
  line-height: 34px;
  text-align: center;
  background: rgba(0,0,0,.2);
}
.super-chat__body { min-width: 0; }
.super-chat__meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.super-chat__meta strong {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.super-chat__meta span {
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 3px;
  color: inherit;
  background: rgba(0,0,0,.16);
  font-size: 8px;
  font-weight: 700;
}
.super-chat__amount { display: block; margin-top: 2px; font-size: 14px; }
.chat-message.super-chat p { display: block; margin: 6px 0 0; color: inherit; font-size: 13px; line-height: 1.5; }
.stage-super-chat {
  position: absolute;
  z-index: 8;
  left: 45%;
  bottom: 54px;
  max-width: 47%;
  padding: 6px 10px;
  overflow: hidden;
  color: var(--sc-ink, #fff);
  background: var(--sc-color, #1565c0);
  box-shadow: 0 6px 18px rgba(0,0,0,.24);
  font-size: clamp(9px, .82vw, 12px);
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease-out, transform .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.stage-super-chat.is-visible { opacity: .94; transform: none; }
.stream-chat-line.is-super-chat {
  padding: 4px 6px;
  border-bottom: 0;
  color: #71420b;
  background: rgba(255,202,40,.24);
  font-weight: 600;
}
.stream-chat-line.is-super-chat strong { color: #aa4e29; }
@keyframes superChatIn { from { opacity: 0; transform: translateY(12px); filter: blur(2px); } }

@media (max-width: 540px) {
  .stage-super-chat { left: 38%; max-width: 59%; bottom: 43px; }
}
