/* ==========================================================================
   Om Hongkong - Halaman tonton /dracin/<slug>
   Hanya dimuat oleh functions/dracin/[slug].js, jadi aman berdiri sendiri.
   ========================================================================== */

.watch-page {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 96px;
}

/* --- Breadcrumb ---------------------------------------------------------- */
.watch-breadcrumb {
  margin-bottom: 18px;
}

.watch-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--theme-font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--theme-text-subtle);
}

.watch-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.watch-breadcrumb li + li::before {
  content: '/';
  color: #e2cfdd;
}

.watch-breadcrumb a {
  color: var(--theme-text-muted);
  transition: color 0.25s ease;
}

.watch-breadcrumb a:hover {
  color: var(--theme-primary);
}

.watch-breadcrumb [aria-current='page'] {
  color: #2b1f42;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Player -------------------------------------------------------------- */
.watch-player {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  overflow: hidden;
  background: #1d1630;
  box-shadow: 0 26px 60px rgba(150, 70, 125, 0.22);
  isolation: isolate;
}

.watch-player img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.watch-player::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 15, 40, 0.05) 0%, rgba(25, 15, 40, 0.42) 100%);
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.watch-player:hover img {
  transform: scale(1.04);
}

.watch-player:hover::after {
  opacity: 1;
}

.watch-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  color: #201736;
  font-family: var(--theme-font-main);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(40, 10, 30, 0.34);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.watch-play-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ff0033;
  color: #ffffff;
  font-size: 13px;
  padding-left: 2px;
}

.watch-player:hover .watch-play {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 20px 44px rgba(40, 10, 30, 0.42);
}

.watch-player-badge {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(32, 23, 54, 0.6);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--theme-font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.watch-player-duration {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(32, 23, 54, 0.68);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--theme-font-main);
  font-size: 12.5px;
  font-weight: 700;
}

/* --- Judul dan meta ------------------------------------------------------ */
.watch-head {
  margin: 30px 0 0;
}

.watch-title {
  font-family: var(--theme-font-heading);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -1.1px;
  color: #201736;
  margin: 0 0 16px;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--theme-card-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  font-family: var(--theme-font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--theme-text-muted);
}

.meta-chip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta-chip-accent {
  color: #ffffff;
  border-color: transparent;
  background: var(--theme-primary-gradient);
  box-shadow: var(--theme-pill-shadow);
}

/* --- Kerangka dua kolom -------------------------------------------------- */
.watch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 328px;
  align-items: start;
  gap: 30px;
  margin-top: 32px;
}

.watch-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--theme-card-border);
  border-radius: 24px;
  box-shadow: var(--theme-card-shadow);
}

.watch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 28px 0;
}

.watch-card-head h2 {
  font-family: var(--theme-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #2b1f42;
  margin: 0;
}

.watch-card-head .eyebrow {
  margin: 0 0 4px;
  font-family: var(--theme-font-main);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--theme-primary);
}

/* --- Deskripsi ----------------------------------------------------------- */
.desc-body {
  position: relative;
  padding: 18px 28px 26px;
  font-family: var(--theme-font-main);
  font-size: 15.5px;
  line-height: 1.85;
  color: #574c70;
  overflow-wrap: break-word;
}

.desc-body.is-clamped {
  max-height: 560px;
  overflow: hidden;
}

.desc-body.is-clamped::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 252, 254, 0.95) 78%, #fffdfe 100%);
}

.desc-p {
  margin: 0 0 18px;
}

.desc-p:last-child {
  margin-bottom: 0;
}

.desc-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #3d3357;
  font-weight: 500;
}

.desc-body a {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 77, 153, 0.35);
}

.desc-body a:hover {
  text-decoration-color: currentColor;
}

.desc-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--theme-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #2b1f42;
  margin: 30px 0 14px;
}

.desc-heading:first-child {
  margin-top: 0;
}

.desc-heading::before {
  content: '';
  width: 6px;
  height: 20px;
  border-radius: 99px;
  background: var(--theme-primary-gradient);
  flex: none;
}

.desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 28px 24px;
  padding: 11px 20px;
  border: 1px solid var(--theme-card-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--theme-primary);
  font-family: var(--theme-font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.desc-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--theme-pill-shadow);
}

.desc-toggle .chev {
  transition: transform 0.3s ease;
}

.desc-toggle[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}

/* --- Daftar bab (timestamp) ---------------------------------------------- */
.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(253, 238, 247, 0.6);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.chapter-item:hover {
  background: #ffffff;
  border-color: #f7d9ea;
  transform: translateX(3px);
}

.chapter-time {
  flex: none;
  min-width: 56px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #f6e2f0;
  color: var(--theme-primary);
  font-family: var(--theme-font-main);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.chapter-item:hover .chapter-time {
  background: var(--theme-primary-gradient);
  border-color: transparent;
  color: #ffffff;
}

.chapter-label {
  font-size: 13.5px;
  line-height: 1.45;
  color: #4a4160;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Tag ----------------------------------------------------------------- */
.desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.desc-tag {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--theme-card-border);
  background: #ffffff;
  color: var(--theme-text-muted);
  font-family: var(--theme-font-main);
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

a.desc-tag:hover {
  color: var(--theme-primary);
  border-color: #f7d9ea;
  transform: translateY(-2px);
}

/* --- Sidebar ------------------------------------------------------------- */
.watch-aside {
  position: sticky;
  top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--theme-card-border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--theme-card-shadow);
}

.aside-card h2 {
  font-family: var(--theme-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #2b1f42;
  margin: 0 0 14px;
}

.aside-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--theme-primary-gradient);
  color: #ffffff;
  font-family: var(--theme-font-main);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--theme-button-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aside-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 80, 155, 0.45);
}

.aside-note {
  margin: 12px 0 0;
  font-family: var(--theme-font-main);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--theme-text-subtle);
  text-align: center;
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 2px;
}

.fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--theme-border);
  font-family: var(--theme-font-main);
}

.fact-row:last-child {
  border-bottom: 0;
}

.fact-row dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--theme-text-subtle);
}

.fact-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #2b1f42;
  text-align: right;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--theme-card-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--theme-text-muted);
  font-family: var(--theme-font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.share-btn svg {
  width: 15px;
  height: 15px;
}

.share-btn:hover {
  color: var(--theme-primary);
  border-color: #f7d9ea;
  transform: translateY(-2px);
}

/* --- Navigasi episode ---------------------------------------------------- */
.episode-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.episode-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--theme-card-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-card-shadow-hover);
}

.episode-link.is-next {
  grid-column: 2;
  flex-direction: row-reverse;
  text-align: right;
}

.episode-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fdeef7;
  color: var(--theme-primary);
  font-size: 16px;
}

.episode-link:hover .episode-arrow {
  background: var(--theme-primary-gradient);
  color: #ffffff;
}

.episode-text {
  min-width: 0;
}

.episode-text small {
  display: block;
  font-family: var(--theme-font-main);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--theme-text-subtle);
  margin-bottom: 4px;
}

.episode-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--theme-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #2b1f42;
}

/* --- Video terkait ------------------------------------------------------- */
.related-section {
  margin-top: 62px;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.related-head .eyebrow {
  margin: 0 0 6px;
  font-family: var(--theme-font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--theme-primary);
}

.related-head h2 {
  font-family: var(--theme-font-heading);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.7px;
  color: #201736;
  margin: 0;
}

.related-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--theme-card-border);
  background: #ffffff;
  color: var(--theme-primary);
  font-family: var(--theme-font-main);
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-all:hover {
  transform: translateY(-2px);
  box-shadow: var(--theme-pill-shadow);
}

/* --- Responsif ----------------------------------------------------------- */
@media (max-width: 1040px) {
  .watch-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .watch-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .watch-page {
    width: calc(100% - 28px);
    margin-top: 22px;
    margin-bottom: 64px;
  }

  .watch-player {
    border-radius: 18px;
  }

  .watch-play {
    font-size: 12.5px;
    padding: 11px 18px 11px 12px;
  }

  .watch-play-mark {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .watch-card-head,
  .desc-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .desc-toggle {
    margin-left: 20px;
    margin-right: 20px;
  }

  .desc-body {
    font-size: 15px;
  }

  .desc-lead {
    font-size: 16px;
  }

  .chapter-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .episode-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .episode-link.is-next {
    grid-column: 1;
  }

  .related-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
