:root {
  --yt-red: #E0001B;
  --yt-red-deep: #B80016;
  --yt-ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}

.yt-zone {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--yt-max, 1080px) + 2 * var(--yt-pad, 24px));
  margin: 0 auto;
  padding: var(--yt-top, clamp(56px, 9vw, 112px)) var(--yt-pad, 24px) var(--yt-bottom, clamp(56px, 9vw, 104px));
  text-align: left;
}

.yt-watch-head,
.yt-watch-head *,
.yt-player,
.yt-player *,
.yt-watch-foot,
.yt-watch-foot *,
.yt-band,
.yt-band *,
.yt-band *::after { box-sizing: border-box; }

.yt-zone--band { padding-top: var(--yt-band-top, clamp(32px, 5vw, 56px)); }

.yt-vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.yt-watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(22px, 3.5vw, 40px);
}

@media (min-width: 900px) {
  .yt-watch-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 38ch);
  }
}

.yt-watch-eyebrow {
  margin: 0 0 12px;
  font-family: var(--yt-ui, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yt-accent-ink, currentColor);
}

.yt-watch-title {
  margin: 0;
  font-family: var(--yt-display, Georgia, serif);
  font-size: var(--yt-title-size, clamp(30px, 4.4vw, 56px));
  font-weight: var(--yt-display-weight, 400);
  line-height: 1.06;
  letter-spacing: var(--yt-display-tracking, -0.01em);
  text-transform: var(--yt-display-case, none);
  color: var(--yt-ink, #FFFFFF);
}

.yt-watch-lede {
  margin: 0;
  max-width: 40ch;
  font-family: var(--yt-body, system-ui, sans-serif);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--yt-ink-soft, rgba(255, 255, 255, 0.74));
}

.yt-player { position: relative; }

.yt-player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--yt-radius, 14px);
  background: #000000;
  box-shadow:
    0 0 0 1px var(--yt-line, rgba(255, 255, 255, 0.14)),
    0 40px 110px -48px var(--yt-shadow, rgba(0, 0, 0, 0.6));
}

.yt-player-box:has(.yt-player-facade:focus-visible) {
  box-shadow:
    0 0 0 3px var(--yt-focus, #FFFFFF),
    0 40px 110px -48px var(--yt-shadow, rgba(0, 0, 0, 0.6));
}

.yt-player-facade {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  color: #FFFFFF;
  text-decoration: none;
}

.yt-player-facade:hover { color: #FFFFFF; }

.yt-player-facade:focus-visible {
  outline: 3px solid var(--yt-focus, #FFFFFF);
  outline-offset: -3px;
}

.yt-player-thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 900ms var(--yt-ease);
}

.yt-player-facade:hover .yt-player-thumb { transform: scale(1.025); }

.yt-player-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 28%);
}

.yt-player-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 104px);
  height: clamp(46px, 6.3vw, 74px);
  border-radius: 16px;
  color: #FFFFFF;
  background: var(--yt-red);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 14px 44px -8px rgba(224, 0, 27, 0.7);
  transform: translate(-50%, -50%);
  transition: transform 400ms var(--yt-ease), background-color 300ms linear;
}

.yt-player-play svg {
  width: 38%;
  height: auto;
  margin-left: 6%;
}

.yt-player-facade:hover .yt-player-play {
  background: var(--yt-red-deep);
  transform: translate(-50%, -50%) scale(1.08);
}

.yt-player-badge,
.yt-player-time {
  position: absolute;
  bottom: clamp(10px, 1.6vw, 18px);
  padding: 5px 9px;
  border-radius: 4px;
  font-family: var(--yt-ui, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: rgba(5, 8, 15, 0.86);
}

.yt-player-badge {
  left: clamp(10px, 1.6vw, 18px);
  display: none;
  white-space: nowrap;
  text-transform: uppercase;
}

.yt-player-time { right: clamp(10px, 1.6vw, 18px); }

.yt-player.is-link .yt-player-badge,
.yt-player.is-blocked .yt-player-badge { display: block; }

.yt-player-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.yt-player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.yt-player.is-playing .yt-player-facade { visibility: hidden; }

@keyframes yt-loading {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.yt-player.is-loading .yt-player-play { animation: yt-loading 1000ms ease-in-out infinite; }

.yt-player-note {
  margin: 14px 0 0;
  max-width: 80ch;
  font-family: var(--yt-body, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--yt-ink-soft, rgba(255, 255, 255, 0.74));
}

.yt-player-note a,
.yt-watch-meta a {
  color: var(--yt-ink, #FFFFFF);
  text-decoration: underline;
  text-decoration-color: var(--yt-underline, rgba(255, 255, 255, 0.4));
  text-underline-offset: 3px;
}

.yt-player-note a:hover,
.yt-watch-meta a:hover { text-decoration-color: currentColor; }

.yt-player-note a:focus-visible,
.yt-watch-meta a:focus-visible {
  outline: 2px solid var(--yt-focus, #FFFFFF);
  outline-offset: 3px;
}

.yt-player-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.yt-player.is-blocked .yt-player-status {
  position: static;
  width: auto;
  height: auto;
  margin: 12px 0 0;
  padding: 12px 16px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border-left: 2px solid var(--yt-red);
  background: rgba(224, 0, 27, 0.1);
  font-family: var(--yt-body, system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--yt-ink, #FFFFFF);
}

.yt-watch-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: clamp(20px, 3vw, 32px);
  padding-top: 20px;
  border-top: 1px solid var(--yt-line, rgba(255, 255, 255, 0.14));
}

.yt-watch-name {
  margin: 0;
  max-width: 44ch;
  font-family: var(--yt-display, Georgia, serif);
  font-size: var(--yt-name-size, clamp(19px, 1.9vw, 26px));
  font-weight: var(--yt-display-weight, 400);
  line-height: 1.25;
  letter-spacing: var(--yt-display-tracking, -0.01em);
  text-transform: var(--yt-display-case, none);
  color: var(--yt-ink, #FFFFFF);
}

.yt-watch-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  font-family: var(--yt-ui, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yt-ink-soft, rgba(255, 255, 255, 0.74));
}

.yt-watch-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.yt-band {
  margin-top: var(--yt-band-gap, clamp(40px, 6vw, 64px));
  text-align: left;
}

.yt-band-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
  min-height: 96px;
  padding: 20px clamp(20px, 3vw, 36px);
  border-radius: var(--yt-radius, 16px);
  background-color: var(--yt-red);
  color: #FFFFFF;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--yt-band-shadow, inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 70px -22px rgba(224, 0, 27, 0.75), 0 0 110px -20px rgba(224, 0, 27, 0.45));
  transition:
    background-color 300ms linear,
    box-shadow 400ms var(--yt-ease),
    transform 400ms var(--yt-ease);
}

.yt-band-btn:hover,
.yt-band-btn:visited { color: #FFFFFF; }

.yt-band-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 250% 100%;
  background-position: 130% 0;
}

@keyframes yt-sweep {
  from { background-position: 130% 0; }
  to { background-position: -30% 0; }
}

.yt-band-btn:hover {
  background-color: var(--yt-red-deep);
  transform: translateY(-2px);
  box-shadow: var(--yt-band-shadow-hover, inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 80px -20px rgba(224, 0, 27, 0.85), 0 0 140px -16px rgba(224, 0, 27, 0.55));
}

.yt-band-btn:hover::after,
.yt-band-btn:focus-visible::after { animation: yt-sweep 1100ms var(--yt-ease) 1; }

.yt-band-btn:focus-visible {
  outline: 3px solid var(--yt-focus, #FFFFFF);
  outline-offset: 4px;
}

.yt-band-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(48px, 5vw, 60px);
  height: clamp(48px, 5vw, 60px);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--yt-red);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.yt-band-icon svg {
  width: 44%;
  height: 44%;
  margin-left: 8%;
}

.yt-band-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.yt-band-label {
  font-family: var(--yt-display, Georgia, serif);
  font-size: var(--yt-label-size, clamp(22px, 2.6vw, 32px));
  font-weight: var(--yt-label-weight, 500);
  line-height: 1.12;
  letter-spacing: var(--yt-display-tracking, -0.005em);
  text-transform: var(--yt-display-case, none);
  overflow-wrap: anywhere;
}

.yt-band-sub {
  font-family: var(--yt-ui, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.yt-band-arrow {
  flex: none;
  margin-left: auto;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  transition: transform 400ms var(--yt-ease);
}

.yt-band-btn:hover .yt-band-arrow { transform: translate(4px, -4px); }

@media (max-width: 560px) {
  .yt-band-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon . arrow" "text text text";
    gap: 14px 12px;
    min-height: 0;
    padding: 18px;
  }
  .yt-band-icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
  }
  .yt-band-text { grid-area: text; }
  .yt-band-arrow {
    grid-area: arrow;
    margin-left: 0;
  }
}

@media (forced-colors: active) {
  .yt-band-btn,
  .yt-player-play { border: 2px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  .yt-band-btn,
  .yt-band-arrow,
  .yt-player-thumb,
  .yt-player-play { transition: none; }
  .yt-band-btn:hover,
  .yt-band-btn:hover .yt-band-arrow,
  .yt-player-facade:hover .yt-player-thumb { transform: none; }
  .yt-player-facade:hover .yt-player-play { transform: translate(-50%, -50%); }
  .yt-band-btn:hover::after,
  .yt-band-btn:focus-visible::after,
  .yt-player.is-loading .yt-player-play { animation: none; }
}
