﻿  * { box-sizing: border-box; }
  .page-watch-detail { font-family: 'Vazirmatn', sans-serif; background: var(--canvas); color: var(--ink); line-height: 1.8; overflow-x: hidden; }
  .page-watch-detail h1,
  .page-watch-detail h2,
  .page-watch-detail h3,
  .page-watch-detail h4,
  .page-watch-detail .brand,
  .page-watch-detail .btn,
  .page-watch-detail .chip { font-family: 'Baloo Bhaijaan 2', 'Vazirmatn', sans-serif; }
  .watch-detail-page img,
  .watch-detail-page svg { display: block; max-width: 100%; }
  .watch-detail-page a { color: inherit; text-decoration: none; }
  .watch-detail-page ul { list-style: none; }
  .watch-detail-page button { font: inherit; cursor: pointer; border: none; background: none; }
  .watch-detail-page section { position: relative; }
  .watch-detail-page .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  .watch-detail-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: 16px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); white-space: nowrap; }
  .watch-detail-page .btn-primary { background: var(--sun); color: #fff; box-shadow: 0 4px 0 var(--sun-deep); }
  .watch-detail-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sun-deep), var(--shadow-sm); }
  .watch-detail-page .btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--sun-deep); }
  .watch-detail-page .btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--line); }
  .watch-detail-page .btn-outline:hover { border-color: var(--sky); color: var(--sky); transform: translateY(-2px); }
  .watch-detail-page .btn-sm { padding: 10px 20px; font-size: 14px; }
  .watch-detail-page .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .watch-detail-page .reveal.in { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) { .watch-detail-page .reveal { opacity: 1; transform: none; transition: none; } }

  /* Header comes from shared jjb-chrome (_html_pages_header) */

  .watch-detail-page .breadcrumb-bar { padding: 16px 0 0; }
  .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
  .breadcrumb a { color: var(--ink-soft); font-weight: 600; }
  .breadcrumb a:hover { color: var(--sky); }
  .breadcrumb span.sep { opacity: .5; }
  .breadcrumb span.current { color: var(--ink); font-weight: 700; }

  /* ===================== Watch layout ===================== */
  .watch-section { padding: 18px 0 70px; }
  .watch-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }

  /* ---- Player ---- */
  .player-shell {
    position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
    overflow: hidden; background: #100E1A; box-shadow: var(--shadow-lg);
  }
  .player-shell video { width: 100%; height: 100%; object-fit: cover; display: block; background: #100E1A; }
  .player-poster {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    transition: opacity .28s var(--ease), visibility .28s var(--ease);
  }
  .player-poster img { width: 100%; height: 100%; object-fit: cover; }
  .player-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,14,26,.55), rgba(16,14,26,.05) 45%); }
  .player-shell.is-playing .player-poster,
  .player-shell.is-started .player-poster,
  .player-shell.is-paused .player-poster,
  .player-shell.poster-hidden .player-poster {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .player-center-btn {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); z-index: 3;
  }
  .player-center-btn:hover { transform: scale(1.06); }
  .player-center-btn svg { width: 30px; height: 30px; color: var(--grape); margin-inline-start: 3px; }

  .player-badges { position: absolute; top: 16px; inset-inline-start: 16px; display: flex; gap: 8px; z-index: 3; }
  .player-badges span { background: rgba(46,42,61,.7); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(3px); }
  .player-badges .lvl { background: var(--sun); }

  /* ---- Unique minimal player loading spinner (during buffering/click) ---- */
  .player-loading {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
    background: rgba(16,14,26,.42); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .player-loading.is-active { opacity: 1; pointer-events: auto; }
  .pv-ring { position: relative; width: 58px; height: 58px; }
  .pv-ring i {
    position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent;
    border-top-color: var(--sun); animation: pv-spin 1s linear infinite;
  }
  .pv-ring i:nth-child(2) { border-top-color: var(--berry); animation-duration: 1.4s; inset: 9px; opacity: .85; }
  .pv-ring i:nth-child(3) { border-top-color: var(--sky); animation-duration: 1.8s; inset: 18px; opacity: .7; }
  @keyframes pv-spin { to { transform: rotate(360deg); } }

  /* ---- Custom minimal control bar ---- */
  .player-controls {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 30px 16px 14px;
    background: linear-gradient(0deg, rgba(16,14,26,.82), transparent);
    opacity: 0; transition: opacity .25s var(--ease); display: flex; flex-direction: column; gap: 8px;
  }
  .player-shell.is-active .player-controls,
  .player-shell:hover .player-controls { opacity: 1; }
  .pc-track { position: relative; height: 6px; border-radius: 100px; background: rgba(255,255,255,.25); cursor: pointer; }
  .pc-fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0%; background: linear-gradient(90deg, var(--sun), var(--berry)); border-radius: 100px; }
  .pc-row { display: flex; align-items: center; gap: 14px; }
  .pc-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
  .pc-btn svg { width: 18px; height: 18px; }
  .pc-btn.play-toggle .ic-pause { display: none; }
  .pc-btn.play-toggle.is-playing .ic-play { display: none; }
  .pc-btn.play-toggle.is-playing .ic-pause { display: block; }
  .pc-time { font-size: 12px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .pc-spacer { flex: 1; }
  .pc-cc { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.5); color: rgba(255,255,255,.85); }
  .pc-cc.is-on { background: #fff; color: var(--ink); border-color: #fff; }
  .pc-cc[hidden] { display: none !important; }
  .pc-track { direction: ltr; }
  .pc-fill { inset-inline-start: auto; left: 0; right: auto; }
  .pc-chip {
    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,.5); color: rgba(255,255,255,.9); background: transparent;
    min-width: 44px;
  }
  .pc-chip[aria-expanded="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .pc-menu-wrap { position: relative; }
  .pc-menu {
    position: absolute; bottom: calc(100% + 8px); inset-inline-end: 0;
    min-width: 108px; padding: 6px; border-radius: 12px;
    background: rgba(16,14,26,.94); border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 12px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 2px; z-index: 12;
  }
  .pc-menu[hidden] { display: none !important; }
  .pc-menu-item {
    display: block; width: 100%; text-align: center; padding: 8px 10px; border-radius: 8px;
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,.88); background: transparent; border: none; cursor: pointer;
  }
  .pc-menu-item:hover { background: rgba(255,255,255,.1); }
  .pc-menu-item.is-active { background: var(--sun); color: #fff; }

  /* ---- Below player ---- */
  .watch-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
  .watch-title-row h1 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.5; }
  .watch-title-row h1 small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
  .watch-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
  .watch-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
  .watch-meta .lvl-pill { background: var(--sun-100); color: var(--sun-deep); font-weight: 800; padding: 3px 11px; border-radius: 100px; font-size: 12px; }

  .watch-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .icon-btn { display: flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 100px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--ink-soft); transition: all .2s var(--ease); }
  .icon-btn svg { width: 16px; height: 16px; }
  .icon-btn:hover { border-color: var(--berry); color: var(--berry); }
  .icon-btn.active { background: var(--berry-100); border-color: var(--berry); color: var(--berry); }
  .icon-btn.active svg { fill: currentColor; }

  .watch-desc { margin-top: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
  .watch-desc p { font-size: 14.5px; color: var(--ink-soft); }
  .watch-desc .vocab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
  .vocab-chip { background: var(--sky-100); color: var(--sky); font-weight: 700; font-size: 12.5px; padding: 6px 13px; border-radius: 100px; }
  .desc-toggle { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--grape); }

  /* ---- Prev/Next episode nav ---- */
  .ep-nav { display: flex; align-items: stretch; gap: 14px; margin-top: 22px; }
  .ep-nav-card { flex: 1; display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; transition: all .2s var(--ease); }
  .ep-nav-card:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
  .ep-nav-card.disabled { opacity: .45; pointer-events: none; }
  .ep-nav-card .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
  .ep-nav-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ep-nav-card .txt { min-width: 0; }
  .ep-nav-card .lbl { font-size: 11px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
  .ep-nav-card .lbl svg { width: 12px; height: 12px; }
  .ep-nav-card h4 { font-size: 13.5px; font-weight: 800; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ep-nav-card.next { flex-direction: row-reverse; text-align: end; }

  /* ===================== Sidebar (up-next playlist) ===================== */
  .watch-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; }
  .widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 20px; }
  .widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .widget-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
  .widget-head h3 .dot-ico { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
  .widget-head .see-all { font-size: 12px; font-weight: 700; color: var(--sky); white-space: nowrap; }

  .playlist-item { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; transition: background .2s var(--ease); }
  .playlist-item:hover { background: var(--canvas); }
  .playlist-item.is-current { background: var(--sun-100); }
  .playlist-item .num { width: 22px; text-align: center; font-size: 12px; font-weight: 800; color: var(--ink-soft); flex-shrink: 0; }
  .playlist-item.is-current .num { color: var(--sun-deep); }
  .playlist-item .thumb { position: relative; width: 76px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--sky-100); }
  .playlist-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
  .playlist-item .thumb .dur { position: absolute; bottom: 3px; inset-inline-end: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
  .playlist-item .info h4 { font-size: 12.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .playlist-item .info .sub { font-size: 11px; color: var(--ink-soft); margin-top: 3px; }

  .level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .level-btn { padding: 10px 6px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 13px; background: var(--canvas-2); color: var(--ink-soft); border: 2px solid transparent; transition: all .2s var(--ease); }
  .level-btn:hover { border-color: var(--sky); color: var(--sky); }
  .level-btn.is-active { background: var(--grape); color: #fff; }

  .ad-widget { padding: 0; overflow: hidden; }
  .ad-widget .ad-eyebrow { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; padding: 10px 10px 0; }
  .ad-slider { position: relative; width: 100%; aspect-ratio: 300 / 250; margin-top: 8px; }
  .ad-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: #fff; }
  .ad-slide.is-active { opacity: 1; pointer-events: auto; }
  .ad-slide.s1 { background: linear-gradient(135deg, var(--sun), var(--berry)); }
  .ad-slide.s2 { background: linear-gradient(135deg, var(--grape), var(--sky)); }
  .ad-slide.s3 { background: linear-gradient(135deg, var(--leaf), var(--sky)); }
  .ad-slide strong { font-size: 16px; font-weight: 800; }
  .ad-slide p { font-size: 12.5px; opacity: .9; max-width: 220px; }
  .ad-slide span.cta { font-size: 12px; font-weight: 700; text-decoration: underline; }
  .ad-dots { display: flex; gap: 6px; justify-content: center; padding: 10px 0; }
  .ad-dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: all .25s var(--ease); }
  .ad-dots button.is-active { background: var(--sun); width: 16px; border-radius: 100px; }
  .ad-foot { font-size: 11px; color: var(--ink-soft); text-align: center; padding: 0 10px 14px; }
  .ad-foot a { color: var(--sky); font-weight: 700; }

  .widget-cta { text-align: center; padding: 24px 16px; background: linear-gradient(135deg, var(--grape), var(--sky)); color: #fff; }
  .widget-cta img { width: 52px; margin: 0 auto 10px; }
  .widget-cta h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
  .widget-cta p { font-size: 12px; opacity: .92; margin-bottom: 12px; }

  /* ===================== Full-page loader (unique, minimal) ===================== */
  .page-loader {
    position: fixed; inset: 0; z-index: 9999; background: var(--canvas);
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
    transition: opacity .55s var(--ease), visibility .55s var(--ease);
  }
  .page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
  .pl-orbit { position: relative; width: 76px; height: 76px; }
  .pl-orbit .core { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); animation: pl-pulse 1.6s var(--ease) infinite; }
  .pl-orbit .dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; top: 50%; left: 50%; margin: -5.5px; animation: pl-spin 1.8s linear infinite; }
  .pl-orbit .dot span { position: absolute; width: 11px; height: 11px; border-radius: 50%; top: -32px; }
  .pl-orbit .dot:nth-child(2) { animation-delay: 0s; }
  .pl-orbit .dot:nth-child(2) span { background: var(--sun); }
  .pl-orbit .dot:nth-child(3) { animation-delay: -.6s; }
  .pl-orbit .dot:nth-child(3) span { background: var(--berry); }
  .pl-orbit .dot:nth-child(4) { animation-delay: -1.2s; }
  .pl-orbit .dot:nth-child(4) span { background: var(--sky); }
  @keyframes pl-spin { to { transform: rotate(360deg); } }
  @keyframes pl-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .7; } }
  .pl-word { font-family: 'Baloo Bhaijaan 2'; font-weight: 800; font-size: 15px; color: var(--ink-soft); letter-spacing: .5px; }
  .pl-word b { color: var(--ink); }
  @media (prefers-reduced-motion: reduce) { .pl-orbit .dot, .pl-orbit .core, .pv-ring i { animation: none; } }

  @media (max-width: 1024px) {
    .watch-grid { grid-template-columns: 1fr; }
    .watch-sidebar { position: static; }
  }
  @media (max-width: 640px) {
    .player-center-btn { width: 60px; height: 60px; }
    .player-center-btn svg { width: 24px; height: 24px; }
    .ep-nav { flex-direction: column; }
    .watch-title-row { flex-direction: column; }
    .watch-actions { width: 100%; }
  }

  footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--white); }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
  .footer-brand p { color: var(--ink-soft); font-size: 14px; margin-top: 12px; max-width: 280px; }
  .footer-brand .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--ink); }
  .footer-brand .brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; }
  .footer-col b { font-family: 'Baloo Bhaijaan 2'; font-size: 15px; display: block; margin-bottom: 14px; }
  .footer-col ul { display: flex; flex-direction: column; gap: 10px; }
  .footer-col a { font-size: 14px; color: var(--ink-soft); transition: color .2s; }
  .footer-col a:hover { color: var(--sky); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 12px; }
  @media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Django integration — learn, flashcards, comments, player */
.page-watch-detail { background: var(--canvas); }
.watch-detail-page .chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-weight: 600; font-size: 13px; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.watch-detail-page .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.watch-detail-page .btn-light { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(46,42,61,.12); }
.watch-detail-page .player-shell { position: relative; }
.watch-detail-page .player-shell.use-custom-controls .plyr__controls,
.watch-detail-page .player-shell.use-custom-controls .plyr__control--overlaid {
  display: none !important;
}
.watch-detail-page .player-shell .player-controls {
  z-index: 8;
  pointer-events: auto;
}
.watch-detail-page .player-shell .player-center-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s var(--ease);
  z-index: 7;
  border: none;
  cursor: pointer;
  color: var(--grape);
}
.watch-detail-page .player-shell .player-center-btn:hover { transform: scale(1.06); }
.watch-detail-page .player-shell .player-center-btn svg { width: 30px; height: 30px; margin-inline-start: 3px; }
.watch-detail-page .player-shell .player-center-btn[hidden] { display: none !important; }
.watch-detail-page .player-shell .plyr-custom,
.watch-detail-page .player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
  background: #100E1A;
}
.watch-detail-page .player-shell .plyr {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  border-radius: inherit;
}
.watch-detail-page .player-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
}
.watch-detail-page .player-poster img { width: 100%; height: 100%; object-fit: cover; }
.watch-detail-page .player-shell.is-playing .player-poster,
.watch-detail-page .player-shell.is-started .player-poster,
.watch-detail-page .player-shell.is-paused .player-poster,
.watch-detail-page .player-shell.is-ended .player-poster,
.watch-detail-page .player-shell.poster-hidden .player-poster {
  opacity: 0 !important;
  visibility: hidden !important;
}
.watch-detail-page .player-error {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16,14,26,.88);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.watch-detail-page .player-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,14,26,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.watch-detail-page .player-loading.is-active {
  opacity: 1;
  pointer-events: auto;
}
.watch-detail-page .pv-ring { position: relative; width: 58px; height: 58px; }
.watch-detail-page .pv-ring i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--sun);
  animation: pv-spin 1s linear infinite;
}
.watch-detail-page .pv-ring i:nth-child(2) {
  border-top-color: var(--berry);
  animation-duration: 1.4s;
  inset: 9px;
  opacity: .85;
}
.watch-detail-page .pv-ring i:nth-child(3) {
  border-top-color: var(--sky);
  animation-duration: 1.8s;
  inset: 18px;
  opacity: .7;
}
@keyframes pv-spin { to { transform: rotate(360deg); } }
.watch-detail-page .watch-resume {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,14,26,.72);
}
.watch-detail-page .watch-resume[hidden],
.watch-detail-page .watch-resume[aria-hidden="true"] {
  display: none !important;
}
.watch-detail-page .watch-resume__card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.watch-detail-page .watch-resume__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.watch-detail-page .watch-resume__text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.watch-detail-page .watch-resume__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.watch-detail-page .watch-resume__actions .btn {
  pointer-events: auto;
  cursor: pointer;
}
.watch-detail-page .learn { padding: 36px 0 10px; }
.watch-detail-page .learn-head { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.watch-detail-page .learn-head h2 { font-size: 24px; font-weight: 800; margin: 12px 0 6px; font-family: 'Baloo Bhaijaan 2', 'Vazirmatn', sans-serif; }
.watch-detail-page .learn-head p { color: var(--ink-soft); font-size: 14.5px; }
.watch-detail-page .learn-tabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; }
.watch-detail-page .learn-tab { flex-shrink: 0; padding: 10px 18px; border-radius: 100px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.watch-detail-page .learn-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.watch-detail-page .learn-panel { display: none; }
.watch-detail-page .learn-panel.active { display: block; }
.watch-detail-page .quiz-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  max-width: 760px;
  margin: 0 auto;
}
.watch-detail-page .quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.watch-detail-page .quiz-type-badge {
  font-size: 12.5px;
  font-weight: 800;
  background: var(--grape-100);
  color: var(--grape);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.watch-detail-page .quiz-progress {
  display: flex;
  gap: 5px;
  flex: 1;
  margin: 0 18px;
  min-width: 80px;
}
.watch-detail-page .quiz-progress span {
  height: 6px;
  flex: 1;
  border-radius: 100px;
  background: var(--sun-100);
}
.watch-detail-page .quiz-progress span.done { background: var(--leaf); }
.watch-detail-page .quiz-progress span.now { background: var(--sun); }
.watch-detail-page .quiz-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
}
.watch-detail-page .quiz-q {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: var(--ink);
  line-height: 1.7;
}
.watch-detail-page .quiz-body { margin-top: 22px; min-height: 190px; }
.watch-detail-page .quiz-feedback {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 20px;
  margin-top: 16px;
}
.watch-detail-page .quiz-feedback--ok { color: var(--leaf); }
.watch-detail-page .quiz-feedback--err { color: var(--berry); }
.watch-detail-page .quiz-actions { text-align: center; margin-top: 18px; }
.watch-detail-page .quiz-shell .quiz-card,
.watch-detail-page .quiz-shell .quiz-card--wizard {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.watch-detail-page .quiz-shell .watch-quiz-card__meta[hidden] { display: none !important; }
.watch-detail-page .quiz-shell .opt-grid,
.watch-detail-page .quiz-shell .quiz-surface__opt-grid,
.watch-detail-page .quiz-shell .watch-quiz-opt-grid,
.watch-detail-page .quiz-shell .ce-quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.watch-detail-page .quiz-shell .opt,
.watch-detail-page .quiz-shell .quiz-opt,
.watch-detail-page .quiz-shell .quiz-option,
.watch-detail-page .quiz-shell .quiz-tf-btn,
.watch-detail-page .quiz-shell .quiz-surface__opt {
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fcfaf3;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  transition: all .18s var(--ease);
}
.watch-detail-page .quiz-shell .opt:hover,
.watch-detail-page .quiz-shell .quiz-opt:hover,
.watch-detail-page .quiz-shell .quiz-option:hover,
.watch-detail-page .quiz-shell .quiz-tf-btn:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
}
.watch-detail-page .quiz-shell .opt.selected,
.watch-detail-page .quiz-shell .quiz-opt.selected,
.watch-detail-page .quiz-shell .quiz-option.selected,
.watch-detail-page .quiz-shell .quiz-tf-btn.selected,
.watch-detail-page .quiz-shell .quiz-opt.is-selected,
.watch-detail-page .quiz-shell .quiz-surface__opt.is-selected {
  border-color: var(--sun);
  background: var(--sun-100);
}
.watch-detail-page .quiz-shell .opt.correct,
.watch-detail-page .quiz-shell .quiz-opt.correct { border-color: var(--leaf); background: var(--leaf-100); }
.watch-detail-page .quiz-shell .opt.wrong,
.watch-detail-page .quiz-shell .quiz-opt.wrong { border-color: var(--berry); background: var(--berry-100); }

/* Mic / color / trace / matching — light watch theme (no Tailwind/FA dependency) */
.watch-detail-page .quiz-shell .quiz-mic-wrap { width: 100%; }
.watch-detail-page .quiz-shell .quiz-mic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 8px auto 0;
  padding: 22px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff4e4 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.watch-detail-page .quiz-shell .quiz-mic-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(46, 42, 61, 0.08);
}
.watch-detail-page .quiz-shell .quiz-mic-card__prompt {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
}
.watch-detail-page .quiz-shell .quiz-mic-card__word {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  font-family: 'Baloo Bhaijaan 2', Vazirmatn, sans-serif;
}
.watch-detail-page .quiz-shell .quiz-mic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: 100px;
  background: var(--berry);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #b53d51;
}
.watch-detail-page .quiz-shell .quiz-mic-btn.is-recording {
  background: #ef4444;
  box-shadow: 0 4px 0 #b91c1c;
}
.watch-detail-page .quiz-shell .quiz-mic-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.watch-detail-page .quiz-shell .quiz-color-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.watch-detail-page .quiz-shell .quiz-color-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(46, 42, 61, 0.12);
  cursor: pointer;
  padding: 0;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
  box-shadow: 0 4px 12px rgba(46, 42, 61, 0.12);
}
.watch-detail-page .quiz-shell .quiz-color-dot:hover { transform: scale(1.08); }
.watch-detail-page .quiz-shell .quiz-color-dot.selected,
.watch-detail-page .quiz-shell .quiz-color-dot.correct {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.35);
}
.watch-detail-page .quiz-shell .quiz-color-dot.wrong {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(228, 83, 107, 0.3);
}

.watch-detail-page .quiz-shell .quiz-trace-word {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--sky);
  font-family: 'Baloo Bhaijaan 2', Vazirmatn, sans-serif;
}
.watch-detail-page .quiz-shell .quiz-trace-host {
  width: 100%;
  max-width: min(100%, 420px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}
.watch-detail-page .quiz-shell .quiz-trace-host canvas,
.watch-detail-page .quiz-shell .ce-trace-canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  touch-action: none;
  background: #fcfaf3;
  border-radius: 14px;
  margin: 0 auto;
  cursor: crosshair;
}
.watch-detail-page .quiz-shell .ce-trace-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
.watch-detail-page .quiz-shell .ce-trace-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 100px;
  background: var(--sun);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--sun-deep);
  cursor: pointer;
}
.watch-detail-page .quiz-shell .ce-trace-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.watch-detail-page .quiz-shell .ce-trace-result,
.watch-detail-page .quiz-shell .quiz-trace-host p {
  color: var(--ink) !important;
  text-align: center;
  font-weight: 700;
}
.watch-detail-page .quiz-shell .quiz-trace-host .text-white\/70,
.watch-detail-page .quiz-shell .quiz-trace-host p.text-xs {
  color: var(--ink-soft) !important;
  font-size: 12px;
  font-weight: 600;
}
.watch-detail-page .quiz-shell .quiz-matching-dnd {
  margin-top: 8px;
}
.watch-detail-page .quiz-shell .quiz-matching-dnd-left {
  color: var(--ink);
  font-weight: 800;
}
.watch-detail-page .quiz-shell .quiz-matching-dnd-drop {
  background: #fcfaf3;
  border: 2px dashed var(--line);
}
.watch-detail-page .quiz-shell .quiz-matching-dnd-drop.is-filled {
  border-style: solid;
  border-color: var(--sky);
  background: var(--sky-100);
}
.watch-detail-page .quiz-shell .quiz-matching-dnd-card {
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}
.watch-detail-page .quiz-shell .quiz-matching-dnd-pool {
  background: var(--canvas-2);
  border-radius: 14px;
  padding: 10px;
}
.watch-detail-page .quiz-shell .quiz-inline-actions--hidden,
.watch-detail-page .quiz-shell .quiz-matching-submit.quiz-inline-actions--hidden {
  display: none !important;
}

.watch-detail-page .quiz-result { text-align: center; padding: 20px 0; }
.watch-detail-page .quiz-result .big-emoji { font-size: 60px; margin-bottom: 10px; }
.watch-detail-page .quiz-result h3 { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.watch-detail-page .quiz-result .stars-row { font-size: 30px; margin: 14px 0; }
.watch-detail-page .quiz-shell.watch-quiz-panel--highlight {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}
.watch-detail-page .ad-slide.ad-slide--blue,
.watch-detail-page .ad-slide.s1 { background: linear-gradient(135deg, var(--sun), var(--berry)); }
.watch-detail-page .ad-slide.ad-slide--grape,
.watch-detail-page .ad-slide.s2 { background: linear-gradient(135deg, var(--grape), var(--sky)); }
.watch-detail-page .ad-slide.ad-slide--leaf,
.watch-detail-page .ad-slide.s3 { background: linear-gradient(135deg, var(--leaf), var(--sky)); }
.watch-detail-page .ad-slide__media,
.watch-detail-page .ad-slide__media img {
  width: 100%;
  height: 100%;
  display: block;
}
.watch-detail-page .ad-static {
  display: block;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.watch-detail-page .ad-static--blue { background: linear-gradient(135deg, var(--sun), var(--berry)); }
.watch-detail-page .ad-static--grape { background: linear-gradient(135deg, var(--grape), var(--sky)); }
.watch-detail-page .ad-static--leaf { background: linear-gradient(135deg, var(--leaf), var(--sky)); }
@media (max-width: 640px) {
  .watch-detail-page .quiz-shell { padding: 20px 16px; }
  .watch-detail-page .quiz-progress { margin: 0 8px; }
  .watch-detail-page .quiz-shell .opt-grid,
  .watch-detail-page .quiz-shell .quiz-surface__opt-grid { grid-template-columns: 1fr; }
}
.watch-detail-page .fc-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.watch-detail-page .fc-progress-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; margin-bottom: 16px; }
.watch-detail-page .fc-card { width: 100%; max-width: 380px; height: 260px; margin: 0 auto; perspective: 1200px; }
.watch-detail-page .fc-inner { position: relative; width: 100%; height: 100%; transition: transform .5s var(--ease); transform-style: preserve-3d; cursor: pointer; }
.watch-detail-page .fc-card.flipped .fc-inner { transform: rotateY(180deg); }
.watch-detail-page .fc-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.watch-detail-page .fc-front { background: linear-gradient(160deg, var(--sky-100), #fff); border: 1px solid var(--line); }
.watch-detail-page .fc-back { background: linear-gradient(160deg, var(--grape-100), #fff); border: 1px solid var(--line); transform: rotateY(180deg); }
.watch-detail-page .fc-en { font-size: 26px; font-weight: 800; font-family: 'Baloo Bhaijaan 2', 'Vazirmatn', sans-serif; }
.watch-detail-page .fc-fa { font-size: 20px; font-weight: 800; color: var(--grape); }
.watch-detail-page .fc-hint { font-size: 12px; color: var(--ink-soft); }
.watch-detail-page .fc-controls { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.watch-detail-page .fc-nav-btn { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 18px; }
.watch-detail-page .fc-deck-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.watch-detail-page .fc-deck-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--sun-100); }
.watch-detail-page .fc-deck-dots span.on { background: var(--sun); }
.watch-detail-page .comments { padding: 44px 0 70px; }
.watch-detail-page .comments-head { max-width: 640px; margin: 0 auto 24px; text-align: center; }
.watch-detail-page .comments-head h2 { font-size: 24px; font-weight: 800; margin: 12px 0 6px; font-family: 'Baloo Bhaijaan 2', 'Vazirmatn', sans-serif; }
.watch-detail-page .comments-head p { color: var(--ink-soft); font-size: 14.5px; }
.watch-detail-page .comments-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.watch-detail-page .comment-form { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.watch-detail-page .comment-form h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.watch-detail-page .comment-form textarea { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font: inherit; font-size: 14px; background: #fcfaf3; resize: vertical; margin-bottom: 14px; }
.watch-detail-page .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.watch-detail-page .cf-row input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font: inherit; font-size: 14px; background: #fcfaf3; color: var(--ink-soft); }
.watch-detail-page .rate-picker { display: flex; gap: 6px; margin-bottom: 14px; font-size: 30px; color: var(--sun-100); }
.watch-detail-page .rate-picker span { cursor: pointer; transition: transform .15s var(--ease); user-select: none; }
.watch-detail-page .rate-picker span:hover { transform: scale(1.12); }
.watch-detail-page .rate-picker span.on { color: var(--sun); }
.watch-detail-page .watch-comment-item { background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); padding:14px 16px; }
.watch-detail-page .watch-comment-meta { display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-size:12px; margin-bottom:6px; }
.watch-detail-page .watch-comment-meta span:first-child { color: var(--ink); font-weight: 700; font-size: 13px; }
.watch-detail-page .watch-comment-body { color: var(--ink); font-size: 14px; line-height: 1.9; }
.watch-detail-page .watch-muted { color: var(--ink-soft); text-align: center; }
.watch-detail-page .watch-login-hint { text-align: center; color: var(--ink-soft); margin-top: 16px; }
.watch-detail-page .watch-login-hint a { color: var(--sky); font-weight: 700; }
.watch-celebration { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(16,14,26,.55); padding: 20px; }
.watch-celebration[hidden] { display: none !important; }
.watch-celebration__card { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; max-width: 360px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.watch-celebration__title { font-size: 22px; font-weight: 800; margin-bottom: 8px; font-family: 'Baloo Bhaijaan 2', 'Vazirmatn', sans-serif; }
.watch-celebration__text { color: var(--ink-soft); margin-bottom: 16px; }
.watch-detail-page .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.watch-detail-page .reveal.in { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  .watch-detail-page .cf-row { grid-template-columns: 1fr; }
}
