/* Drama detail — PC Figma + H5 detail + H5 play (qmdj-inspired) */

.drama-detail-static {
  --dd-accent: #ecd227;
  --dd-accent-h5: #fadc44;
  --dd-ink: #0d0d0d;
  --dd-red: #f54336;
  --dd-surface: rgba(255, 255, 255, 0.05);
  --dd-border: rgba(255, 255, 255, 0.1);
  --dd-muted: rgba(255, 255, 255, 0.55);
}

.drama-detail-static .drama-crumb__current {
  color: var(--dd-muted);
}

.drama-detail-layout {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 20px;
}

.drama-detail-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  max-width: 1019px;
  gap: 30px;
}

/* Hero card */
.drama-detail-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.drama-detail-hero__poster {
  flex-shrink: 0;
  width: 308px;
  height: 435px;
  border-radius: 18px;
  object-fit: cover;
  background: #464646;
}

.drama-detail-hero__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.drama-detail-hero__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  word-break: break-word;
}

.drama-detail-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--dd-muted);
  font-size: 16px;
  line-height: 22px;
}

.drama-detail-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 24px 30px;
  border-radius: 18px;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.drama-detail-hero__intro-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drama-detail-hero__intro-bar {
  flex-shrink: 0;
  width: 6px;
  height: 22px;
  border-radius: 3.5px;
  background: var(--dd-accent);
}

.drama-detail-hero__intro-title {
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
}

.drama-detail-hero__intro-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.drama-detail-hero__intro-text {
  margin: 0;
  color: var(--dd-muted);
  font-size: 14px;
  line-height: 20px;
  word-break: break-word;
}

.drama-detail-actions--hero {
  margin-top: auto;
}

.drama-detail-actions__start {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.drama-detail-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--dd-accent, #ecd227);
  border-radius: 12px;
  color: var(--dd-ink, #0d0d0d);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.drama-detail-play-cta:hover {
  filter: brightness(1.05);
}

.drama-detail-action-group--muted {
  background: var(--dd-surface);
}

/* Main-column episodes */
.drama-detail-series {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.drama-detail-series__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
}

.drama-detail-series__grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 12px;
  width: 100%;
}

.drama-detail-series__grid .drama-detail-ep {
  width: 100%;
  max-width: 47px;
  justify-self: center;
}

/* Tabs (removed from PC; keep minimal for legacy) */
.drama-detail-tabs[role="tablist"] {
  display: none;
}

.drama-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.drama-detail-panel[hidden] {
  display: none !important;
}

.drama-detail-info__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  word-break: break-word;
}

.drama-detail-info__desc,
.drama-detail-info__meta {
  margin: 0;
  color: var(--dd-muted);
  font-weight: 400;
  word-break: break-word;
}

.drama-detail-info__desc {
  font-size: 16px;
  line-height: 22px;
}

.drama-detail-info__meta {
  font-size: 18px;
  line-height: 24px;
}

.drama-detail-tags {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.drama-detail-tags__label {
  color: var(--dd-muted);
  font-size: 18px;
  line-height: 24px;
  white-space: nowrap;
}

.drama-detail-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drama-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
}

.drama-detail-action-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.drama-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 22px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.drama-detail-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 225, 32, 0.1);
}

.drama-detail-action__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.drama-detail-action--active .drama-detail-action__icon {
  background: var(--color-primary-500);
}

.drama-detail-action-group__sep {
  width: 2px;
  height: 19px;
  background: rgba(255, 255, 255, 0.1);
}

.drama-detail-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--dd-accent);
  color: var(--dd-ink);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
}

.drama-detail-download img {
  display: block;
  filter: brightness(0);
}

/* Aside */
.drama-detail-aside {
  width: 234px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.drama-detail-eps {
  display: none;
}

.drama-detail-ep {
  position: relative;
  width: 47px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--dd-muted);
  font-size: 18px;
  line-height: 24px;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
}

.drama-detail-ep--active {
  background: rgba(255, 225, 32, 0.1);
  color: var(--dd-accent);
}

.drama-detail-ep__playing {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 14px;
  height: 14px;
}

.drama-detail-hot {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drama-detail-hot__title {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
}

.drama-detail-hot__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drama-detail-hot__list .drama-card {
  width: 234px;
}

.drama-detail-hot__list .drama-card__media {
  height: 312px;
  padding-bottom: 0;
  aspect-ratio: auto;
}

.drama-detail-hot__list .drama-card__media::before {
  display: none;
}

.drama-detail-hot__list .drama-card__title {
  font-size: 20px;
  line-height: 28px;
  -webkit-line-clamp: 2;
}

.drama-detail-hot__list .drama-card__tags {
  font-size: 16px;
  line-height: 22px;
}

/* Visibility */
@media (max-width: 768px) {
  .dd-only-pc {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .dd-only-h5 {
    display: none !important;
  }

  .dd-h5-sheet-mask,
  .dd-h5-ep-sheet,
  .dd-h5-speed-sheet {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .drama-detail-static .drama-view {
    padding: 30px 220px 60px;
    box-sizing: border-box;
  }

  .drama-detail-static .drama-crumb {
    font-size: 18px;
    line-height: 24px;
    color: #fff;
  }

  .drama-detail-layout {
    max-width: 1273px;
    margin: 0 auto;
  }
}

@media (min-width: 769px) and (max-width: 1600px) {
  .drama-detail-static .drama-view {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .drama-detail-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .drama-detail-main {
    max-width: none;
    width: 100%;
  }

  .drama-detail-aside {
    width: 100%;
  }

  .drama-detail-hot__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .drama-detail-hot__list .drama-card {
    width: 100%;
  }

  .drama-detail-hot__list .drama-card__media {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: auto;
  }

  .drama-detail-hot__list .drama-card__media::before {
    display: block;
    padding-bottom: 133.333333%; /* 4 / 3 */
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .drama-detail-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .drama-detail-hero__poster {
    width: min(100%, 308px);
    height: auto;
    aspect-ratio: 308 / 435;
  }

  .drama-detail-series__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .drama-detail-hot__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .drama-detail-series__grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .drama-detail-tags__label {
    font-size: 16px;
    line-height: 22px;
  }
}

/* ========== H5 详情 ========== */
@media (max-width: 768px) {
  body.drama-detail-page {
    background: #0a0a0a;
  }

  body.drama-detail-page .site-header,
  body.drama-detail-page .site-footer,
  body.drama-detail-page .to-top {
    display: none !important;
  }

  .drama-detail-page .page-main.drama-detail-static {
    padding: 0;
    min-height: 100dvh;
  }

  .dd-h5-detail {
    position: relative;
    min-height: 100dvh;
    background: #0a0a0a;
    padding-bottom: calc(109px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .dd-h5-detail__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 544px;
    overflow: hidden;
    pointer-events: none;
  }

  .dd-h5-detail__bg-gradient {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(102, 102, 102, 0) 100%);
  }

  .dd-h5-detail__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dd-h5-detail__bg-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 160px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, #0a0a0a 100%);
  }

  .dd-h5-detail__header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(48px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
    box-sizing: border-box;
    pointer-events: none;
  }

  .dd-h5-back,
  .dd-h5-top-actions,
  .dd-h5-top-btn {
    pointer-events: auto;
  }

  .dd-h5-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .dd-h5-back img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }

  .dd-h5-top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
  }

  .dd-h5-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }

  .dd-h5-top-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
  }

  .dd-h5-detail__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: calc(48px + env(safe-area-inset-top, 0px) + 12px) 16px 24px;
    box-sizing: border-box;
    background-color: rgb(0 0 0 / 0.6);
  }

  .dd-h5-hero {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .dd-h5-hero__cover {
    width: 76px;
    height: 106px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #d4d4d4;
  }

  .dd-h5-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dd-h5-hero__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 220px;
  }

  .dd-h5-hero__title {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dd-h5-hero__meta {
    margin: 0;
    display: flex;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dd-h5-hero__tags span {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-intro h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
  }

  .dd-h5-intro p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    word-break: break-word;
  }

  .dd-h5-eps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .dd-h5-eps__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }

  .dd-h5-eps__status {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-eps__ranges {
    display: flex;
    gap: 24px;
    width: 100%;
  }

  .dd-h5-eps__range {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-eps__range--active {
    color: var(--dd-accent-h5);
  }

  .dd-h5-eps__row {
    display: flex;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dd-h5-eps__row::-webkit-scrollbar {
    display: none;
  }

  .dd-h5-ep {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
  }

  .dd-h5-ep--preview {
    background: rgba(250, 220, 68, 0.1);
    color: var(--dd-accent-h5);
    font-weight: 400;
  }

  .dd-h5-ep--playing {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
  }

  .dd-h5-ep__badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
  }

  .dd-h5-guess {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .dd-h5-guess__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }

  .dd-h5-guess__refresh {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-guess__refresh img {
    width: 18px;
    height: 18px;
    transform: rotate(150deg);
    filter: brightness(0) invert(1);
  }

  .dd-h5-guess__list {
    display: flex;
    gap: 5px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dd-h5-guess__list::-webkit-scrollbar {
    display: none;
  }

  .drama-card--h5-guess {
    width: 111px;
    flex: 0 0 111px;
    border-radius: 9px;
    overflow: hidden;
  }

  .drama-card--h5-guess .drama-card__body {
    gap: 2px;
  }

  .drama-card--h5-guess .drama-card__title {
    -webkit-line-clamp: 2;
  }

  .drama-card--h5-guess .drama-card__media {
    width: 111px;
    height: 148px;
    padding-bottom: 0;
    aspect-ratio: auto;
    border-radius: 6px;
  }

  .drama-card--h5-guess .drama-card__media::before {
    display: none;
  }

  .drama-card--h5-guess .drama-card__eps {
    font-size: 10px;
    line-height: 16px;
    padding: 2px 4px;
  }

  .drama-card--h5-guess .drama-card__title,
  .drama-card--h5-guess .drama-card__tags {
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-detail__bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    background: #000;
  }

  .dd-h5-detail__bar-inner {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
    box-sizing: border-box;
  }

  .dd-h5-detail__like {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-detail__like img {
    width: 16px;
    height: 16px;
  }

  .dd-h5-detail__like--active {
    background: var(--dd-accent-h5);
    color: #181818;
  }

  .dd-h5-detail__play {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 999px;
    border: 0;
    background: var(--dd-accent-h5);
    color: #181818;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
  }

  /* ========== H5 播放（qmdj） ========== */
  .dd-h5-play {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: #000;
  }

  .dd-h5-play[hidden] {
    display: none !important;
  }

  .dd-h5-play__stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .dd-h5-play__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .dd-h5-play__center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .dd-h5-play__grad {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: min(300px, 40%);
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 3;
  }

  .dd-h5-play__top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    box-sizing: border-box;
  }

  .dd-h5-play__back,
  .dd-h5-play__speed {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #fff;
  }

  .dd-h5-play__back img,
  .dd-h5-play__speed img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }

  .dd-h5-play__speed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-play__speed img {
    width: 18px;
    height: 18px;
  }

  .dd-h5-play__ep-label {
    flex: 1;
    min-width: 0;
    color: #fff;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
  }

  .dd-h5-play__side {
    position: absolute;
    right: 12px;
    bottom: 120px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .dd-h5-play__side-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-play__side-item img {
    width: 28px;
    height: 28px;
  }

  .dd-h5-play__meta {
    position: absolute;
    left: 16px;
    right: 72px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dd-h5-play__meta-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  }

  .dd-h5-play__meta-title img {
    width: 16px;
    height: 16px;
  }

  .dd-h5-play__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    align-self: stretch;
    gap: 6px;
  }

  .dd-h5-play__tag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
    text-decoration: none;
    word-break: break-word;
  }

  a.dd-h5-play__tag:hover {
    opacity: 0.9;
  }

  .dd-h5-play__meta-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  }

  .dd-h5-play__bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #000;
    box-sizing: border-box;
  }

  .dd-h5-play__ep-picker {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-play__ep-picker img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
  }

  .dd-h5-play__icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .dd-h5-play__icon-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  body.is-drama-h5-playing .site-header,
  body.is-drama-h5-playing .site-footer,
  body.is-drama-h5-playing .dd-h5-detail {
    display: none !important;
  }

  body.is-drama-h5-focus .dd-h5-play__side,
  body.is-drama-h5-focus .dd-h5-play__meta,
  body.is-drama-h5-focus .dd-h5-play__grad {
    opacity: 0;
    pointer-events: none;
  }

  /* Sheets */
  .dd-h5-sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, 0.55);
  }

  .dd-h5-sheet-mask[hidden] {
    display: none !important;
  }

  .dd-h5-comment-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: min(50vh, 100dvh);
    max-height: min(50vh, 100dvh);
    overflow: hidden;
    background: #181818;
    border-radius: 20px 20px 0 0;
    box-sizing: border-box;
  }

  .dd-h5-comment-sheet[hidden] {
    display: none !important;
  }

  .dd-h5-comment-sheet__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 16px 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .dd-h5-comment-sheet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 343px;
    margin: 0;
    color: #fff;
  }

  .dd-h5-comment-sheet__close {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 0;
  }

  .dd-h5-comment-sheet__close img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .dd-h5-comment-sheet__title {
    flex: 1 1 0;
    min-width: 0;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  }

  .dd-h5-comment-sheet__body {
    width: 100%;
    max-width: 343px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dd-h5-comment-sheet__body .comment-section {
    gap: 0;
    min-height: 100%;
  }

  .dd-h5-comment-sheet__body .comment-composer {
    display: none !important;
  }

  .dd-h5-comment-sheet__body .comment-list {
    gap: 18px;
  }

  .dd-h5-comment-sheet__body .comment-list__count {
    display: none;
  }

  .dd-h5-comment-sheet__body .comment-list__threads {
    gap: 18px;
  }

  .dd-h5-comment-sheet__body .comment-item__name {
    color: rgba(255, 255, 255, 0.55);
  }

  .dd-h5-comment-sheet__body .comment-item__text {
    color: #fff;
  }

  .dd-h5-comment-sheet__body .comment-item__time {
    color: #757575;
  }

  .dd-h5-comment-sheet__body .comment-item__reply {
    color: rgba(255, 255, 255, 0.55);
  }

  .dd-h5-comment-sheet__body .comment-item__toggle,
  .dd-h5-comment-sheet__body .comment-item__toggle-line {
    color: #bdbdbd;
  }

  .dd-h5-comment-sheet__body .comment-item__toggle-line {
    background: #bdbdbd;
  }

  .dd-h5-comment-sheet__footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 6px 16px;
    background: #181818;
    box-sizing: border-box;
  }

  .dd-h5-comment-sheet__compose {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 343px;
    padding: 6px 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
  }

  .dd-h5-comment-sheet__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    font-family: "PingFang SC", "Noto Sans SC", sans-serif;
  }

  .dd-h5-comment-sheet__input::placeholder {
    color: #fff;
    opacity: 1;
  }

  .dd-h5-comment-sheet__send {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    line-height: 0;
  }

  .dd-h5-comment-sheet__send img {
    display: block;
    width: 24px;
    height: 24px;
  }

  .dd-h5-comment-sheet__home-indicator {
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    height: calc(21px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #181818;
    box-sizing: border-box;
  }

  .dd-h5-comment-sheet__home-indicator span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 135px;
    height: 5px;
    margin-left: -67.5px;
    border-radius: 100px;
    background: #f5f5f5;
  }

  .dd-h5-ep-sheet,
  .dd-h5-speed-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: #181818;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }

  .dd-h5-ep-sheet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow: hidden;
  }

  .dd-h5-ep-sheet[hidden],
  .dd-h5-speed-sheet[hidden] {
    display: none !important;
  }

  .dd-h5-ep-sheet__handle {
    width: 36px;
    height: 5px;
    flex: 0 0 5px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
  }

  .dd-h5-ep-sheet__drama {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    margin: 0;
  }

  .dd-h5-ep-sheet__drama > img {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: #464646;
  }

  .dd-h5-ep-sheet__info {
    flex: 1;
    min-width: 0;
  }

  .dd-h5-ep-sheet__title {
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
  }

  .dd-h5-ep-sheet__status {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 18px;
  }

  .dd-h5-ep-sheet__close {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .dd-h5-ep-sheet__close img {
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
  }

  .dd-h5-ep-sheet__tabs {
    display: flex;
    width: min(100%, 343px);
    gap: 18px;
    margin: 0;
    overflow-x: auto;
  }

  .dd-h5-ep-sheet__tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
  }

  .dd-h5-ep-sheet__tab--active {
    color: var(--dd-accent-h5);
  }

  .dd-h5-ep-sheet__grid {
    display: flex;
    width: min(100%, 343px);
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    max-height: 46vh;
    overflow: auto;
  }

  .dd-h5-ep-sheet__item {
    display: inline-flex;
    position: relative;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-ep-sheet__playing {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
  }

  .dd-h5-ep-sheet__item--active {
    background: rgba(250, 220, 68, 0.1);
    color: #fadc44;
    font-weight: 400;
  }

  .dd-h5-speed-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
  }

  .dd-h5-speed-sheet__head button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
  }

  .dd-h5-speed-sheet__head img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }

  .dd-h5-speed-sheet__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dd-h5-speed-sheet__list button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 14px;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
  }

  .dd-h5-speed-sheet__list button.is-active {
    color: var(--dd-accent-h5);
    background: rgba(250, 220, 68, 0.12);
  }
}
