/* Shared rooms: quiet black-and-white layout around the existing player. */
#watchTogetherButton { white-space: nowrap; }
body.is-together { background: #090909 !important; }
/* Shared-room route is painted in its final shell from the first frame. */
body.is-together #catalog { display: none !important; }
body.is-together #detailPage { display: block !important; }
body.is-together #detailPage > :not(#watchPlayerPage) { display: none !important; }

body.is-together #watchPlayerPage {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(440px, 1fr) !important;
  grid-template-rows: minmax(118px, auto) auto auto;
  align-items: start;
  gap: 12px 18px !important;
  width: calc(100% - 48px) !important;
  max-width: none !important;
  margin: 22px auto 70px !important;
  padding: 0 !important;
}
body.is-together #watchPlayerPage > * { min-width: 0; }
body.is-together #watchPlayerPage > .together-members { grid-column: 1; grid-row: 1; }
body.is-together #watchPlayerPage > #animeHubPlayer { grid-column: 1; grid-row: 2; }
body.is-together #watchPlayerPage > .ah-episode-rail-wrap { grid-column: 1; grid-row: 3; }
body.is-together #watchPlayerPage > .together-panel { grid-column: 2; grid-row: 2; align-self: start; }
body.is-together #watchPlayerPage > #watchReleaseCountdown,
body.is-together #watchPlayerPage > .episode-comments,
body.is-together #watchPlayerPage > .ah-player-sourcebar { display: none !important; }
body.is-together #animeHubPlayer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #303030 !important;
  border-radius: 6px !important;
  background: #000 !important;
  box-shadow: none !important;
}
body.is-together .ah-episode-rail-wrap { width: 100%; margin: 0 !important; }
body.is-together .player-switcher { margin: 0 !important; }
body.is-together [data-player="kodik"],
body.is-together .player-tab[data-player="kodik"],
body.is-together [data-player-select="player"] { display: none !important; }
body.together-guest [data-player-select="season"],
body.together-guest [data-player-select="episode"],
body.together-guest .ah-episode-rail-wrap { pointer-events: none; opacity: .65; }

.together-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 118px));
  gap: 10px;
  width: 100%;
}
.together-members[hidden], .together-panel[hidden] { display: none !important; }
.together-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #171717;
  isolation: isolate;
}
.together-member::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.23), transparent 43%, rgba(0,0,0,.82));
}
.together-member__portrait {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.together-member strong {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.together-member.is-speaking {
  border-color: #38c976;
  box-shadow: 0 0 0 1px rgba(56,201,118,.62), 0 0 14px rgba(56,201,118,.18);
}
.together-member__mute {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.62);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.together-member__mute:hover:not(:disabled) { background: rgba(30,30,30,.9); transform: translateY(-1px); }
.together-member__mute:disabled { cursor: default; }
.together-member__mute svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.together-member__mute-slash { opacity: 0; }
.together-member__mute.is-muted { color: #ff8d78; }
.together-member__mute.is-muted .together-member__mute-slash { opacity: 1; }
.together-member__mute.is-global-muted { color: #ff8d78; background: rgba(47,13,13,.78); }
.together-member__mute.is-global-muted .together-member__mute-slash { opacity: 1; }
.together-member__more {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 8px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.together-member__more:hover { background: rgba(30,30,30,.9); transform: translateY(-1px); }
.together-member-menu { position: fixed; z-index: 10001; width: 172px; box-sizing: border-box; padding: 5px; border: 1px solid #363636; border-radius: 10px; background: #1b1b1b; box-shadow: 0 10px 26px #0009; }
.together-member-menu[hidden] { display: none; }
.together-member-menu button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: #eee; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3; text-align: left; text-transform: none; cursor: pointer; }
.together-member-menu button:hover, .together-member-menu button:focus-visible { background: #303030; outline: none; }
.together-member-menu button.is-danger { color: #ff7777; }

.together-panel {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
}
.together-panel button { cursor: pointer; font: inherit; }
.together-panel button:disabled { cursor: default; opacity: .45; }
.together-panel button:focus-visible,
.together-panel textarea:focus-visible,
.together-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.together-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
  min-height: 57px;
  box-sizing: border-box;
  padding: 10px 12px;
}
.together-heading__title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.together-heading__live { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #43aa73; animation: together-live-pulse 2.4s ease-in-out infinite; }
@keyframes together-live-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(67,170,115,.07), 0 0 4px rgba(67,170,115,.15); } 50% { box-shadow: 0 0 0 5px rgba(67,170,115,.18), 0 0 11px rgba(67,170,115,.55); } }
@media (prefers-reduced-motion: reduce) { .together-heading__live { animation: none; box-shadow: 0 0 0 3px rgba(67,170,115,.12); } }
.together-heading strong { overflow: hidden; color: #fff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.together-heading__count { flex-shrink: 0; min-width: 19px; padding: 1px 4px; border-radius: 5px; background: #2b2b2b; color: #f6f6f6; font-size: 11px; font-weight: 700; line-height: 1.4; text-align: center; }
.together-heading__actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.together-heading__actions button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #202020;
  color: #eee;
}
.together-heading__actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.together-heading__actions .together-mic-slash { opacity: 0; }
.together-heading__actions #togetherVoiceChat.is-mic-off .together-mic-slash { opacity: 1; }
.together-heading__actions button:hover { background: #303030; }
.together-heading__actions button.is-active { color: #ffa66e; }
.together-heading__actions #togetherVoiceChat.is-mic-off { color: #b9b9b9; }
.together-heading__actions button[hidden] { display: none !important; }
.together-status { flex-shrink: 0; margin: 0; padding: 10px 14px; border-bottom: 1px solid #2b2b2b; color: #bdbdbd; font-size: 11px; }
.together-status[hidden] { display: none; }
.together-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px 10px 18px; background: #000; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.together-message { display: flex; align-items: flex-end; flex-shrink: 0; gap: 7px; min-width: 0; outline: none; }
.together-message.is-own { justify-content: flex-start; }
.together-message__avatar { display: block; flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #202020; }
.together-message__avatar > img { display: block; width: 100%; height: 100%; border: 0; border-radius: 50%; object-fit: cover; }
body.is-together .together-member .ah-public-avatar-frame-v35::before,
body.is-together .together-message .ah-public-avatar-frame-v35::before { animation: none !important; }
html body .together-message__avatar.ah-public-avatar-frame-v35,
html body .together-member__avatar.ah-public-avatar-frame-v35 { padding: 2px !important; }
html body .together-message__avatar.ah-public-avatar-frame-v35::before,
html body .together-member__avatar.ah-public-avatar-frame-v35::before { padding: 2px; }
.together-message.has-reactions .together-message__avatar { margin-bottom: 25px; }
.together-message__stack { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: min(77%, 280px); min-width: 0; }
.together-message__stack.is-voice { width: min(77%, 280px); }
.together-message.is-own .together-message__stack { align-items: flex-start; max-width: min(77%, 280px); }
.together-message__bubble { --bubble-color: #2d2d2d; position: relative; box-sizing: border-box; max-width: 100%; min-width: 78px; padding: 6px 10px 5px; border-radius: 12px 12px 12px 0; background: var(--bubble-color); color: #f5f5f5; }
.together-message__bubble::after { content: ''; position: absolute; left: -8px; bottom: 0; width: 10px; height: 13px; background: var(--bubble-color); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }
.together-message.is-own .together-message__bubble { --bubble-color: #ad6c44; color: #17120f; }
.together-message:focus-visible .together-message__bubble { outline: 2px solid #fff; outline-offset: 2px; }
.together-message__name { display: block; margin-bottom: 1px; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.together-message.is-own .together-message__name { color: #000; }
.together-message__quote { display: flex; flex-direction: column; gap: 2px; max-width: 100%; margin-bottom: 6px; padding: 4px 7px; border-left: 2px solid #ffb88e; border-radius: 4px; background: rgba(255,255,255,.07); font-size: 10px; line-height: 1.3; }
.together-message.is-own .together-message__quote { border-left-color: #522d19; background: rgba(0,0,0,.1); }
.together-message__quote strong { color: #ffb88e; }
.together-message.is-own .together-message__quote strong { color: #522d19; }
.together-message__quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.together-message p { margin: 0; color: inherit; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.together-message time { display: inline-block; margin-left: 7px; color: rgba(255,255,255,.5); font-size: 9px; line-height: 1.2; white-space: nowrap; vertical-align: baseline; }
.together-message.is-own time { color: rgba(23,18,15,.62); }
.together-message__bubble.is-voice { width: min(260px, 100%); padding: 8px 10px 6px; }
.together-message__audio { display: block; min-width: 0; }
.together-voice-player { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; margin: 5px 0 0; }
.together-voice-player__play { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #ffa66e; color: #21160f; }
.together-message.is-own .together-voice-player__play { background: #f9d6bd; color: #723c1f; }
.together-voice-player__play:hover { filter: brightness(1.08); }
.together-voice-player__play svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.together-voice-player__play .together-voice-player__pause-icon,
.together-voice-player.is-playing .together-voice-player__play-icon { display: none; }
.together-voice-player.is-playing .together-voice-player__pause-icon { display: block; }
.together-voice-player__wave { position: relative; flex: 1; height: 36px; min-width: 0; overflow: hidden; --voice-progress: 0%; }
.together-voice-player__bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.together-voice-player__bars span { flex: 1 1 0; min-width: 1px; border-radius: 3px; background: rgba(255,255,255,.35); }
.together-voice-player__bars--played { clip-path: inset(0 calc(100% - var(--voice-progress)) 0 0); }
.together-voice-player__bars--played span { background: #ffa66e; }
.together-message.is-own .together-voice-player__bars:not(.together-voice-player__bars--played) span { background: rgba(32,20,13,.38); }
.together-message.is-own .together-voice-player__bars--played span { background: #fff0e4; }
.together-voice-player__seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.together-voice-player__wave:focus-within { outline: 2px solid currentColor; outline-offset: 1px; border-radius: 3px; }
.together-voice-player__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 0 51px; font-size: 10px; line-height: 1.2; }
.together-voice-player__duration { white-space: nowrap; opacity: .75; font-variant-numeric: tabular-nums; }
.together-voice-player__meta time { margin-left: 0; }
.together-reactions { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; margin-top: 3px; }
.together-reactions:empty { display: none; }
.together-reactions button { display: inline-flex; align-items: center; gap: 3px; min-width: 32px; min-height: 22px; padding: 2px 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: transparent; color: #eee; font-size: 11px; line-height: 1; }
.together-reactions button img { width: 18px; height: 18px; flex: none; object-fit: contain; }
.together-reactions button:hover, .together-reactions button[aria-pressed="true"] { border-color: #ffb88e; background: rgba(255,166,110,.12); color: #fff; }
.together-message__stack:is(:hover, :focus-within), .together-message:focus-visible .together-message__stack { z-index: 2; }
/* Invisible bridge between the message bubble and the quick-reaction trigger.
   It keeps the hover state alive while the cursor crosses the tiny gap,
   without bringing back the old full-row hover area. */
@media (hover: hover) {
  .together-message__stack::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1;
    width: 8px;
    height: 34px;
    background: transparent;
    pointer-events: auto;
  }
}
.together-hover-reactions { position: absolute; top: 0; left: calc(100% + 4px); z-index: 3; width: 30px; opacity: 0; pointer-events: none; transform: translateX(-5px) scale(.92); transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.together-message__stack:is(:hover, :focus-within) .together-hover-reactions, .together-message:focus-visible .together-hover-reactions { opacity: 1; pointer-events: auto; transform: none; }
.together-hover-reactions button { display: grid; place-items: center; width: 30px; height: 30px; padding: 2px; border: 0; border-radius: 50%; background: transparent; color: #fff; }
.together-hover-reactions button:hover, .together-hover-reactions button:focus-visible { background: transparent; }
.together-hover-reactions button img { width: 25px; height: 25px; object-fit: contain; }
.together-hover-reactions__list { position: absolute; top: 0; left: -3px; display: flex; flex-direction: column; gap: 2px; max-height: min(149px, calc(100vh - 150px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 3px; border-radius: 18px; background: transparent; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px) scaleY(.84); transform-origin: top center; transition: opacity .26s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility .32s; }
.together-hover-reactions__list button { flex: 0 0 30px; background: transparent; }
.together-hover-reactions__list::-webkit-scrollbar { width: 0; height: 0; }
.together-hover-reactions:is(:hover, :focus-within) .together-hover-reactions__list { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.together-hover-reactions:is(:hover, :focus-within) .together-hover-reactions__trigger { opacity: 0; pointer-events: none; }
.together-menu-open .together-hover-reactions { opacity: 0 !important; pointer-events: none !important; }
.together-context-menu { position: fixed; z-index: 10000; display: grid; box-sizing: border-box; width: min(300px, calc(100vw - 16px)); padding: 5px; border: 1px solid #414141; border-radius: 12px; background: #0b0b0b; box-shadow: 0 12px 30px #0009; overflow-y: auto; scrollbar-width: none; }
.together-context-menu::-webkit-scrollbar { width: 0; height: 0; }
.together-context-menu[hidden] { display: none; }
.together-context-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 6px; background: none; color: #f5f5f5; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.3; text-align: left; text-transform: none !important; cursor: pointer; }
.together-context-menu > button svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.together-context-menu button:is(:hover, :focus-visible) { outline: none; background: #393939; }
.together-context-menu button.is-danger:is(:hover, :focus-visible) { color: #ff7777; }
.together-context-menu__action { transition: opacity .16s ease, transform .18s ease, max-height .2s ease, padding .2s ease, margin .2s ease; }
.together-context-menu.is-reactions-expanded > .together-context-menu__action { max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(-4px); }
.together-context-menu__reactions { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 4px; padding: 3px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid #3e3e3e; transition: padding .22s ease, margin .22s ease; }
.together-context-menu__quick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; min-width: 0; overflow: hidden; transition: opacity .18s ease, transform .2s ease, max-height .22s ease; }
.together-context-menu__quick button { min-width: 0; }
.together-context-menu__reactions.is-expanded { padding-bottom: 3px; margin-bottom: 0; border-bottom-color: transparent; }
.together-context-menu__all { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 2px; max-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 1px; opacity: 0; pointer-events: none; transform: translateY(-10px); scrollbar-width: none; transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease, transform .28s cubic-bezier(.2,.8,.2,1), padding .2s ease; }
.together-context-menu__all::-webkit-scrollbar { width: 0; height: 0; }
.together-context-menu__reactions.is-expanded > .together-context-menu__all { max-height: min(300px, 44vh); padding: 4px 1px 1px; opacity: 1; pointer-events: auto; transform: none; }
.together-context-menu__reactions button { width: 100%; height: 32px; padding: 0; border-radius: 7px; font-size: 19px; line-height: 1; text-align: center; }
.together-context-menu__reactions button img { display: block; width: 28px; height: 28px; margin: auto; object-fit: contain; }
.together-context-menu__reactions .together-context-menu__expand { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: #202020; color: #cfcfcf; }
.together-context-menu__reactions .together-context-menu__expand:hover, .together-context-menu__reactions .together-context-menu__expand:focus-visible { background: #2a2a2a; color: #fff; }
.together-context-menu__expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s ease; }
.together-context-menu__reactions.is-expanded .together-context-menu__expand svg { transform: rotate(180deg); }
.together-context-menu__reactions button:is(:hover, :focus-visible) { background: transparent; }
.together-context-menu__reactions button[aria-pressed="true"] { background: transparent; }
.together-empty { margin: 60px 0; color: #858585; font-size: 12px; text-align: center; }
.together-reply { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0 11px; padding: 7px 10px; border-left: 2px solid #ffb88e; color: #ccc; font-size: 11px; }
.together-reply[hidden] { display: none; }
.together-reply__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.together-reply__text strong { color: #ffb88e; font-size: 11px; }
.together-reply__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.together-reply button { padding: 0 3px; border: 0; background: none; color: #fff; font-size: 18px; }
.together-compose { display: flex; align-items: flex-end; gap: 6px; flex-shrink: 0; margin: 0; padding: 8px; border-top: 0; }
.together-recording { display: flex; align-items: center; gap: 8px; padding: 7px 10px 0; font-size: 12px; }
.together-recording[hidden] { display: none; }
.together-recording span { flex: 1; color: #ffa66e; }
.together-recording button { padding: 5px 8px; border: 0; border-radius: 7px; background: #222; color: #fff; font-size: 12px; }
.together-recording button:last-child { background: #ffa66e; color: #111; }
html body.is-together #togetherForm > #togetherRecord { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: transparent !important; color: #ddd !important; }
html body.is-together #togetherRecord svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html body.is-together #togetherForm textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 110px; box-sizing: border-box; resize: none; padding: 11px 13px; border: 0 !important; border-radius: 15px; background: #1c1c1c !important; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 12px; line-height: 1.5; box-shadow: none !important; transform: none !important; transition: none !important; animation: none !important; }
html body.is-together #togetherForm textarea::placeholder { color: #d0d0d0; opacity: 1; }
html body.is-together #togetherForm > button { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 40px; padding: 0; border: 0 !important; border-radius: 13px; background: var(--accent-default, #ffa66e) !important; color: #fff !important; box-shadow: none !important; transform: none !important; transition: none !important; animation: none !important; }
.together-compose > button svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
@media (hover: none) { .together-hover-reactions { display: none; } }

.together-dialog { width: min(520px, calc(100vw - 28px)); max-height: min(75vh, 620px); box-sizing: border-box; padding: 22px; overflow-y: auto; border: 1px solid #303030; border-radius: 22px; background: #090909; color: #fff; }
.together-dialog::backdrop { background: #000b; }
.together-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.together-dialog__title { display: flex; align-items: center; gap: 9px; }
.together-dialog h3 { margin: 0; font-size: 23px; font-weight: 800; }
.together-dialog__title span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #252525; color: #bcbcbc; font-size: 12px; font-weight: 800; text-align: center; }
.together-dialog__title span[hidden] { display: none; }
.together-dialog header button { width: 34px; height: 34px; border: 1px solid #303030; border-radius: 9px; background: #1b1b1b; color: #fff; font-size: 20px; }
.together-friends { display: grid; gap: 10px; color: #aaa; }
.together-friend { position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; min-height: 90px; box-sizing: border-box; padding: 15px 16px; overflow: hidden; border: 1px solid #202020; border-radius: 18px; background: #0d0d0d; color: #fff; }
.together-friend__banner { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .35; pointer-events: none; }
.together-friend__avatar { position: relative; display: block; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; }
.together-friend__avatar > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
html body .together-friend__avatar.ah-public-avatar-frame-v35 { padding: 2px !important; }
html body .together-friend__avatar.ah-public-avatar-frame-v35::before { padding: 2px; }
.together-friend__info { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.together-friend__info strong { overflow: hidden; color: #fff; font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.together-friend__status { color: #aaa; font-size: 13px; }
.together-friend__status.is-online { color: #5fd276; }
.together-friend__invite { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #4b4b4b; border-radius: 10px; background: #202020; color: #fff; font-size: 25px; font-weight: 400; line-height: 1; cursor: pointer; }
.together-friend__invite:disabled { opacity: .65; cursor: default; }
@media (max-width: 1100px) {
  body.is-together #watchPlayerPage { width: calc(100% - 32px) !important; grid-template-columns: minmax(0,1fr) 390px !important; gap: 10px !important; }
}
@media (max-width: 850px) {
  body.is-together #watchPlayerPage { display: flex !important; flex-direction: column; width: calc(100% - 24px) !important; margin: 14px auto 100px !important; gap: 11px !important; }
  body.is-together #watchPlayerPage > :not([hidden]) { width: 100%; }
  body.is-together #watchPlayerPage > .together-members { order: 1; }
  body.is-together #watchPlayerPage > #animeHubPlayer { order: 2; }
  body.is-together #watchPlayerPage > .ah-episode-rail-wrap { order: 3; }
  body.is-together #watchPlayerPage > .together-panel { order: 4; height: min(58vh, 520px); min-height: 360px; }
  .together-members { grid-template-columns: repeat(auto-fill, minmax(94px, 108px)); gap: 8px; }
  .together-member__mute, .together-member__more { top: 4px; width: 24px; height: 24px; border-radius: 7px; }
  .together-member__mute { right: 4px; }
  .together-member__more { left: 4px; font-size: 18px; }
}

@media (max-width: 480px) {
  body.is-together #watchPlayerPage { width: calc(100% - 20px) !important; }
  .together-heading { padding: 10px; }
  .together-heading strong { font-size: 11px; }
  .together-members { grid-template-columns: repeat(auto-fill, 58px); gap: 6px; }
  .together-member { padding: 4px; border-radius: 6px; }
  .together-member strong { font-size: 8px; line-height: 1.1; }
  .together-member__mute, .together-member__more { top: 3px; width: 20px; height: 20px; border-radius: 5px; }
  .together-member__mute { right: 3px; }
  .together-member__more { left: 3px; padding-bottom: 3px; font-size: 15px; }
  .together-member__mute svg { width: 12px; height: 12px; }
}


/* AnimeHub v92 — live voice waves and Telegram-inspired voice notes. */
.together-member { --voice-level:0; }
.together-member.is-speaking {
  overflow: visible;
  border-color: rgba(74,211,128,.9);
  box-shadow: 0 0 0 calc(1px + var(--voice-level) * 1px) rgba(73,218,134,.7),
              0 0 calc(9px + var(--voice-level) * 21px) rgba(64,219,138,.25);
}
.together-member.is-speaking::before,
.together-member.is-speaking .together-member__portrait {
  border-radius: inherit;
}
.together-member__wave {
  position: absolute;
  z-index: 1;
  inset: -2px;
  box-sizing: border-box;
  border: 1.5px solid rgba(75,235,146,.8);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.together-member.is-speaking .together-member__wave--inner {
  animation: ah-room-voice-wave 1.12s ease-out infinite;
}
.together-member.is-speaking .together-member__wave--outer {
  animation: ah-room-voice-wave 1.12s ease-out -.56s infinite;
}
@keyframes ah-room-voice-wave {
  0%   { opacity: calc(.35 + var(--voice-level) * .55); transform: scale(1); }
  65%  { opacity: calc(.25 + var(--voice-level) * .15); transform: scale(calc(1.015 + var(--voice-level) * .09)); }
  100% { opacity: 0; transform: scale(calc(1.035 + var(--voice-level) * .16)); }
}
.together-panel.is-recording .together-compose { display: none !important; }
.together-recording,
.together-recording[hidden] { box-sizing: border-box; }
.together-panel .together-recording:not([hidden]) {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 56px;
  margin: 0 8px 8px;
  padding: 7px 8px 7px 11px;
  border-radius: 16px;
  background: #1c1c1c;
  color: #fff;
}
.together-recording__timer { display: flex; flex: 0 0 auto !important; align-items: center; gap: 6px; color: #fff !important; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.together-recording__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #fa6262; box-shadow: 0 0 9px rgba(250,85,85,.4); animation: ah-room-record-blink 1.2s ease-in-out infinite; }
@keyframes ah-room-record-blink { 50% { opacity: .4; } }
.together-recording__wave { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 2px; height: 32px; overflow: hidden; min-width: 16px; }
.together-recording__wave span { flex: 1 1 0; min-width: 1px; max-width: 3px; border-radius: 8px; background: #ff9874; transition: height 65ms ease-out; }
.together-panel .together-recording__cancel,
.together-panel .together-recording__send { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer; }
.together-panel .together-recording__cancel { border: 0; background: #303030; color: #f5f5f5; }
.together-panel .together-recording__send { border: 0; background: #ff9874; color: #24140e; }
.together-recording__cancel svg,
.together-recording__send svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.together-recording__send svg { fill: currentColor; stroke: none; }
.together-voice-player__bars span { transition: height 150ms ease-out; }
@media (max-width: 480px) {
  .together-panel .together-recording:not([hidden]) { gap: 6px; padding-left: 8px; }
  .together-recording__wave { gap: 1px; }
  .together-panel .together-recording__cancel,
  .together-panel .together-recording__send { flex-basis: 31px; width: 31px; height: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .together-member.is-speaking .together-member__wave { animation: none; opacity: calc(.3 + var(--voice-level) * .7); transform: scale(calc(1.015 + var(--voice-level) * .04)); }
  .together-recording__dot { animation: none; }
  .together-recording__wave span { transition: none; }
}

/* Tighten nested recording labels; old generic recording span rules must not stretch the dot. */
.together-panel .together-recording__timer > span { flex: 0 0 auto; color: #fff !important; }
.together-panel .together-recording__timer > .together-recording__dot { width: 8px; height: 8px; }
.together-member { transition: border-color 100ms ease, box-shadow 110ms linear; }


/* AnimeHub v93: Telegram-like recording buttons and a stronger, voice-driven halo. */
/* Match the send button used in the ordinary together-room composer. */
html body.is-together .together-panel .together-recording__cancel,
html body.is-together .together-panel .together-recording__send {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 40px;
  min-width: 38px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
html body.is-together .together-panel .together-recording__cancel {
  background: #292929;
  color: #f3f3f3;
}
html body.is-together .together-panel .together-recording__cancel:is(:hover,:focus-visible) {
  background: #3c3030;
  color: #ffaaa0;
}
html body.is-together .together-panel .together-recording__send,
html body.is-together .together-panel .together-recording__send:is(:hover,:focus-visible) {
  background: var(--accent-default, #ffa66e);
  color: #fff;
}
html body.is-together .together-panel .together-recording__cancel svg,
html body.is-together .together-panel .together-recording__send svg {
  width: 20px;
  height: 20px;
  display: block;
}
html body.is-together .together-panel .together-recording__cancel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html body.is-together .together-panel .together-recording__send svg {
  fill: currentColor;
  stroke: none;
}
/* ANIMEHUB_V97: sound disks radiate from the FULL SQUARE user tile.
   The original cover photo remains the only avatar; sound circles are BEHIND it.
   Voice analyser updates --voice-level continuously. */
body.is-together .together-member {
  --voice-level: 0;
  --voice-peach: 255, 156, 105;
  isolation: isolate;
  overflow: visible;
  z-index: 0;
  transition: border-color .13s ease, box-shadow .13s ease;
}
body.is-together .together-member.is-speaking {
  z-index: 2;
  border-color: rgba(var(--voice-peach), .6);
  box-shadow: 0 0 0 calc(1px + var(--voice-level) * 1.5px) rgba(var(--voice-peach), .3);
}
/* The photo fills the SAME square as before, covering the center of each wave. */
body.is-together .together-member__portrait {
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  clip-path: inset(0 round 7px);
  filter: none !important;
}
body.is-together .together-member::before {
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}
body.is-together .together-member__wave {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  height: auto;
  aspect-ratio: 1;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.96);
  transform-origin: center center;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
  transition: transform 115ms cubic-bezier(.16,.75,.3,1), opacity 135ms ease-out;
  will-change: transform, opacity;
}
body.is-together .together-member__wave::before,
body.is-together .together-member__wave::after { content: none !important; }
body.is-together .together-member__wave--inner {
  width: 116%;
  background: rgba(var(--voice-peach), .30);
}
body.is-together .together-member__wave--middle {
  width: 135%;
  background: rgba(var(--voice-peach), .16);
}
body.is-together .together-member__wave--outer {
  width: 153%;
  background: rgba(var(--voice-peach), .095);
}
body.is-together .together-member.is-speaking .together-member__wave--inner {
  opacity: calc(.46 + var(--voice-level) * .44);
  transform: translate(-50%, -50%) scale(calc(.96 + var(--voice-level) * .24));
}
body.is-together .together-member.is-speaking .together-member__wave--middle {
  opacity: calc(.35 + var(--voice-level) * .4);
  transform: translate(-50%, -50%) scale(calc(.95 + var(--voice-level) * .24));
}
body.is-together .together-member.is-speaking .together-member__wave--outer {
  opacity: calc(.26 + var(--voice-level) * .34);
  transform: translate(-50%, -50%) scale(calc(.93 + var(--voice-level) * .25));
}
/* Username and interactive actions stay above the avatar and its waves. */
body.is-together .together-member strong { z-index: 3; }
body.is-together .together-member__mute,
body.is-together .together-member__more { z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  body.is-together .together-member__wave { transition: none; }
}
/* Huge monitor support: enlarge the ACTUAL UI contents, not just the columns.
   2560px is typically a 4K screen using system scaling; higher widths step up. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  body.is-together #watchPlayerPage {
    grid-template-columns: minmax(0, 2fr) minmax(540px, 1fr) !important;
    gap: 20px 26px !important;
  }
  body.is-together .together-members { grid-template-columns: repeat(auto-fill, minmax(154px, 178px)); gap: 14px; }
  body.is-together .together-member { border-radius: 12px; padding: 13px; }
  body.is-together .together-member strong { font-size: 16px; }
  body.is-together .together-member__mute, body.is-together .together-member__more { width: 36px; height: 36px; border-radius: 10px; }
  body.is-together .together-member__mute svg { width: 19px; height: 19px; }
  body.is-together .together-member__more { font-size: 25px; }
  body.is-together .together-panel { font-size: 17px; border-radius: 12px; }
  body.is-together .together-heading { min-height: 78px; gap: 13px; padding: 15px 20px; }
  body.is-together .together-heading strong { font-size: 18px; }
  body.is-together .together-heading__count { min-width: 27px; font-size: 15px; padding: 3px 7px; border-radius: 7px; }
  body.is-together .together-heading__live { width: 11px; height: 11px; }
  body.is-together .together-heading__actions { gap: 8px; }
  body.is-together .together-heading__actions button { width: 44px; height: 44px; border-radius: 12px; }
  body.is-together .together-heading__actions svg { width: 23px; height: 23px; }
  body.is-together .together-status { font-size: 15px; padding: 14px 18px; }
  body.is-together .together-messages { padding: 22px 18px; gap: 16px; }
  body.is-together .together-empty { font-size: 17px; }
  body.is-together .together-message { gap: 11px; }
  body.is-together .together-message__avatar { width: 43px; height: 43px; }
  body.is-together .together-message__stack,
  body.is-together .together-message.is-own .together-message__stack { max-width: min(84%, 520px); }
  body.is-together .together-message__stack.is-voice { width: min(84%, 440px); }
  body.is-together .together-message__bubble { padding: 10px 15px 9px; min-width: 105px; border-radius: 16px 16px 16px 0; }
  body.is-together .together-message__bubble.is-voice { width: min(440px, 100%); padding: 12px 14px 9px; }
  body.is-together .together-message__name { font-size: 16px; margin-bottom: 3px; }
  body.is-together .together-message p { font-size: 17px; line-height: 1.4; }
  body.is-together .together-message time { font-size: 13px; }
  body.is-together .together-message__quote { font-size: 14px; padding: 7px 9px; }
  body.is-together .together-voice-player__play { width: 54px; height: 54px; flex-basis: 54px; }
  body.is-together .together-voice-player__play svg { width: 26px; height: 26px; }
  body.is-together .together-voice-player__wave { height: 46px; }
  body.is-together .together-voice-player__meta { font-size: 14px; margin-left: 64px; }
  body.is-together .together-reactions button { font-size: 15px; padding: 4px 8px; min-height: 29px; }
  body.is-together .together-reactions button img { width: 23px; height: 23px; }
  body.is-together .together-reply { font-size: 15px; padding: 10px 13px; }
  body.is-together .together-reply__text strong { font-size: 16px; }
  body.is-together .together-compose { padding: 14px 16px; gap: 9px; }
  html body.is-together #togetherForm > #togetherRecord { flex-basis: 46px; width: 46px; height: 56px; }
  html body.is-together #togetherRecord svg { width: 24px; height: 24px; }
  html body.is-together #togetherForm textarea { min-height: 56px; max-height: 180px; padding: 15px 17px; border-radius: 18px; font-size: 17px; }
  html body.is-together #togetherForm > button { width: 56px; height: 56px; border-radius: 16px; }
  body.is-together .together-compose > button svg { width: 27px; height: 27px; }
  body.is-together .together-recording__timer { font-size: 17px; }
  html body.is-together .together-panel .together-recording__cancel,
  html body.is-together .together-panel .together-recording__send { width: 52px; height: 52px; flex-basis: 52px; min-width: 52px; border-radius: 16px; }
  html body.is-together .together-panel .together-recording__cancel svg,
  html body.is-together .together-panel .together-recording__send svg { width: 26px; height: 26px; }
  body.is-together .together-recording__wave { height: 44px; }
  body.is-together .together-recording__dot { width: 11px; height: 11px; }

  /* Player layout — larger top selector, bottom buttons, time and popup text. */
  body.is-together #animeHubPlayer .ah-player__top { padding: 18px 20px !important; }
  body.is-together #animeHubPlayer .ah-player-select > button { min-height: 47px !important; max-width: 270px !important; padding: 7px 13px !important; gap: 9px !important; }
  body.is-together #animeHubPlayer .ah-player-select span { font-size: 19px !important; }
  body.is-together #animeHubPlayer .ah-player-select b { font-size: 18px !important; }
  body.is-together #animeHubPlayer .ah-player-select__menu { min-width: 245px !important; max-height: 450px !important; border-radius: 14px !important; }
  body.is-together #animeHubPlayer .ah-player-select__menu button { min-height: 45px !important; font-size: 18px !important; padding: 10px 15px !important; }
  body.is-together #animeHubPlayer .ah-player__controls { padding: 54px 20px 18px !important; }
  body.is-together #animeHubPlayer .ah-player__row { gap: 12px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay,
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player-volume-control,
  body.is-together #animeHubPlayer .ah-player__utility-group { height: 52px !important; min-height: 52px !important; max-height: 52px !important; border-radius: 999px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay { width: 52px !important; min-width: 52px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay svg { width: 27px !important; height: 27px !important; }
  body.is-together #animeHubPlayer .ah-player__time { padding: 0 15px !important; gap: 7px !important; }
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player__time b,
  body.is-together #animeHubPlayer .ah-player__time span,
  body.is-together #animeHubPlayer .ah-player__time i { font-size: 17px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute { width: 52px !important; min-width: 52px !important; max-width: 52px !important; height: 52px !important; min-height: 52px !important; max-height: 52px !important; flex-basis: 52px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute svg { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-together #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand { left: 52px !important; height: 52px !important; min-height: 52px !important; max-height: 52px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group { padding: 0 8px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group svg { width: 25px !important; height: 25px !important; }
  body.is-together #animeHubPlayer .ah-player__seek { height: 20px !important; }
  body.is-together #animeHubPlayer .ah-player__seek-track { min-height: 6px !important; }
  body.is-together #animeHubPlayer .ah-player__seek-track > #ahPlayerThumb { width: 17px !important; height: 17px !important; }
  body.is-together #animeHubPlayer .ah-player__seek em { font-size: 16px !important; padding: 8px 11px !important; }
  body.is-together #animeHubPlayer .ah-player__skip { font-size: 18px !important; padding: 13px 22px !important; bottom: 123px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter:not([hidden]) { width: 114px !important; height: 114px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter svg.is-play { width: 60px !important; height: 64px !important; }
  body.is-together #animeHubPlayer .ah-player__playback-feedback { width: 150px !important; height: 150px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerPip svg,
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerFullscreen svg,
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerSettingsButton svg,
  body.is-together #animeHubPlayer .ah-player__utility-group .ah-player__download svg { width: 26px !important; height: 26px !important; }
  body.is-together #animeHubPlayer .ah-player__settings-panel,
  body.is-together #animeHubPlayer .ah-player__settings-menu { font-size: 16px !important; }
}
}
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 3200px) {
  body.is-together .together-members { grid-template-columns: repeat(auto-fill, minmax(205px, 235px)); gap: 20px; }
  body.is-together .together-member strong { font-size: 19px; }
  body.is-together .together-panel { font-size: 20px; }
  body.is-together .together-heading strong { font-size: 22px; }
  body.is-together .together-heading { min-height: 96px; }
  body.is-together .together-messages { padding: 27px 22px; gap: 20px; }
  body.is-together .together-message p { font-size: 21px; }
  body.is-together .together-message__name { font-size: 19px; }
  body.is-together .together-message__avatar { width: 55px; height: 55px; }
  body.is-together .together-message time { font-size: 16px; }
  body.is-together #animeHubPlayer .ah-player__top { padding: 24px 30px !important; }
  body.is-together #animeHubPlayer .ah-player-select > button { min-height: 57px !important; }
  body.is-together #animeHubPlayer .ah-player-select span { font-size: 24px !important; }
  body.is-together #animeHubPlayer .ah-player__controls { padding: 68px 28px 24px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay,
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player-volume-control,
  body.is-together #animeHubPlayer .ah-player__utility-group { height: 63px !important; min-height: 63px !important; max-height: 63px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay { width: 63px !important; min-width: 63px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay svg { width: 33px !important; height: 33px !important; }
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player__time b,
  body.is-together #animeHubPlayer .ah-player__time span,
  body.is-together #animeHubPlayer .ah-player__time i { font-size: 22px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute { width: 63px !important; min-width: 63px !important; max-width: 63px !important; height: 63px !important; min-height: 63px !important; max-height: 63px !important; flex-basis: 63px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute svg { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-together #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand { left: 63px !important; height: 63px !important; min-height: 63px !important; max-height: 63px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group svg { width: 32px !important; height: 32px !important; }
  body.is-together #animeHubPlayer .ah-player__skip { font-size: 23px !important; bottom: 153px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter:not([hidden]) { width: 145px !important; height: 145px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter svg.is-play { width: 78px !important; height: 82px !important; }
  body.is-together #animeHubPlayer .ah-player__playback-feedback { width: 184px !important; height: 184px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerPip svg,
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerFullscreen svg,
  body.is-together #animeHubPlayer .ah-player__utility-group #ahPlayerSettingsButton svg,
  body.is-together #animeHubPlayer .ah-player__utility-group .ah-player__download svg { width: 32px !important; height: 32px !important; }
  body.is-together #animeHubPlayer .ah-player-select__menu button { font-size: 23px !important; min-height: 54px !important; }
  body.is-together #animeHubPlayer .ah-player__seek em { font-size: 21px !important; }
}
}

/* ANIMEHUB_V97: Larger but balanced 4K shared-room UI, including square optical
   icon footprints. Normal laptop / phone layouts are deliberately untouched. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  body.is-together .together-members { grid-template-columns: repeat(auto-fill, minmax(180px, 210px)); gap: 19px; }
  body.is-together .together-member { padding: 15px; }
  body.is-together .together-member strong { font-size: 19px; }
  body.is-together .together-member__mute, body.is-together .together-member__more { width: 43px; height: 43px; }
  body.is-together .together-member__mute svg { width: 22px; height: 22px; }
  body.is-together .together-panel { font-size: 20px; }
  body.is-together .together-heading { padding: 19px 22px; min-height: 88px; }
  body.is-together .together-heading strong { font-size: 22px; }
  body.is-together .together-heading__count { font-size: 17px; padding: 5px 9px; }
  body.is-together .together-heading__actions button { width: 53px; height: 53px; }
  body.is-together .together-heading__actions svg { width: 27px; height: 27px; }
  body.is-together .together-status { font-size: 18px; }
  body.is-together .together-messages { padding: 25px 22px; gap: 18px; }
  body.is-together .together-empty { font-size: 20px; }
  body.is-together .together-message { gap: 14px; }
  body.is-together .together-message__avatar { width: 54px; height: 54px; }
  body.is-together .together-message__stack,
  body.is-together .together-message.is-own .together-message__stack { max-width: min(86%, 660px); }
  body.is-together .together-message__stack.is-voice { width: min(86%, 560px); }
  body.is-together .together-message__bubble { padding: 14px 19px 12px; }
  body.is-together .together-message__bubble.is-voice { width: min(560px, 100%); padding: 15px 18px; }
  body.is-together .together-message__name { font-size: 20px; }
  body.is-together .together-message p { font-size: 21px; }
  body.is-together .together-message time { font-size: 16px; }
  body.is-together .together-message__quote { font-size: 17px; }
  body.is-together .together-voice-player__play { width: 64px; height: 64px; flex-basis: 64px; }
  body.is-together .together-voice-player__play svg { width: 33px; height: 33px; }
  body.is-together .together-voice-player__wave { height: 57px; }
  body.is-together .together-voice-player__meta { font-size: 17px; margin-left: 73px; }
  body.is-together .together-reactions button { min-height: 35px; font-size: 18px; }
  body.is-together .together-reactions button img { width: 28px; height: 28px; }
  body.is-together .together-reply { font-size: 18px; }
  body.is-together .together-reply__text strong { font-size: 20px; }
  body.is-together .together-compose { padding: 18px 21px; gap: 12px; }
  html body.is-together #togetherForm > #togetherRecord { flex-basis: 54px; width: 54px; height: 65px; }
  html body.is-together #togetherRecord svg { width: 28px; height: 28px; }
  html body.is-together #togetherForm textarea { min-height: 65px; padding: 20px 21px; font-size: 21px; }
  html body.is-together #togetherForm > button { width: 65px; height: 65px; }
  body.is-together .together-compose > button svg { width: 32px; height: 32px; }
  body.is-together .together-recording__timer { font-size: 21px; }
  html body.is-together .together-panel .together-recording__cancel,
  html body.is-together .together-panel .together-recording__send { width: 62px; height: 62px; flex-basis: 62px; min-width: 62px; }
  html body.is-together .together-panel .together-recording__cancel svg,
  html body.is-together .together-panel .together-recording__send svg { width: 32px; height: 32px; }
  body.is-together .together-recording__wave { height: 55px; }

  /* Bigger, consistently square visual footprints for all five bottom glyphs. */
  body.is-together #animeHubPlayer .ah-player__top { padding: 22px 26px !important; }
  body.is-together #animeHubPlayer .ah-player-select > button { min-height: 56px !important; padding: 9px 16px !important; }
  body.is-together #animeHubPlayer .ah-player-select span { font-size: 23px !important; }
  body.is-together #animeHubPlayer .ah-player-select b { font-size: 22px !important; }
  body.is-together #animeHubPlayer .ah-player-select__menu button { font-size: 22px !important; min-height: 51px !important; }
  body.is-together #animeHubPlayer .ah-player__controls { padding: 65px 25px 22px !important; }
  body.is-together #animeHubPlayer .ah-player__row { gap: 14px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay,
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player-volume-control,
  body.is-together #animeHubPlayer .ah-player__utility-group { height: 62px !important; min-height: 62px !important; max-height: 62px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay { width: 62px !important; min-width: 62px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay svg { width: 34px !important; height: 34px !important; }
  body.is-together #animeHubPlayer .ah-player__time { padding: 0 18px !important; }
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player__time b,
  body.is-together #animeHubPlayer .ah-player__time span,
  body.is-together #animeHubPlayer .ah-player__time i { font-size: 21px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute {
    display: grid !important; place-items: center !important;
    flex: 0 0 62px !important; width: 62px !important; min-width: 62px !important; max-width: 62px !important;
    height: 62px !important; min-height: 62px !important; max-height: 62px !important; padding: 0 !important;
  }
  body.is-together #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-together #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand { left: 62px !important; height: 62px !important; min-height: 62px !important; max-height: 62px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group { gap: 4px !important; padding: 0 9px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player__download,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerPip,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen {
    display: inline-grid !important; place-items: center !important;
    width: 54px !important; min-width: 54px !important; height: 54px !important; min-height: 54px !important;
    padding: 0 !important; line-height: 1 !important;
  }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player__download svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerPip svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen svg {
    flex: none !important;
    width: 32px !important; min-width: 32px !important; max-width: 32px !important;
    height: 32px !important; min-height: 32px !important; max-height: 32px !important;
    object-fit: contain !important;
  }
  /* Normalize optical height: a rectangular PiP drawing is as tall as the gear. */
  body.is-together #animeHubPlayer #ahPlayerMute svg { transform: scale(1.40) !important; }
  body.is-together #animeHubPlayer .ah-player__download svg { transform: scale(1.15) !important; }
  body.is-together #animeHubPlayer #ahPlayerPip svg { transform: scale(1.37) !important; }
  body.is-together #animeHubPlayer #ahPlayerFullscreen svg { transform: scale(1.08) !important; }
  body.is-together #animeHubPlayer .ah-player__seek { height: 25px !important; }
  body.is-together #animeHubPlayer .ah-player__seek-track { min-height: 7px !important; }
  body.is-together #animeHubPlayer .ah-player__seek-track > #ahPlayerThumb { width: 21px !important; height: 21px !important; }
  body.is-together #animeHubPlayer .ah-player__seek em { font-size: 19px !important; }
  body.is-together #animeHubPlayer .ah-player__skip { font-size: 21px !important; padding: 16px 26px !important; bottom: 150px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter:not([hidden]) { width: 140px !important; height: 140px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter svg.is-play { width: 75px !important; height: 78px !important; }
  body.is-together #animeHubPlayer .ah-player__playback-feedback { width: 174px !important; height: 174px !important; }
  body.is-together #animeHubPlayer .ah-player__settings-panel,
  body.is-together #animeHubPlayer .ah-player__settings-menu { font-size: 20px !important; }
}
}
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 3200px) {
  body.is-together .together-members { grid-template-columns: repeat(auto-fill, minmax(238px, 270px)); gap: 23px; }
  body.is-together .together-member strong { font-size: 23px; }
  body.is-together .together-panel { font-size: 24px; }
  body.is-together .together-heading strong { font-size: 27px; }
  body.is-together .together-heading__actions button { width: 65px; height: 65px; }
  body.is-together .together-heading__actions svg { width: 34px; height: 34px; }
  body.is-together .together-messages { padding: 34px 28px; gap: 26px; }
  body.is-together .together-message p { font-size: 26px; }
  body.is-together .together-message__name { font-size: 24px; }
  body.is-together .together-message__avatar { width: 67px; height: 67px; }
  body.is-together .together-message time { font-size: 20px; }
  html body.is-together #togetherForm textarea { min-height: 79px; font-size: 25px; }
  html body.is-together #togetherForm > button { width: 79px; height: 79px; }
  html body.is-together #togetherForm > #togetherRecord { width: 65px; height: 79px; flex-basis: 65px; }
  body.is-together #animeHubPlayer .ah-player-select > button { min-height: 70px !important; }
  body.is-together #animeHubPlayer .ah-player-select span { font-size: 29px !important; }
  body.is-together #animeHubPlayer .ah-player-select b { font-size: 28px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay,
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player-volume-control,
  body.is-together #animeHubPlayer .ah-player__utility-group { height: 78px !important; min-height: 78px !important; max-height: 78px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay { width: 78px !important; min-width: 78px !important; }
  body.is-together #animeHubPlayer #ahPlayerPlay svg { width: 42px !important; height: 42px !important; }
  body.is-together #animeHubPlayer .ah-player__time,
  body.is-together #animeHubPlayer .ah-player__time b,
  body.is-together #animeHubPlayer .ah-player__time span,
  body.is-together #animeHubPlayer .ah-player__time i { font-size: 26px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute { flex-basis: 78px !important; width: 78px !important; min-width: 78px !important; max-width: 78px !important; height: 78px !important; min-height: 78px !important; max-height: 78px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-together #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand { left: 78px !important; height: 78px !important; min-height: 78px !important; max-height: 78px !important; }
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player__download,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerPip,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen { width: 66px !important; min-width: 66px !important; height: 66px !important; min-height: 66px !important; }
  body.is-together #animeHubPlayer .ah-player-volume-control > #ahPlayerMute svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player__download svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerPip svg,
  body.is-together #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen svg { width: 42px !important; min-width: 42px !important; max-width: 42px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; }
  body.is-together #animeHubPlayer #ahPlayerCenter:not([hidden]) { width: 175px !important; height: 175px !important; }
  body.is-together #animeHubPlayer .ah-player__seek em { font-size: 24px !important; }
  body.is-together #animeHubPlayer .ah-player__skip { font-size: 27px !important; bottom: 182px !important; }
}
}


/* ANIMEHUB_V98 — masked voice waves emerge strictly OUTSIDE the original square tile.
   The square tile and the username are never overpainted by audio rings. */
body.is-together .together-member__wave {
  z-index: 0 !important;
  top: 50% !important;
  left: 50% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  border-radius: 50% !important;
  opacity: 0;
  transform: translate(-50%, -50%) !important;
  animation: none !important;
  transition: width 110ms ease-out, height 110ms ease-out, opacity 110ms ease-out !important;
  /* The first mask covers the disk; the second subtracts the entire square tile.
     The cutout is fixed to the tile while the circle grows with the sound level. */
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%, calc(100% - var(--wave-overhang) * 2) calc(100% - var(--wave-overhang) * 2);
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-position: center, center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%, calc(100% - var(--wave-overhang) * 2) calc(100% - var(--wave-overhang) * 2);
  mask-composite: exclude;
}
body.is-together .together-member__wave--inner {
  --wave-overhang: calc(13px + var(--voice-level) * 34px);
  width: calc(100% + var(--wave-overhang) * 2) !important;
  background: rgba(255, 156, 105, .35) !important;
}
body.is-together .together-member__wave--middle {
  --wave-overhang: calc(24px + var(--voice-level) * 57px);
  width: calc(100% + var(--wave-overhang) * 2) !important;
  background: rgba(255, 156, 105, .19) !important;
}
body.is-together .together-member__wave--outer {
  --wave-overhang: calc(35px + var(--voice-level) * 85px);
  width: calc(100% + var(--wave-overhang) * 2) !important;
  background: rgba(255, 156, 105, .09) !important;
}
body.is-together .together-member.is-speaking .together-member__wave--inner,
body.is-together .together-member.is-speaking .together-member__wave--middle,
body.is-together .together-member.is-speaking .together-member__wave--outer {
  transform: translate(-50%, -50%) !important;
  opacity: 1 !important;
}
/* The original photo fills the whole tile, never a newly invented central avatar. */
body.is-together .together-member__portrait { z-index: 1 !important; }
body.is-together .together-member strong { z-index: 4 !important; }

/* ANIMEHUB_V98 — desktop 4K UI shared by standard and group watch pages.
   Scopes are min-width media queries; no mobile or standard 1080p changes. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  body.is-watch #animeHubPlayer .ah-player__top { padding: 22px 25px !important; }
  body.is-watch #animeHubPlayer .ah-player-select > button { min-height: 54px !important; padding: 8px 17px !important; gap: 11px !important; }
  body.is-watch #animeHubPlayer .ah-player-select span,
  body.is-watch #animeHubPlayer .ah-player-select b { font-size: 21px !important; }
  body.is-watch #animeHubPlayer .ah-player-select__menu { min-width: 245px !important; }
  body.is-watch #animeHubPlayer .ah-player-select__menu button { min-height: 48px !important; font-size: 18px !important; }

  body.is-watch #animeHubPlayer .ah-player__controls { padding: 66px 26px 18px !important; }
  body.is-watch #animeHubPlayer .ah-player__row { gap: 13px !important; }
  body.is-watch #animeHubPlayer #ahPlayerPlay,
  body.is-watch #animeHubPlayer .ah-player-volume-control,
  body.is-watch #animeHubPlayer .ah-player__time,
  body.is-watch #animeHubPlayer .ah-player__utility-group {
    height: 60px !important; min-height: 60px !important; max-height: 60px !important;
  }
  body.is-watch #animeHubPlayer #ahPlayerPlay { width: 60px !important; min-width: 60px !important; }
  body.is-watch #animeHubPlayer #ahPlayerPlay svg { width: 31px !important; height: 31px !important; }
  body.is-watch #animeHubPlayer .ah-player__time { padding: 0 16px !important; gap: 7px !important; }
  body.is-watch #animeHubPlayer .ah-player__time,
  body.is-watch #animeHubPlayer .ah-player__time b,
  body.is-watch #animeHubPlayer .ah-player__time span,
  body.is-watch #animeHubPlayer .ah-player__time i { font-size: 19px !important; }

  body.is-watch #animeHubPlayer .ah-player-volume-control > #ahPlayerMute {
    display: grid !important; place-items: center !important;
    flex: 0 0 60px !important; width: 60px !important; min-width: 60px !important; max-width: 60px !important;
    height: 60px !important; min-height: 60px !important; max-height: 60px !important;
    padding: 0 !important;
  }
  body.is-watch #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-watch #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand {
    left: 60px !important; height: 60px !important; min-height: 60px !important; max-height: 60px !important;
  }
  body.is-watch #animeHubPlayer .ah-player__utility-group { padding: 0 8px !important; gap: 5px !important; }
  /* Every click surface is square even when its SVG graphic is wider or narrower. */
  body.is-watch #animeHubPlayer .ah-player__utility-group > .ah-player__download,
  body.is-watch #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton,
  body.is-watch #animeHubPlayer .ah-player__utility-group > #ahPlayerPip,
  body.is-watch #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen {
    display: inline-grid !important; place-items: center !important;
    width: 53px !important; min-width: 53px !important; max-width: 53px !important;
    height: 53px !important; min-height: 53px !important; max-height: 53px !important;
    flex: 0 0 53px !important; padding: 0 !important; line-height: 1 !important;
  }
  body.is-watch #animeHubPlayer #ahPlayerMute svg,
  body.is-watch #animeHubPlayer #ahPlayerDownload svg,
  body.is-watch #animeHubPlayer #ahPlayerSettingsButton svg,
  body.is-watch #animeHubPlayer #ahPlayerPip svg,
  body.is-watch #animeHubPlayer #ahPlayerFullscreen svg {
    width: 35px !important; height: 35px !important;
    min-width: 35px !important; min-height: 35px !important;
    max-width: 35px !important; max-height: 35px !important;
    flex: none !important; transform: none !important; transform-origin: center !important;
  }
  body.is-watch #animeHubPlayer #ahPlayerDownload svg,
  body.is-watch #animeHubPlayer #ahPlayerPip svg { width: 38px !important; height: 38px !important; max-width: 38px !important; max-height: 38px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek { height: 25px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek-track { min-height: 7px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek-track > #ahPlayerThumb { width: 20px !important; height: 20px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek em { font-size: 18px !important; padding: 8px 12px !important; }
  body.is-watch #animeHubPlayer .ah-player__skip { font-size: 20px !important; padding: 16px 24px !important; bottom: 145px !important; }
  body.is-watch #animeHubPlayer #ahPlayerCenter:not([hidden]) { width: 145px !important; height: 145px !important; }

  /* Full settings menu scaling: fixed inline sizes on descendants previously overrode font-size. */
  body.is-watch #animeHubPlayer .ah-player-settings__menu {
    width: 432px !important; min-width: 432px !important; max-width: 432px !important;
    padding: 13px !important; border-radius: 21px !important; bottom: calc(100% + 16px) !important;
  }
  body.is-watch #animeHubPlayer .ah-player-settings__view > button,
  body.is-watch #animeHubPlayer .ah-player-settings__options > button {
    min-height: 70px !important; padding: 12px 16px !important; gap: 13px !important;
    border-radius: 14px !important; font-size: 18px !important; line-height: 1.25 !important;
  }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button .ah-player-settings__glyph {
    flex: 0 0 32px !important; width: 32px !important; height: 32px !important;
  }
  body.is-watch #animeHubPlayer .ah-player-settings__glyph svg { width: 30px !important; height: 30px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button .ah-player-settings__label,
  body.is-watch #animeHubPlayer .ah-player-settings__back span { font-size: 18px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button em,
  body.is-watch #animeHubPlayer .ah-player-settings__options > button em { font-size: 16px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button b,
  body.is-watch #animeHubPlayer .ah-player-settings__back b { font-size: 21px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__back { min-height: 67px !important; padding: 10px 17px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__options { max-height: min(440px, 55vh) !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__options > button { padding-left: 36px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__options > button::before { left: 16px !important; width: 5px !important; height: 5px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__options > button.is-active::before { width: 12px !important; height: 12px !important; }

  /* Standard (non-group) watch page: scale the surrounding UI, too. */
  body.is-watch:not(.is-together) #watchPlayerPage:not([hidden]) {
    width: min(100%, 2800px) !important; max-width: 2800px !important;
    grid-template-columns: minmax(0, 1fr) minmax(540px, 34%) !important;
    column-gap: 25px !important;
  }
  body.is-watch:not(.is-together) .ah-player-sidepanel { padding: 27px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__title { font-size: 19px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__player { min-height: 57px !important; height: 57px !important; font-size: 17px !important; border-radius: 16px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-row { min-height: 78px !important; grid-template-columns: 65px minmax(0,1fr) 65px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-button { min-height: 78px !important; width: 65px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-button svg { width: 29px !important; height: 29px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-label { font-size: 16px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading { font-size: 23px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading h1 { font-size: 33px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading span { font-size: 18px !important; }
  body.is-watch:not(.is-together) .ah-watch-actions button,
  body.is-watch:not(.is-together) .ah-watch-actions a { min-height: 58px !important; font-size: 18px !important; }
  body.is-watch:not(.is-together) .episode-comments > header h2 { font-size: 29px !important; }
  body.is-watch:not(.is-together) .episode-comment__body { font-size: 19px !important; }
  body.is-watch:not(.is-together) .episode-comment__content > header { font-size: 18px !important; }
  body.is-watch:not(.is-together) .episode-comment-form textarea { font-size: 20px !important; }
}
}
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 3200px) {
  body.is-watch #animeHubPlayer .ah-player__top { padding: 29px 35px !important; }
  body.is-watch #animeHubPlayer .ah-player-select > button { min-height: 68px !important; padding: 10px 23px !important; }
  body.is-watch #animeHubPlayer .ah-player-select span,
  body.is-watch #animeHubPlayer .ah-player-select b { font-size: 27px !important; }
  body.is-watch #animeHubPlayer .ah-player-select__menu button { min-height: 58px !important; font-size: 23px !important; }
  body.is-watch #animeHubPlayer .ah-player__controls { padding: 80px 35px 25px !important; }
  body.is-watch #animeHubPlayer #ahPlayerPlay,
  body.is-watch #animeHubPlayer .ah-player-volume-control,
  body.is-watch #animeHubPlayer .ah-player__time,
  body.is-watch #animeHubPlayer .ah-player__utility-group { height: 77px !important; min-height: 77px !important; max-height: 77px !important; }
  body.is-watch #animeHubPlayer #ahPlayerPlay { width: 77px !important; min-width: 77px !important; }
  body.is-watch #animeHubPlayer #ahPlayerPlay svg { width: 43px !important; height: 43px !important; }
  body.is-watch #animeHubPlayer .ah-player__time,
  body.is-watch #animeHubPlayer .ah-player__time b,
  body.is-watch #animeHubPlayer .ah-player__time span,
  body.is-watch #animeHubPlayer .ah-player__time i { font-size: 26px !important; }
  body.is-watch #animeHubPlayer .ah-player-volume-control > #ahPlayerMute { flex-basis: 77px !important; width: 77px !important; min-width: 77px !important; max-width: 77px !important; height: 77px !important; min-height: 77px !important; max-height: 77px !important; }
  body.is-watch #animeHubPlayer .ah-player-volume-control .ah-player-volume-control__expand,
  body.is-watch #animeHubPlayer .ah-player-volume-control.is-open .ah-player-volume-control__expand { left: 77px !important; height: 77px !important; min-height: 77px !important; max-height: 77px !important; }
  body.is-watch #animeHubPlayer .ah-player__utility-group > .ah-player__download,
  body.is-watch #animeHubPlayer .ah-player__utility-group > .ah-player-settings > #ahPlayerSettingsButton,
  body.is-watch #animeHubPlayer .ah-player__utility-group > #ahPlayerPip,
  body.is-watch #animeHubPlayer .ah-player__utility-group > #ahPlayerFullscreen {
    width: 68px !important; min-width: 68px !important; max-width: 68px !important;
    height: 68px !important; min-height: 68px !important; max-height: 68px !important; flex-basis: 68px !important;
  }
  body.is-watch #animeHubPlayer #ahPlayerMute svg,
  body.is-watch #animeHubPlayer #ahPlayerDownload svg,
  body.is-watch #animeHubPlayer #ahPlayerSettingsButton svg,
  body.is-watch #animeHubPlayer #ahPlayerPip svg,
  body.is-watch #animeHubPlayer #ahPlayerFullscreen svg { width: 45px !important; height: 45px !important; min-width: 45px !important; min-height: 45px !important; max-width: 45px !important; max-height: 45px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek { height: 32px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek-track { min-height: 9px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek-track > #ahPlayerThumb { width: 25px !important; height: 25px !important; }
  body.is-watch #animeHubPlayer .ah-player__seek em { font-size: 24px !important; }
  body.is-watch #animeHubPlayer .ah-player__skip { font-size: 27px !important; bottom: 185px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__menu { width: 555px !important; min-width: 555px !important; max-width: 555px !important; padding: 18px !important; border-radius: 26px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view > button,
  body.is-watch #animeHubPlayer .ah-player-settings__options > button { min-height: 86px !important; padding: 15px 22px !important; gap: 17px !important; border-radius: 18px !important; font-size: 23px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button .ah-player-settings__glyph { flex-basis: 42px !important; width: 42px !important; height: 42px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__glyph svg { width: 36px !important; height: 36px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button .ah-player-settings__label,
  body.is-watch #animeHubPlayer .ah-player-settings__back span { font-size: 23px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__view[data-settings-view="main"] > button em,
  body.is-watch #animeHubPlayer .ah-player-settings__options > button em { font-size: 21px !important; }
  body.is-watch #animeHubPlayer .ah-player-settings__back { min-height: 80px !important; }
  body.is-watch:not(.is-together) #watchPlayerPage:not([hidden]) { width: min(100%, 3300px) !important; max-width: 3300px !important; grid-template-columns: minmax(0,1fr) minmax(680px,34%) !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__title { font-size: 24px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__player { min-height: 75px !important; height: 75px !important; font-size: 22px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-row { min-height: 105px !important; grid-template-columns: 85px minmax(0,1fr) 85px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-button { min-height: 105px !important; width: 85px !important; }
  body.is-watch:not(.is-together) .ah-player-sidepanel__seek-label { font-size: 22px !important; }
  body.is-watch:not(.is-together) .episode-comments > header h2 { font-size: 37px !important; }
  body.is-watch:not(.is-together) .episode-comment__body { font-size: 24px !important; }
}
}
/* ANIMEHUB_V98_END */
/* ANIMEHUB_V99_NORMAL_WATCH_4K_BEGIN
   Only normal desktop viewing at wide CSS viewports. The shared room, touch
   screens, the dedicated fullscreen player, and ordinary laptops are unchanged. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  /* V51 originally caps the video to viewport height; V98 only enlarged the
     inner controls, leaving the watch grid at its old desktop width. */
  body.is-watch:not(.is-together) #watchPlayerPage:not([hidden]) {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 26px clamp(30px, 2.4vw, 64px) 72px !important;
    grid-template-columns: minmax(0, 2fr) minmax(520px, 1fr) !important;
    column-gap: clamp(22px, 1.25vw, 42px) !important;
    grid-template-areas:
      "countdown countdown"
      "heading ."
      "player side"
      "actions ."
      "rail rail"
      "comments ." !important;
    justify-items: stretch !important;
  }
  body.is-watch:not(.is-together) #watchPlayerPage > #animeHubPlayer {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    justify-self: stretch !important;
  }
  body.is-watch:not(.is-together) #watchPlayerPage > #ahPlayerSidePanel {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }
  body.is-watch:not(.is-together) #watchPlayerPage > #ahWatchActions,
  body.is-watch:not(.is-together) #watchPlayerPage > #episodeComments {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
  body.is-watch:not(.is-together) #watchPlayerPage > .ah-watch-heading { margin-bottom: 18px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading__back {
    width: 57px !important; height: 57px !important; flex-basis: 57px !important;
    border-radius: 16px !important;
  }
  body.is-watch:not(.is-together) .ah-watch-heading__back svg { width: 28px !important; height: 28px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading__copy h1 { font-size: 32px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading__copy span { font-size: 18px !important; }

  /* Side-panel elements: the actual .__action-row and .__action-label classes. */
  body.is-watch:not(.is-together) #ahPlayerSidePanel {
    padding: 30px 30px !important; gap: 33px !important; border-radius: 26px !important;
  }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__section { gap: 18px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__section--quick { padding-top: 12px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__title { font-size: 21px !important; line-height: 1.4 !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__players { gap: 13px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__player {
    height: 60px !important; min-height: 60px !important; padding: 0 13px !important;
    font-size: 19px !important; border-radius: 16px !important;
  }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__quick-list { gap: 8px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-row {
    grid-template-columns: 76px minmax(0, 1fr) 76px !important;
    min-height: 81px !important; border-radius: 16px !important;
  }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-label {
    font-size: 19px !important; line-height: 1.5 !important; text-align: center !important;
  }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-arrow {
    width: 76px !important; min-height: 81px !important; height: 81px !important;
  }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-arrow svg {
    width: 28px !important; height: 28px !important; min-width: 28px !important;
  }

  /* Buttons immediately below the player, including their real inner icons. */
  body.is-watch:not(.is-together) #ahWatchActions { margin-top: 22px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-actions__row { gap: 19px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-actions__tools { gap: 13px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-chip {
    min-height: 62px !important; padding: 0 23px !important;
    border-radius: 999px !important; font-size: 19px !important; gap: 12px !important;
  }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-chip svg { width: 25px !important; height: 25px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .detail-votes {
    min-height: 62px !important; padding: 0 8px !important;
  }
  body.is-watch:not(.is-together) #ahWatchActions .detail-vote-button {
    min-height: 55px !important; padding: 0 16px !important; font-size: 18px !important;
  }
  body.is-watch:not(.is-together) #ahWatchActions .detail-vote-button svg { width: 24px !important; height: 24px !important; }

  /* Comment card scales with the player instead of remaining a narrow 1500px column. */
  body.is-watch:not(.is-together) #episodeComments {
    margin-top: 35px !important; padding: 32px !important;
    border-radius: 28px !important;
  }
  body.is-watch:not(.is-together) #episodeComments > header { gap: 15px !important; }
  body.is-watch:not(.is-together) #episodeComments > header h2 { font-size: 29px !important; }
  body.is-watch:not(.is-together) #episodeComments > header span { font-size: 16px !important; padding: 8px 12px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-form { padding: 18px 22px !important; border-radius: 23px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-form textarea {
    min-height: 134px !important; font-size: 20px !important; line-height: 1.6 !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-submit { min-height: 54px !important; font-size: 18px !important; padding: 0 27px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-spoiler-toggle { width: 51px !important; height: 51px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-spoiler-toggle svg { width: 25px !important; height: 25px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment,
  body.is-watch:not(.is-together) #episodeComments .episode-comment__body { font-size: 20px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__content > header { font-size: 19px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__actions button { font-size: 17px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__avatar { width: 60px !important; height: 60px !important; }
}
}
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 3200px) {
  body.is-watch:not(.is-together) #watchPlayerPage:not([hidden]) {
    padding: 34px clamp(40px, 2.3vw, 100px) 95px !important;
    grid-template-columns: minmax(0, 2fr) minmax(820px, 1fr) !important;
    column-gap: 44px !important;
  }
  body.is-watch:not(.is-together) .ah-watch-heading__back {
    width: 76px !important; height: 76px !important; flex-basis: 76px !important;
  }
  body.is-watch:not(.is-together) .ah-watch-heading__back svg { width: 37px !important; height: 37px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading__copy h1 { font-size: 43px !important; }
  body.is-watch:not(.is-together) .ah-watch-heading__copy span { font-size: 23px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel { padding: 44px 39px !important; gap: 42px !important; border-radius: 32px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__section { gap: 25px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__title { font-size: 27px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__players { gap: 18px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__player { height: 79px !important; min-height: 79px !important; font-size: 24px !important; border-radius: 20px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__quick-list { gap: 12px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-row { grid-template-columns: 96px minmax(0,1fr) 96px !important; min-height: 106px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-label { font-size: 24px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-arrow { width: 96px !important; height: 106px !important; min-height: 106px !important; }
  body.is-watch:not(.is-together) #ahPlayerSidePanel .ah-player-sidepanel__action-arrow svg { width: 37px !important; height: 37px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-chip { min-height: 78px !important; padding: 0 31px !important; font-size: 24px !important; gap: 16px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .ah-watch-chip svg { width: 32px !important; height: 32px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .detail-votes { min-height: 78px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .detail-vote-button { min-height: 70px !important; font-size: 24px !important; }
  body.is-watch:not(.is-together) #ahWatchActions .detail-vote-button svg { width: 31px !important; height: 31px !important; }
  body.is-watch:not(.is-together) #episodeComments { margin-top: 48px !important; padding: 43px !important; border-radius: 35px !important; }
  body.is-watch:not(.is-together) #episodeComments > header h2 { font-size: 39px !important; }
  body.is-watch:not(.is-together) #episodeComments > header span { font-size: 22px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-form textarea { min-height: 180px !important; font-size: 26px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-submit { min-height: 70px !important; font-size: 24px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment-spoiler-toggle { width: 65px !important; height: 65px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment,
  body.is-watch:not(.is-together) #episodeComments .episode-comment__body { font-size: 26px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__content > header { font-size: 25px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__actions button { font-size: 23px !important; }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__avatar { width: 77px !important; height: 77px !important; }
}
}
/* ANIMEHUB_V99_NORMAL_WATCH_4K_END */


/* Voice-reactive soft contours. Fixed geometry: amplitude changes only
   transform/opacity, without relayout or a full-tile mask on every sample. */
body.is-together .together-member.is-speaking {
  border-color: rgba(255, 156, 105, .48) !important;
  box-shadow: 0 0 0 1px rgba(255, 156, 105, .12) !important;
}
body.is-together .together-member__wave {
  width: var(--voice-wave-size) !important;
  height: auto !important;
  border-radius: 42% 48% 44% 39% / 46% 40% 48% 42% !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  background: transparent !important;
  transform: translate(-50%, -50%) scale(.88) rotate(var(--voice-wave-angle)) !important;
  opacity: 0 !important;
  animation: none !important;
  transition: transform 110ms ease-out, opacity 160ms ease-out !important;
  filter: none !important;
  will-change: auto;
}
body.is-together .together-member__wave::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 156, 105, .16);
  animation: ah-voice-wave-orbit var(--voice-wave-period, 32s) linear infinite;
  animation-play-state: paused;
  pointer-events: none;
}
body.is-together .together-member.is-speaking .together-member__wave::before {
  animation-play-state: running;
}
@keyframes ah-voice-wave-orbit {
  to { transform: rotate(1turn); }
}
body.is-together .together-member__wave--inner {
  --voice-wave-size: 116%;
  --voice-wave-angle: -7deg;
  --voice-wave-period: 28s;
  --voice-wave-opacity: .82;
  --voice-wave-gain: .12;
}
body.is-together .together-member__wave--middle {
  --voice-wave-size: 126%;
  --voice-wave-angle: 12deg;
  --voice-wave-period: 37s;
  --voice-wave-opacity: .48;
  --voice-wave-gain: .16;
}
body.is-together .together-member__wave--outer {
  --voice-wave-size: 136%;
  --voice-wave-angle: -18deg;
  --voice-wave-period: 46s;
  --voice-wave-opacity: .24;
  --voice-wave-gain: .20;
}
body.is-together .together-member.is-speaking .together-member__wave {
  transform: translate(-50%, -50%) scale(calc(.94 + var(--voice-level) * var(--voice-wave-gain))) rotate(var(--voice-wave-angle)) !important;
  opacity: var(--voice-wave-opacity) !important;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  body.is-together .together-member__wave { transition: none !important; }
  body.is-together .together-member__wave::before { animation: none !important; }
  body.is-together .together-member.is-speaking .together-member__wave {
    transform: translate(-50%, -50%) rotate(var(--voice-wave-angle)) !important;
  }
}

/* 4K comments: the v98/99 rules enlarged only .episode-comment__avatar,
   leaving its 46px shell and 44px/40px CSS grid tracks unchanged.
   Scale shell, avatar and track TOGETHER to prevent image overflow and
   misaligned reply connectors. Do not touch mobile or ordinary laptops. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  body.is-watch:not(.is-together) #episodeComments .episode-comments-list .episode-comment:not(.is-reply) {
    grid-template-columns: 66px minmax(0, 1fr) !important;
    column-gap: 18px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comments-list .episode-comment.is-reply {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    column-gap: 17px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment:not(.is-reply) > .episode-comment__avatar-shell {
    width: 60px !important; height: 60px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment.is-reply > .episode-comment__avatar-shell {
    width: 52px !important; height: 52px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment:not(.is-reply) > .episode-comment__avatar-shell > .episode-comment__avatar {
    display: block !important; width: 60px !important; height: 60px !important;
    max-width: 100% !important; max-height: 100% !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment.is-reply > .episode-comment__avatar-shell > .episode-comment__avatar {
    display: block !important; width: 52px !important; height: 52px !important;
    max-width: 100% !important; max-height: 100% !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__avatar-shell .premium-crown {
    width: 21px !important; height: 21px !important;
  }
}
}
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 3200px) {
  body.is-watch:not(.is-together) #episodeComments .episode-comments-list .episode-comment:not(.is-reply) {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    column-gap: 23px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comments-list .episode-comment.is-reply {
    grid-template-columns: 70px minmax(0, 1fr) !important;
    column-gap: 22px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment:not(.is-reply) > .episode-comment__avatar-shell {
    width: 77px !important; height: 77px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment.is-reply > .episode-comment__avatar-shell {
    width: 65px !important; height: 65px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment:not(.is-reply) > .episode-comment__avatar-shell > .episode-comment__avatar {
    width: 77px !important; height: 77px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment.is-reply > .episode-comment__avatar-shell > .episode-comment__avatar {
    width: 65px !important; height: 65px !important;
  }
  body.is-watch:not(.is-together) #episodeComments .episode-comment__avatar-shell .premium-crown {
    width: 27px !important; height: 27px !important;
  }
}
}
/* ANIMEHUB_V100_END */


/* ANIMEHUB_V101 — align premium avatar image within its circular frame at 4K.
   The 4px frame inset must NOT be added to the full-size image: that shifts
   the image 4px down/right and exposes a dark crescent under the outline. */
@supports not (zoom: calc(100vw / 1536px)) {
@media (min-width: 2200px) {
  html body.is-watch:not(.is-together) #episodeComments .episode-comment >
  .episode-comment__avatar-shell.ah-public-avatar-frame-v35 > img.episode-comment__avatar {
    position: absolute !important;
    inset: 4px !important;
    display: block !important;
    box-sizing: border-box !important;
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
  }
}
}
/* ANIMEHUB_V101_END */

/* Exact desktop watch proportions: 3840 / 2.5 Windows scale / 1 browser zoom = 1536.
   Browser/system scaling is already reflected in the CSS viewport width. */
@supports (zoom: calc(100vw / 1536px)) {
  @media (min-width: 1537px) and (hover: hover) and (pointer: fine) {
    html.ah-watch-preboot,
    html.ah-together-preboot,
    html:has(body.is-watch) {
      --ah-watch-scale: calc(100vw / 1536px);
      zoom: var(--ah-watch-scale);
    }
    /* vw/vh are unzoomed viewport units; keep them in the reference coordinate system. */
    body.is-watch:not(.is-together) #watchPlayerPage {
      padding-inline: calc(1536px * .022);
    }
    body.is-watch .ah-watch-heading__copy h1 {
      font-size: calc(1536px * .0155);
    }
    body.is-watch .ah-player-ambient-page {
      inset: calc(-3vmax / var(--ah-watch-scale)) !important;
      width: calc((100vw + 6vmax) / var(--ah-watch-scale)) !important;
      height: calc((100vh + 6vmax) / var(--ah-watch-scale)) !important;
    }
    body.is-watch .ah-player-select__menu { max-height: min(330px, calc(55vh / var(--ah-watch-scale))); }
    body.is-watch .ah-player-settings__options { max-height: min(310px, calc(55vh / var(--ah-watch-scale))); }
    body.is-watch .together-dialog { max-height: min(calc(75vh / var(--ah-watch-scale)), 620px); }
    body.is-watch .together-context-menu__reactions.is-expanded > .together-context-menu__all {
      max-height: min(300px, calc(44vh / var(--ah-watch-scale)));
    }
  }
}
