/*
 * ND Short Player
 * Standalone vertical short-drama player skin.
 */

:root {
  --ndsp-bg: #05070c;
  --ndsp-panel: rgba(9, 12, 20, 0.86);
  --ndsp-border: rgba(255, 255, 255, 0.18);
  --ndsp-text: #ffffff;
  --ndsp-muted: #c6d0e8;
  --ndsp-accent: #FF8F0C;
  --ndsp-accent-2: #FFB24A;
}

.ndsp-shell,
.ndsp-shell * {
  box-sizing: border-box;
}

.ndsp-shell {
  width: min(100%, 430px);
  height: min(86vh, 860px);
  min-height: 560px;
  margin: 0 auto;
  color: var(--ndsp-text);
  background: var(--ndsp-bg);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Leelawadee UI", sans-serif;
  user-select: none;
  touch-action: manipulation;
}

.ndsp-shell.ndsp-landscape {
  width: min(100%, 980px);
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.ndsp-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #02040a;
  overflow: hidden;
}

.ndsp-video,
.ndsp-ad-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}


.ndsp-video.ndsp-fill,
.ndsp-ad-video.ndsp-fill {
  object-fit: cover;
}

.ndsp-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ndsp-shell.ndsp-show-poster .ndsp-poster {
  opacity: 1;
}

.ndsp-float-title {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 15;
  max-width: min(82%, 420px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.ndsp-float-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}

.ndsp-float-episode {
  display: block;
  flex: 0 0 auto;
  color: rgba(226, 233, 255, 0.76);
  font: inherit;
}


.ndsp-shell.ndsp-controls-hidden.ndsp-playing .ndsp-float-title {
  opacity: 0.82;
  transform: translateY(0);
}

.ndsp-shell.ndsp-controls-hidden.ndsp-playing .ndsp-float-title:hover {
  opacity: 0.9;
}
.ndsp-hit-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  cursor: pointer;
}

.ndsp-topbar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.78), rgba(2, 4, 10, 0));
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ndsp-titlewrap {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.ndsp-titlebox {
  min-width: 0;
  flex: 1 1 auto;
  pointer-events: auto;
}

.ndsp-title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ndsp-episode {
  margin-top: 2px;
  color: var(--ndsp-muted);
  font-size: 12px;
  font-weight: 700;
}

.ndsp-icon-btn,
.ndsp-back-btn,
.ndsp-report-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 8, 14, 0.56);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  text-decoration: none;
}

.ndsp-icon-btn:hover,
.ndsp-icon-btn.ndsp-on,
.ndsp-back-btn:hover,
.ndsp-report-btn:hover {
  border-color: rgba(255, 143, 12, 0.78);
  background: rgba(255, 143, 12, 0.22);
}

.ndsp-back-btn {
  color: #FF8F0C !important;
}

.ndsp-report-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 52px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ndsp-icon-btn:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.ndsp-icon-btn svg,
.ndsp-back-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ndsp-side-actions {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
  pointer-events: auto;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.ndsp-shell.ndsp-controls-hidden.ndsp-playing .ndsp-side-actions {
  opacity: 0;
  transform: translate(10px, -50%);
  pointer-events: none;
}

.ndsp-side-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(210, 216, 230, 0.24);
  border-radius: 999px;
  background: rgba(6, 8, 14, 0.34);
  color: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ndsp-side-action:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(12, 15, 23, 0.46);
  color: #fff;
  box-shadow: none;
}

.ndsp-side-action:active {
  transform: translateY(1px) scale(0.98);
}

.ndsp-side-action svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ndsp-side-bookmark.ndsp-active svg {
  fill: currentColor;
}

.ndsp-side-bookmark.ndsp-active {
  border-color: rgba(255, 143, 12, 0.72);
  background: rgba(255, 143, 12, 0.12);
  color: #ff8f0c;
}

.ndsp-side-bookmark.ndsp-pop {
  animation: ndspBookmarkPop 0.42s ease;
}

.ndsp-shell.ndsp-landscape .ndsp-side-actions {
  right: 18px;
  top: 50%;
  gap: 14px;
}

.ndsp-shell.ndsp-landscape .ndsp-side-home,
.ndsp-shell.ndsp-landscape .ndsp-side-share,
.ndsp-shell.ndsp-landscape .ndsp-side-episodes {
  display: none;
}

@keyframes ndspBookmarkPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.ndsp-action-modal {
  position: fixed;
  z-index: 2147483200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}

.ndsp-action-modal.ndsp-show {
  display: flex;
}

.ndsp-action-card {
  width: min(92vw, 420px);
  max-height: min(82dvh, 640px);
  border: 1px solid rgba(255, 205, 137, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(29, 33, 35, 0.72), rgba(11, 13, 15, 0.62) 48%, rgba(58, 25, 21, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 238, 214, 0.18), 0 1.25rem 3rem rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(28px) saturate(155%);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  overflow: hidden;
  animation: ndspActionIn 0.18s ease-out both;
}

@keyframes ndspActionIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ndsp-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
}

.ndsp-action-title {
  color: #ffb66f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.ndsp-action-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(207, 171, 111, 0.48);
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.52);
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.ndsp-action-close::before,
.ndsp-action-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.ndsp-action-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ndsp-action-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ndsp-action-body {
  padding: 12px 16px 18px;
  overflow: auto;
  max-height: calc(min(82dvh, 640px) - 58px);
}

#vjActionHistoryModal .ndsp-action-body {
  scrollbar-width: thin;
  scrollbar-color: #635247 #151719;
}

#vjActionHistoryModal .ndsp-action-body::-webkit-scrollbar {
  width: 0.45rem;
}

#vjActionHistoryModal .ndsp-action-body::-webkit-scrollbar-track {
  background: #151719;
  border-radius: 1rem;
}

#vjActionHistoryModal .ndsp-action-body::-webkit-scrollbar-thumb {
  background: linear-gradient(#80665a, #4a3c35);
  border-radius: 1rem;
}

#vjActionHistoryModal .ndsp-action-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#a07460, #5b463d);
}

.ndsp-login-copy {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.ndsp-action-row {
  display: flex;
  gap: 10px;
}

.ndsp-action-link {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(207, 171, 111, 0.62);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 26, 22, 0.86), rgba(18, 18, 17, 0.82));
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.ndsp-action-link:hover {
  color: #ffd785 !important;
  border-color: rgba(255, 214, 145, 0.82);
}

.ndsp-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
}

.ndsp-history-item {
  min-width: 0;
  text-align: center;
}

.ndsp-history-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ndsp-history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ndsp-history-name {
  display: block;
  margin-top: 7px;
  color: #d59b66 !important;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none !important;
}

.ndsp-history-date,
.ndsp-history-read {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.ndsp-history-read {
  color: #ffc08a;
}

.ndsp-history-empty {
  padding: 34px 8px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.ndsp-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d2532;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.ndsp-center-play svg {
  width: 37px;
  height: 37px;
  margin-left: 0;
  fill: currentColor;
}

.ndsp-shell.ndsp-playing .ndsp-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.ndsp-gate-play-hint {
  position: absolute;
  left: 50%;
  top: calc(50% + 58px);
  z-index: 18;
  max-width: calc(100% - 36px);
  min-height: 32px;
  padding: 6px 14px 7px;
  border: 1px solid rgba(255, 143, 12, 0.42);
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.72);
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.ndsp-gate-play-hint span {
  position: relative;
  z-index: 1;
}

.ndsp-gate-play-hint::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 143, 12, 0), rgba(255, 143, 12, 0.84), rgba(255, 178, 74, 0));
  transform: translateX(-120%);
}

.ndsp-shell.ndsp-gate-waiting:not(.ndsp-playing) .ndsp-gate-play-hint {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.ndsp-shell.ndsp-gate-waiting:not(.ndsp-playing) .ndsp-gate-play-hint::after {
  animation: ndsp-gate-hint-sweep 2.4s ease-in-out infinite;
}

@keyframes ndsp-gate-hint-sweep {
  0% { transform: translateX(-120%); }
  58%, 100% { transform: translateX(340%); }
}

.ndsp-buffering {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 19;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-top-color: #fff;
  display: none;
  animation: ndsp-spin 0.8s linear infinite;
}

.ndsp-shell.ndsp-waiting .ndsp-buffering {
  display: block;
}

@keyframes ndsp-spin {
  to {
    transform: rotate(360deg);
  }
}

.ndsp-subtitle {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: var(--ndsp-subtitle-bottom, 24%);
  z-index: 14;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%);
  color: rgb(var(--ndsp-subtitle-color-rgb, 255, 255, 255));
  opacity: var(--ndsp-subtitle-alpha, 1);
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.78);
  paint-order: stroke fill;
  font-size: var(--ndsp-subtitle-size, clamp(18px, 3.1vw, 21px));
  line-height: 1.32;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
  text-shadow: 1px 0 0 rgba(0, 0, 0, 0.78), -1px 0 0 rgba(0, 0, 0, 0.78), 0 1px 0 rgba(0, 0, 0, 0.78), 0 -1px 0 rgba(0, 0, 0, 0.78);
  pointer-events: none;
  display: none;
}

.ndsp-subtitle.ndsp-show {
  display: block;
}

.ndsp-notice {
  position: absolute;
  left: 50%;
  top: 72px;
  z-index: 26;
  width: max-content;
  max-width: calc(100% - 28px);
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  pointer-events: none;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.86);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ndsp-notice.ndsp-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ndsp-consent {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 42;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.ndsp-consent.ndsp-show {
  display: flex;
}

.ndsp-consent-box {
  width: min(86%, 320px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 11, 19, 0.88);
  padding: 18px;
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px) saturate(1.12);
}

.ndsp-consent-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.ndsp-consent-text {
  margin-top: 8px;
  color: #d9e2f7;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.ndsp-consent-btn {
  width: 100%;
  height: 42px;
  margin-top: 15px;
  border: 0;
  border-radius: 999px;
  background: #FF8F0C;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-latest-modal {
  position: absolute;
  inset: 0;
  z-index: 29;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 10, 0.58);
  backdrop-filter: blur(7px);
}

.ndsp-latest-modal.ndsp-show {
  display: flex;
}

.ndsp-latest-card {
  width: min(82%, 320px);
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(8, 11, 19, 0.82);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px) saturate(1.18);
}

.ndsp-latest-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 143, 12, 0.72);
  border-radius: 50%;
  background: rgba(255, 143, 12, 0.18);
  color: #ff9f2f;
  font-size: 24px;
  line-height: 40px;
  font-weight: 700;
}

.ndsp-latest-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.ndsp-latest-text {
  margin-top: 7px;
  color: #cbd5e8;
  font-size: 14px;
  line-height: 1.5;
}

.ndsp-latest-back {
  min-width: 138px;
  height: 40px;
  margin-top: 17px;
  border: 1px solid #ff8f0c;
  border-radius: 999px;
  background: #ff8f0c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 143, 12, 0.22);
}

.ndsp-latest-back:hover {
  border-color: #ffb24a;
  background: #ffb24a;
}

.ndsp-watchgate-notice {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 33;
  max-width: min(76%, 360px);
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 143, 12, 0.42);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(8, 11, 18, 0.68), rgba(20, 23, 31, 0.56));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 -12px 24px rgba(255, 143, 12, 0.06);
  backdrop-filter: blur(14px) saturate(1.12);
  opacity: 0;
  overflow: hidden;
  transform: translate3d(28px, 0, 0) scale(0.98);
  pointer-events: none;
  will-change: opacity, transform;
  --ndsp-watchgate-progress: 0%;
  transition: opacity 0.36s ease, transform 0.46s cubic-bezier(0.16, 1, 0.3, 1);
}

.ndsp-watchgate-notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ndsp-watchgate-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 143, 12, 0.22), rgba(255, 178, 74, 0.1));
  transition: width 0.42s linear;
}

.ndsp-watchgate-notice.ndsp-show {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.ndsp-shell:not(.ndsp-controls-hidden) .ndsp-watchgate-notice {
  top: 78px;
}

.ndsp-watchgate-text {
  display: block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.52);
}

.ndsp-ad-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
  display: none;
}

.ndsp-ad-layer.ndsp-show {
  display: block;
}

.ndsp-ad-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.ndsp-ad-skip {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-html-ad {
  position: absolute;
  z-index: 32;
  display: none;
  pointer-events: auto;
}

.ndsp-html-ad.ndsp-show {
  display: block;
}

.ndsp-html-ad.ndsp-bottom-banner {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: var(--ndsp-bottom-ad-height, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 8, 14, 0.92);
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.26);
}

.ndsp-html-ad.ndsp-center-ad {
  left: 50%;
  top: 50%;
  width: min(92%, 336px);
  min-height: 180px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(6, 8, 14, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.ndsp-html-ad.ndsp-top-banner {
  left: 50%;
  top: 58px;
  width: min(96%, 380px);
  min-height: 50px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(6, 8, 14, 0.82);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.ndsp-html-ad-content {
  width: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
}

.ndsp-html-ad-content iframe,
.ndsp-html-ad-content ins,
.ndsp-html-ad-content img {
  max-width: 100%;
}

.ndsp-html-ad-close {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 16px;
  line-height: 20px;
  cursor: pointer;
}

.ndsp-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 12px 12px;
  background: linear-gradient(0deg, rgba(2, 4, 10, 0.88), rgba(2, 4, 10, 0));
  transition: bottom 0.24s ease, opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ndsp-shell.ndsp-bottom-ad-visible .ndsp-bottom {
  bottom: var(--ndsp-bottom-ad-height, 56px);
}

.ndsp-shell.ndsp-controls-hidden .ndsp-topbar {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ndsp-shell.ndsp-controls-hidden .ndsp-bottom {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: bottom 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.ndsp-slim-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  height: 2px;
  transition: bottom 0.24s ease;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.12);
}

.ndsp-shell.ndsp-bottom-ad-visible .ndsp-slim-progress {
  bottom: var(--ndsp-bottom-ad-height, 56px);
}
.ndsp-slim-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--ndsp-accent);
  box-shadow: 0 0 8px rgba(255, 143, 12, 0.52);
  transition: width 0.18s linear;
}
.ndsp-progress-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.ndsp-progress-wrap {
  position: relative;
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.ndsp-time {
  min-width: 38px;
  color: #d9e2f7;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ndsp-range {
  appearance: none;
  width: 100%;
  height: 7px;
  position: relative;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ndsp-accent) var(--ndsp-progress, 0%), rgba(255, 255, 255, 0.28) var(--ndsp-progress, 0%));
  outline: none;
  cursor: pointer;
  pointer-events: none;
}

.ndsp-progress-hit {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  bottom: -2px;
  z-index: 2;
  cursor: pointer;
  touch-action: none;
  background: transparent;
}

.ndsp-range::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ndsp-accent);
}

.ndsp-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--ndsp-accent);
}

.ndsp-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.ndsp-controls-left,
.ndsp-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ndsp-volume-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ndsp-volume-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 31;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 52px;
  padding: 10px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(12, 14, 20, 0.62);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(1.15);
}

.ndsp-volume-panel.ndsp-open {
  display: flex;
}

.ndsp-volume-mute {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 32px;
}

.ndsp-volume-slider {
  position: relative;
  width: 30px;
  height: 104px;
  --ndsp-volume: 100%;
  cursor: pointer;
  touch-action: none;
}

.ndsp-volume-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: visible;
}

.ndsp-volume-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ndsp-volume);
  border-radius: inherit;
  background: linear-gradient(180deg, #ffb15b, var(--ndsp-accent));
}

.ndsp-volume-thumb {
  position: absolute;
  left: 50%;
  bottom: var(--ndsp-volume);
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ndsp-accent);
  box-shadow: 0 0 10px rgba(255, 143, 12, 0.45);
  transform: translate(-50%, 50%);
}

.ndsp-volume-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  opacity: 0;
  pointer-events: none;
}

.ndsp-volume-range::-webkit-slider-thumb {
  appearance: none;
}

.ndsp-volume-ios-note {
  display: none;
  width: 112px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.ndsp-shell.ndsp-ios-volume-limited .ndsp-volume-panel {
  width: 132px;
  padding: 12px 12px 13px;
}

.ndsp-shell.ndsp-ios-volume-limited .ndsp-volume-mute {
  display: none;
}

.ndsp-shell.ndsp-ios-volume-limited .ndsp-volume-slider {
  display: none;
}

.ndsp-shell.ndsp-ios-volume-limited .ndsp-volume-ios-note {
  display: block;
}

.ndsp-pill {
  position: relative;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.62);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ndsp-pill:hover,
.ndsp-pill.ndsp-on {
  border-color: rgba(255, 143, 12, 0.78);
  background: rgba(255, 143, 12, 0.22);
}

.ndsp-pill.ndsp-cc.ndsp-off {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(7, 10, 18, 0.78);
}

.ndsp-pill.ndsp-cc.ndsp-off::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) rotate(-38deg);
  pointer-events: none;
}

.ndsp-menu-wrap {
  position: relative;
}

.ndsp-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 178px;
  max-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  display: none;
}

.ndsp-menu.ndsp-open {
  display: block;
}

.ndsp-menu-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d9e2f7;
  padding: 9px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-menu-btn:hover,
.ndsp-menu-btn.ndsp-active {
  background: rgba(255, 143, 12, 0.22);
  color: #fff;
}

.ndsp-cc-menu {
  width: auto;
  min-width: 0;
  max-width: 220px;
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 19, 0.72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px) saturate(1.18);
}

.ndsp-cc-menu.ndsp-open {
  display: grid;
  grid-template-columns: minmax(96px, max-content);
  gap: 6px;
}

.ndsp-cc-menu .ndsp-menu-btn {
  width: auto;
  min-width: 96px;
  max-width: 204px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ndsp-cc-menu .ndsp-menu-btn:hover,
.ndsp-cc-menu .ndsp-menu-btn.ndsp-active {
  background: rgba(255, 143, 12, 0.2);
}

.ndsp-subtitle-modal .ndsp-action-card {
  width: min(92vw, 440px);
}

.ndsp-subtitle-panel {
  display: grid;
  gap: 16px;
}

.ndsp-subtitle-setting {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
}

.ndsp-subtitle-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 400;
}

.ndsp-subtitle-value {
  color: #ffc08a;
  font-size: 13px;
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

.ndsp-subtitle-range {
  --ndsp-range-percent: 50%;
  width: 100%;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.ndsp-subtitle-range:hover {
  filter: brightness(1.06);
}

.ndsp-subtitle-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9f2f var(--ndsp-range-percent), rgba(255, 255, 255, 0.16) var(--ndsp-range-percent));
}

.ndsp-subtitle-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffb24a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.ndsp-subtitle-range:active::-webkit-slider-thumb {
  transform: scale(1.08);
}

.ndsp-subtitle-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.ndsp-subtitle-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: #ff9f2f;
}

.ndsp-subtitle-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffb24a;
}

.ndsp-subtitle-range[data-subtitle-style="color"] {
  background: transparent;
  filter: none;
}

.ndsp-subtitle-range[data-subtitle-style="color"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 78, 78, 0.88) 13%, rgba(255, 177, 59, 0.88) 27%, rgba(255, 238, 104, 0.88) 39%, rgba(93, 235, 116, 0.88) 52%, rgba(85, 216, 255, 0.88) 66%, rgba(111, 123, 255, 0.88) 79%, rgba(238, 107, 255, 0.88) 91%, rgba(255, 78, 78, 0.88) 100%);
}

.ndsp-subtitle-range[data-subtitle-style="color"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 78, 78, 0.88) 13%, rgba(255, 177, 59, 0.88) 27%, rgba(255, 238, 104, 0.88) 39%, rgba(93, 235, 116, 0.88) 52%, rgba(85, 216, 255, 0.88) 66%, rgba(111, 123, 255, 0.88) 79%, rgba(238, 107, 255, 0.88) 91%, rgba(255, 78, 78, 0.88) 100%);
}

.ndsp-subtitle-range[data-subtitle-style="color"]::-moz-range-progress {
  background: transparent;
}

.ndsp-subtitle-select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.76);
  color: #fff;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 400;
}

.ndsp-subtitle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.ndsp-subtitle-btn {
  min-height: 38px;
  border: 1px solid rgba(207, 171, 111, 0.52);
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.52);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.ndsp-subtitle-btn:hover {
  color: #ffd785;
  border-color: rgba(255, 214, 145, 0.82);
}

.ndsp-subtitle-btn.ndsp-subtitle-off {
  border-color: rgba(255, 112, 92, 0.44);
}

.ndsp-episodes {
  display: none;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 82px;
  z-index: 24;
  max-height: min(46vh, 260px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(8, 11, 19, 0.72);
  backdrop-filter: blur(14px) saturate(1.18);
}


.ndsp-episodes::-webkit-scrollbar {
  width: 6px;
}

.ndsp-episodes::-webkit-scrollbar-track {
  background: transparent;
}

.ndsp-episodes::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.ndsp-episodes::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}
.ndsp-episodes.ndsp-open {
  display: grid;
  animation: ndspActionIn 0.18s ease-out both;
}

.ndsp-ep-btn {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-ep-btn.ndsp-active {
  border-color: var(--ndsp-accent);
  background: var(--ndsp-accent);
}

.ndsp-error {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 28;
  width: min(86%, 320px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 11, 19, 0.88);
  color: #fff;
  padding: 18px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px) saturate(1.12);
  display: none;
}

.ndsp-error.ndsp-show {
  display: block;
}

.ndsp-error-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.ndsp-error-text {
  margin-top: 8px;
  color: #d9e2f7;
  font-size: 13px;
  line-height: 1.55;
}

.ndsp-error-reload {
  width: 100%;
  height: 42px;
  margin-top: 15px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ndsp-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-report-modal {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.46);
  pointer-events: auto;
}

.ndsp-report-modal.ndsp-show {
  display: flex;
}

.ndsp-report-card {
  width: min(92vw, 420px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(9, 12, 20, 0.96);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateY(8px);
  animation: ndspReportIn 0.18s ease forwards;
}

@keyframes ndspReportIn {
  to { transform: translateY(0); }
}

.ndsp-report-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ndsp-report-title {
  font-size: 16px;
  font-weight: 800;
}

.ndsp-report-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 8, 14, 0.56);
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.ndsp-report-close::before,
.ndsp-report-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.ndsp-report-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ndsp-report-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ndsp-report-close:hover {
  border-color: rgba(255, 143, 12, 0.78);
  background: rgba(255, 143, 12, 0.22);
}

.ndsp-report-body {
  padding: 14px;
  text-align: left;
}

.ndsp-report-label {
  display: block;
  margin-bottom: 7px;
  color: #d9e2f7;
  font-size: 13px;
  font-weight: 700;
}

.ndsp-report-label-gap {
  margin-top: 12px;
}

.ndsp-report-select,
.ndsp-report-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  font-size: 16px;
}

.ndsp-report-select {
  height: 38px;
  padding: 0 10px;
}

.ndsp-report-select option {
  color: #111;
}

.ndsp-report-textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

.ndsp-report-textarea::placeholder {
  color: rgba(217, 226, 247, 0.58);
}

.ndsp-report-select:focus,
.ndsp-report-textarea:focus {
  border-color: rgba(255, 143, 12, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 143, 12, 0.18);
}


.ndsp-report-status {
  min-height: 18px;
  margin-top: 8px;
  color: #FFB24A;
  font-size: 13px;
  line-height: 1.4;
}

.ndsp-report-status.ndsp-ok {
  color: #8ee6a6;
}

.ndsp-report-submit {
  display: block;
  width: min(100%, 220px);
  height: 38px;
  margin: 10px auto 0;
  border: 0;
  border-radius: 8px;
  background: #FF8F0C;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ndsp-report-submit:hover {
  background: #FFB24A;
}
@media (max-width: 760px) {
  .ndsp-shell {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .ndsp-title {
    font-size: 16px;
  }

  .ndsp-float-title {
    left: 12px;
    top: 12px;
    max-width: 82%;
    padding: 0;
    font-size: 11px;
  }
  .ndsp-center-play {
    width: 68px;
    height: 68px;
  }

  .ndsp-gate-play-hint {
    top: calc(50% + 52px);
    max-width: calc(100% - 28px);
    min-height: 30px;
    padding: 5px 12px 6px;
    font-size: 12px;
  }

  .ndsp-subtitle {
    top: auto;
    bottom: var(--ndsp-subtitle-bottom, 24%);
    font-size: var(--ndsp-subtitle-size, clamp(17px, 5vw, 19px));
  }

  .ndsp-watchgate-notice {
    top: 10px;
    right: 10px;
    max-width: min(78%, 320px);
    min-height: 30px;
    padding: 6px 10px;
  }

  .ndsp-shell:not(.ndsp-controls-hidden) .ndsp-watchgate-notice {
    top: 72px;
  }

  .ndsp-watchgate-text {
    font-size: 11px;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-actions {
    top: 42%;
    right: 14px;
    gap: 10px;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-action {
    width: 32px;
    height: 32px;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-action svg {
    width: 18px;
    height: 18px;
  }

  .ndsp-shell.ndsp-controls-hidden.ndsp-playing .ndsp-side-actions {
    transform: translate(10px, -50%);
  }

}

@media (max-width: 760px) and (orientation: portrait) {
  .ndsp-shell.ndsp-landscape {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    margin-top: max(0px, calc((100dvh - 56.25vw) / 2));
    border-radius: 0;
  }

  .ndsp-shell.ndsp-landscape .ndsp-episodes {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 80;
    max-height: min(44dvh, 320px);
    align-content: start;
    -webkit-overflow-scrolling: touch;
  }

  .ndsp-shell.ndsp-landscape.ndsp-bottom-ad-visible .ndsp-episodes {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--ndsp-bottom-ad-height, 56px));
  }

  .ndsp-shell.ndsp-landscape .ndsp-report-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 18px 12px;
    align-items: center;
    justify-content: center;
  }

  .ndsp-shell.ndsp-landscape .ndsp-report-card {
    width: min(92vw, 420px);
    max-height: min(84dvh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) and (orientation: landscape) {
  .ndsp-shell.ndsp-landscape {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    aspect-ratio: auto;
    margin-top: 0;
    border-radius: 0;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-actions {
    right: 14px;
    top: 42%;
    gap: 10px;
  }
}

/* Real tablet browsers can use a desktop-width layout viewport while still
   being classified as mobile by the ad/player runtime. Keep that viewport
   inside the visible page instead of relying on Safari's wider 100vw. */
@media (min-width: 761px) and (max-width: 1024px) {
  .nd-play-ads.nd-play-ads-mobile {
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .nd-play-ads.nd-play-ads-mobile .nd-play-ad-main,
  .nd-play-ads.nd-play-ads-mobile .containersss.nd-play-player-wrap {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .nd-play-ads.nd-play-ads-mobile .ndsp-shell {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    margin-top: max(0px, calc((100dvh - 56.25vw) / 2));
    border-radius: 0;
  }

  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape .ndsp-episodes {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 80;
    max-height: min(44dvh, 320px);
    align-content: start;
    -webkit-overflow-scrolling: touch;
  }

  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape.ndsp-bottom-ad-visible .ndsp-episodes {
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + var(--ndsp-bottom-ad-height, 56px));
  }

  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape .ndsp-report-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 18px 12px;
    align-items: center;
    justify-content: center;
  }

  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape .ndsp-report-card {
    width: min(92vw, 420px);
    max-height: min(84dvh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 761px) and (max-width: 1024px) and (orientation: landscape) {
  .nd-play-ads.nd-play-ads-mobile .ndsp-shell.ndsp-landscape {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    aspect-ratio: auto;
    margin-top: 0;
    border-radius: 0;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-actions {
    right: 14px;
    top: 42%;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .ndsp-bottom {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ndsp-controls-row {
    gap: 5px;
  }

  .ndsp-controls-left,
  .ndsp-controls-right {
    gap: 5px;
  }

  .ndsp-icon-btn {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .ndsp-report-btn {
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .ndsp-icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .ndsp-pill {
    min-width: 40px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .ndsp-quality {
    min-width: 42px;
  }

  .ndsp-side-action {
    width: 38px;
    height: 38px;
  }

  .ndsp-side-action svg {
    width: 21px;
    height: 21px;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-action {
    width: 32px;
    height: 32px;
  }

  .ndsp-shell.ndsp-landscape .ndsp-side-action svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .ndsp-bottom {
    padding-left: 8px;
    padding-right: 8px;
  }

  .ndsp-controls-row {
    gap: 4px;
  }

  .ndsp-controls-left,
  .ndsp-controls-right {
    gap: 4px;
  }

  .ndsp-icon-btn {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .ndsp-report-btn {
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .ndsp-icon-btn svg {
    width: 17px;
    height: 17px;
  }

  .ndsp-pill {
    min-width: 38px;
    height: 30px;
    padding: 0 7px;
    font-size: 11px;
  }

  .ndsp-fullscreen {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndsp-shell.ndsp-gate-waiting .ndsp-gate-play-hint::after {
    animation: none;
    transform: translateX(138%);
  }

  .ndsp-topbar,
  .ndsp-bottom,
  .ndsp-shell.ndsp-controls-hidden .ndsp-topbar,
  .ndsp-shell.ndsp-controls-hidden .ndsp-bottom {
    transition: none;
  }
}

/* play_mv Video.js overrides */
html,body,#Form1{width:100%;max-width:100%;margin:0;overflow-x:hidden}
html,body{min-height:100%;background:#05070c;color:#fff}
#Form1,.nd-play-ads,.nd-play-ad-main,.containersss.nd-play-player-wrap{max-width:100%}
.ndsp-stage .video-js{position:absolute;inset:0;width:100%;height:100%;background:#000}
.ndsp-stage .video-js .vjs-tech{object-fit:contain}
.ndsp-stage .vjs-control-bar,.ndsp-stage .vjs-big-play-button,.ndsp-stage .vjs-loading-spinner{display:none!important}
.ndsp-stage .vjs-poster,.ndsp-stage .vjs-text-track-display{display:none!important}
.ndsp-shell .ndsp-episodes{bottom:128px}
.ndsp-shell.ndsp-bottom-ad-visible .ndsp-episodes{bottom:calc(128px + var(--ndsp-bottom-ad-height,56px))}
@media (min-width:1025px){.ndsp-shell.ndsp-landscape .ndsp-episodes{top:50%;bottom:auto;max-height:min(calc(100% - 56px),560px);transform:translateY(-50%)}.ndsp-shell.ndsp-landscape .ndsp-episodes.ndsp-open{animation:none}}
.ndsp-stage .ndsp-slim-progress-buffer{position:absolute;left:0;top:0;height:100%;width:0;background:rgba(255,255,255,.18);box-shadow:0 0 8px rgba(255,255,255,.08)}
.ndsp-stage .ndsp-slim-progress-bar{position:absolute;left:0;top:0}
.ndsp-shell .ndsp-icon-btn,.ndsp-shell .ndsp-back-btn,.ndsp-shell .ndsp-pill{display:inline-grid;place-items:center;line-height:1}
.ndsp-shell .ndsp-icon-btn svg,.ndsp-shell .ndsp-back-btn svg{display:block;flex:0 0 auto;margin:auto;transform-origin:50% 50%}
.ndsp-shell .ndsp-icon-btn.ndsp-play .ndsp-glyph-play{transform:translateX(-1px)}
.ndsp-shell .ndsp-icon-btn .ndsp-glyph-prev{transform:translateX(-.5px)}
.ndsp-shell .ndsp-icon-btn .ndsp-glyph-next{transform:translateX(.5px)}
.ndsp-shell .ndsp-icon-btn .ndsp-glyph-volume,.ndsp-shell .ndsp-icon-btn .ndsp-glyph-mute{transform:translateX(.5px)}
.ndsp-shell .ndsp-icon-btn .ndsp-glyph-fullscreen{width:18px;height:18px}
.ndsp-shell .ndsp-back-btn{flex:0 0 auto;width:auto;min-width:68px;height:36px;padding:0 10px;grid-template-columns:10px auto;align-items:center;justify-content:center;column-gap:4px;color:#fff!important;font-size:13px;font-weight:400}
.ndsp-shell .ndsp-back-btn svg{width:10px;height:13px;color:#ff8f0c;stroke-width:2.35;transform:none}
.ndsp-shell .ndsp-back-text{display:inline-flex;align-items:center;justify-content:center;height:18px;line-height:18px;transform:none}
.ndsp-shell .ndsp-controls-left .ndsp-icon-btn,.ndsp-shell .ndsp-controls-right .ndsp-icon-btn{display:grid;place-items:center}
.ndsp-shell .ndsp-controls-left .ndsp-icon-btn svg,.ndsp-shell .ndsp-controls-right .ndsp-icon-btn svg{position:relative;left:auto;top:auto}
.ndsp-shell .ndsp-speed{display:inline-grid;place-items:center;min-width:44px;text-align:center}
.ndsp-shell.ndsp-faux-fullscreen{position:fixed!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;min-height:100dvh!important;z-index:2147483647!important;border-radius:0!important}
.ndsp-shell .ndsp-fullscreen:focus{border-color:rgba(255,255,255,.22);background:rgba(6,8,14,.56)}
.ndsp-shell .ndsp-fullscreen:active{border-color:rgba(255,143,12,.78);background:rgba(255,143,12,.22)}
@media (hover:none){.ndsp-shell .ndsp-fullscreen:hover{border-color:rgba(255,255,255,.22);background:rgba(6,8,14,.56)}.ndsp-shell .ndsp-fullscreen:active{border-color:rgba(255,143,12,.78);background:rgba(255,143,12,.22)}}
@media (orientation:landscape) and (max-height:520px){html,body{height:100%;overflow:hidden}.containersss.nd-play-player-wrap{width:100%!important;max-width:none!important;height:100dvh!important;margin:0!important}.ndsp-shell{width:100%!important;height:100dvh!important;max-width:100%!important;min-height:100dvh!important;margin:0!important;border-radius:0!important}.ndsp-shell.ndsp-landscape{width:100%!important;height:100dvh!important;aspect-ratio:auto;margin:0!important}.ndsp-stage .video-js .vjs-tech{object-fit:contain}.ndsp-shell .ndsp-topbar{padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))}.ndsp-shell .ndsp-bottom{padding:8px max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.ndsp-shell .ndsp-subtitle{bottom:var(--ndsp-subtitle-bottom,17%);font-size:var(--ndsp-subtitle-size,18px)}.ndsp-shell .ndsp-center-play{width:66px;height:66px}}
@media (max-width:380px){.ndsp-shell .ndsp-back-btn{min-width:60px;height:34px;padding:0 8px;font-size:12px;grid-template-columns:9px auto;column-gap:4px}.ndsp-shell .ndsp-back-btn svg{width:9px;height:12px;stroke-width:2.25}.ndsp-shell .ndsp-back-text{height:17px;line-height:17px}.ndsp-shell .ndsp-titlewrap{gap:7px}}

html,body,.ndsp-shell,.ndsp-shell input,.ndsp-shell button,.ndsp-shell select,.ndsp-shell textarea{font-family:Inter,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Leelawadee UI",sans-serif!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;letter-spacing:0}
.ndsp-title{font-size:16px;font-weight:400;line-height:1.24}
.ndsp-episode,.ndsp-ep-btn,.ndsp-back-btn,.ndsp-report-btn,.ndsp-chip,.ndsp-control-label,.ndsp-playlist-item-title{font-weight:400}
.ndsp-consent-title,.ndsp-error-title,.ndsp-report-title{font-weight:730}
.ndsp-latest-title{font-size:17px;font-weight:700}
.ndsp-subtitle{font-weight:650}
