/* ============================================================
   K - watch.css  (fullscreen player + info below)
   ============================================================ */

body.watch-mode .nav,
body.watch-mode #footer-root,
body.watch-mode .dock-outer {
  display: none;
}

.watch-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 5;
}

.watch-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-back {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.watch-mode.controls-visible .watch-back,
.watch-back.show {
  opacity: 1;
  pointer-events: auto;
}

.watch-back .icon {
  width: 1em;
  height: 1em;
}

.watch-back:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* subtitles */
.watch-subs {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 15;
}

.watch-subs-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(12, 12, 16, 0.92);
  border: 1px solid var(--glass-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.watch-mode.controls-visible .watch-subs-inner,
.watch-subs-inner.show {
  opacity: 1;
  pointer-events: auto;
}

.watch-cc {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.watch-cc .icon {
  width: 1.05em;
  height: 1.05em;
}

.watch-cc.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.watch-sub-offset {
  display: flex;
  align-items: center;
  gap: 4px;
}

.watch-sub-offset .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.watch-sub-offset .btn .icon {
  width: 15px;
  height: 15px;
}

.watch-sub-offset .btn:hover {
  background: rgba(220, 38, 38, 0.25);
}

.watch-sub-offset-val {
  min-width: 58px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mid);
}

.watch-sub-offset-val.shifted {
  color: var(--accent-hi);
}

/* caption overlay - kept compositor-friendly for low-power TV webviews */
.watch-caption {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9vh;
  z-index: 12;
  max-width: min(88vw, 900px);
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  white-space: pre-wrap;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.watch-caption.show {
  opacity: 1;
  visibility: visible;
}

/* source-unavailable overlay */
.watch-unavailable {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 0 5vw;
}

.watch-unavailable h2 {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
}

.watch-unavailable p {
  font-size: clamp(13px, 1.1vw, 16px);
  color: var(--text-mid);
  max-width: 500px;
  line-height: 1.5;
}

/* trouble banner */
.watch-trouble-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  color: var(--text);
}

/* info below player */
.watch-info {
  position: relative;
  margin-top: 100vh;
  padding: 5vh 16px 10vh;
}

.watch-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(238, 241, 246, 0.85);
  margin-bottom: 12px;
}

.watch-meta .meta-rating {
  color: var(--accent-hi);
  font-weight: 500;
}

.watch-desc {
  font-size: clamp(13px, 1vw, 15px);
  color: var(--text);
  line-height: 1.55;
  max-width: 860px;
  margin-bottom: 36px;
}

/* watch action buttons (Next Episode / Play Again / Restart) */
.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.watch-actions .btn {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}

.watch-actions .btn .icon {
  width: 15px;
  height: 15px;
}

.watch-actions .watch-next {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.watch-actions .watch-next:hover {
  background: rgba(220, 38, 38, 0.85);
  box-shadow: 0 0 18px var(--accent-glow-strong);
}

.watch-actions .watch-restart:hover {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 18px var(--accent-glow);
}

.watch-section-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-section-title::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
