body.page-watch {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 147, 135, 0.16), transparent 28%),
    linear-gradient(180deg, #171412 0%, #243c31 48%, var(--paper-deep) 100%);
  color: var(--paper);
}

body.page-watch .watch-site-header {
  background: rgba(23, 20, 18, 0.88);
  border-bottom: 1px solid rgba(255, 249, 240, 0.12);
}

body.page-watch .site-status {
  border-color: rgba(255, 249, 240, 0.28);
  background: rgba(255, 249, 240, 0.08);
}

body.page-watch .site-nav-link {
  color: rgba(255, 249, 240, 0.82);
}

body.page-watch .site-nav-link:hover,
body.page-watch .site-nav-link:focus-visible {
  color: var(--coral);
}

.watch-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 64px);
  padding: var(--s-64) 0 var(--s-80);
}

.watch-hero-inner {
  display: block;
}

.watch-app {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(380px, 460px);
  gap: var(--s-24);
  justify-content: center;
  align-items: start;
  width: min(100%, 900px);
  margin: 0 auto;
}

.watch-player-shell,
.watch-meta,
.watch-playlist {
  border: 1px solid rgba(255, 249, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(23, 20, 18, 0.44);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.watch-player-shell {
  overflow: hidden;
  width: 100%;
}

.watch-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.08), rgba(255, 249, 240, 0.02)),
    #111;
}

.watch-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.watch-center-button {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 249, 240, 0.5);
  border-radius: 999px;
  background: rgba(23, 20, 18, 0.68);
  color: var(--paper);
  transform: translate(-50%, -50%);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
  backdrop-filter: blur(14px);
}

.watch-center-button:hover,
.watch-center-button:focus-visible {
  background: rgba(255, 147, 135, 0.88);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.03);
}

.watch-app.is-playing .watch-center-button {
  opacity: 0;
  pointer-events: none;
}

.watch-play-icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid currentColor;
}

.watch-controls {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.watch-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.watch-control-row-main {
  justify-content: flex-start;
}

.watch-control-row-sound {
  justify-content: space-between;
  padding-top: 2px;
}

.watch-icon-button,
.watch-control-primary,
.watch-control-secondary {
  min-height: 38px;
  border: 1px solid rgba(255, 249, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 249, 240, 0.08);
  color: rgba(255, 249, 240, 0.9);
  font-size: var(--t-12);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.watch-control-primary {
  min-width: 86px;
  padding: 0 14px;
  background: var(--coral);
  color: var(--ink);
}

.watch-control-secondary {
  min-width: 82px;
  padding: 0 12px;
  white-space: nowrap;
}

.watch-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
}

.watch-icon-button:hover,
.watch-icon-button:focus-visible,
.watch-control-primary:hover,
.watch-control-primary:focus-visible,
.watch-control-secondary:hover,
.watch-control-secondary:focus-visible {
  border-color: rgba(255, 249, 240, 0.42);
  background: rgba(255, 249, 240, 0.16);
  color: var(--paper);
}

.watch-control-primary:hover,
.watch-control-primary:focus-visible {
  background: var(--coral-deep);
}

.watch-skip-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.watch-skip-icon::before,
.watch-skip-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
}

.watch-skip-icon::before {
  left: 2px;
}

.watch-skip-icon::after {
  left: 9px;
}

.watch-skip-icon-prev {
  transform: rotate(180deg);
}

.watch-progress-label {
  display: block;
  min-width: 0;
}

.watch-progress {
  display: block;
  width: 100%;
  accent-color: var(--coral);
}

.watch-volume-label {
  display: block;
  flex: 1 1 auto;
  min-width: 72px;
}

.watch-volume {
  display: block;
  width: 100%;
  accent-color: var(--coral);
}

.watch-time {
  margin-left: auto;
  color: rgba(255, 249, 240, 0.68);
  font-size: var(--t-12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.watch-side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: min(calc(100svh - 112px), 832px);
  min-height: 0;
}

.watch-meta {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
}

.watch-kicker {
  margin: 0;
  color: var(--coral);
  font-size: var(--t-11);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.watch-meta h2 {
  color: var(--paper);
  overflow: hidden;
  max-width: 100%;
  font-size: clamp(1.35rem, 1.65vw, 1.75rem);
  line-height: 1.03;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-meta p:not(.watch-kicker) {
  margin: 0;
  color: rgba(255, 249, 240, 0.78);
  font-size: var(--t-15);
  line-height: 1.48;
}

.watch-lesson {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 249, 240, 0.14);
}

.watch-meta .btn {
  justify-self: start;
  min-height: 44px;
  margin-top: 4px;
}

.watch-playlist {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  min-height: 0;
}

.watch-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding: 14px var(--s-16);
  border-bottom: 1px solid rgba(255, 249, 240, 0.12);
  color: rgba(255, 249, 240, 0.74);
  font-size: var(--t-11);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.watch-playlist-list {
  display: grid;
  align-content: start;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
}

.watch-reel-button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 249, 240, 0.1);
  color: var(--paper);
  text-align: left;
  transition: background 160ms ease;
}

.watch-reel-button:hover,
.watch-reel-button:focus-visible,
.watch-reel-button.is-active {
  background: rgba(255, 249, 240, 0.1);
}

.watch-reel-thumb {
  overflow: hidden;
  width: 58px;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 249, 240, 0.16);
  border-radius: 6px;
  background: rgba(255, 249, 240, 0.08);
}

.watch-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-reel-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.watch-reel-copy strong {
  overflow: hidden;
  color: var(--paper);
  font-size: var(--t-15);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-reel-copy span {
  overflow: hidden;
  color: rgba(255, 249, 240, 0.6);
  font-size: var(--t-12);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-reel-duration {
  justify-self: end;
  color: rgba(255, 249, 240, 0.58);
  font-size: var(--t-12);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.watch-fallback {
  grid-column: 1 / -1;
  display: none;
  padding: var(--s-16);
  border: 1px solid rgba(255, 249, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(23, 20, 18, 0.48);
  color: rgba(255, 249, 240, 0.78);
}

.watch-app.is-error .watch-fallback {
  display: block;
}

.watch-fallback a {
  color: var(--coral);
  font-weight: 800;
}

.watch-transcript {
  overflow: hidden;
  margin-top: var(--s-8);
  border-top: 1px solid rgba(255, 249, 240, 0.12);
  border-radius: var(--radius);
  background: transparent;
}

.watch-transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  padding: 10px 0;
  color: rgba(255, 249, 240, 0.58);
  font-size: var(--t-12);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.watch-transcript summary::-webkit-details-marker {
  display: none;
}

.watch-transcript summary::after {
  content: "+";
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(255, 249, 240, 0.14);
  border-radius: 999px;
  color: rgba(255, 249, 240, 0.54);
  font-weight: 900;
  line-height: 1;
}

.watch-transcript summary:hover,
.watch-transcript summary:focus-visible {
  color: rgba(255, 249, 240, 0.84);
}

.watch-transcript summary:hover::after,
.watch-transcript summary:focus-visible::after {
  border-color: rgba(255, 147, 135, 0.32);
  color: var(--coral);
}

.watch-transcript[open] summary::after {
  content: "-";
}

.watch-transcript p {
  margin: 0;
  padding: 4px 0 12px;
  color: rgba(255, 249, 240, 0.62);
  font-size: var(--t-13);
  line-height: 1.62;
}

@media (max-width: 1080px) {
  .watch-app {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
  }

  .watch-player-shell {
    width: 100%;
    justify-self: center;
  }

  .watch-side {
    grid-template-rows: auto auto;
    height: auto;
    max-height: none;
  }

  .watch-playlist-list {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .watch-hero {
    padding: var(--s-32) 0 var(--s-80);
  }

  .watch-controls {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(23, 20, 18, 0.86);
    backdrop-filter: blur(14px);
  }

  .watch-control-row-main,
  .watch-control-row-sound {
    width: 100%;
  }

  .watch-control-primary {
    flex: 1 1 auto;
  }

  .watch-playlist-head {
    padding-inline: 12px;
  }

  .watch-reel-button {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }
}
