/* DramaMov Stage 5 — small compatibility layer around proven ShortDrama player CSS. */
[hidden], .dm-player-hidden { display:none !important; }
/* IMMERSIVE DESKTOP PARITY v1.1 */
.sd-consumer-shell.is-immersive .sd-consumer-workspace,
.sd-consumer-shell.is-immersive .sd-consumer-content { width:100%; min-width:0; min-height:100dvh; margin:0; padding:0; }
@media (min-width:900px) {
  .sd-consumer-shell.is-immersive .sd-consumer-sidebar { display:flex; }
  .sd-consumer-shell.is-immersive .sd-consumer-workspace { min-width:0; width:100%; }
}
.dm-player-root { position:relative; width:100%; height:100dvh; min-height:100dvh; overflow:hidden; background:#000; color:#fff; }
.dm-single-player { width:100%; height:100dvh; overflow:hidden; background:#000; }
.dm-player-frame-button { border:0; font:inherit; }
.dm-player-loading { position:absolute; z-index:8; inset:50% auto auto 50%; transform:translate(-50%,-50%); display:grid; place-items:center; gap:8px; pointer-events:none; color:rgba(255,255,255,.72); font-size:10px; }
.dm-player-loading[hidden] { display:none; }
.dm-player-loading .reels-loading-orbit { width:34px; height:34px; margin:0; }
.dm-player-error { position:absolute; z-index:20; inset:0; display:grid; place-items:center; align-content:center; gap:10px; padding:26px; background:rgba(0,0,0,.82); text-align:center; }
.dm-player-error strong { font-size:16px; }
.dm-player-error small { max-width:320px; color:rgba(255,255,255,.58); line-height:1.5; }
.dm-player-error button { min-height:38px; border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:0 14px; background:rgba(255,255,255,.08); color:#fff; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.dm-player-actions-stack { display:grid; gap:12px; }
.dm-player-glyph { display:grid; place-items:center; width:100%; height:100%; font-size:18px; line-height:1; }
.dm-player-glyph.is-heart { font-size:21px; }
.dm-player-glyph.is-comment { font-size:16px; }
.dm-player-glyph.is-volume { font-size:15px; }
.dm-player-glyph.is-expand { font-size:17px; }
.dm-player-progress { width:100%; accent-color:var(--sd-accent); cursor:pointer; }
.dm-player-toast { position:fixed; z-index:1800; left:50%; bottom:max(82px,calc(82px + env(safe-area-inset-bottom))); transform:translate(-50%,12px); max-width:min(420px,calc(100vw - 28px)); padding:9px 13px; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(10,10,12,.88); color:#fff; box-shadow:0 14px 40px rgba(0,0,0,.35); backdrop-filter:blur(16px); font-size:10px; font-weight:750; opacity:0; pointer-events:none; transition:opacity .16s ease,transform .16s ease; }
.dm-player-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.dm-player-sheet-backdrop { position:fixed; z-index:1500; inset:0; display:flex; align-items:flex-end; justify-content:center; background:rgba(0,0,0,.54); backdrop-filter:blur(4px); }
.dm-player-sheet-backdrop[hidden] { display:none; }
.dm-player-sheet-backdrop .premium-player-sheet { position:relative; inset:auto; transform:none; width:min(100%,500px); max-height:min(78dvh,760px); overflow:auto; border-bottom:0; }
.dm-player-episode-empty { padding:24px 12px; color:rgba(255,255,255,.5); text-align:center; font-size:10px; }
.dm-player-episode-grid button { font:inherit; }
.dm-player-context-link { display:inline-flex; align-items:center; gap:6px; margin-top:7px; color:rgba(255,255,255,.72); font-size:9px; font-weight:800; text-decoration:none; }
.dm-player-context-link:hover { color:#fff; }
.dm-player-auth-note { padding:8px 14px 0; color:rgba(255,255,255,.44); font-size:9px; text-align:center; }
.reels-comments-composer input:disabled { opacity:.6; }
.reels-comments-composer button { font:inherit; font-weight:900; }
.dm-player-time { display:flex; align-items:center; justify-content:space-between; gap:8px; color:rgba(255,255,255,.6); font-size:9px; }
.dm-player-time button { width:32px; height:32px; border:0; border-radius:999px; background:rgba(255,255,255,.06); color:#fff; cursor:pointer; }
.dm-player-watch-back { position:absolute; z-index:12; top:max(14px,env(safe-area-inset-top)); left:14px; display:grid; width:38px; height:38px; place-items:center; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(10,10,12,.52); color:#fff; text-decoration:none; backdrop-filter:blur(14px); }
.dm-player-watch-back:hover { background:rgba(20,20,24,.72); }
.dm-player-buffer-note { position:absolute; z-index:7; left:50%; top:52%; transform:translate(-50%,-50%); padding:6px 9px; border-radius:999px; background:rgba(0,0,0,.55); color:rgba(255,255,255,.74); font-size:9px; pointer-events:none; }
.reels-motion-slide[data-active="false"] .premium-player-center-play { display:none; }
.reels-motion-deck.is-priming { pointer-events:none; }
@media (min-width:901px) {
  .dm-player-sheet-backdrop { align-items:center; }
  .dm-player-sheet-backdrop .premium-player-sheet { border:1px solid rgba(255,255,255,.1); border-radius:22px; }
}


/* DramaMov Stage 10 manual parity — episode picker polish v1.3 */
.dm-player-sheet-backdrop { padding: 14px; }
.dm-player-sheet-backdrop .premium-player-sheet {
  width: min(100%, 560px);
  max-height: min(82dvh, 760px);
  padding: 12px 16px max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 28px;
  background: radial-gradient(circle at 88% 4%, rgb(var(--sd-accent-rgb) / .11), transparent 30%), linear-gradient(180deg, rgba(30,30,35,.99), rgba(15,15,18,.995));
  box-shadow: 0 34px 100px rgba(0,0,0,.58);
  backdrop-filter: blur(28px);
}
.dm-player-sheet-backdrop .premium-player-sheet-handle { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 999px; background: rgba(255,255,255,.19); }
.dm-player-sheet-backdrop .premium-player-sheet-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:0 0 16px; }
.dm-player-sheet-backdrop .premium-player-sheet-heading > div { min-width:0; display:grid; gap:4px; }
.dm-player-sheet-backdrop .premium-player-sheet-heading > div > span { color:rgb(var(--sd-accent-rgb)); font-size:9px; font-weight:900; letter-spacing:.16em; }
.dm-player-sheet-backdrop .premium-player-sheet-heading strong { max-width:390px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:18px; line-height:1.15; }
.dm-player-sheet-backdrop .premium-player-sheet-heading small { color:rgba(255,255,255,.45); font-size:10px; font-weight:650; }
.dm-player-sheet-backdrop .premium-player-sheet-heading button { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.055); border-radius:50%; background:rgba(255,255,255,.07); color:rgba(255,255,255,.9); font-size:23px; cursor:pointer; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges { display:flex; gap:8px; margin:0 -2px 15px; padding:0 2px 4px; overflow-x:auto; scrollbar-width:none; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges::-webkit-scrollbar { display:none; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges button { min-height:38px; flex:0 0 auto; display:inline-flex; align-items:center; gap:6px; padding:0 13px; border:1px solid rgba(255,255,255,.09); border-radius:999px; background:rgba(255,255,255,.045); color:rgba(255,255,255,.62); cursor:pointer; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges button span { color:rgba(255,255,255,.36); font-size:8px; font-weight:900; letter-spacing:.12em; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges button strong { font-size:10px; font-weight:850; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges button.is-active { border-color:rgb(var(--sd-accent-rgb) / .62); background:rgb(var(--sd-accent-rgb) / .12); color:#fff; }
.dm-player-sheet-backdrop .premium-player-sheet-ranges button.is-active span { color:rgb(var(--sd-accent-rgb)); }
.dm-player-sheet-backdrop .premium-player-episode-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; max-height:min(52dvh,500px); padding:1px 5px 8px 1px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.14) transparent; }
.dm-player-sheet-backdrop .premium-player-episode-grid button { min-width:0; min-height:62px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 11px; border:1px solid rgba(255,255,255,.075); border-radius:16px; background:linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.025)); color:rgba(255,255,255,.92); text-align:left; cursor:pointer; box-shadow:inset 0 1px rgba(255,255,255,.025); }
.dm-player-sheet-backdrop .premium-player-episode-grid button:hover { transform:translateY(-1px); border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.075); }
.dm-player-sheet-backdrop .dm-episode-number { min-width:29px; color:rgba(255,255,255,.94); font-size:18px; font-weight:900; letter-spacing:-.035em; line-height:1; }
.dm-player-sheet-backdrop .dm-episode-copy { min-width:0; display:grid; gap:3px; }
.dm-player-sheet-backdrop .dm-episode-copy small { color:rgba(255,255,255,.37); font-size:7px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.dm-player-sheet-backdrop .dm-episode-copy strong { overflow:hidden; color:rgba(255,255,255,.68); font-size:9px; font-weight:750; text-overflow:ellipsis; white-space:nowrap; }
.dm-player-sheet-backdrop .dm-episode-arrow { color:rgba(255,255,255,.28); font-size:20px; line-height:1; }
.dm-player-sheet-backdrop .premium-player-episode-grid button.is-current { border-color:rgb(var(--sd-accent-rgb) / .62); background:radial-gradient(circle at 100% 0,rgba(255,255,255,.18),transparent 42%),linear-gradient(145deg,rgb(var(--sd-accent-rgb) / .95),rgb(var(--sd-accent-rgb) / .66)); box-shadow:0 12px 30px rgb(var(--sd-accent-rgb) / .19); }
.dm-player-sheet-backdrop .premium-player-episode-grid button.is-current .dm-episode-copy small,
.dm-player-sheet-backdrop .premium-player-episode-grid button.is-current .dm-episode-copy strong,
.dm-player-sheet-backdrop .premium-player-episode-grid button.is-current .dm-episode-arrow { color:rgba(255,255,255,.83); }
@media (max-width:720px) {
  .dm-player-sheet-backdrop { align-items:flex-end; padding:0; }
  .dm-player-sheet-backdrop .premium-player-sheet { width:100%; max-height:min(79dvh,720px); padding:10px 15px max(18px,env(safe-area-inset-bottom)); border-right:0; border-bottom:0; border-left:0; border-radius:30px 30px 0 0; }
  .dm-player-sheet-backdrop .premium-player-episode-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:53dvh; }
  .dm-player-sheet-backdrop .premium-player-episode-grid button { min-height:60px; border-radius:15px; }
  .dm-player-sheet-backdrop .premium-player-sheet-heading strong { max-width:min(70vw,300px); font-size:17px; }
}
@media (max-width:360px) { .dm-player-sheet-backdrop .premium-player-episode-grid { grid-template-columns:1fr; } }


/* DramaMov Stage 10 vertical social + episode minimal polish v1.6 */
.premium-player-shell.is-reels .premium-player-actions {
  right: 11px;
  bottom: 142px;
  gap: 17px;
}

.premium-player-shell.is-reels .premium-player-actions .reels-action {
  width: 54px;
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.96);
}

.premium-player-shell.is-reels .reels-action-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: rgba(255,255,255,.96);
  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,.72))
    drop-shadow(0 3px 8px rgba(0,0,0,.42));
  transition: transform 130ms ease, color 140ms ease;
}

.premium-player-shell.is-reels .reels-social-glyph {
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
}

.premium-player-shell.is-reels .reels-action-label {
  max-width: 54px;
  overflow: visible;
  color: rgba(255,255,255,.94) !important;
  font-size: 10px !important;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 6px rgba(0,0,0,.55);
}

.premium-player-shell.is-reels .reels-action:hover .reels-action-icon {
  transform: scale(1.07);
  background: transparent;
}

.premium-player-shell.is-reels .reels-action:active .reels-action-icon {
  transform: scale(.86);
}

.premium-player-shell.is-reels .reels-action.is-like.is-active .reels-action-icon,
.premium-player-shell.is-reels .reels-action.is-like.is-active .reels-action-label {
  color: #fe2c55 !important;
}

.premium-player-shell.is-reels .reels-action.is-favorite.is-active .reels-action-icon,
.premium-player-shell.is-reels .reels-action.is-favorite.is-active .reels-action-label {
  color: #ffd65c !important;
}

.premium-player-sound-action {
  position: absolute;
  z-index: 8;
  top: max(17px, env(safe-area-inset-top));
  left: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(12,12,14,.22);
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.premium-player-frame.is-controls-visible .premium-player-sound-action {
  opacity: 1;
  pointer-events: auto;
}

.premium-player-sound-action:hover,
.premium-player-sound-action.is-active {
  color: #fff;
  background: rgba(12,12,14,.4);
}

.premium-player-shell.is-reels .premium-player-copy {
  right: 76px;
}

.premium-player-shell.is-reels .premium-player-copy .dm-player-context-link {
  display: none !important;
}

.premium-player-episode-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(8,8,10,.42);
  color: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

.premium-player-episode-chip > span {
  font-size: 10px;
  font-weight: 900;
}

.premium-player-episode-chip > small {
  color: rgba(255,255,255,.6);
  font-size: 9px;
  font-weight: 700;
}

.dm-player-sheet-backdrop {
  align-items: flex-end;
  padding: 0;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(5px);
}

.dm-player-sheet-backdrop .premium-player-sheet {
  width: min(100%, 430px);
  max-height: min(66dvh, 590px);
  padding: 9px 14px max(16px, env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(28,28,32,.995), rgba(17,17,20,.998));
  box-shadow: 0 -22px 70px rgba(0,0,0,.42);
}

.dm-player-sheet-backdrop .premium-player-sheet-handle {
  width: 32px;
  height: 3px;
  margin: 0 auto 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.dm-player-sheet-backdrop .premium-player-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 2px;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading strong {
  max-width: 310px;
  overflow: hidden;
  color: rgba(255,255,255,.95);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading small {
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 650;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.78);
  font-size: 20px;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges {
  display: flex;
  gap: 6px;
  margin: 0 0 11px;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges::-webkit-scrollbar {
  display: none;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges button.is-active {
  border-color: rgb(var(--sd-accent-rgb) / .5);
  background: rgb(var(--sd-accent-rgb) / .12);
  color: rgb(var(--sd-accent-rgb));
}

.dm-player-sheet-backdrop .premium-player-episode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  max-height: min(45dvh, 360px);
  padding: 1px 3px 8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile {
  min-width: 0;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.72);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile:hover {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.065);
  color: #fff;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile:active {
  transform: scale(.95);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile-number {
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.01em;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile.is-current {
  border-color: transparent;
  background: rgb(var(--sd-accent-rgb) / .92);
  color: #fff;
  box-shadow: 0 7px 20px rgb(var(--sd-accent-rgb) / .2);
}

@media (min-width: 901px) {
  .dm-player-sheet-backdrop {
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .dm-player-sheet-backdrop .premium-player-sheet {
    border-bottom: 1px solid rgba(255,255,255,.075);
    border-radius: 24px;
  }
}

@media (max-width: 390px) {
  .dm-player-sheet-backdrop .premium-player-episode-grid {
    gap: 6px;
  }

  .dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile {
    height: 43px;
    border-radius: 11px;
  }

  .premium-player-shell.is-reels .premium-player-actions {
    right: 8px;
  }
}


/* DramaMov Stage 10 vertical audio + social + episode refinement v1.7 */
.premium-player-shell.is-reels .premium-player-actions {
  right: 8px;
  bottom: 126px;
  gap: 12px;
}

.premium-player-shell.is-reels .premium-player-actions .reels-action {
  width: 48px;
  min-height: 50px;
  gap: 1px;
}

.premium-player-shell.is-reels .reels-action-icon {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,.82);
  filter:
    drop-shadow(0 1.5px 1px rgba(0,0,0,.7))
    drop-shadow(0 2px 4px rgba(0,0,0,.28));
}

.premium-player-shell.is-reels .reels-social-glyph {
  width: 28px;
  height: 28px;
}

.premium-player-shell.is-reels .reels-action-label {
  max-width: 48px;
  color: rgba(255,255,255,.72) !important;
  font-size: 9px !important;
  font-weight: 760;
  text-shadow:
    0 1px 1px rgba(0,0,0,.78),
    0 1px 4px rgba(0,0,0,.38);
}

.premium-player-shell.is-reels .reels-action:hover .reels-action-icon {
  transform: scale(1.035);
}

.premium-player-shell.is-reels .reels-action:active .reels-action-icon {
  transform: scale(.91);
}

.premium-player-shell.is-reels .reels-action.is-like.is-active .reels-action-icon,
.premium-player-shell.is-reels .reels-action.is-like.is-active .reels-action-label {
  color: #fe2c55 !important;
}

.premium-player-shell.is-reels .reels-action.is-favorite.is-active .reels-action-icon,
.premium-player-shell.is-reels .reels-action.is-favorite.is-active .reels-action-label {
  color: #f2c94c !important;
}

.premium-player-sound-action {
  top: max(14px, env(safe-area-inset-top));
  left: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(8,8,10,.18);
  color: rgba(255,255,255,.7);
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.premium-player-sound-action .dm-audio-glyph {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.premium-player-sound-action .dm-audio-speaker {
  fill: currentColor;
  stroke: none;
}

.premium-player-sound-action .dm-audio-wave,
.premium-player-sound-action .dm-audio-slash {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-player-sound-action .dm-audio-slash {
  display: none;
}

.premium-player-sound-action.is-muted .dm-audio-wave {
  display: none;
}

.premium-player-sound-action.is-muted .dm-audio-slash {
  display: block;
}

.premium-player-sound-action.is-active {
  color: rgba(255,255,255,.82);
  background: rgba(8,8,10,.2);
}

.premium-player-shell.is-reels .premium-player-copy {
  right: 67px;
}

.premium-player-episode-chip {
  min-height: 28px;
  gap: 6px;
  margin-top: 8px;
  padding: 0 9px;
  border-color: rgba(255,255,255,.12);
  background: rgba(7,7,9,.32);
}

.premium-player-episode-chip > span {
  font-size: 9px;
  font-weight: 850;
}

.premium-player-episode-chip > small {
  color: rgba(255,255,255,.52);
  font-size: 8px;
  font-weight: 650;
}

.dm-player-sheet-backdrop {
  background: rgba(0,0,0,.43);
  backdrop-filter: blur(4px);
}

.dm-player-sheet-backdrop .premium-player-sheet {
  width: min(100%, 420px);
  max-height: min(54dvh, 470px);
  padding: 8px 13px max(15px, env(safe-area-inset-bottom));
  border-color: rgba(255,255,255,.06);
  border-radius: 21px 21px 0 0;
  background: rgba(17,17,20,.985);
  box-shadow: 0 -18px 58px rgba(0,0,0,.38);
}

.dm-player-sheet-backdrop .premium-player-sheet-handle {
  width: 30px;
  height: 3px;
  margin-bottom: 9px;
  background: rgba(255,255,255,.16);
}

.dm-player-sheet-backdrop .premium-player-sheet-heading {
  margin-bottom: 9px;
  padding-inline: 1px;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading strong {
  max-width: 310px;
  font-size: 14px;
  font-weight: 820;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading small {
  color: rgba(255,255,255,.36);
  font-size: 8.5px;
  font-weight: 620;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading button {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  border-color: rgba(255,255,255,.045);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.68);
  font-size: 18px;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges {
  gap: 5px;
  margin-bottom: 9px;
  padding-bottom: 1px;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges button {
  min-height: 27px;
  padding-inline: 9px;
  border-color: transparent;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.48);
  font-size: 8.5px;
  font-weight: 760;
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges button.is-active {
  border-color: rgb(var(--sd-accent-rgb) / .48);
  background: rgb(var(--sd-accent-rgb) / .1);
  color: rgba(255,255,255,.9);
}

.dm-player-sheet-backdrop .premium-player-episode-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  max-height: min(34dvh, 250px);
  padding: 0 2px 5px 0;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255,255,255,.032);
  color: rgba(255,255,255,.62);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile:hover {
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.88);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile-number {
  font-size: 10.5px;
  font-weight: 760;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile.is-current {
  border-color: rgb(var(--sd-accent-rgb) / .72);
  background: rgb(var(--sd-accent-rgb) / .13);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(var(--sd-accent-rgb) / .12);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile.is-current .dm-episode-tile-number {
  font-weight: 900;
}

@media (min-width: 901px) {
  .dm-player-sheet-backdrop .premium-player-sheet {
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 21px;
  }
}

@media (max-width: 350px) {
  .dm-player-sheet-backdrop .premium-player-episode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* DramaMov Stage 10 episode sheet alignment hotfix v1.7.1 */
.dm-player-sheet-backdrop {
  background: rgba(5, 8, 14, .24) !important;
  backdrop-filter: blur(8px);
}

.dm-player-sheet-backdrop .premium-player-sheet {
  background:
    linear-gradient(180deg, rgba(21, 24, 34, .86), rgba(12, 14, 20, .80)) !important;
  border-color: rgba(255,255,255,.055) !important;
  box-shadow: 0 -22px 60px rgba(0,0,0,.34) !important;
}

.dm-player-sheet-backdrop .premium-player-sheet-heading small {
  color: rgba(255,255,255,.44);
}

.dm-player-sheet-backdrop .premium-player-sheet-ranges button {
  background: rgba(255,255,255,.045);
}

.dm-player-sheet-backdrop .premium-player-episode-grid {
  gap: 6px;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  text-align: center !important;
  overflow: hidden;
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.04);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile.is-current {
  background: linear-gradient(180deg, rgb(var(--sd-accent-rgb) / .34), rgb(var(--sd-accent-rgb) / .22)) !important;
  border-color: rgb(var(--sd-accent-rgb) / .56) !important;
}

.dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile-number {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -.02em;
}

@media (max-width: 420px) {
  .dm-player-sheet-backdrop .premium-player-sheet {
    background:
      linear-gradient(180deg, rgba(21, 24, 34, .82), rgba(12, 14, 20, .76)) !important;
  }

  .dm-player-sheet-backdrop .premium-player-episode-grid .dm-episode-tile {
    height: 40px;
    border-radius: 10px;
  }
}

