/* ============================================================
 * v2.3.6 — Unified glass control bar + ambient glow
 * Standalone file, enqueued AFTER watch-cinema.css and
 * watch-redesign.css so its rules win the cascade.
 * Replaces the split overlay buttons + below-player chrome strip
 * with ONE bar overlaying the bottom edge of the player.
 * Control colours are fixed light-on-dark (it floats over video).
 * ============================================================ */

/* Retire the legacy control surfaces inside the cinema layout */
.eos-watch--cinema .eos-player-controls,
.eos-watch--cinema .eos-cn-chrome { display: none !important; }

/* Ambient glow — a soft colour halo bleeding out behind the stage */
.eos-watch--cinema .eos-player { isolation: isolate; }
.eos-watch--cinema .eos-player::before {
  content: ""; position: absolute; inset: -10% -5% -4%;
  z-index: -1; border-radius: 40px;
  background: var(--cn-amber-glow, rgba(245,163,18,0.18));
  filter: blur(46px) saturate(150%);
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.eos-watch--cinema.is-cn-ambient .eos-player::before { opacity: .5; }

/* The bar */
.eos-watch--cinema .eos-cn-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  padding: 0 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.80) 8%, rgba(0,0,0,0.34) 58%, transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  font-family: inherit;
}
.eos-watch--cinema .eos-player:hover .eos-cn-bar,
.eos-watch--cinema .eos-player:focus-within .eos-cn-bar,
.eos-watch--cinema.is-cn-ctlshow .eos-cn-bar,
.eos-watch--cinema .eos-cn-bar.is-pinned { opacity: 1; transform: none; }

/* Scrubber */
.eos-watch--cinema .eos-cn-scrub {
  position: relative; height: 18px; display: flex; align-items: center;
  cursor: pointer; margin: 0 2px 4px; touch-action: none;
}
.eos-watch--cinema .eos-cn-scrub__track {
  position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.25); overflow: hidden; transition: height .12s ease;
}
.eos-watch--cinema .eos-cn-scrub:hover .eos-cn-scrub__track { height: 6px; }
.eos-watch--cinema .eos-cn-scrub__buf {
  position: absolute; left: 0; height: 100%; width: 0;
  background: rgba(255,255,255,0.30);
}
.eos-watch--cinema .eos-cn-scrub__played {
  position: absolute; left: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cn-amber-dark, #B86B00), var(--cn-amber, #F5A312));
}
.eos-watch--cinema .eos-cn-scrub__thumb {
  position: absolute; left: 0; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%) scale(0);
  transition: transform .12s ease; box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.eos-watch--cinema .eos-cn-scrub:hover .eos-cn-scrub__thumb,
.eos-watch--cinema .eos-cn-scrub:focus-visible .eos-cn-scrub__thumb { transform: translate(-50%,-50%) scale(1); }
.eos-watch--cinema .eos-cn-scrub__prev {
  position: absolute; bottom: 18px; left: 0; transform: translateX(-50%);
  background: #000; color: #fff; font-size: 11px; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 6px; border: 0.5px solid rgba(255,255,255,0.2);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .1s;
}
.eos-watch--cinema .eos-cn-scrub:hover .eos-cn-scrub__prev { opacity: 1; }
.eos-watch--cinema .eos-cn-scrub__live { display: none; }
.eos-watch--cinema .eos-cn-bar.is-bar-live .eos-cn-scrub__played {
  background: linear-gradient(90deg, #7f1d1d, #DC2626); width: 100% !important;
}
.eos-watch--cinema .eos-cn-bar.is-bar-live .eos-cn-scrub__buf,
.eos-watch--cinema .eos-cn-bar.is-bar-live .eos-cn-scrub__thumb { display: none; }
.eos-watch--cinema .eos-cn-bar.is-bar-live .eos-cn-scrub__live {
  display: block; position: absolute; right: -1px; top: 50%; width: 11px; height: 11px;
  transform: translateY(-50%); border-radius: 50%; background: #DC2626; border: 2px solid #fff;
  animation: cnLivePulse 2s ease-in-out infinite;
}
@keyframes cnLivePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }

/* Control row */
.eos-watch--cinema .eos-cn-bar__row { display: flex; align-items: center; gap: 4px; }
.eos-watch--cinema .eos-cn-cbtn {
  height: 34px; min-width: 34px; padding: 0 7px; border: 0; background: transparent;
  color: #fff; border-radius: 9px; font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  opacity: 0.92; transition: background .12s ease, opacity .12s ease;
}
.eos-watch--cinema .eos-cn-cbtn:hover { background: rgba(255,255,255,0.16); opacity: 1; }
.eos-watch--cinema .eos-cn-cbtn--amber:hover { background: rgba(245,163,18,0.32); }
.eos-watch--cinema .eos-cn-cbtn.is-on { background: rgba(245,163,18,0.32); }
.eos-watch--cinema .eos-cn-cbtn i { font-size: 19px; }
.eos-watch--cinema .eos-cn-bar__sp { flex: 1; }
.eos-watch--cinema .eos-cn-bar__sep { width: 1px; height: 20px; background: rgba(255,255,255,0.18); margin: 0 4px; }
.eos-watch--cinema .eos-cn-time {
  font-size: 12px; font-variant-numeric: tabular-nums; color: #fff; opacity: 0.85;
  padding: 0 6px; white-space: nowrap;
}
.eos-watch--cinema .eos-cn-livepill {
  display: inline-flex; align-items: center; gap: 5px; border: 0;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: #fff; background: rgba(220,38,38,0.92); padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.eos-watch--cinema .eos-cn-livepill span { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.eos-watch--cinema .eos-cn-livepill.is-behind { background: rgba(255,255,255,0.22); }

/* Volume */
.eos-watch--cinema .eos-cn-vol { display: flex; align-items: center; }
.eos-watch--cinema .eos-cn-vol__slider {
  width: 0; overflow: hidden; transition: width .2s ease; display: flex; align-items: center;
}
.eos-watch--cinema .eos-cn-vol:hover .eos-cn-vol__slider,
.eos-watch--cinema .eos-cn-vol.is-open .eos-cn-vol__slider { width: 78px; }
.eos-watch--cinema .eos-cn-vol__slider input[type="range"] {
  width: 68px; margin: 0 6px; accent-color: var(--cn-amber, #F5A312); cursor: pointer; height: 4px;
}

/* Settings menu */
.eos-watch--cinema .eos-cn-menuwrap { position: relative; }
.eos-watch--cinema .eos-cn-menu {
  position: absolute; right: 0; bottom: 44px; width: 232px;
  background: rgba(20,24,30,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255,255,255,0.14); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55); padding: 6px; z-index: 20;
  animation: cnMenuPop .15s ease;
}
@keyframes cnMenuPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eos-watch--cinema .eos-cn-menu__h {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.5;
  font-weight: 600; color: #fff; padding: 8px 11px 4px;
}
.eos-watch--cinema .eos-cn-menu__div { height: 0.5px; background: rgba(255,255,255,0.12); margin: 4px 6px; }
.eos-watch--cinema .eos-cn-seg2 {
  display: flex; gap: 3px; background: rgba(255,255,255,0.08);
  border-radius: 8px; padding: 3px; margin: 2px 6px 4px;
}
.eos-watch--cinema .eos-cn-seg2 button {
  flex: 1; border: 0; background: transparent; color: #fff; font: inherit;
  font-size: 11.5px; font-weight: 600; padding: 6px 4px; border-radius: 6px;
  cursor: pointer; opacity: 0.7; transition: background .12s ease, opacity .12s ease;
}
.eos-watch--cinema .eos-cn-seg2 button:hover { opacity: 1; background: rgba(255,255,255,0.10); }
.eos-watch--cinema .eos-cn-seg2 button.is-on {
  background: linear-gradient(135deg, var(--cn-amber, #F5A312), var(--cn-amber-dark, #B86B00)); opacity: 1;
}
.eos-watch--cinema .eos-cn-menu__row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 9px 11px; border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 12.5px; color: #fff; transition: background .12s ease;
}
.eos-watch--cinema .eos-cn-menu__row:hover { background: rgba(255,255,255,0.10); }
.eos-watch--cinema .eos-cn-menu__row i { font-size: 16px; vertical-align: -3px; margin-right: 4px; }
.eos-watch--cinema .eos-cn-menu__val { font-size: 11.5px; opacity: 0.65; display: inline-flex; align-items: center; gap: 4px; }

/* Mobile */
@media (max-width: 720px) {
  .eos-watch--cinema .eos-cn-bar { padding: 0 8px 8px; }
  .eos-watch--cinema .eos-cn-cbtn { height: 32px; min-width: 32px; padding: 0 5px; }
  .eos-watch--cinema .eos-cn-cbtn i { font-size: 18px; }
  .eos-watch--cinema .eos-cn-bar__sep { margin: 0 2px; }
}

/* ============================================================
 * v2.3.8 — Admin chat controls cleanup + watching pill presence
 * ============================================================ */
/* Admin gear sits inside the slow-mode row instead of floating/overlapping */
.eos-watch--cinema .eos-aqc-gear.eos-aqc-gear--inrow{
  position: static !important; inset: auto !important; right: auto !important; top: auto !important;
  margin: 0 0 0 2px !important; flex-shrink: 0;
}
.eos-watch--cinema .eos-chat-slowbar{ padding: 8px 10px !important; gap: 8px; align-items: center; }
/* Compact segmented slow-mode (drives the native select) */
.eos-watch--cinema .eos-cn-slowseg{ margin-left: auto; display: flex; gap: 2px; background: var(--cn-bg-soft); border-radius: 999px; padding: 3px; }
.eos-watch--cinema .eos-cn-slowseg button{ border: 0; background: transparent; color: var(--cn-fg); opacity: .6; font: inherit; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: background .12s ease, opacity .12s ease; }
.eos-watch--cinema .eos-cn-slowseg button:hover{ opacity: 1; }
.eos-watch--cinema .eos-cn-slowseg button.is-on{ background: var(--cn-fg); color: var(--cn-bg); opacity: 1; }
.eos-watch--cinema .eos-chat-slowbar__select.eos-cn-hide{ display: none !important; }

/* Watching pill in the top bar opens the presence list */
.eos-watch--cinema .eos-cn-top{ position: relative; z-index: 200; }
.eos-watch--cinema #eos-cn-viewers{ cursor: pointer; user-select: none; }
.eos-watch--cinema #eos-cn-viewers .eos-cn-vchev{ width: 11px; height: 11px; margin-left: 2px; transition: transform .15s ease; vertical-align: -1px; }
.eos-watch--cinema .eos-cn-top.is-pres-open #eos-cn-viewers .eos-cn-vchev{ transform: rotate(180deg); }
.eos-watch--cinema .eos-cn-pres-pop{
  position: absolute; top: calc(100% + 6px); right: 12px; width: 286px; max-width: calc(100vw - 40px);
  z-index: 60; display: none; background: #ffffff; border: .5px solid rgba(20,20,22,.12);
  border-radius: 12px; box-shadow: var(--cn-shadow); padding: 8px;
}
.eos-watch--cinema .eos-cn-top.is-pres-open .eos-cn-pres-pop{ display: block; animation: cnMenuPop .15s ease; }
.eos-watch--cinema .eos-cn-pres-pop #eos-chat-pr,
.eos-watch--cinema .eos-cn-pres-pop #eos-chat-pr[hidden]{
  display: block !important; position: static !important; inset: auto !important; margin: 0 !important;
  width: auto !important; max-height: 320px; overflow: auto; box-shadow: none !important; border: 0 !important; background: transparent !important;
}

/* ============================================================
 * v2.4.0 — WhatsApp-style chat bubbles
 * Own messages (.is-mine) right-aligned in a theme amber bubble;
 * others left in neutral bubbles with coloured names; reaction
 * pills hang off the bubble edge. Hover action/react bars are
 * position:absolute already, so flex rows don't expose them.
 * ============================================================ */
.eos-watch--cinema .eos-chat-stream{ display: flex !important; flex-direction: column; align-items: stretch; gap: 9px !important; }
.eos-watch--cinema .eos-chat-msg{ display: flex !important; grid-template-columns: none !important; align-items: flex-end; gap: 7px !important; max-width: 86%; background: transparent !important; padding: 0 !important; margin: 0 !important; position: relative; }
.eos-watch--cinema .eos-chat-msg:not(.is-mine){ align-self: flex-start; }
.eos-watch--cinema .eos-chat-msg.is-mine{ align-self: flex-end; flex-direction: row-reverse; margin-left: auto; }
.eos-watch--cinema .eos-chat-msg__avatar{ align-self: flex-end; margin: 0 0 2px 0 !important; width: 28px !important; height: 28px !important; }
.eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__avatar{ display: none !important; }
.eos-watch--cinema .eos-chat-msg.is-continuation .eos-chat-msg__avatar{ visibility: hidden; height: 0 !important; margin: 0 !important; }
.eos-watch--cinema .eos-chat-msg__body{ position: relative !important; background: var(--cn-bg-soft) !important; border: none !important; border-radius: 14px !important; border-top-left-radius: 5px !important; padding: 7px 11px 6px !important; display: block; width: auto; min-width: 54px; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__body{ background: rgba(245,163,18,.16) !important; border-top-left-radius: 14px !important; border-top-right-radius: 5px !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__body{ background: rgba(245,163,18,.22) !important; }
.eos-watch--cinema .eos-chat-msg .who{ display: block !important; font-size: 11.5px !important; font-weight: 600 !important; margin-bottom: 1px !important; color: var(--cn-amber-dark) !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg .who{ color: var(--cn-amber-soft) !important; }
.eos-watch--cinema .eos-chat-msg.is-mine .who{ display: none !important; }
.eos-watch--cinema .eos-chat-msg .body{ display: block; }
.eos-watch--cinema .eos-chat-msg__text{ font-size: 13.5px !important; line-height: 1.45 !important; }
.eos-watch--cinema .eos-chat-msg .time{ font-size: 10px !important; opacity: .55; float: right; margin: 3px 0 -1px 10px !important; font-variant-numeric: tabular-nums; }
.eos-watch--cinema .eos-chat-msg__pills{ position: absolute !important; bottom: -10px; left: 6px; display: flex; gap: 3px; margin: 0 !important; }
.eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__pills{ left: auto; right: 6px; }
.eos-watch--cinema .eos-chat-pill{ display: inline-flex; align-items: center; gap: 2px; background: var(--cn-bg); border: .5px solid var(--cn-border); border-radius: 999px; padding: 1px 6px; font-size: 11px; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,.14); cursor: pointer; }
.eos-watch--cinema .eos-chat-pill.is-mine{ border-color: var(--cn-amber); }
.eos-watch--cinema .eos-chat-pill__c{ font-size: 10px; opacity: .6; }
/* keep hover toolbars out of the flex flow (they're absolute already; enforce) */
.eos-watch--cinema .eos-chat-msg > .eos-chat-actions,
.eos-watch--cinema .eos-chat-msg > .eos-chat-react-bar{ position: absolute !important; }

/* v2.4.1 — solid (non-translucent) watching dropdown */
[data-theme="dark"] .eos-watch--cinema .eos-cn-pres-pop{ background:#161C24 !important; border-color:rgba(255,255,255,.12) !important; }
.eos-watch--cinema .eos-cn-pres-pop{ background:#ffffff; -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }

/* ============================================================
 * v2.4.2 — Chat scroll fix + dark-mode contrast
 * ============================================================ */
/* The admin panel kept display:flex even when [hidden], so it sat as an
 * invisible overlay over the chat and swallowed wheel/scroll. Truly hide it. */
.eos-watch--cinema .eos-aqc-panel[hidden]{ display: none !important; }
/* Sender names were near-black on dark bubbles (invisible). Force readable
 * amber in both themes (literal colours — the redesign repurposes some vars). */
.eos-watch--cinema .eos-chat-msg .who{ color: #B86B00 !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg .who{ color: #FFC76E !important; }
/* Message text explicit per theme for guaranteed contrast. */
.eos-watch--cinema .eos-chat-msg__text{ color: #141416 !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg__text{ color: #E6E7EA !important; }
/* Bubbles more visible in dark mode. */
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg:not(.is-mine) .eos-chat-msg__body{ background: rgba(255,255,255,0.09) !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__body{ background: rgba(245,163,18,0.26) !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-msg .time{ opacity: .75 !important; }

/* ============================================================
 * v2.4.3 — header priority, media shape, collapsible sections, themed toolbars
 * ============================================================ */
/* Keep the site header's profile menu (nav.eos-nav z:95) above the watch bar */
.eos-watch--cinema .eos-cn-top{ z-index: 40 !important; }
/* Uploaded media: never oval — rounded rectangle at the photo's natural ratio */
.eos-watch--cinema .eos-chat-msg__body img:not(.emoji):not(.eos-chat-msg__avatar){
  border-radius: 10px !important; max-width: 100% !important; max-height: 360px !important;
  width: auto !important; height: auto !important; object-fit: contain !important;
}
.eos-watch--cinema .eos-chat-msg .au-msg-media{ border-radius: 10px !important; overflow: hidden; display: inline-block; }
/* Collapsible admin-panel section headers */
.eos-watch--cinema .eos-cn-sechead{
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;
  background: transparent; border: 0; border-top: .5px solid var(--cn-border); padding: 10px 12px;
  cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--cn-fg); opacity: .7;
}
.eos-watch--cinema .eos-cn-sechead:hover{ opacity: 1; }
.eos-watch--cinema .eos-cn-secchev{ width: 14px; height: 14px; transition: transform .15s ease; }
.eos-watch--cinema .eos-cn-sechead.is-collapsed .eos-cn-secchev{ transform: rotate(-90deg); }
/* Hover action toolbar + quick-react bar: theme-consistent (was a dark pill on the light theme) */
.eos-watch--cinema .eos-chat-actions,
.eos-watch--cinema .eos-chat-react-bar{
  background: #ffffff !important; border: .5px solid rgba(20,20,22,.12) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.16) !important; color: #141416 !important;
}
[data-theme="dark"] .eos-watch--cinema .eos-chat-actions,
[data-theme="dark"] .eos-watch--cinema .eos-chat-react-bar{
  background: #1B2129 !important; border-color: rgba(255,255,255,.14) !important; color: #E6E7EA !important;
}
.eos-watch--cinema .eos-chat-action,
.eos-watch--cinema .eos-chat-react-q{ color: inherit !important; }
.eos-watch--cinema .eos-chat-action:hover,
.eos-watch--cinema .eos-chat-react-q:hover{ background: rgba(245,163,18,.20) !important; color: #B86B00 !important; }
[data-theme="dark"] .eos-watch--cinema .eos-chat-action:hover,
[data-theme="dark"] .eos-watch--cinema .eos-chat-react-q:hover{ color: #FFC76E !important; }
/* Admin gear sized for the utility lane */
.eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear{
  position: static !important; inset: auto !important; width: 30px !important; height: 30px !important;
  margin: 0 !important; flex-shrink: 0;
}

/* v2.4.5 — emoji-picker opener on the reaction bar shows a smiley icon */
.eos-watch--cinema .eos-chat-react-more{ display:inline-flex; align-items:center; justify-content:center; }
.eos-watch--cinema .eos-chat-react-more svg{ width:16px; height:16px; }

/* ============================================================
 * v2.4.6 — Make the utility-lane bookmark/search/gear clearly visible & spaced
 * (id selectors to beat the muted .eos-chat-util-ico rule)
 * ============================================================ */
#eos-chat-bm-toggle-lane, #eos-chat-search-toggle-lane, #eos-chat-langpill,
.eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear{
  color: var(--cn-fg) !important; opacity: 1 !important;
  background: var(--cn-bg-soft) !important; border: .5px solid var(--cn-border) !important;
}
#eos-chat-bm-toggle-lane svg, #eos-chat-search-toggle-lane svg,
.eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear svg,
.eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear i{
  width: 17px !important; height: 17px !important; font-size: 17px !important; stroke: currentColor !important;
}
#eos-chat-bm-toggle-lane:hover, #eos-chat-search-toggle-lane:hover,
.eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear:hover{
  background: var(--cn-amber-glow) !important; color: var(--cn-amber-dark) !important; border-color: rgba(245,163,18,.4) !important;
}
[data-theme="dark"] #eos-chat-bm-toggle-lane:hover,
[data-theme="dark"] #eos-chat-search-toggle-lane:hover,
[data-theme="dark"] .eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear:hover{ color: var(--cn-amber-soft) !important; }
.eos-watch--cinema .eos-chat-utility-lane{ gap: 6px !important; flex-wrap: nowrap !important; }
.eos-watch--cinema .eos-chat-utility-lane .eos-chat-mode{ flex: 1 1 auto !important; min-width: 0 !important; }

/* ============================================================
 * v2.4.7 — Bookmark/search/gear lane buttons: SOLID, visible, tappable.
 * High-specificity (html body … button#id) to beat the !important class
 * rules in chat-aurora.css / chat-studio.css that kept them near-invisible.
 * Plus responsive wrap so they're never crushed on a narrow chat panel.
 * ============================================================ */
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-bm-toggle-lane,
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-search-toggle-lane,
html body .eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear{
  background:#ffffff !important; border:1px solid rgba(20,20,22,.20) !important; border-radius:9px !important;
  color:#141416 !important; width:34px !important; height:34px !important; opacity:1 !important;
  box-shadow:0 1px 2px rgba(0,0,0,.08) !important; flex-shrink:0 !important;
}
html[data-theme="dark"] body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-bm-toggle-lane,
html[data-theme="dark"] body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-search-toggle-lane,
html[data-theme="dark"] body .eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear{
  background:#222a33 !important; border-color:rgba(255,255,255,.22) !important; color:#E6E7EA !important;
}
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-bm-toggle-lane:hover,
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-search-toggle-lane:hover,
html body .eos-watch--cinema .eos-chat-utility-lane .eos-aqc-gear:hover{
  background:#F5A312 !important; color:#fff !important; border-color:transparent !important;
}
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-bm-toggle-lane svg,
html body .eos-watch--cinema .eos-chat-utility-lane button#eos-chat-search-toggle-lane svg{ width:18px !important; height:18px !important; }
.eos-watch--cinema .eos-chat-utility-lane{ flex-wrap:wrap !important; row-gap:6px !important; column-gap:6px !important; }
.eos-watch--cinema .eos-chat-utility-lane .eos-chat-mode{ flex:1 1 150px !important; min-width:130px !important; }

/* ============================================================
 * v2.4.8 — Reaction pills no longer overlap text/next message.
 * (Were absolute bottom:-10px and hung onto the following message.)
 * Put them in normal flow inside the bubble.
 * ============================================================ */
.eos-watch--cinema .eos-chat-msg__pills{
  position: static !important; inset: auto !important; bottom: auto !important; left: auto !important; right: auto !important;
  margin: 5px 0 0 0 !important; display: flex !important; gap: 4px !important; flex-wrap: wrap !important;
}
.eos-watch--cinema .eos-chat-msg.is-mine .eos-chat-msg__pills{ justify-content: flex-end !important; }

/* ============================================================
 * v2.4.9 — Chat search box: floating, properly-sized overlay (was static, pushing the chat down)
 * ============================================================ */
.eos-watch--cinema #eos-chat{ position: relative !important; }
.eos-watch--cinema #eos-chat-search{
  position: absolute !important; top: 8px !important; left: 8px !important; right: 8px !important; bottom: auto !important;
  width: auto !important; max-width: none !important; z-index: 80 !important;
  background: #ffffff !important; border: .5px solid rgba(20,20,22,.14) !important; border-radius: 12px !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.24) !important; max-height: 72% !important; overflow: auto !important; padding: 8px !important;
}
html[data-theme="dark"] .eos-watch--cinema #eos-chat-search{ background: #161C24 !important; border-color: rgba(255,255,255,.16) !important; }
.eos-watch--cinema #eos-chat-search .eos-chat-search__head{ display: flex !important; align-items: center !important; gap: 8px !important; }
.eos-watch--cinema #eos-chat-search input#eos-chat-search-input{ flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; height: 36px !important; background: transparent !important; }

/* ============================================================
 * v2.5.0 — Native YouTube live chat (sign in + read + post in-site)
 * Scoped to .eos-watch--cinema. Opaque literal colours (the redesign
 * repurposes --cn-* vars to translucent values). Light + dark.
 * ============================================================ */
.eos-watch--cinema .eos-chat-pane[data-pane="external"] { position: relative; }
.eos-watch--cinema .eos-ytc {
  display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%;
  font-family: inherit; color: #141416;
}
html[data-theme="dark"] .eos-watch--cinema .eos-ytc { color: #E6E7EA; }

/* YouTube play badge */
.eos-watch--cinema .eos-ytc-logo {
  display: inline-block; width: 18px; height: 13px; background: #FF0033; border-radius: 3px; position: relative; vertical-align: -1px;
}
.eos-watch--cinema .eos-ytc-logo::after {
  content: ""; position: absolute; left: 7px; top: 3px;
  border-left: 6px solid #fff; border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}

/* State cards (sign-in / connecting / error) */
.eos-watch--cinema .eos-ytc-state {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 11px; padding: 28px 24px;
}
.eos-watch--cinema .eos-ytc-state__ic .eos-ytc-logo { width: 54px; height: 38px; border-radius: 10px; }
.eos-watch--cinema .eos-ytc-state__ic .eos-ytc-logo::after { left: 21px; top: 11px; border-left: 16px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.eos-watch--cinema .eos-ytc-state h3 { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.eos-watch--cinema .eos-ytc-state p { margin: 0; font-size: 13px; line-height: 1.5; max-width: 300px; color: rgba(20,20,22,.6); }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-state p { color: rgba(255,255,255,.6); }
.eos-watch--cinema .eos-ytc-fine { font-size: 11px !important; max-width: 280px !important; color: rgba(20,20,22,.5) !important; }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-fine { color: rgba(255,255,255,.45) !important; }
.eos-watch--cinema .eos-ytc-warn {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: #FEF3C7; color: #B45309; font-size: 24px; font-weight: 800;
}

/* Sign-in / retry button */
.eos-watch--cinema .eos-ytc-login {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
  background: #FF0033; color: #fff; border: 0; border-radius: 999px;
  padding: 11px 20px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,0,51,.28); transition: filter .15s ease, transform .1s ease;
}
.eos-watch--cinema .eos-ytc-login:hover { filter: brightness(1.06); }
.eos-watch--cinema .eos-ytc-login:active { transform: translateY(1px); }
.eos-watch--cinema .eos-ytc-login .eos-ytc-logo { background: #fff; }
.eos-watch--cinema .eos-ytc-login .eos-ytc-logo::after { border-left-color: #FF0033; }

/* Connected bar */
.eos-watch--cinema .eos-ytc-conn {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 11.5px;
  background: rgba(20,20,22,.03); border-bottom: .5px solid rgba(20,20,22,.10); flex-shrink: 0;
}
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-conn { background: rgba(255,255,255,.04); border-bottom-color: rgba(255,255,255,.10); }
.eos-watch--cinema .eos-ytc-dot { width: 7px; height: 7px; border-radius: 50%; background: #36b37e; flex-shrink: 0; }
.eos-watch--cinema .eos-ytc-me { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: rgba(20,20,22,.6); font-weight: 600; }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-me { color: rgba(255,255,255,.6); }
.eos-watch--cinema .eos-ytc-me img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.eos-watch--cinema .eos-ytc-out {
  border: .5px solid rgba(20,20,22,.16); background: #fff; color: #141416; border-radius: 999px;
  font: inherit; font-size: 10.5px; font-weight: 600; padding: 3px 10px; cursor: pointer;
}
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-out { background: #1F2630; color: #E6E7EA; border-color: rgba(255,255,255,.16); }

/* Message stream */
.eos-watch--cinema .eos-ytc-stream {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 12px; display: flex; flex-direction: column; gap: 11px;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.eos-watch--cinema .eos-ytc-msg { display: flex; gap: 8px; align-items: flex-start; }
.eos-watch--cinema .eos-ytc-av {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
  background: rgba(20,20,22,.10); display: inline-block;
}
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-av { background: rgba(255,255,255,.12); }
.eos-watch--cinema .eos-ytc-c { min-width: 0; }
.eos-watch--cinema .eos-ytc-n { font-size: 11.5px; font-weight: 600; color: rgba(20,20,22,.55); margin-bottom: 1px; }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-n { color: rgba(255,255,255,.55); }
.eos-watch--cinema .eos-ytc-t { font-size: 13.5px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.eos-watch--cinema .eos-ytc-badge { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; margin-left: 5px; vertical-align: 1px; color: #fff; }
.eos-watch--cinema .eos-ytc-badge.own { background: #FF0033; }
.eos-watch--cinema .eos-ytc-badge.mod { background: #5b8def; }
.eos-watch--cinema .eos-ytc-badge.mem { background: #2ba640; }
.eos-watch--cinema .eos-ytc-msg.is-sc .eos-ytc-c {
  background: linear-gradient(90deg, #F5A312, #B86B00); color: #fff; border-radius: 10px; padding: 7px 10px;
}
.eos-watch--cinema .eos-ytc-msg.is-sc .eos-ytc-n { color: rgba(255,255,255,.9); }

/* Composer */
.eos-watch--cinema .eos-ytc-cmp {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; flex-shrink: 0;
  border-top: .5px solid rgba(20,20,22,.10);
}
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-cmp { border-top-color: rgba(255,255,255,.10); }
.eos-watch--cinema .eos-ytc-cmp input {
  flex: 1; height: 38px; border-radius: 999px; border: .5px solid rgba(20,20,22,.12);
  background: rgba(20,20,22,.04); padding: 0 14px; font: inherit; font-size: 13px; color: #141416; outline: none;
}
.eos-watch--cinema .eos-ytc-cmp input:focus { border-color: #F5A312; background: #fff; }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-cmp input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #E6E7EA; }
html[data-theme="dark"] .eos-watch--cinema .eos-ytc-cmp input:focus { background: #1F2630; border-color: #F5A312; }
.eos-watch--cinema .eos-ytc-cmp input:disabled { opacity: .6; }
.eos-watch--cinema .eos-ytc-send {
  width: 40px; height: 40px; border-radius: 50%; background: #FF0033; color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: filter .15s ease;
}
.eos-watch--cinema .eos-ytc-send:hover { filter: brightness(1.06); }
.eos-watch--cinema .eos-ytc-send svg { width: 18px; height: 18px; }
