/* TV tonight. Calm tokens live in assets/site.css. */

.desk-tv {
  color: var(--ink);
  padding-top: 8px;
}

.desk-tv-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 28px;
  background: var(--night);
  color: #f4f7f6;
}

.desk-tv-hero.is-poster {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  padding: 22px;
}

.desk-tv-hero.is-room {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
}

.desk-tv-hero.is-poster .desk-tv-hero-img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--night-2);
}

.desk-tv-hero.is-room .desk-tv-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.desk-tv-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 25, 29, .92) 0%, rgba(15, 25, 29, .55) 46%, rgba(15, 25, 29, .22) 100%);
}

.desk-tv-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.desk-tv-hero.is-room .desk-tv-hero-copy {
  padding: 28px 26px 22px;
  max-width: 68ch;
}

.desk-tv-hero .eyebrow,
.desk-tv-hero .eyebrow:hover {
  color: #d7efe9;
  background: rgba(220, 235, 231, .16);
  text-decoration: none;
}

.desk-tv-hero h1 {
  color: #f7f4ee;
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -.03em;
  margin: 0 0 10px;
  max-width: 16ch;
}

.desk-tv-hero .lede {
  color: #e4eeef;
  font-size: 17.5px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 58ch;
}

.desk-tv-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.desk-tv-search input {
  flex: 1 1 200px;
  min-width: 0;
  background: #fffdf9;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
}

.desk-tv-search input::placeholder {
  color: var(--muted);
}

.desk-tv-search .btn {
  flex: none;
}

.desk-tv-credit {
  font-size: 13px;
  line-height: 1.45;
  color: #c5d4d6;
  margin: 12px 0 0;
}

.desk-tv-credit a {
  color: #d7efe9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.desk-tv-list {
  display: grid;
  gap: 14px;
}

.desk-tv-show {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.desk-tv-show.has-poster {
  grid-template-columns: 112px minmax(0, 1fr);
}

.desk-tv-poster img {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-2);
}

.desk-tv-show h2 {
  font-size: clamp(22px, 2vw, 28px);
  margin: 0 0 6px;
  overflow-wrap: break-word;
}

.desk-tv-show h2 a:hover {
  color: var(--accent);
}

.desk-tv-show p,
.desk-tv-body p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.desk-tv-show p:last-child,
.desk-tv-body p:last-child {
  margin-bottom: 0;
}

.desk-tv-body {
  max-width: 68ch;
  margin: 0 0 8px;
}

.desk-tv-body p {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.desk-tv-site a,
.desk-tv-back a,
.desk-tv-source a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.desk-tv-source,
.desk-tv-empty,
.desk-tv-back {
  color: var(--muted);
  font-size: 15.5px;
  margin: 22px 0 0;
}

.desk-tv-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.desk-tv-back {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .desk-tv-hero.is-poster {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .desk-tv-hero.is-room {
    min-height: 300px;
  }
  .desk-tv-hero.is-room .desk-tv-hero-copy {
    padding: 20px 16px 16px;
  }
  .desk-tv-show.has-poster {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .desk-tv-show {
    padding: 12px;
  }
  .desk-tv-poster img {
    width: 84px;
  }
}
