body.is-watch #detailPage.detail-page {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  background: #030405 !important;
}

/* Final header geometry: protect the wordmark from older layout overrides. */
@media (min-width: 1381px) {
  .topbar,
  body.is-detail .topbar {
    grid-template-columns: minmax(230px, max-content) minmax(430px, 1fr) minmax(340px, 640px) max-content !important;
    column-gap: clamp(24px, 2.2vw, 44px) !important;
  }
  .topbar .logo { min-width: 230px !important; padding-left: 0 !important; }
  .topbar .header-nav { min-width: 0 !important; }
}

.watch-player-page {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 22px clamp(14px, 2.2vw, 42px) 56px;
}

.ah-player-sourcebar {
  display: flex;
  width: min(100%, 1500px, calc((100svh - 180px) * 16 / 9));
  align-items: stretch;
  gap: 10px;
  margin: 0 auto 12px;
}

.ah-player-source,
.ah-player-telegram {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  color: #e9eaed;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.ah-player-source {
  flex: 0 0 98px;
  background: #0d0f13;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.ah-player-source:hover { border-color: rgba(255, 255, 255, .24); background: #13161b; color: #fff; }
.ah-player-source.is-active { border-color: rgba(255, 255, 255, .34); background: #171a20; color: #fff; }

.ah-player-telegram {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 0 18px;
  border-color: rgba(73, 168, 210, .42);
  background: linear-gradient(100deg, #176d94, #218db8);
  color: #fff;
  box-shadow: 0 0 0 rgba(49, 181, 238, 0);
  animation: ah-telegram-double-pulse 1s ease-in-out infinite;
}
.ah-player-telegram svg { width: 21px; height: 21px; flex: 0 0 auto; fill: currentColor; }
.ah-player-telegram:hover { border-color: rgba(105, 199, 238, .62); background: linear-gradient(100deg, #1b789f, #2799c3); }

@keyframes ah-telegram-double-pulse {
  0%, 25%, 50%, 75%, 100% { box-shadow: 0 0 0 rgba(49, 181, 238, 0); filter: brightness(1); }
  12.5%, 62.5% { box-shadow: 0 0 18px rgba(49, 181, 238, .42); filter: brightness(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .ah-player-telegram { animation: none; }
}

.ah-player {
  --player-accent: var(--orange, #ff9367);
  --player-accent-soft: var(--orange-2, #ffc4a8);
  position: relative;
  width: min(100%, 1500px, calc((100svh - 180px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #030405;
  color: #fff;
  outline: none;
  isolation: isolate;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  user-select: none;
}

.ah-player__video,
.ah-player__upscale,
.ah-player__embed,
.ah-player__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ah-player__video { z-index: 1; object-fit: contain; background: #000; }
.ah-player__upscale { z-index: 1; display: block; object-fit: contain; background: #000; pointer-events: none; }
.ah-player__upscale[hidden] { display: none; }
.ah-player.is-upscaled .ah-player__video { opacity: 0; }
.ah-player__embed { z-index: 1; border: 0; background: #000; }
.ah-player__embed[hidden] { display: none; }
.ah-player__backdrop { z-index: 2; background: #090b0e center / cover no-repeat; transition: opacity .25s ease; }
.ah-player.has-video .ah-player__backdrop { opacity: 0; pointer-events: none; }
.ah-player.is-movie [data-player-select="season"],
.ah-player.is-movie [data-player-select="episode"],
.watch-player-page.is-movie .ah-episode-rail-wrap { display: none; }
.ah-player.is-kodik [data-player-select="season"],
.ah-player.is-kodik [data-player-select="episode"] { display: none; }

.ah-player button { font: inherit; color: inherit; }

.ah-player__upscale-notice {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: 84px;
  max-width: min(460px, calc(100% - 36px));
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(12, 13, 16, .9);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}
.ah-player__upscale-notice[hidden] { display: none; }

.ah-player__shade { position: absolute; left: 0; right: 0; z-index: 3; pointer-events: none; transition: opacity .22s ease; }
.ah-player__shade--top { top: 0; height: 108px; background: linear-gradient(rgba(3, 4, 5, .86), rgba(3, 4, 5, .36) 58%, transparent); }
.ah-player__shade--bottom { bottom: 0; height: 160px; background: linear-gradient(transparent, rgba(3, 4, 5, .52) 35%, rgba(3, 4, 5, .96)); }

.ah-player__top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 15px 18px;
  transition: opacity .22s ease;
}

.ah-player__title { margin: 8px 2px 0 auto; max-width: 34%; overflow: hidden; color: rgba(255, 255, 255, .62); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ah-player-select { position: relative; }
.ah-player-select > button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  max-width: 220px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.ah-player-select > button:hover,
.ah-player-select.is-open > button { background: rgba(255, 255, 255, .08); }
.ah-player-select.is-open > button { color: var(--player-accent); }
.ah-player-select small { color: rgba(255, 255, 255, .45); font-size: 10px; font-weight: 800; letter-spacing: .45px; text-transform: uppercase; }
.ah-player-select span { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.ah-player-select b { color: rgba(255, 255, 255, .44); font-size: 13px; transition: transform .15s ease; }
.ah-player-select.is-open b { transform: rotate(180deg); }

.ah-player-select__menu,
.ah-player-quality__menu,
.ah-player-settings__menu {
  position: absolute;
  z-index: 20;
  min-width: 190px;
  max-height: min(330px, 55vh);
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(12, 13, 16, .97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .14s ease, transform .14s ease;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  scrollbar-width: thin;
}
.ah-player-select__menu { top: calc(100% + 5px); left: 0; }
.ah-player-select.is-open .ah-player-select__menu,
.ah-player-quality.is-open .ah-player-quality__menu,
.ah-player-settings.is-open .ah-player-settings__menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ah-player-select__menu button,
.ah-player-quality__menu button,
.ah-player-settings__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.ah-player-quality__menu button:disabled { opacity: .35; cursor: not-allowed; }
.ah-player-quality__up-arrow { margin-left: auto; color: var(--player-accent); font-size: 16px; line-height: 1; }
.ah-player-select__menu button:hover,
.ah-player-quality__menu button:hover,
.ah-player-settings__menu button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.ah-player-select__menu button.is-active,
.ah-player-quality__menu button.is-active,
.ah-player-settings__menu button.is-active { color: var(--player-accent); }
.ah-player-select__menu button > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-player-voice-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .25px;
}

.ah-player__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease, transform .16s ease;
}
.ah-player__center svg { width: 34px; height: 38px; overflow: visible; fill: currentColor; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)); }
.ah-player__center:hover { background: transparent; color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.ah-player__center[hidden] { display: none; }
.ah-player:has(.ah-player__loading:not([hidden])) .ah-player__center,
.ah-player:has(.ah-player__error:not([hidden])) .ah-player__center { display: none; }
.ah-player.is-playing .ah-player__center { opacity: 0; pointer-events: none; }

.ah-player__seek-flash { position: absolute; top: 50%; z-index: 8; display: grid; width: 92px; height: 92px; place-items: center; border-radius: 50%; background: rgba(8, 9, 11, .58); color: #fff; font-size: 14px; font-weight: 900; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.72); }
.ah-player__seek-flash.is-left { left: 27%; }
.ah-player__seek-flash.is-right { left: 73%; }
.ah-player__seek-flash.is-visible { animation: ah-player-seek-flash .52s ease-out; }
@keyframes ah-player-seek-flash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7); } 28% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }

.ah-player__loading,
.ah-player__error { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 13px; background: rgba(4, 5, 7, .78); text-align: center; }
.ah-player__loading[hidden], .ah-player__error[hidden] { display: none; }
.ah-player__loading span { width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .13); border-top-color: var(--player-accent); border-radius: 50%; animation: ah-player-spin .72s linear infinite; }
.ah-player__loading p { color: rgba(255, 255, 255, .58); font-size: 13px; font-weight: 700; }
.ah-player__error strong { font-size: 18px; }
.ah-player__error span { max-width: 520px; color: rgba(255, 255, 255, .55); }
.ah-player__error button { padding: 10px 16px; border: 0; border-radius: 8px; background: #fff; color: #090a0c; cursor: pointer; font-weight: 800; }
@keyframes ah-player-spin { to { transform: rotate(360deg); } }

.ah-player__skip { position: absolute; right: 20px; bottom: 94px; z-index: 8; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(8, 9, 11, .82); cursor: pointer; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: opacity .2s ease, background .14s ease, color .14s ease; }
.ah-player__skip[hidden] { display: none; }
.ah-player.is-playing .ah-player__skip { opacity: 1; pointer-events: auto; }
.ah-player__skip:hover { background: #fff; color: #08090b; }

.ah-player__controls { position: absolute; inset: auto 0 0; z-index: 9; padding: 42px 22px 14px; transition: opacity .22s ease; }
.ah-player__seek { position: relative; display: flex; height: 26px; align-items: center; margin-bottom: 4px; cursor: pointer; touch-action: none; }
.ah-player__seek-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: height .12s ease; }
.ah-player__seek:hover .ah-player__seek-track { height: 6px; }
.ah-player__seek-track i,
.ah-player__seek-track b { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; }
.ah-player__seek-track i { background: rgba(255, 255, 255, .22); }
.ah-player__seek-track b { background: linear-gradient(90deg, var(--player-accent), var(--player-accent-soft)); }
.ah-player__seek-track span { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: none; transform: translate(-50%, -50%) scale(.75); transition: transform .12s ease; }
.ah-player__seek:hover .ah-player__seek-track span { transform: translate(-50%, -50%) scale(1); }
.ah-player__seek em { position: absolute; bottom: calc(100% + 3px); left: 0; padding: 5px 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: #0b0c0f; font-size: 11px; font-style: normal; font-weight: 800; opacity: 0; pointer-events: none; transform: translateX(-50%); }
.ah-player__seek:hover em { opacity: 1; }
.ah-player__row { display: flex; align-items: center; gap: 12px; }
.ah-player__icon,
.ah-player-quality > button { display: grid; min-width: 38px; height: 38px; place-items: center; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 800; transition: color .14s ease, background .14s ease; }
.ah-player__icon:hover,
.ah-player-quality > button:hover { background: rgba(255, 255, 255, .08); color: var(--player-accent); }
.ah-player__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ah-player__time { display: flex; gap: 6px; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.ah-player__time i { color: rgba(255, 255, 255, .42); font-style: normal; }
.ah-player__spacer { flex: 1; }
.ah-player__volume { width: 78px; accent-color: var(--player-accent); cursor: pointer; }
.ah-player-quality { position: relative; }
.ah-player-quality__menu { right: 0; bottom: calc(100% + 7px); min-width: 150px; transform: translateY(5px); }
.ah-player-settings { position: relative; }
.ah-player-settings__menu { right: 0; bottom: calc(100% + 7px); min-width: 142px; transform: translateY(5px); }
.ah-player-settings__menu > strong { display: block; padding: 7px 11px 5px; color: rgba(255, 255, 255, .42); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ah-player-settings__menu button::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.ah-player-settings__menu button.is-active::after { background: var(--player-accent); }

.ah-player.is-playing.is-idle .ah-player__top,
.ah-player.is-playing.is-idle .ah-player__controls,
.ah-player.is-playing.is-idle .ah-player__shade,
.ah-player.is-playing.is-idle .ah-player__skip { opacity: 0; pointer-events: none; }

.ah-player.is-embed .ah-player__video,
.ah-player.is-embed .ah-player__backdrop,
.ah-player.is-embed .ah-player__center,
.ah-player.is-embed .ah-player__skip,
.ah-player.is-embed .ah-player__controls,
.ah-player.is-embed .ah-player__top,
.ah-player.is-embed .ah-player__shade--top,
.ah-player.is-embed .ah-player__shade--bottom {
  display: none !important;
}

.ah-episode-rail-wrap { display: grid; width: min(100%, 1500px, calc((100svh - 180px) * 16 / 9)); grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 10px; align-items: center; margin: 16px auto 0; }
.ah-episode-rail { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-behavior: smooth; }
.ah-episode-rail::-webkit-scrollbar { display: none; }
.ah-episode-card,
.ah-episode-arrow { flex: 0 0 auto; min-height: 50px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 9px; background: #131419; color: rgba(255, 255, 255, .68); cursor: pointer; font-weight: 800; transition: background .14s ease, border-color .14s ease, color .14s ease; }
.ah-episode-card { min-width: 116px; padding: 0 18px; }
.ah-episode-arrow { width: 42px; font-size: 25px; }
.ah-episode-card:hover,
.ah-episode-arrow:hover { background: #1a1b20; color: #fff; }
.ah-episode-card.is-active { border-color: var(--orange, #ff9367); background: rgba(255, 147, 103, .1); color: #fff; }

.episode-comments {
  width: min(100%, 1500px, calc((100svh - 180px) * 16 / 9));
  margin: 56px auto 0;
  color: #f5f5f6;
}
.episode-comments > header { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.episode-comments > header h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
.episode-comments > header span { min-width: 28px; padding: 5px 8px; border-radius: 999px; background: #202127; color: #a7a9b0; text-align: center; font-size: 12px; font-weight: 850; }
.episode-comment-form { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; margin-top: 22px; }
.episode-comment-form > img,
.episode-comment__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #24262c; }
.episode-comment-form textarea,
.episode-reply-form textarea { width: 100%; resize: vertical; padding: 14px 16px; border: 1px solid #30323a; border-radius: 12px; outline: 0; background: #15161a; color: #f6f6f7; font: inherit; line-height: 1.5; }
.episode-comment-form textarea:focus,
.episode-reply-form textarea:focus { border-color: rgba(255,145,102,.65); box-shadow: 0 0 0 3px rgba(255,145,102,.08); }
.episode-comment-form.is-replying textarea { border-color: rgba(255,145,102,.72); box-shadow: 0 0 0 3px rgba(255,145,102,.08); }
.episode-comment-form.is-replying footer span { color: #ffab87; }
.episode-comment-form footer,
.episode-reply-form > div { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 9px; }
.episode-comment-form footer span { margin-right: auto; color: #777a83; font-size: 12px; }
.episode-comment-form footer button,
.episode-reply-form button,
.episode-comments-more { min-height: 38px; padding: 0 15px; border: 1px solid #373942; border-radius: 9px; background: #1c1e23; color: #dddfe4; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.episode-comment-form footer button { border-color: transparent; background: #ff9367; color: #17100d; }
.episode-comment-form button:hover,
.episode-reply-form button:hover,
.episode-comments-more:hover { border-color: rgba(255,145,102,.62); color: #ffb18f; }
.episode-comment-form footer button:hover { color: #17100d; background: #ffad88; }
.episode-comment-form button:disabled,
.episode-comments-more:disabled { opacity: .55; cursor: wait; }
.episode-comments-list { margin-top: 28px; }
.episode-comments-empty { margin: 0; padding: 28px 0; color: #7f828a; }
.episode-comment { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.075); }
.episode-comment__content { min-width: 0; }
.episode-comment__content > header { display: flex; align-items: center; gap: 10px; }
.episode-comment__content > header button { padding: 0; border: 0; background: none; color: #f0f1f3; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.episode-comment__content > header button:hover { color: #ffad88; }
.episode-comment__content > header time { color: #73767f; font-size: 11px; }
.episode-comment__content > p { margin: 11px 0 0; color: #d2d4d9; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.episode-comment__actions { display: flex; align-items: center; gap: 5px; margin-top: 12px; }
.episode-comment__actions button { min-width: 30px; min-height: 28px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: #858890; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; }
.episode-comment__actions button:hover { background: rgba(255,255,255,.055); color: #f1f1f2; }
.episode-comment__actions button.is-active { background: rgba(255,145,102,.12); color: #ff9e76; }
.episode-comment__actions [data-comment-vote="up"]:hover,
.episode-comment__actions [data-comment-vote="up"].is-active { background: rgba(75, 201, 111, .13); color: #65dc88; }
.episode-comment__actions [data-comment-vote="down"]:hover,
.episode-comment__actions [data-comment-vote="down"].is-active { background: rgba(241, 88, 88, .13); color: #ff7373; }
.episode-comment__actions [data-comment-score] { min-width: 24px; color: #b3b5bc; text-align: center; font-size: 12px; font-weight: 850; }
.episode-comment__actions .episode-comment__reply { margin-left: 9px; }
.episode-comment__actions .episode-comment__delete { margin-left: auto; color: #e45f5f; }
.episode-comment__actions .episode-comment__delete:hover { background: rgba(241, 88, 88, .12); color: #ff7b7b; }
.episode-comment-replies { margin-top: 16px; padding-left: 18px; border-left: 1px solid rgba(255,145,102,.28); }
.episode-comment.is-reply { grid-template-columns: 34px minmax(0,1fr); padding: 16px 0; border-bottom: 0; }
.episode-comment.is-reply .episode-comment__avatar { width: 34px; height: 34px; }
.episode-reply-form { margin-top: 14px; }
.episode-comments-more { display: block; min-width: 150px; margin: 24px auto 0; }
.episode-comments-more[hidden] { display: none; }

/* Compact message bar: attachment mark, avatar and one-line editor. */
.episode-comment-form {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, 1120px);
  min-height: 68px;
  margin: 22px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: #08090b;
  transition: border-color .16s ease, background .16s ease;
}
.episode-comment-form:focus-within,
.episode-comment-form.is-replying { border-color: rgba(255, 255, 255, .28); background: #0b0c0f; }
.episode-comment-form > img { width: 42px; height: 42px; }
.episode-comment-form__editor { position: relative; min-width: 0; background: transparent !important; }
.episode-comment-form .episode-comment-form__editor textarea {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 96px;
  padding: 12px 50px 12px 0;
  overflow-y: auto;
  resize: none;
  appearance: none;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}
.episode-comment-form .episode-comment-form__editor textarea:focus { border: 0; box-shadow: none; }
.episode-comment-form .episode-comment-form__editor textarea::placeholder { color: #8b8e94; opacity: 1; }
.episode-comment-form .episode-comment-form__editor footer { position: absolute; inset: 0 0 0 auto; display: flex; align-items: center; margin: 0; }
.episode-comment-form .episode-comment-form__editor footer span {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: max-content;
  max-width: min(520px, 72vw);
  overflow: hidden;
  color: #a3a5aa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-comment-form .episode-comment-form__editor footer button {
  position: relative;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  color: transparent;
  border-color: rgba(255, 255, 255, .18);
  background: #f2f2f2;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.episode-comment-form .episode-comment-form__editor footer button:hover { border-color: #fff; background: #fff; }
.episode-comment-form.is-replying .episode-comment-form__editor footer span { color: #d5d6d9; }
.episode-comment-form .episode-comment-form__editor footer button::after {
  content: "↑";
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  color: #17100d;
  font-size: 18px;
  line-height: 1;
}
.episode-comment-form:focus-within .episode-comment-form__editor footer button,
.episode-comment-form.is-replying .episode-comment-form__editor footer button { opacity: 1; transform: translateX(0); pointer-events: auto; }

@media (max-width: 900px) {
  .watch-player-page { padding: 18px 12px 42px; }
  .ah-player { width: min(100%, calc((100svh - 120px) * 16 / 9)); border-radius: 10px; }
  .ah-episode-rail-wrap { width: min(100%, calc((100svh - 120px) * 16 / 9)); }
  .episode-comments { width: min(100%, calc((100svh - 120px) * 16 / 9)); }
  .ah-player__top { gap: 0; padding: 9px; }
  .ah-player-select small, .ah-player__title { display: none; }
  .ah-player-select > button { max-width: 150px; min-height: 38px; padding: 5px 8px; }
  .ah-player__controls { padding: 32px 12px 8px; }
  .ah-player__volume { display: none; }
  .ah-player__center { width: 62px; height: 62px; }
  .episode-comment-form { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; min-height: 70px; padding: 9px 11px; }
  .episode-comment-form > img { width: 42px; height: 42px; }
  .episode-comment-form .episode-comment-form__editor textarea { height: 50px; min-height: 50px; padding-right: 52px; font-size: 15px; }
  .episode-comment-form .episode-comment-form__editor footer button { position: relative; width: 42px; min-width: 42px; padding: 0; overflow: hidden; color: transparent; }
  .episode-comment-form .episode-comment-form__editor footer button::after { content: "↑"; display: grid; position: absolute; inset: 0; place-items: center; color: #17100d; font-size: 18px; }
}

@media (max-width: 620px) {
  .ah-player-sourcebar { gap: 6px; margin-bottom: 8px; }
  .ah-player-source { flex-basis: 76px; }
  .ah-player-source, .ah-player-telegram { min-height: 38px; font-size: 11px; }
  .ah-player-telegram { gap: 6px; padding-inline: 10px; }
  .ah-player-telegram svg { width: 18px; height: 18px; }
  .ah-player__top { overflow-x: auto; }
  .ah-player-select > button { max-width: 118px; }
  .ah-player-select span { font-size: 11px; }
  .ah-player__row { gap: 4px; }
  .ah-player__icon, .ah-player-quality > button { min-width: 32px; height: 32px; padding-inline: 6px; }
  .ah-player__icon svg { width: 19px; height: 19px; }
  #ahPlayerPip { display: none; }
  .ah-player__skip { right: 10px; bottom: 70px; }
  .ah-episode-rail-wrap { grid-template-columns: minmax(0, 1fr); }
  .ah-episode-arrow { display: none; }
  .episode-comments { margin-top: 38px; }
  .episode-comment-form { grid-template-columns: 34px minmax(0,1fr); gap: 8px; }
  .episode-comment-form > img { width: 34px; height: 34px; }
  .episode-comment { grid-template-columns: 50px minmax(0,1fr); column-gap: 14px; }
  .episode-comment__avatar { width: 36px; height: 36px; }
  .episode-comment.is-reply { grid-template-columns: 40px minmax(0,1fr); column-gap: 12px; }
  .episode-comment__content > header time { display: none; }
  .episode-comment-replies { padding-left: 10px; }
}
