/* ============================================================
 * AdShield 样式（配合 ad-shield.js 使用，页面需一并引入）
 * ============================================================ */

/* ---------- 补丁图层 ---------- */
.ad-patch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ad-patch {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-image: var(--feather-x), var(--feather-y);
  mask-image: var(--feather-x), var(--feather-y);
}
.ad-patch.visible {
  opacity: 1;
}
/* 轻微模糊掩盖镜像内容的结构重复痕迹，观感接近景深虚化 */
.ad-patch canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(2px);
}
/* 上镜像在顶部占主导，向下渐隐；与底层的下镜像交叉融合 */
.ad-patch canvas.patch-top {
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
}

/* ---------- 内置效果 ---------- */
/* 雾化模糊：纯 CSS backdrop-filter 实时模糊，无需 canvas */
.ad-patch.effect-blur canvas {
  display: none;
}
.ad-patch.effect-blur {
  /* 38px 深模糊 + 降饱和 + 中性灰垫底：高饱和大字（黄色域名）22px 下仍透出
     色斑轮廓（2026-07-25 用户实测），加深后彻底化开 */
  backdrop-filter: blur(38px) saturate(0.85);
  -webkit-backdrop-filter: blur(38px) saturate(0.85);
  background: rgba(120, 120, 120, 0.18);
}
/* 马赛克：单 canvas 像素化，不需要柔化模糊 */
.ad-patch.effect-mosaic canvas.patch-top {
  display: none;
}
.ad-patch.effect-mosaic canvas {
  filter: none;
}
/* 纯黑遮挡：信息销毁最彻底，观感最重 */
.ad-patch.effect-black canvas {
  display: none;
}
.ad-patch.effect-black {
  background: #000;
}
/* 字形抠图：单 canvas 仅字形像素补绘，背景透出；轻微模糊羽化掩码边缘 */
.ad-patch.effect-glyph canvas.patch-top {
  display: none;
}
.ad-patch.effect-glyph canvas {
  filter: blur(0.6px);
}

/* ---------- 圈选标记层 ---------- */
.emp-marker {
  position: absolute;
  inset: 0;
  display: none;
  cursor: crosshair;
  pointer-events: auto;
}
.emp-marker.active {
  display: block;
}
.emp-marker-box {
  position: absolute;
  border: 2px dashed #ffd94a;
  background: rgba(255, 217, 74, 0.15);
  display: none;
}
.emp-form {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20, 20, 20, 0.92);
  color: #eee;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.emp-form input {
  width: 64px;
  background: #111;
  border: 1px solid #444;
  color: #eee;
  border-radius: 4px;
  padding: 3px 6px;
  margin: 0 10px 0 6px;
}
.emp-form button {
  margin-left: 6px;
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #f90;
  color: #000;
}
.emp-form button.cancel {
  background: #444;
  color: #ddd;
}

/* ---------- 预设广告位快速屏蔽（ad-zones.js） ---------- */
.adzones-overlay {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.35);
}
.adzones-overlay.active {
  display: block;
}
.adzones-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 70, 70, 0.9);
  border-radius: 10px;
  background: rgba(255, 70, 70, 0.12);
  cursor: move;
  transition: background 0.15s ease;
}
.adzones-slot:hover {
  background: rgba(255, 70, 70, 0.32);
}
.adzones-slot.adjusting {
  background: rgba(255, 70, 70, 0.28);
  z-index: 2;
  transition: none;
}
.adzones-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ff4646;
  border-radius: 2px;
}
.adzones-handle.nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}
.adzones-handle.se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}
/* 上/下边缘手柄：全宽热区单独调高度，中间露一个可见小横条 */
.adzones-edge,
.addetect-edge {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 12px;
  cursor: ns-resize;
}
.adzones-edge.n,
.addetect-edge.n {
  top: -6px;
}
.adzones-edge.s,
.addetect-edge.s {
  bottom: -6px;
}
.adzones-edge::after,
.addetect-edge::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 6px;
  border-radius: 3px;
  background: #ff4646;
  pointer-events: none;
}
.addetect-edge::after {
  background: #4ad9ff;
}
.adzones-slot span {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}
.adzones-hint {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 3; /* 永远浮在预设区域框之上（顶部横幅区不再盖住提示文字） */
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: rgba(20, 20, 20, 0.94);
  color: #eee;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.adzones-hint button {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #f90;
  color: #000;
}
.adzones-hint button.ghost {
  background: #444;
  color: #ddd;
}

/* ---------- 广告检测提示（ad-detect.js） ---------- */
.addetect-toast {
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: rgba(20, 20, 20, 0.94);
  color: #eee;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  pointer-events: auto;
}
.addetect-toast.show {
  display: flex;
}
.addetect-toast button {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #f90;
  color: #000;
}
.addetect-toast button.ghost {
  background: #444;
  color: #ddd;
}
.addetect-preview {
  position: absolute;
  border: 2px dashed #4ad9ff;
  background: rgba(74, 217, 255, 0.12);
  display: none;
  pointer-events: auto;
  cursor: move;
}
.addetect-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #4ad9ff;
  border-radius: 2px;
}
.addetect-handle.se {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}
.addetect-handle.nw {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}
/* .emp-switches 是已迁模块（prefetch-ui）注入行的品牌化类名；
   .addetect-switches 是老线 ad-detect-ui.js 的既成形状，随老线退场 */
.emp-panel .addetect-switches,
.emp-panel .emp-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 8px;
}
.emp-panel .addetect-switches label,
.emp-panel .emp-switches label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ---------- 调试台（index.html + debug-console.js） ---------- */
.addebug-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
}
.addebug-bar .m3u8-input {
  flex: 1;
  background: #0d0d0d;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
}
.addebug-bar button {
  padding: 7px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #f90;
  color: #000;
  font-size: 13px;
}
.addebug-bar button.ghost {
  background: #2c2c2c;
  color: #ddd;
}
.addebug-drawer {
  position: fixed;
  top: 46px;
  right: 0;
  bottom: 0;
  width: 340px;
  background: rgba(16, 16, 16, 0.96);
  color: #ddd;
  border-left: 1px solid #2a2a2a;
  padding: 12px 14px;
  font-size: 12px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 90;
}
.addebug-drawer.open {
  transform: none;
}
.addebug-drawer h3 {
  margin: 0 0 10px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.addebug-drawer h3 .close {
  cursor: pointer;
  color: #888;
  padding: 0 4px;
}
.addebug-drawer h5 {
  margin: 0 0 6px;
  color: #f90;
  font-size: 12px;
}
.addebug-drawer .sec {
  margin-bottom: 12px;
}
.addebug-drawer pre.stats {
  margin: 0;
  background: #0d0d0d;
  border-radius: 6px;
  padding: 8px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.addebug-drawer .counters {
  line-height: 1.9;
}
.addebug-drawer .counters b {
  color: #4ad9ff;
}
.addebug-drawer .log {
  max-height: 300px;
  overflow-y: auto;
  background: #0d0d0d;
  border-radius: 6px;
  padding: 6px 8px;
}
.addebug-drawer .log .ev {
  padding: 2px 0;
  border-bottom: 1px solid #1e1e1e;
  word-break: break-all;
  line-height: 1.5;
}
.addebug-drawer .btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.addebug-drawer .btns button {
  flex: 1;
  padding: 7px 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #f90;
  color: #000;
}
.addebug-drawer .btns button.ghost {
  background: #2c2c2c;
  color: #ddd;
}

/* ---------- 规则面板 ---------- */
.emp-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 250px;
  padding: 10px 12px;
  display: none;
  color: #eee;
  font-size: 12px;
  pointer-events: auto;
  background: rgba(20, 20, 20, 0.92);
  border-radius: 8px;
}

.emp-panel.open { display: block; }
.emp-panel h4 { margin: 0 0 8px; font-size: 13px; }
.emp-panel ul { max-height: 150px; margin: 0 0 8px; padding: 0; overflow: auto; list-style: none; }
.emp-panel li { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #333; }
.emp-panel li .del { padding: 0 4px; color: #f66; cursor: pointer; }
.emp-panel .effect-row { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.emp-panel select { padding: 3px 6px; color: #eee; background: #111; border: 1px solid #444; border-radius: 4px; }
.emp-panel .actions { display: flex; gap: 8px; }
.emp-panel .actions button { flex: 1; padding: 5px 0; color: #000; cursor: pointer; background: #f90; border: none; border-radius: 4px; }
.emp-panel .actions button.ghost { color: #ddd; background: #333; }

.art-video-player {
  container-type: size;
}

/* 窄控制栏不得把全屏/画中画/投屏挤没 */
.art-control-cast,
.art-control-pip,
.art-control-fullscreen,
.art-control-fullscreenWeb {
  display: inline-flex !important;
  flex: 0 0 auto;
}

.art-control-cast {
  order: 27;
}

.art-control-pip {
  order: 28;
}

.art-control-fullscreenWeb {
  order: 29;
}

.art-control-fullscreen {
  order: 30;
}

.art-control-emp-playback-episode,
.art-control-emp-playback-next-episode,
.art-control-emp-playback-prev-episode {
  flex-shrink: 0;
}

.art-control-emp-playback-quality,
.art-control-emp-playback-line,
.art-control-emp-playback-language {
  margin-inline: 4px;
}

.art-control-emp-playback-rate {
  margin-inline: 12px 8px;
  padding-inline: 20px 8px;
  background-image: linear-gradient(rgb(255 255 255 / 18%), rgb(255 255 255 / 18%));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 1px 12px;
}

.art-video-player.art-mobile .art-control-emp-playback-rate {
  flex: 0 0 auto;
  min-width: 3.6em;
  margin-inline: 4px;
  padding-inline: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.art-video-player .art-notice {
  z-index: 100;
}

.art-control-emp-playback-quality.hint--top::after,
.art-control-emp-playback-quality.hint--top::before,
.art-control-emp-playback-line.hint--top::after,
.art-control-emp-playback-line.hint--top::before,
.art-control-emp-playback-language.hint--top::after,
.art-control-emp-playback-language.hint--top::before,
.art-control-emp-playback-episode.hint--top::after,
.art-control-emp-playback-episode.hint--top::before {
  display: none !important;
}

.emp-control-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
}

.emp-control-icon svg,
.art-setting-item-left svg {
  width: 100%;
  height: 100%;
}

.emp-episode-panel {
  position: absolute;
  z-index: 90;
  /* 抬高避开 Artplayer 进度条+控制栏，避免剧集简介被进度条裁切 */
  bottom: 72px;
  left: 18px;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 36px));
  max-height: min(70vh, 620px);
  max-height: min(50cqh, 620px);
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.75);
  border: 0;
  border-radius: 3px;
  box-shadow: none;
}

.emp-episode-panel[hidden] {
  display: none;
}

.emp-episode-panel__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 15px 8px;
}

.emp-episode-panel__header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.emp-episode-panel__header strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emp-episode-panel__header span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.emp-episode-panel button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

.emp-episode-panel button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.emp-episode-panel__close {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 3px !important;
}

.emp-episode-panel__close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.emp-episode-panel__seasons {
  display: flex;
  gap: 0;
  padding: 0 15px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.emp-episode-panel__seasons::-webkit-scrollbar {
  display: none;
}

.emp-episode-panel__content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(min(70vh, 620px) - 55px);
  max-height: calc(min(50cqh, 620px) - 55px);
  overflow: hidden;
}

.emp-episode-panel.is-multi-season .emp-episode-panel__content {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  max-height: calc(min(70vh, 620px) - 55px);
  max-height: calc(min(50cqh, 620px) - 55px);
  min-height: 0;
  overflow: hidden;
}

.emp-episode-panel.is-multi-season .emp-episode-panel__seasons {
  flex-direction: column;
  align-items: stretch;
  padding: 0 8px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.emp-episode-panel.is-multi-season .emp-episode-panel__body,
.emp-episode-panel.is-multi-season .emp-episode-panel__seasons {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.emp-episode-panel__seasons button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  border-radius: 0;
}

.emp-episode-panel__seasons button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.emp-episode-panel__seasons button.is-active {
  color: var(--art-theme, #f00);
}

.emp-episode-panel__body {
  max-height: calc(min(70vh, 620px) - 55px);
  max-height: calc(min(50cqh, 620px) - 55px);
  padding: 0 15px 12px;
  overflow-y: auto;
}

.emp-episode-panel__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
}

.emp-episode-panel.is-multi-season .emp-episode-panel__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.emp-episode-panel__episode {
  min-width: 38px;
  min-height: 34px;
  padding: 10px 8px !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 14px !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.emp-episode-panel__episode:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.emp-episode-panel__episode.is-active {
  color: var(--art-theme, #f00) !important;
  font-weight: 400 !important;
  background: transparent !important;
}

.emp-episode-panel__episode:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.emp-episode-panel__preview {
  display: grid;
  gap: 5px;
  box-sizing: border-box;
  height: 148px;
  margin-top: 8px;
  overflow: hidden;
  padding: 10px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.emp-episode-panel__preview strong {
  font-size: 14px;
  line-height: 1.45;
}

.emp-episode-panel__preview span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.emp-episode-panel__preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.art-selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  white-space: nowrap;
}

.emp-sel-meta {
  opacity: 0.65;
  font-size: 12px;
}

.art-video-player.art-mobile {
  --art-settings-max-height: min(70dvh, 420px);
  --art-selector-max-height: min(70dvh, 420px);
}

.art-video-player.art-mobile .art-settings,
.art-video-player.art-mobile .art-setting {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.art-video-player.art-mobile .emp-control-icon {
  margin-right: 0;
}

@media (max-width: 720px) {
  .emp-episode-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 72vh;
    max-height: 50cqh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(0, 0, 0, 0.92);
    border-radius: 18px 18px 0 0;
  }

  .emp-episode-panel::after {
    content: none;
  }

  .emp-episode-panel__close {
    display: inline-flex;
  }

  .emp-episode-panel__body {
    max-height: calc(72vh - 148px);
    max-height: calc(50cqh - 148px);
  }

  .emp-episode-panel__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__content {
    grid-template-columns: 80px minmax(0, 1fr);
    max-height: calc(72vh - 68px);
    max-height: calc(50cqh - 68px);
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__body {
    max-height: calc(72vh - 68px);
    max-height: calc(50cqh - 68px);
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .emp-episode-panel__episode {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .emp-episode-panel__grid,
  .emp-episode-panel.is-multi-season .emp-episode-panel__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* 桌面全屏保持悬浮卡片，抬高离开控制栏，避免和鼠标叠在同一位置。 */
.art-video-player:not(.art-mobile).art-fullscreen-web .emp-episode-panel,
.art-video-player:not(.art-mobile).art-fullscreen .emp-episode-panel {
  bottom: 96px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* 面板与底栏之间留出可穿过的热区，悬浮打开后移向卡片不会立刻收起。 */
.emp-episode-panel::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 28px;
}

/* 仅手机走底栏抽屉。横屏 50cqh + 148px 预览会把剧集格裁掉。 */
.art-video-player.art-mobile .emp-episode-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  max-height: min(78dvh, 100%);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(0, 0, 0, 0.92);
  border-radius: 18px 18px 0 0;
}

.art-video-player.art-mobile .emp-episode-panel::after {
  content: none;
}

.art-video-player.art-mobile .emp-episode-panel__close {
  display: inline-flex;
}

.art-video-player.art-mobile .emp-episode-panel__preview {
  display: none;
}

.art-video-player.art-mobile .emp-episode-panel__content,
.art-video-player.art-mobile .emp-episode-panel.is-multi-season .emp-episode-panel__content,
.art-video-player.art-mobile .emp-episode-panel__body,
.art-video-player.art-mobile .emp-episode-panel.is-multi-season .emp-episode-panel__body {
  max-height: calc(min(78dvh, 100%) - 68px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 16:9 嵌入/横屏：50cqh 会小于预览块，面板必须铺满播放器 */
@container (max-height: 360px) {
  .emp-episode-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: none;
    border-radius: 0;
  }

  .emp-episode-panel__header {
    flex: 0 0 auto;
  }

  .emp-episode-panel__content,
  .emp-episode-panel.is-multi-season .emp-episode-panel__content,
  .emp-episode-panel__body,
  .emp-episode-panel.is-multi-season .emp-episode-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .emp-episode-panel__preview {
    display: none;
  }

  .emp-episode-panel__episode {
    min-height: 36px;
  }
}

/* 窄播放器：季列表改顶栏芯片，避免 80px 侧栏挤掉剧集格 */
@container (max-width: 420px) {
  .emp-episode-panel.is-multi-season .emp-episode-panel__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__seasons {
    flex-direction: row;
    align-items: stretch;
    max-height: none;
    padding: 0 8px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__seasons button {
    white-space: nowrap;
  }

  .emp-episode-panel.is-multi-season .emp-episode-panel__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
