/* Phase B â€” watch page player (migrated from motchill-platform.css) */
/* Load only on episode page via episode.blade.php */

/* Ã¢â€â‚¬Ã¢â€â‚¬ Episode watch page (aligned with detail layout) Ã¢â€â‚¬Ã¢â€â‚¬ */
.motchill-page-episode .mtc-episode-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.motchill-page-episode .mtc-episode-player__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mtc-text-primary, #fff);
}

/* Override legacy full-width centering from motchill-modern.css */
.motchill-page-episode .mtc-episode-player-wrap #main-player {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

/* Server bar Ã¢â‚¬â€ below player wrap */
.motchill-page-episode .mtc-domain-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 8px 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.02));
}

.motchill-page-episode .mtc-domain-bar__save {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.motchill-page-episode .mtc-domain-bar__domain {
  color: var(--accent-hot);
  font-weight: 700;
}

.motchill-page-episode .mtc-domain-bar__sep {
  color: #fff;
  font-size: 10px;
  user-select: none;
}

.motchill-page-episode .mtc-domain-bar__hint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.motchill-page-episode .mtc-domain-bar__search {
  color: var(--text-primary);
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 767px) {
    .mtc-domain-bar__sep { display: none};
  .motchill-page-episode .mtc-domain-bar {
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
  }
}

.motchill-page-episode .mtc-episode-server-bar {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-top: 0;
  padding: 8px 0 0;
  border: none;
  border-radius: 0;
  background: none;
}

.motchill-page-episode .mtc-episode-server-bar__list,
.motchill-page-episode #ploption.mtc-episode-server-bar__list {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible;
  margin: 0 !important;
}

.motchill-page-episode .mtc-episode-server-bar__list .streaming-server,
.motchill-page-episode .mtc-episode-server-bar__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--detail-border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--detail-surface-2) !important;
  color: var(--detail-text) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.motchill-page-episode .mtc-episode-server-bar__list .streaming-server:hover,
.motchill-page-episode .mtc-episode-server-bar__btn:hover {
  background: var(--detail-surface-hover) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--detail-text) !important;
  transform: none !important;
}

.motchill-page-episode .mtc-episode-server-bar__list .streaming-server.active,
.motchill-page-episode .mtc-episode-server-bar__btn.active {
  background: var(--ui-primary-soft) !important;
  border-color: var(--ui-primary-border) !important;
  color: var(--detail-accent) !important;
}

.motchill-page-episode .mtc-episode-language-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.motchill-page-episode .mtc-detail-episodes__head-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.motchill-page-episode .mtc-detail-episodes__head-divider {
  color: var(--detail-border);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.motchill-page-episode .mtc-detail-episodes__head .mtc-episode-language-bar {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
  justify-content: flex-start;
  gap: 0;
}

.motchill-page-episode .mtc-detail-episodes__head .mtc-episode-language-btn {
  min-height: unset;
  padding: 2px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--detail-text-muted);
}

.motchill-page-episode .mtc-detail-episodes__head .mtc-episode-language-btn:hover {
  background: none;
  border-color: transparent;
  color: var(--detail-text);
}

.motchill-page-episode .mtc-detail-episodes__head .mtc-episode-language-btn.is-active {
  background: none;
  border-color: transparent;
  color: var(--detail-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

@media (max-width: 767px) {
  .motchill-page-episode .mtc-detail-episodes__head {
    flex-wrap: wrap;
  }

  .motchill-page-episode .mtc-detail-episodes__head-left {
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .motchill-page-episode .mtc-detail-episodes__head .mtc-episode-language-btn {
    padding: 2px 8px;
    font-size: 11px;
  }
}

.motchill-page-episode .mtc-episode-language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--detail-border);
  border-radius: var(--radius-sm);
  background: var(--detail-surface-2);
  color: var(--detail-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.motchill-page-episode .mtc-episode-language-btn:hover {
  background: var(--detail-surface-hover);
  border-color: var(--ui-primary-border);
  color: var(--detail-text);
}

.motchill-page-episode .mtc-episode-language-btn.is-active {
  background: var(--ui-primary-soft);
  border-color: var(--ui-primary-border);
  color: var(--detail-accent);
}

.motchill-page-episode .mtc-episode-notice {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--detail-border);
  background: var(--detail-surface-2);
  color: var(--detail-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.motchill-page-episode .mtc-episode-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.motchill-page-episode .mtc-episode-heading__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
}

.motchill-page-episode .mtc-episode-heading__center {
  flex: 2 1 0;
  min-width: 0;
  text-align: center;
}

.motchill-page-episode .mtc-episode-heading__right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.motchill-page-episode .mtc-episode-heading__chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.motchill-page-episode .mtc-episode-heading__chips .mtc-detail-chip {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--detail-border-strong);
  background: var(--detail-surface-2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.motchill-page-episode .mtc-episode-heading__chips .mtc-detail-chip--muted {
  border-color: var(--detail-border);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.motchill-page-episode .mtc-episode-heading__title {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.motchill-page-episode .mtc-episode-heading__meta {
  margin: 4px 0 0;
  color: var(--detail-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.motchill-page-episode .mtc-episode-heading__back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--detail-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.motchill-page-episode .mtc-episode-heading__back:hover {
  color: var(--accent-hot-light);
  text-decoration: underline;
}

.motchill-page-episode #main-player.mtc-episode-player {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--detail-border);
  background: var(--detail-surface);
  box-shadow: var(--shadow-soft);
}

.motchill-page-episode .mtc-episode-player__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.motchill-page-episode #player-loaded {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-top: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background: #000;
}

.motchill-page-episode #player-loaded > div,
.motchill-page-episode #player-loaded iframe,
.motchill-page-episode #player-loaded .jwplayer {
  width: 100% !important;
  height: 100% !important;
}

.motchill-page-episode #player-click-layer,
.motchill-page-episode .motchill-player-start {
  position: absolute;
  inset: 0;
}

.motchill-page-episode .mtc-episode-player__stage #player-click-layer,
.motchill-page-episode .mtc-episode-player__stage #player-loaded,
.motchill-page-episode .mtc-episode-player__stage .motchill-player-start {
  position: absolute;
  inset: 0;
}

.motchill-page-episode #player-click-layer {
  z-index: 10;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.18);
}

.motchill-page-episode .motchill-player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.motchill-page-episode .motchill-player-start .motchill-card-play__icon {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.48));
}

.motchill-page-episode .motchill-player-start__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-dark, #c47e12));
  color: #fff;
  box-shadow: 0 12px 32px rgba(var(--accent-hot-rgb), 0.5), 0 0 0 8px rgba(var(--accent-hot-rgb), 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.motchill-page-episode #player-click-layer:hover .motchill-player-start__btn,
.motchill-page-episode #player-click-layer:focus-visible .motchill-player-start__btn {
  transform: scale(1.08);
  box-shadow: 0 16px 40px rgba(var(--accent-hot-rgb), 0.6), 0 0 0 10px rgba(var(--accent-hot-rgb), 0.22);
}

.motchill-page-episode .motchill-player-start__btn svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}

.motchill-page-episode .mtc-player-resume {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  box-sizing: border-box;
}

.motchill-page-episode .mtc-player-resume.is-visible,
.motchill-page-episode .mtc-player-resume:not([hidden]) {
  display: flex;
}

.motchill-page-episode .mtc-player-resume__card {
  width: min(100%, 360px);
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--detail-border, rgba(255, 255, 255, 0.12));
  background: var(--detail-surface, rgba(17, 24, 33, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.motchill-page-episode .mtc-player-resume__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.motchill-page-episode .mtc-player-resume__text {
  margin: 0 0 14px;
  color: var(--detail-text-muted, rgba(255, 255, 255, 0.72));
  font-size: 13px;
  line-height: 1.5;
}

.motchill-page-episode .mtc-player-resume__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.motchill-page-episode .mtc-player-resume__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.motchill-page-episode .mtc-player-resume__btn--primary {
  border: 0;
  background: var(--accent-hot, #f5a524);
  color: #111;
}

.motchill-page-episode .mtc-player-resume__btn--primary:hover,
.motchill-page-episode .mtc-player-resume__btn--primary:focus-visible {
  background: var(--accent-hot-light, #f6b84a);
}

.motchill-page-episode .mtc-player-resume__btn--ghost {
  border: 1px solid var(--detail-border, rgba(255, 255, 255, 0.14));
  background: transparent;
  color: var(--detail-text-muted, rgba(255, 255, 255, 0.82));
}

.motchill-page-episode .mtc-player-resume__btn--ghost:hover,
.motchill-page-episode .mtc-player-resume__btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Control dock Ã¢â‚¬â€ below video */
.motchill-page-episode .mtc-player-dock {
  --mtc-player-dock-icon-size: 20px;
  --mtc-player-dock-nav-icon-size: 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-top: 1px solid var(--detail-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--detail-surface);
  box-sizing: border-box;
}

.motchill-page-episode .mtc-player-dock__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

/* Phim láº» / 1 táº­p: áº©n nav nhÆ°ng giá»¯ chá»— trÃªn desktop Ä‘á»ƒ dock actions khÃ´ng lá»‡ch */
.motchill-page-episode .mtc-player-dock__nav.is-single-episode {
  pointer-events: none;
}

@media (max-width: 991px) {
  .motchill-page-episode .mtc-player-dock__nav.is-single-episode {
    display: none;
  }
}

@media (min-width: 992px) {
  .motchill-page-episode .mtc-player-dock__nav.is-single-episode {
    visibility: hidden;
  }
}

.motchill-page-episode .mtc-player-dock__episode {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--detail-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.motchill-page-episode .mtc-player-dock__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
}

.motchill-page-episode .mtc-player-dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: none !important;
  border-radius: var(--radius-sm);
  background: transparent !important;
  color: var(--detail-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none !important;
  transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.motchill-page-episode .mtc-player-dock__btn:hover {
  background: var(--detail-surface-hover) !important;
  color: var(--detail-text) !important;
}

.motchill-page-episode .mtc-player-dock__btn.is-active,
.motchill-page-episode .mtc-player-dock__btn.motchill-favorite-btn.is-active {
  background: var(--ui-primary-soft) !important;
  color: var(--detail-accent) !important;
  border: none !important;
}

.motchill-page-episode .mtc-player-dock__btn.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.motchill-page-episode .mtc-player-dock__btn--nav {
  color: var(--detail-text);
  width: auto;
  min-width: 40px;
  padding: 0 8px;
}

.motchill-page-episode .mtc-player-dock__btn .common-action-button__icon {
  width: var(--mtc-player-dock-icon-size);
  height: var(--mtc-player-dock-icon-size);
  flex-shrink: 0;
}

.motchill-page-episode .mtc-player-dock__btn svg,
.motchill-page-episode .mtc-player-dock__btn .mtc-icon {
  width: var(--mtc-player-dock-icon-size) !important;
  height: var(--mtc-player-dock-icon-size) !important;
  flex-shrink: 0;
}

.motchill-page-episode .mtc-player-dock__nav .mtc-player-dock__btn--nav > svg {
  width: var(--mtc-player-dock-nav-icon-size) !important;
  height: var(--mtc-player-dock-nav-icon-size) !important;
  flex-shrink: 0;
}

.motchill-page-episode .mtc-player-dock__btn .mtc-icon svg {
  width: var(--mtc-player-dock-icon-size) !important;
  height: var(--mtc-player-dock-icon-size) !important;
  flex-shrink: 0;
}

.motchill-page-episode .mtc-player-dock__btn.motchill-favorite-btn.is-active .motchill-favorite-btn__label {
  color: var(--detail-accent) !important;
}

.motchill-page-episode .mtc-player-dock__btn.motchill-favorite-btn.is-active .mtc-icon--bookmark path {
  fill: var(--detail-accent);
  stroke: var(--detail-accent);
}

.motchill-page-episode .mtc-player-dock__icon-telegram {
  width: var(--mtc-player-dock-icon-size);
  height: var(--mtc-player-dock-icon-size);
}

@media (min-width: 992px) {
  .motchill-page-episode .mtc-player-dock {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
  }

  .motchill-page-episode .mtc-player-dock__nav {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
  }

  .motchill-page-episode .mtc-player-dock__actions {
    flex: 0 1 auto;
    width: auto;
    max-width: 52%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .motchill-page-episode .mtc-player-dock__actions::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 768px) {
  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn {
    width: auto;
    min-width: 40px;
    padding: 0 10px;
  }

  body.motchill-theater-mode {
    overflow-x: hidden;
    background: #0a0a0a;
  }

  body.motchill-theater-mode .motchill-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.motchill-theater-mode .motchill-footer,
  body.motchill-theater-mode .motchill-bottom-nav,
  body.motchill-theater-mode .motchill-detail-layout__sidebar,
  body.motchill-theater-mode .mtc-episode-notice,
  body.motchill-theater-mode .mtc-domain-bar {
    display: none !important;
  }

  body.motchill-theater-mode .mtc-episode-player-wrap {
    position: relative;
    z-index: 720;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * var(--mtc-theater-offset, 0px));
    margin-right: 0;
    box-sizing: border-box;
  }

  body.motchill-theater-mode .mtc-episode-player-wrap.is-theater-expanded {
    scroll-margin-top: var(--mtc-header-height, 106px);
  }

  body.motchill-theater-mode .mtc-episode-player__stage {
    width: 100%;
    aspect-ratio: unset;
    height: min(
      calc(100vw * 9 / 16),
      70vh
    );
    max-height: 75vh;
    background: #000;
  }

  body.motchill-theater-mode .motchill-page-episode .mtc-episode-player {
    border-radius: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  }

  body.motchill-theater-mode .mtc-episode-server-bar {
    position: relative;
    z-index: 721;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * var(--mtc-theater-offset, 0px));
    margin-right: 0;
    box-sizing: border-box;
  }

  body.motchill-theater-mode .container > .row > .motchill-detail-layout__main {
    background: #0a0a0a;
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  body.motchill-theater-mode {
    overflow-x: hidden;
    background: #0a0a0a;
  }

  body.motchill-theater-mode .motchill-footer,
  body.motchill-theater-mode .motchill-bottom-nav,
  body.motchill-theater-mode .motchill-detail-layout__sidebar,
  body.motchill-theater-mode .mtc-episode-notice,
  body.motchill-theater-mode .mtc-domain-bar {
    display: none !important;
  }

  body.motchill-theater-mode .motchill-detail-layout__main {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    background: #0a0a0a;
  }

  body.motchill-theater-mode .mtc-episode-player-wrap {
    position: relative;
    z-index: 720;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  body.motchill-theater-mode .mtc-episode-player__stage {
    width: 100%;
    aspect-ratio: unset;
    height: min(
      calc(100vw * 9 / 16),
      50vh
    );
    max-height: 55vh;
    background: #000;
  }

  body.motchill-theater-mode .motchill-page-episode .mtc-episode-player {
    border-radius: 0;
  }

  body.motchill-theater-mode .mtc-episode-server-bar {
    position: relative;
    z-index: 721;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  body.motchill-theater-mode .mtc-detail-episodes,
  body.motchill-theater-mode .mtc-detail-movie-info,
  body.motchill-theater-mode .mtc-detail-tabs,
  body.motchill-theater-mode .mtc-detail-ads,
  body.motchill-theater-mode .mtc-detail-related {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }
}

body.motchill-theater-mode .mtc-player-dock__btn[data-player-theater].is-active {
  background: var(--ui-primary-soft) !important;
  color: var(--detail-accent) !important;
}

@media (max-width: 991px) {
  .motchill-page-episode .mtc-player-dock {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 44px;
  }

  .motchill-page-episode .mtc-player-dock__nav {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .motchill-page-episode .mtc-player-dock__actions {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .motchill-page-episode .mtc-player-dock__actions::-webkit-scrollbar {
    display: none;
  }
}

/* B2 â€” mobile dock: má»™t hÃ ng, icon-only */
@media (max-width: 767px) {
  .motchill-page-episode .mtc-player-dock {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }

  .motchill-page-episode .mtc-player-dock__nav {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    gap: 2px;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .motchill-page-episode .mtc-player-dock__actions {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .motchill-page-episode .mtc-player-dock__actions::-webkit-scrollbar {
    display: none;
  }

  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn {
    flex: 0 0 auto;
    width: 37px;
    height: 37px;
    min-width: 37px;
    min-height: 37px;
  }

  .motchill-page-episode .mtc-player-dock__actions {
    --mtc-player-dock-action-icon-size: 17px;
  }

  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn svg,
  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn .mtc-icon,
  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn .common-action-button__icon,
  .motchill-page-episode .mtc-player-dock__actions .mtc-player-dock__btn .mtc-player-dock__icon-telegram {
    width: var(--mtc-player-dock-action-icon-size) !important;
    height: var(--mtc-player-dock-action-icon-size) !important;
    min-width: var(--mtc-player-dock-action-icon-size);
    min-height: var(--mtc-player-dock-action-icon-size);
    flex: 0 0 var(--mtc-player-dock-action-icon-size);
    display: block;
  }

  /* áº¨n nÃºt Zoom+ trÃªn mobile */
  .motchill-page-episode .mtc-player-dock__actions [data-player-theater] {
    display: none !important;
  }

  .motchill-page-episode .mtc-player-dock__btn span,
  .motchill-page-episode .mtc-player-dock__actions .motchill-favorite-btn__label {
    display: none !important;
  }

  .motchill-page-episode .mtc-player-dock__nav .mtc-player-dock__btn--nav {
    width: auto;
    min-width: 40px;
    padding: 0 6px;
  }

  .motchill-page-episode .mtc-player-dock__episode {
    font-size: 11px;
    font-weight: 700;
    padding: 0 4px;
    min-width: 0;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .motchill-page-episode .motchill-detail-layout__main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  .motchill-page-episode .mtc-episode-notice {
    margin-bottom: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .motchill-page-episode .mtc-episode-notice strong {
    display: inline-block;
    margin-right: 4px;
  }

  .motchill-page-episode .mtc-player-resume {
    padding: 12px;
  }

  .motchill-page-episode .mtc-player-resume__card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .motchill-page-episode .mtc-player-resume__title {
    font-size: 15px;
  }

  .motchill-page-episode .mtc-player-resume__text {
    font-size: 12px;
    line-height: 1.45;
  }

  .motchill-page-episode .mtc-player-resume__btn {
    min-height: 40px;
    font-size: 13px;
  }

  .motchill-page-episode .mtc-episode-server-bar {
    margin-top: 0;
    padding: 6px 0 0;
  }

  .motchill-page-episode .mtc-episode-server-bar__list .streaming-server,
  .motchill-page-episode .mtc-episode-server-bar__btn {
    min-height: 34px;
    padding: 0 12px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 767px) {
  .motchill-page-episode .mtc-episode-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "back chips"
      "main main";
    gap: 8px 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .motchill-page-episode .mtc-episode-heading__left {
    grid-area: back;
    flex: unset;
    min-width: 0;
  }

  .motchill-page-episode .mtc-episode-heading__center {
    grid-area: main;
    flex: unset;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .motchill-page-episode .mtc-episode-heading__right {
    grid-area: chips;
    flex: unset;
    justify-self: end;
    align-self: center;
    min-width: 0;
  }

  .motchill-page-episode .mtc-episode-heading__back {
    font-size: 11px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .motchill-page-episode .mtc-episode-heading__title {
    font-size: 16px;
    line-height: 1.32;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .motchill-page-episode .mtc-episode-heading__meta {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .motchill-page-episode .mtc-episode-heading__chips {
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .motchill-page-episode .mtc-episode-heading__chips .mtc-detail-chip {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
    border-radius: 6px;
  }
}

/* B0 â€” embed iframe wrapper (cross-origin best-effort) */
.motchill-page-episode .mtc-player-embed-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
}

.motchill-page-episode .mtc-player-embed-frame iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .motchill-page-episode .mtc-episode-server-bar__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .motchill-page-episode .mtc-episode-server-bar__list::-webkit-scrollbar {
    display: none;
  }
}

/* B3 â€” Report modal */
.mtc-player-report-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mtc-player-report-modal.is-open {
  display: flex;
}

.mtc-player-report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.mtc-player-report-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 560px);
  overflow: auto;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--detail-border);
  background: var(--detail-surface);
  box-shadow: var(--shadow-soft);
}

.mtc-player-report-modal__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.mtc-player-report-modal__reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}

.mtc-player-report-modal__reason {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--detail-text);
  font-size: 13px;
  cursor: pointer;
}

.mtc-player-report-modal__reason input {
  accent-color: var(--detail-accent);
}

.mtc-player-report-modal__message {
  width: 100%;
  min-height: 72px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--detail-border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  mix-blend-mode: normal;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mtc-player-report-modal__message::placeholder {
  color: rgba(255, 255, 255, 0.62);
  opacity: 1;
}

.mtc-player-report-modal__message:focus {
  outline: none;
  border-color: rgba(var(--accent-hot-rgb), 0.35);
  box-shadow: 0 0 0 2px rgba(var(--accent-hot-rgb), 0.12);
}

.mtc-player-report-modal__error {
  display: none;
  margin-bottom: 10px;
  color: #f87171;
  font-size: 12px;
}

.mtc-player-report-modal__error.is-visible {
  display: block;
}

.mtc-player-report-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mtc-player-report-modal__btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--detail-border);
  border-radius: var(--radius-sm);
  background: var(--detail-surface-2);
  color: var(--detail-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mtc-player-report-modal__btn--primary {
  border-color: var(--ui-primary-border);
  background: var(--ui-primary-soft);
  color: var(--detail-accent);
}

.mtc-player-report-modal__btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.mtc-player-dock__btn[data-player-report][hidden] {
  display: none !important;
}

.mtc-player-report-modal__btn[data-player-report].mtc-player-dock__btn {
  color: var(--detail-text-muted);
}

.mtc-player-report-modal__btn[data-player-report]:hover {
  color: #fbbf24;
}