body.part-watch { --part: #ff7a59; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body.course.part-watch { --part: #c2410c; } }
:root[data-theme="light"] body.course.part-watch { --part: #c2410c; }
.w-intro p { color: var(--muted); max-width: 36em; margin: 14px 0 0; }
.w-say { color: var(--muted); margin: 18px 0 0; }

.w-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.w-chip { font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 15px; cursor: pointer; min-height: 38px; }
.w-chip:hover { border-color: var(--part); }
.w-chip[aria-pressed="true"] { color: #0b0c10; background: var(--part); border-color: var(--part); }
.w-chip:focus-visible, .w-link:focus-visible, .w-btn:focus-visible, .w-ch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.w-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.w-card { min-width: 0; }
.w-link { display: block; color: inherit; border-radius: 16px; }
.w-link:hover { text-decoration: none; }
.w-link:hover .w-title { color: var(--part); }
.w-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0c0d12; border: 1px solid #262a36; }
.w-poster, .w-poster img { display: block; width: 100%; height: 100%; }
.w-poster img { object-fit: cover; }
.w-reel .w-poster img { object-fit: contain; }
.w-len { position: absolute; right: 8px; bottom: 8px; font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(12, 13, 18, .82); border-radius: 6px; padding: 4px 6px; }
.w-words { display: flex; flex-direction: column; gap: 4px; padding: 12px 2px 0; }
.w-tag { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--part);
  border: 1px solid color-mix(in srgb, var(--part) 55%, transparent); border-radius: 999px; padding: 2px 9px; }
.w-title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.w-line { color: var(--muted); font-size: 15px; line-height: 1.45; }
.w-credit { color: var(--muted); font-size: 13.5px; }

.w-page { padding-top: 26px; }
.w-stage { background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); max-height: calc(100svh - 120px); margin: 0 auto;
  border: 1px solid #262a36; }
.w-video { display: block; width: 100%; height: 100%; background: #000; }
.w-words-box { max-width: 760px; }
.w-words-box h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 10px 0 12px; }
.w-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 22px 0 0; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.w-meta .w-tag { align-self: center; }
.w-words-box .w-credit { margin: 12px 0 0; font-size: 14.5px; }
.w-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 22px 0 0; }
.w-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; color: var(--text);
  border: 1px solid var(--line); background: var(--panel); }
.w-btn:hover { text-decoration: none; border-color: var(--part); }
.w-btn.primary { color: #0b0c10; background: var(--part); border-color: var(--part); }
.w-also { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
.w-also a { font-weight: 600; }
.w-chapters { margin-top: 30px; }
.w-chapters h2 { font-size: 20px; margin: 0 0 8px; }
.w-chapters ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.w-chapters li { border-bottom: 1px solid var(--line); }
.w-ch { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 11px 6px; text-align: left; font: inherit; font-size: 16px; color: var(--text);
  background: none; border: 0; cursor: pointer; min-height: 44px; }
.w-ch:hover { color: var(--part); }
.w-ch[aria-current] { color: var(--part); font-weight: 600; }
.w-t { flex: none; min-width: 3.4em; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14.5px; }
.w-ch[aria-current] .w-t { color: var(--part); }
.w-back { margin-top: 14px; font-weight: 600; }
.w-heart { flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted); background: var(--panel2, var(--panel)); border: 1px solid var(--line); transition: color .15s, border-color .15s, transform .15s; }
.w-heart svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.w-heart:hover { color: var(--part); border-color: var(--part); }
.w-heart:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.w-heart[aria-pressed="true"] { color: var(--part); border-color: color-mix(in srgb, var(--part) 55%, transparent); }
.w-heart[aria-pressed="true"] svg { fill: currentColor; }
.w-heart.pop { animation: w-pop .32s ease-out; }
@keyframes w-pop { 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .w-heart.pop { animation: none; } }
@media (max-width: 600px) {
  .w-page { padding-top: 14px; }
  .w-stage { border-radius: 12px; }
  .w-list { gap: 22px; }
}

body.feed-on { overflow: hidden; }
body.feed-on .w-words-box { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.r-feed { --part: #ff7a59; position: fixed; inset: 0; z-index: 50; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; background: #000; color: #fff; scrollbar-width: none; }
.r-feed::-webkit-scrollbar { display: none; }
.r-feed:focus { outline: none; }
.r-feed :focus-visible { outline: 3px solid #6ea8ff; outline-offset: 2px; }
.r-top { position: fixed; top: 0; left: 0; z-index: 3; padding: max(12px, env(safe-area-inset-top)) 16px 0 max(16px, env(safe-area-inset-left)); pointer-events: none; }
.r-back { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font: 600 14.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #fff; background: rgba(12, 13, 18, .62); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.r-back:hover { text-decoration: none; border-color: var(--part); }
.r-ico { display: inline-grid; place-items: center; }
.r-ico svg { display: block; }
.r-slide { position: relative; box-sizing: border-box; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center; gap: 24px; padding: 16px; }
.r-frame { position: relative; flex: none; aspect-ratio: var(--arw) / var(--arh); border-radius: 16px; overflow: hidden; background: #000;
  width: min(calc((100svh - 32px) * var(--arw) / var(--arh)), calc(100vw - 340px)); border: 1px solid #262a36; }
.r-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.r-hint { position: absolute; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 56px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font: 600 14.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; white-space: nowrap; color: #fff;
  background: rgba(12, 13, 18, .7); pointer-events: none; }
.r-hint[hidden] { display: none; }
.r-cc { position: absolute; left: 12px; right: 12px; bottom: 18px; text-align: center; pointer-events: none; }
.r-cc[hidden] { display: none; }
.r-cc span { display: inline; padding: 3px 8px; line-height: 1.6; font: 600 17px/1.55 -apple-system, BlinkMacSystemFont, sans-serif; color: #fff;
  background: rgba(0, 0, 0, .78); border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: pre-line; }
.r-side { flex: none; width: 260px; align-self: flex-end; padding-bottom: 8px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.r-words { min-width: 0; }
.r-title { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; color: #fff; }
.r-line { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.r-credit { margin: 6px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .66); }
.r-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 12px 0 0; }
.r-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.r-link:hover { text-decoration: none; border-color: var(--part); }
.r-link.primary { color: #0b0c10; background: var(--part); border-color: var(--part); }
.r-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.r-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font: 800 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; }
.r-btn:hover { border-color: var(--part); }
.r-btn.w-heart { color: #fff; }
.r-btn.w-heart[aria-pressed="true"] { color: var(--part); }
.r-sound .r-ico-on, .r-sound[aria-pressed="true"] .r-ico-off { display: none; }
.r-sound[aria-pressed="true"] .r-ico-on { display: inline-grid; }
.r-ccbtn[aria-pressed="false"] .r-ccmark { opacity: .5; text-decoration: line-through; }
.r-ccbtn[aria-pressed="true"] { color: #0b0c10; background: #fff; }
.r-pause .r-ico-play, .r-pause.paused .r-ico-pause { display: none; }
.r-pause.paused .r-ico-play { display: inline-grid; }
.r-toast { position: fixed; left: 50%; top: max(112px, calc(env(safe-area-inset-top) + 104px));
  z-index: 4; transform: translateX(-50%); margin: 0; padding: 10px 16px;
  border-radius: 999px; font: 600 14.5px/1.2 -apple-system, BlinkMacSystemFont, sans-serif; color: #0b0c10; background: #fff; max-width: calc(100vw - 32px);
  overflow-wrap: anywhere; opacity: 0; pointer-events: none; transition: opacity .2s; }
.r-toast.on { opacity: 1; }
@media (min-width: 1100px) {
  .r-slide { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 28px; justify-content: stretch; }
  .r-frame { grid-column: 2; width: min(calc((100svh - 32px) * var(--arw) / var(--arh)), calc(100vw - 720px)); }
  .r-side { grid-column: 3; width: auto; max-width: 300px; justify-self: start; }
}
@media (max-width: 699px) {
  .r-slide { display: block; padding: 0; }
  .r-frame { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
  .r-916 .r-video { object-fit: cover; }
  .r-side { position: absolute; left: 0; right: 0; bottom: 0; width: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px;
    padding: 72px max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .78)); pointer-events: none; }
  .r-side a, .r-side button { pointer-events: auto; }
  .r-title { font-size: 18px; }
  .r-line { font-size: 14.5px; }
  .r-acts { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
  .r-btn { background: rgba(12, 13, 18, .5); }
  .r-cc { left: 16px; right: 72px; bottom: var(--cc-b, 220px); }
}
