

body.media-expand-open {
  overflow: hidden;
}

.media-expand-portal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.media-expand-portal:not([hidden]) {
  visibility: visible;
}

.media-expand-portal.is-open {
  opacity: 1;
}

.media-expand-portal__host {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.media-expand-portal__host .live-player,
.media-expand-portal__host .podcast-player {
  flex: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.media-expand-portal__host .live-player__frame,
.media-expand-portal__host .podcast-player__frame {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}

.media-expand-portal__host .live-player__viewport {
  flex: 1;
  min-height: 0;
  border-radius: 0;
}

.media-expand-portal__host .podcast-player__stage {
  flex: 1;
  min-height: 0;
}

.media-expand-portal__host .live-player__glow,
.media-expand-portal__host .podcast-player__glow,
.media-expand-portal__host .live-player__mini-chrome {
  display: none !important;
}

.media-expand-portal__host .live-player.is-cinema .live-player__video,
.media-expand-portal__host .land-vplayer__video {
  object-fit: contain;
}

.live-player--has-media,
.live-player.is-cinema {
  transform: none !important;
}

.live-player.is-cinema .live-player__video {
  object-fit: contain;
}

.player-social {
  position: relative;
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.live-player__controls {
  position: relative;
  z-index: 11;
}

.player-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.player-social__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.player-social__btn.is-active {
  background: rgba(175, 26, 21, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.player-social__btn em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.9;
}

.player-social__btn--expand {
  margin-inline-start: auto;
}

.player-social__hint {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.player-social__hint.is-success {
  color: #86efac;
}

.player-comments {
  position: absolute;
  inset: 0;
  z-index: 14;
  display: flex;
  flex-direction: column;
  background: rgba(10, 12, 18, 0.97);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
  pointer-events: none;
}

.live-player.is-comments-open .player-comments,
.podcast-player.is-comments-open .player-comments {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.live-player__frame,
.podcast-player__frame {
  position: relative;
}

.player-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.player-comments__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-comments__title-wrap strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.player-comments__count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  background: rgba(175, 26, 21, 0.85);
}

.player-comments__close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.player-comments__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.player-comments__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
}

.player-comments__loading {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}

.player-comments__loading[hidden],
.player-comments__empty[hidden],
.player-comments__list[hidden] {
  display: none;
}

.player-comments__list {
  list-style: none;
  margin: 0;
  padding: 0 14px;
}

.player-comments__item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8eaef;
}

.player-comments__item:last-child {
  border-bottom: none;
}

.player-comments__item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.player-comments__avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #af1a15, #d48080);
}

.player-comments__meta strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
}

.player-comments__meta time {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.player-comments__text {
  margin: 0;
  padding-inline-start: 44px;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.player-comments__empty {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.player-comments__composer {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.player-comments__guest,
.player-comments__form {
  padding: 14px 16px 16px;
}

.player-comments__guest p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.55;
}

.player-comments__signed-as {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.player-comments__form textarea {
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

.player-comments__form textarea:focus {
  outline: none;
  border-color: rgba(175, 26, 21, 0.55);
  box-shadow: 0 0 0 3px rgba(175, 26, 21, 0.18);
}

.player-comments__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.player-comments__hint {
  margin: 0;
  flex: 1;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.player-comments__hint.is-success {
  color: #86efac;
}

.player-comments__hint.is-error {
  color: #fca5a5;
}

.live-player.is-comments-open .live-player__big-play,
.podcast-player.is-comments-open .podcast-player__big-play {
  pointer-events: none;
  opacity: 0.35;
}

.player-collapse {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player-collapse:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.04);
}

.player-collapse[hidden] {
  display: none;
}

.videos-showcase .live-player .player-social,
.podcasts-showcase .podcast-player .player-social {
  opacity: 0.92;
}

.live-player--has-media .live-player__video,
.podcast-player--has-media .podcast-player__audio {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media (max-width: 640px) {
  .player-social__btn span {
    display: none;
  }

  .player-social__btn {
    padding: 8px 10px;
  }

  .player-comments__text {
    padding-inline-start: 0;
    margin-top: 4px;
  }

  .player-comments__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .player-comments__foot .btn {
    width: 100%;
    justify-content: center;
  }
}
