/* ==========================================================================
   Watch Page — Sidebar Episodes + Player + Server Controls
   Layout: [Episode Sidebar] [Player + Controls]
   ========================================================================== */

/* ── Main wrapper ─────────────────────────────────────────────────────────── */
.watch-wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-md) 0;
  box-sizing: border-box;
}

.watch-main {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

/* Movie / no-sidebar: single column, player fills full width */
.watch-main--no-sidebar {
  grid-template-columns: 1fr;
}

/* ── Episode Sidebar (left) ───────────────────────────────────────────────── */
.watch-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border-right: 1px solid var(--color-border);
  min-height: 0;
  /* roughly matches 16:9 player at 340px sidebar = ~960px content width */
  max-height: 540px;
  overflow: hidden;
}

.ws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ws-header__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.ws-header__controls {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.ws-search-wrap {
  position: relative;
}

.ws-search {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 6px 8px 6px 28px;
  font-size: 12px;
  width: 100%;
  max-width: 200px;
}

.ws-search::placeholder { color: var(--color-text-muted); }

.ws-search:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.ws-search__icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 10px;
  pointer-events: none;
}

.ws-range-select {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 4px 6px;
  font-size: 11px;
}

/* ── Episode list (scrollable) ────────────────────────────────────────────── */
.ws-episodes {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.ws-ep {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  text-decoration: none;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  position: relative;
}

.ws-ep:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

.ws-ep--active {
  background: rgba(255, 186, 222, 0.08);
  color: var(--color-primary);
  border-left: 3px solid var(--color-primary);
}

.ws-ep__num {
  font-size: var(--font-size-sm);
  font-weight: 600;
  min-width: 28px;
  flex-shrink: 0;
}

.ws-ep--active .ws-ep__num {
  color: var(--color-primary);
}

.ws-ep__title {
  font-size: var(--font-size-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.ws-ep__playing {
  color: var(--color-primary);
  font-size: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Player content (right) ───────────────────────────────────────────────── */
.watch-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* ── Player frame ─────────────────────────────────────────────────────────── */
.watch-player {
  width: 100%;
  flex-shrink: 0;
}

.watch-player__frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}

.watch-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.watch-player__frame .player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 5;
  pointer-events: none;
}

.watch-player__frame .player-loading.d-none { display: none; }

/* ── Player poster (click-to-play) ────────────────────────────────────────── */
.player-poster {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-poster.d-none { display: none; }

.player-poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.player-poster__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(17, 17, 34, 0.85) 0%,
    rgba(17, 17, 34, 0.4) 40%,
    rgba(17, 17, 34, 0.3) 100%
  );
  transition: background 0.3s ease;
}

.player-poster__overlay--no-img {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 186, 222, 0.06) 0%,
    rgba(17, 17, 34, 1) 70%
  );
}

.player-poster:hover .player-poster__overlay {
  background: linear-gradient(
    0deg,
    rgba(17, 17, 34, 0.7) 0%,
    rgba(17, 17, 34, 0.25) 40%,
    rgba(17, 17, 34, 0.2) 100%
  );
}

.player-poster:hover .player-poster__overlay--no-img {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 186, 222, 0.1) 0%,
    rgba(17, 17, 34, 0.95) 70%
  );
}

.player-poster__play {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.player-poster__play svg {
  width: 72px;
  height: 50px;
}

.player-poster:hover .player-poster__play {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 30px rgba(255, 186, 222, 0.4));
}

.player-poster:focus-visible .player-poster__play {
  outline: 2px solid var(--color-primary);
  outline-offset: 8px;
  border-radius: var(--radius-sm);
}

.player-poster__play-bg {
  transition: fill 0.2s ease;
}

.player-poster:hover .player-poster__play-bg {
  fill: var(--primary-color);
}

.player-poster__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ── Player interstitial ad overlay ───────────────────────────────────────────
   Sized with clamp(px, vw, px) + width media queries (reliable everywhere).
   On narrow viewports the player box is short, so the description / icon /
   safety note drop progressively, keeping Play + Skip always visible, no scroll.
   ──────────────────────────────────────────────────────────────────────────── */
.player-interstitial {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, 0.96);
  padding: clamp(10px, 2vw, 24px);
  overflow: hidden;
}

.player-interstitial.d-none { display: none; }

.pi-card {
  width: 100%;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1vw, 12px);
}

.pi-icon { color: var(--color-primary); line-height: 0; }
.pi-icon svg { width: clamp(28px, 4vw, 44px); height: auto; }

.pi-title {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}

.pi-desc {
  font-size: clamp(11px, 1.5vw, 13px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin: 0;
  max-width: 42ch;
}

/* Ad buttons row — kept compact and aligned with the Play button width */
.pi-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
}

.pi-ad-btn {
  flex: 1 1 0;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: clamp(7px, 0.9vw, 9px) clamp(8px, 1vw, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.12s ease;
}

.pi-ad-btn:hover { background: #4338ca; }
.pi-ad-btn:active { transform: scale(0.97); }

.pi-ad-btn__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.78em;
  font-weight: 700;
  flex: 0 0 auto;
}

.pi-ad-btn__check { display: none; line-height: 0; }
.pi-ad-btn__check svg { width: 1em; height: 1em; }

.pi-ad-btn.is-opened {
  background: #16a34a;
  border-color: rgba(255, 255, 255, 0.12);
  cursor: default;
}
.pi-ad-btn.is-opened:hover { background: #16a34a; }
.pi-ad-btn.is-opened .pi-ad-btn__num { display: none; }
.pi-ad-btn.is-opened .pi-ad-btn__check { display: inline-flex; }

/* Safety note (scam-only — keeps CPM healthy, protects users) */
.pi-safety {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  font-size: clamp(10px, 1.3vw, 12px);
  color: rgba(255, 214, 130, 0.9);
  background: rgba(255, 200, 50, 0.08);
  border: 1px solid rgba(255, 200, 50, 0.2);
  border-radius: var(--radius-sm, 8px);
  padding: clamp(5px, 0.8vw, 8px) clamp(8px, 1vw, 12px);
  margin: 0;
  line-height: 1.3;
}
.pi-safety svg { flex: 0 0 auto; width: 1.1em; height: 1.1em; }

/* Play button (locked until all ads opened) — aligned to the ad-row width */
.pi-btn--play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  padding: clamp(8px, 1vw, 11px) 24px;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #1a1a2e;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, opacity 0.2s ease;
}
.pi-btn--play svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.pi-btn--play:hover { background: var(--color-primary-hover, #ff9ec5); }
.pi-btn--play:active { transform: scale(0.97); }
.pi-btn--play:disabled,
.pi-btn--play.is-locked {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

/* Skip — counts down ("Skip in Ns", greyed/non-clickable), then becomes the
   clickable "Skip & play" link at 0. */
.pi-skip {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(11px, 1.4vw, 13px);
  padding: 2px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.pi-skip:hover { color: rgba(255, 255, 255, 0.9); }
.pi-skip.is-counting,
.pi-skip:disabled {
  color: rgba(255, 255, 255, 0.35);
  cursor: default;
  text-decoration: none;
}
.pi-skip.d-none { display: none; }

/* Responsive: the player box gets shorter on narrow viewports, so drop the
   least-important elements first (icon, then safety note) and keep the support
   message + ad buttons + Play + Skip visible. Description only hides on the
   smallest phones. Play + Skip are ALWAYS visible — never any scroll. */
@media (max-width: 600px) {
  .pi-icon { display: none; }
}
@media (max-width: 480px) {
  .pi-safety { display: none; }
}
@media (max-width: 360px) {
  .pi-desc { display: none; }
  .pi-card { gap: clamp(4px, 1.4vw, 8px); }
}

@media (prefers-reduced-motion: reduce) {
  .pi-ad-btn,
  .pi-btn--play { transition: none; }
  .pi-ad-btn:active,
  .pi-btn--play:active { transform: none; }
}

/* ── Server controls bar ──────────────────────────────────────────────────── */
.watch-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  width: 100%;
  box-sizing: border-box;
}

.wc-now-playing {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: var(--font-size-sm);
}

.wc-now-playing__label {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.wc-now-playing__value {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.wc-servers {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.wc-servers__hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0;
  opacity: 0.7;
}

.wc-server-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.wc-server-row__type {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  min-width: 80px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.wc-server-row__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.srv-btn {
  font-size: var(--font-size-xs);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-weight: 500;
  white-space: nowrap;
}

.srv-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.srv-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  font-weight: 600;
}

/* ── Actions bar (prev/next + report) ─────────────────────────────────────── */
.watch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.wa-epnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.btn-ep-nav {
  font-size: var(--font-size-xs);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-ep-nav:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ep-nav--next {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
}

.btn-ep-nav--next:hover {
  background: var(--color-primary-hover);
  color: #000;
}

.btn-report {
  font-size: var(--font-size-xs);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-report:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* ── Report form ──────────────────────────────────────────────────────────── */
.watch-report {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md);
}

.watch-report form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.watch-report select,
.watch-report textarea {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 8px var(--space-sm);
  font-size: var(--font-size-sm);
  font-family: inherit;
  resize: vertical;
}

.watch-report select:focus,
.watch-report textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.watch-report .btn-report-submit {
  align-self: flex-start;
}

.report-status {
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: 4px 0;
}

.btn-report-submit {
  font-size: var(--font-size-xs);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-primary);
  color: #000;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.btn-report-submit:hover {
  background: var(--color-primary-hover);
}

.btn-report-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Anime info bar (below controls) ──────────────────────────────────────── */
.watch-info-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.wib-poster {
  width: 60px;
  height: 85px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  aspect-ratio: 2/3;
}

.wib-meta {
  flex: 1;
  min-width: 0;
}

.wib-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.wib-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wib-title a:hover {
  color: var(--color-primary);
}

.wib-detail-link {
  display: none;
}

.btn-back-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  padding: 4px 12px;
  margin-bottom: 6px;
}

.watch-back-bar {
  padding: 8px 0 4px;
}

.wib-detail-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.wib-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.wib-badges .badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge--format {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge--rating {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge--sub {
  background: rgba(176, 234, 205, 0.15);
  color: var(--color-badge-sub);
  border: 1px solid rgba(176, 234, 205, 0.3);
}

.badge--dub {
  background: rgba(185, 231, 255, 0.15);
  color: var(--color-badge-dub);
  border: 1px solid rgba(185, 231, 255, 0.3);
}

.badge--genre {
  background: rgba(255, 186, 222, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(255, 186, 222, 0.2);
  text-decoration: none;
  transition: background 0.15s ease;
}

.badge--genre:hover {
  background: rgba(255, 186, 222, 0.2);
}

/* ── Related section ──────────────────────────────────────────────────────── */
.watch-related {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* ── Loading spinner ──────────────────────────────────────────────────────── */
.loading {
  display: flex;
  gap: 6px;
}

.loading .span1,
.loading .span2,
.loading .span3 {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: loadBounce 1.4s infinite ease-in-out both;
}

.loading .span1 { animation-delay: -0.32s; }
.loading .span2 { animation-delay: -0.16s; }

@keyframes loadBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.d-none { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ── Tablet (sidebar narrows) ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .watch-main {
    grid-template-columns: 280px 1fr;
  }
  .watch-main--no-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile (sidebar stacks below player) ─────────────────────────────────── */
@media (max-width: 991px) {
  .watch-wrap {
    padding: var(--space-sm);
  }

  .watch-main {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .watch-sidebar {
    order: 2;
    border-right: none;
    border-top: 1px solid var(--color-border);
    max-height: 50vh;
  }

  .watch-content {
    order: 1;
  }

  .watch-controls {
    gap: 0;
    padding: 0;
  }

  .wc-now-playing {
    padding: 8px var(--space-sm);
    font-size: var(--font-size-xs);
  }

  .wc-servers {
    padding: var(--space-sm);
    gap: var(--space-xs);
  }

  .wc-server-row {
    width: 100%;
  }

  .watch-actions {
    padding: var(--space-xs) var(--space-sm);
  }

  .watch-info-bar {
    padding: var(--space-sm);
  }
}

/* ── Small mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .watch-main {
    border-radius: var(--radius-sm);
  }

  .player-poster__play svg {
    width: 56px;
    height: 40px;
  }

  .player-poster__label {
    font-size: 11px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }

  .ws-header {
    padding: var(--space-xs) var(--space-sm);
  }

  .ws-search {
    max-width: 150px;
    font-size: 11px;
  }

  .ws-ep {
    padding: 8px var(--space-sm);
  }

  .ws-ep__title {
    font-size: 11px;
  }

  .srv-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .btn-ep-nav {
    padding: 6px 12px;
  }

  .btn-report {
    padding: 6px 10px;
  }

  .wib-poster {
    width: 48px;
    height: 68px;
  }

  .wib-title {
    font-size: var(--font-size-xs);
  }

  .wib-badges .badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .watch-report form {
    flex-direction: column;
    align-items: stretch;
  }

  .watch-report .btn-report-submit {
    align-self: stretch;
    justify-content: center;
  }

  .watch-sidebar {
    max-height: 40vh;
  }
}

/* ─── Resume Playback Prompt Overlay ─── */
.resume-prompt-wrap {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: rgba(9, 14, 23, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInPrompt 0.25s ease-out;
}

@keyframes fadeInPrompt {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.resume-prompt-box {
    background: #161822;
    border: 1px solid rgba(255, 186, 222, 0.25);
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.resume-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 186, 222, 0.12);
    color: #ffbade;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.resume-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.resume-desc {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 22px;
    line-height: 1.5;
}

.resume-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-resume-now {
    background: #ffbade;
    color: #0f1422;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-resume-now:hover {
    background: #ff9ecf;
    transform: translateY(-1px);
}

.btn-resume-restart {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}

.btn-resume-restart:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
