/* Take 04: Streaming has become cable 2.0. */

:root {
  /* This tape's label colour: cable-guide mint. */
  --tape: #9fd3b0;
}

.cuts {
  margin-top: 2.5rem;
}

/* Exhibit A: the channel guide. Fast-forward and every channel becomes an app. */

.guide__screen {
  /* Side padding follows the screen width, not the text size, so large text keeps its room. */
  padding: max(clamp(1.25rem, 4vw, 2rem), 1.5rem) min(clamp(1rem, 4vw, 2rem), 5vw);
  border-radius: 0.6rem;
}

.guide__osd {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.guide__year {
  color: var(--stamp);
  text-shadow: 0 0 0.35em rgb(255 170 50 / 0.55);
}

.guide__table {
  width: 100%;
  border-collapse: collapse;
}

.guide__table tr + tr {
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.guide__table td,
.guide__table th {
  padding: 0.55rem 0;
  text-align: left;
  vertical-align: baseline;
}

/* The number column fits its content, with a gap before the name. Scoped to
   the table so it outranks the cells' shared padding. */
.guide__table .guide__number {
  width: 1%;
  padding-inline-end: 1.25em;
  white-space: nowrap;
  font-family: var(--font-osd);
  font-size: 1.125rem;
  color: var(--screen-muted);
}

.guide__table th {
  font-family: var(--font-display);
  font-size: min(1.375rem, 7vw);
  font-stretch: 85%;
  font-weight: 700;
}

.guide[data-year="now"] .guide__number {
  color: var(--tape);
}

.guide__controls,
.bundle__controls {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.guide figcaption,
.bundle figcaption {
  text-align: center;
}

/* Exhibit B: one line on the cable bill against a growing pile of subscriptions. */

.bundle__bills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.bundle__bill {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  padding: 1.25rem min(clamp(1rem, 4vw, 1.5rem), 5vw);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 1rem 2rem -1.25rem rgb(0 0 0 / 0.4);
}

.bundle__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-stretch: 85%;
  font-weight: 750;
}

.bundle__list {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle__item {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--tape);
  color: var(--shell);
  font-weight: 600;
}

.bundle__list--now .bundle__item {
  animation: slot-in 300ms ease both;
}

@keyframes slot-in {
  from { opacity: 0; transform: translateY(0.4rem); }
}

.bundle__count {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--paper-rule);
  font-size: min(1.125rem, 5.5vw);
  color: var(--paper-muted);
}

.bundle__bill--now .bundle__count {
  color: var(--paper-rec);
}

@media (prefers-reduced-motion: reduce) {
  .bundle__list--now .bundle__item {
    animation: none;
  }
}
