/* YouTube series layer for the independent ORIGINAL cinema. No external assets or scripts. */

.yt-source-note,
.yt-note {
  color: #929ba8;
  font-size: 12px;
  line-height: 1.7;
}

.yt-source-note {max-width: 46rem;}

.yt-desc {
  max-width: 38rem;
  color: #c5ccd4;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-hero .original-hero-media .original-media {object-position: center center;}

.yt-count {
  font-size: 11px;
  line-height: 1.5;
  color: #a6abb3;
}

.yt-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 18px;
  min-width: 0;
}

.yt-series-card {min-width: 0;}

.yt-series-link {display: block; color: inherit;}

.yt-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #2a3038;
  border-radius: 3px;
  background: #10141a;
}

.yt-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.yt-series-link:hover .yt-thumb,
.yt-series-link:focus-visible .yt-thumb {border-color: #bca783;}

.yt-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff18;
  background: radial-gradient(ellipse at 50% 10%, #303743, #10141b 70%);
  font-size: 28px;
  font-weight: 800;
}

.yt-card-copy {padding-top: 12px;}

.yt-card-copy h3 {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -.02em;
  color: #e6e8eb;
}

.yt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  color: #89929e;
  font-size: 11px;
  line-height: 1.5;
}

.yt-watch {padding-top: 26px;}

.yt-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  grid-template-areas:
    "player rail"
    "meta rail";
  gap: 22px 28px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--cinema-gutter);
  min-width: 0;
}

.yt-player {
  grid-area: player;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #272d35;
  border-radius: 3px;
  background: #000;
  box-shadow: 0 20px 90px #0005;
}

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

.yt-player .original-media-missing {position: absolute; inset: 0; min-height: 0;}

.yt-meta {grid-area: meta; min-width: 0;}

.yt-meta h1 {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.045em;
}

.yt-kicker {margin-bottom: 8px;}

.yt-kicker a {color: #bda581;}

.yt-kicker a:hover {color: #fff;}

.yt-rail {
  grid-area: rail;
  min-width: 0;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.yt-rail h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.03em;
}

.yt-episodes {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #444a54 #111419;
  padding-bottom: 8px;
}

.yt-episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yt-episode {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 3px;
  color: inherit;
}

a.yt-episode:hover {background: #171c22;}

.yt-episode[aria-current="true"] {
  background: #1b2027;
  box-shadow: inset 2px 0 0 #c1a780;
}

.yt-episode-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  border: 1px solid #2a3038;
}

.yt-episode-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yt-episode-title {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #e6e8eb;
}

.yt-episode-duration {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  color: #89929e;
}

.yt-partial {
  margin: 0;
  padding: 10px 2px 0;
  color: #d2c4ae;
  font-size: 12px;
  line-height: 1.65;
}

.yt-other {margin-top: 56px;}

.yt-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #3a414c;
  border-radius: 3px;
  background: #171b22;
  color: #e6e8eb;
  font-size: 13px;
  line-height: 1.6;
}

.yt-banner-error {
  border-color: #8e6b624f;
  background: #221816;
  color: #f0d6cf;
}

.yt-manage {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px var(--cinema-gutter) 24px;
  min-width: 0;
}

.yt-manage h1 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.045em;
  font-weight: 750;
}

.yt-help {max-width: 42rem; margin-bottom: 8px;}

.yt-help p + p {margin-top: 8px;}

.yt-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}

.yt-field label {
  font-size: 12px;
  line-height: 1.5;
  color: #c5ccd6;
}

.yt-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #3a414c;
  border-radius: 3px;
  background: #10141a;
  color: #f0eee9;
  font: inherit;
  font-size: 14px;
}

.yt-field input::placeholder {color: #777f8b;}

.yt-follow {margin-top: 28px;}

.yt-manage-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-manage-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #2a3038;
  border-radius: 4px;
  background: #111419;
}

.yt-manage-copy {min-width: 0;}

.yt-manage-copy h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.03em;
}

.yt-id {
  margin-top: 4px;
  color: #777f8b;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.yt-manage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.yt-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

button.original-button {
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.yt-button-quiet {
  color: #d7b8ae;
  background: transparent;
  border-color: #8e6b624f;
}

button.yt-button-quiet:hover {
  background: #2a1714;
  border-color: #d7b8ae;
}

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

@media (max-width: 900px) {
  .yt-watch-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "meta"
      "rail";
  }
  .yt-rail {
    position: static;
    max-height: none;
  }
  .yt-episodes {overflow: visible;}
  .yt-manage-row {grid-template-columns: 1fr;}
  .yt-manage-row .yt-thumb {max-width: 280px;}
}

@media (max-width: 480px) {
  .yt-series-grid {grid-template-columns: 1fr;}
  .yt-episode {grid-template-columns: 96px minmax(0, 1fr);}
  .yt-manage {padding-top: 0;}
}

@media (prefers-reduced-motion: reduce) {
  .yt-series-link .yt-thumb,
  .yt-episode,
  button.original-button {transition: none;}
}
