.jdd-short-page,
.jdd-short-embed {
  --jdd-short-brand: #67e8f9;
  --jdd-short-brand-rgb: 103, 232, 249;
  --jdd-short-on-brand: #061316;
  --jdd-short-bg: #05090b;
  --jdd-short-snap: 100dvh;
  --jdd-short-bottom: 0px;
  --jdd-short-overlay-bottom: 1.35rem;
  --jdd-short-progress-bottom: 0.1rem;
  background: var(--jdd-short-bg);
  overflow: hidden;
}

@supports (height: 100svh) {
  .jdd-short-page { --jdd-short-snap: 100svh; }
}

html:has(.jdd-short-page),
body.jdd-short-page {
  height: 100%;
  overflow: hidden;
  background: var(--jdd-short-bg);
}

body.jdd-short-page {
  margin-left: 0 !important;
}

body.jdd-short-page .jdd-header,
body.jdd-short-page .jdd-footer,
body.jdd-short-page .jdd-ad-slot--sticky-bottom {
  display: none !important;
}

body.jdd-short-detail .jdd-tabbar {
  display: none !important;
}

@media (max-width: 767px) {
  body.jdd-short-page:not(.jdd-short-detail) {
    --jdd-short-bottom: calc(var(--jdd-tabbar-h) + 12px);
    --jdd-short-overlay-bottom: calc(var(--jdd-short-bottom) + 1.2rem);
    --jdd-short-progress-bottom: calc(var(--jdd-short-bottom) + 0.15rem);
  }
}

.jdd-short-shell {
  position: relative;
  height: var(--jdd-short-snap);
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--jdd-short-bg);
}

@media (min-width: 768px) {
  .jdd-short-shell {
    padding-left: var(--jdd-rail-w);
  }
  html.jdd-tv:not(.jdd-app-shell) .jdd-short-shell {
    padding-left: 200px;
  }
}

.jdd-short-pills {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 140;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .jdd-short-pills {
    display: flex;
  }
}

.jdd-short-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 17, 20, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.jdd-short-pills a.is-active,
.jdd-short-pills a[aria-current="page"] {
  background: var(--jdd-short-brand);
  color: var(--jdd-short-on-brand);
  border-color: transparent;
}

.jdd-short-header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 130;
}

@media (min-width: 768px) {
  .jdd-short-header {
    display: none;
  }
}

.jdd-short-menu,
.jdd-short-back {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.jdd-short-detail-header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: max(12px, env(safe-area-inset-left, 0px));
  z-index: 135;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(72vw, 28rem);
  pointer-events: none;
}

.jdd-short-detail-header > * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .jdd-short-detail-header {
    left: calc(var(--jdd-rail-w) + 16px);
  }
}

.jdd-short-detail-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.jdd-short-detail-heading strong,
.jdd-short-detail-heading span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jdd-short-detail-heading strong {
  font-size: 15px;
  font-weight: 800;
}

.jdd-short-detail-heading span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.jdd-short-feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  background: var(--jdd-short-bg);
}

.jdd-short-feed::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .jdd-short-feed {
    width: min(36rem, 100%);
    max-width: min(36rem, 100%);
    margin: 0 auto;
    left: 0;
    right: 0;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  }
  .jdd-short-shell {
    padding-left: var(--jdd-rail-w);
  }
}

.jdd-short-slide {
  position: relative;
  flex: 0 0 var(--jdd-short-snap);
  min-height: var(--jdd-short-snap);
  height: var(--jdd-short-snap);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: #fff;
  overflow: hidden;
  background: var(--jdd-short-bg);
}

.jdd-short-stage,
.jdd-short-backdrop,
.jdd-short-cover-layer,
.jdd-short-cover,
.jdd-short-player,
.jdd-short-player iframe,
.jdd-short-page .jdd-player-wrap,
.jdd-short-page .jdd-player-wrap .MacPlayer,
.jdd-short-page .jdd-player-wrap iframe,
.jdd-short-embed,
.jdd-short-embed .jdd-player-wrap,
.jdd-short-embed .MacPlayer,
.jdd-short-embed iframe,
.jdd-short-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--jdd-short-bg);
}

.jdd-short-page .jdd-player-wrap,
.jdd-short-page .jdd-player-wrap .MacPlayer,
.jdd-short-page .jdd-player-wrap iframe,
.jdd-short-embed .jdd-player-wrap,
.jdd-short-embed .MacPlayer,
.jdd-short-embed iframe {
  z-index: 3;
}

.jdd-short-stage {
  z-index: 1;
  cursor: pointer;
  overflow: hidden;
}

.jdd-short-backdrop {
  object-fit: cover;
  filter: blur(18px) saturate(1.05);
  opacity: 0.38;
  transform: scale(1.08);
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse) {
  .jdd-short-backdrop {
    filter: none;
    opacity: 0.22;
    transform: none;
  }
}

.jdd-short-cover-layer {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s;
}

.jdd-short-stage[data-cover-visible="true"] .jdd-short-cover-layer {
  opacity: 1;
}

.jdd-short-cover {
  object-fit: cover;
}

.jdd-short-player {
  z-index: 3;
}

.jdd-short-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 9, 11, 0.72) 100%);
}

.jdd-short-status {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  transform: translate(-50%, -50%);
  min-width: 3.4rem;
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  backdrop-filter: blur(16px);
}

.jdd-short-status.is-paused svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.jdd-short-dots {
  display: inline-flex;
  gap: 5px;
}

.jdd-short-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  animation: jdd-short-dot 1s ease-in-out infinite;
}

.jdd-short-dots i:nth-child(2) { animation-delay: 0.14s; }
.jdd-short-dots i:nth-child(3) { animation-delay: 0.28s; }

@keyframes jdd-short-dot {
  0%, 80%, 100% { opacity: 0.36; transform: translateY(0) scale(0.84); }
  40% { opacity: 1; transform: translateY(-2px) scale(1); }
}

.jdd-short-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px var(--jdd-short-overlay-bottom);
  pointer-events: none;
}

.jdd-short-copy {
  min-width: 0;
  max-width: min(34rem, calc(100% - 10.5rem));
  display: grid;
  gap: 6px;
}

.jdd-short-copy h2 {
  margin: 0;
  font-size: clamp(1.15rem, 4.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.jdd-short-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 650;
}

.jdd-short-copy span {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.jdd-short-actions,
.jdd-short-player-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.jdd-short-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 39px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.jdd-short-fav.is-fav,
.jdd-short-fav.is-saved {
  color: var(--jdd-short-brand);
  border-color: rgba(var(--jdd-short-brand-rgb), 0.64);
}

.jdd-short-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--jdd-short-brand);
  color: var(--jdd-short-on-brand);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(var(--jdd-short-brand-rgb), 0.22);
}

.jdd-short-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--jdd-short-progress-bottom);
  z-index: 7;
  height: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.jdd-short-progress__track {
  position: relative;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.jdd-short-progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform: scaleX(var(--jdd-short-progress, 0));
  transform-origin: 0 50%;
  background: var(--jdd-short-brand);
  border-radius: 999px;
}

.jdd-short-desk-nav {
  display: none;
}

@media (min-width: 1024px) {
  .jdd-short-page:not(.jdd-short-detail) {
    --jdd-short-overlay-bottom: 3.4rem;
    --jdd-short-progress-bottom: 1.6rem;
  }
  .jdd-short-desk-nav {
    position: absolute;
    top: 50%;
    left: calc(50% + 19rem);
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
  }
  .jdd-short-desk-nav button,
  .jdd-short-desk-nav a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 17, 20, 0.82);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }
  .jdd-short-desk-nav button:disabled {
    opacity: 0.34;
    cursor: default;
  }
  .jdd-short-desk-nav span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
  }
}

.jdd-short-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jdd-short-dock > button {
  position: relative;
  width: 54px;
  min-height: 54px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 12, 15, 0.66);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.jdd-short-dock__label {
  font-size: 11px;
  font-weight: 800;
}

.jdd-short-dock__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--jdd-short-brand);
  color: var(--jdd-short-on-brand);
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.jdd-short-dock .jdd-short-fav {
  width: 54px;
  height: auto;
  min-height: 54px;
  padding: 0;
  flex-direction: column;
  border-radius: 18px;
}

.jdd-short-slide--state {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jdd-short-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(17, 17, 20, 0.78);
  border: 1px solid var(--jdd-border);
}

.jdd-short-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.jdd-short-drawer[hidden] {
  display: none;
}

.jdd-short-drawer__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
}

.jdd-short-drawer__panel {
  position: relative;
  width: min(44rem, calc(100% - 16px));
  max-height: min(72dvh, 38rem);
  overflow: auto;
  border-radius: 18px 18px 0 0;
  background: #0a1518;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.jdd-short-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jdd-short-drawer__head h2 {
  margin: 0;
  font-size: 16px;
}

.jdd-short-drawer__head p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.jdd-short-drawer__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.jdd-short-ep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.jdd-short-ep-grid a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.jdd-short-ep-grid a.is-active {
  background: rgba(var(--jdd-short-brand-rgb), 0.18);
  color: var(--jdd-short-brand);
}

.jdd-short-related {
  margin-top: 18px;
}

.jdd-short-related p {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.jdd-short-related__row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jdd-short-related__card {
  flex: 0 0 92px;
  display: grid;
  gap: 6px;
}

.jdd-short-related__card img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 10px;
}

.jdd-short-related__card span {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jdd-short-embed {
  margin: 0;
  height: 100%;
}

.jdd-short-embed .jdd-play-loading {
  display: none;
}

.jdd-short-page .dplayer-controller,
.jdd-short-embed .dplayer-controller,
.jdd-short-page .dplayer-logo,
.jdd-short-embed .dplayer-logo,
.jdd-short-page .dplayer-notice,
.jdd-short-embed .dplayer-notice {
  display: none !important;
}

.jdd-short-page .jdd-play-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: transparent;
}

.jdd-short-page .jdd-play-loading.is-done,
.jdd-short-page .jdd-play-loading[hidden] {
  display: none;
}

.jdd-short-page .jdd-play-loading__wall,
.jdd-short-page .jdd-play-loading__veil,
.jdd-short-page .jdd-play-loading__panel,
.jdd-short-page .jdd-play-loading__bar,
.jdd-short-page .jdd-play-loading__countdown,
.jdd-short-page .jdd-play-loading__tip,
.jdd-short-page .jdd-play-loading__actions {
  display: none;
}

@media (orientation: landscape) and (max-width: 1023px) {
  .jdd-short-copy h2 {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }
  .jdd-short-overlay {
    gap: 8px;
  }
}

html.jdd-tv .jdd-short-desk-nav {
  display: flex;
}

html.jdd-tv .jdd-short-desk-nav button,
html.jdd-tv .jdd-short-desk-nav a {
  width: 64px;
  height: 64px;
}

html.jdd-tv .jdd-short-fav,
html.jdd-tv .jdd-short-more,
html.jdd-tv .jdd-short-dock > button {
  min-height: 56px;
}

html.jdd-app-shell .jdd-short-header,
html.jdd-app-shell .jdd-short-detail-header {
  top: 10px;
}

html.jdd-light .jdd-short-page,
html.jdd-light .jdd-short-embed,
html.jdd-light .jdd-short-feed,
html.jdd-light .jdd-short-slide {
  background: #071215;
}

@media (max-width: 767px) {
  .jdd-short-page .jdd-rail {
    display: none;
  }
}
