/* Composed television programs. Existing artwork is framed, never stretched. */
.picture-tube { container-type: inline-size; }
.screen-ambience { display: none; }
.channel-frame .episode {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 3.8cqi, 30px);
  overflow: hidden;
  background: linear-gradient(100deg, #1b1711e8, #2a1c10c9), url('assets/videoclub-room.png') center / cover;
  cursor: zoom-in;
  pointer-events: none;
}
.channel-frame.is-active .episode { pointer-events: auto; }
.episode::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 38% 24%, #f4b34c12, transparent 65%);
  pointer-events: none;
}
.episode-label {
  display: block;
  margin-bottom: clamp(7px, 1.8cqi, 14px);
  color: #c5ac7f;
  font: 600 clamp(6px, 1.1cqi, 9px)/1.4 var(--mono);
  letter-spacing: .9px;
}
.episode h1, .episode h2, .episode h3, .episode p { margin: 0; }
.episode h1, .episode h2, .episode h3 {
  font-family: Impact, 'Arial Narrow', 'Arial Black', sans-serif;
  font-weight: 400;
  color: #f2cb74;
  text-shadow: 2px 2px 0 #130d08;
}
.episode h2 { font-size: clamp(23px, 6.8cqi, 56px); line-height: .98; letter-spacing: .3px; }
.episode h1 em, .episode p em { color: #e6ad57; font-style: normal; }
.episode-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; }
.episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: none;
  margin-top: auto;
  padding-top: clamp(8px, 1.5cqi, 14px);
  border-top: 1px solid #d7b36f44;
  color: #ceb889;
  font: clamp(6px, 1.1cqi, 9px)/1.4 var(--mono);
  letter-spacing: .3px;
}
.episode-footer>span:last-child { text-align: right; }
.episode-footer i { margin-left: 4px; color: #dc9453; font-style: normal; }
.scanlines { opacity: .065; }
.osd { top: auto; left: auto; right: 15px; bottom: 15px; align-items: flex-end; }
.osd-number { font-size: clamp(22px, 4cqi, 35px); }
.osd-name, .osd-mode { display: none; }

/* Channel 01 — a title sequence, with the existing pixel-art host on the right. */
.channel-frame .episode-air { background: #152c32; }
.air-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 37%;
  background: url('photo_2026-11-03_20-08-32.jpg') center bottom / auto 150% no-repeat;
  image-rendering: pixelated;
}
.air-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #122a32 0%, #122a32 32%, #122a32c4 47%, transparent 76%); }
.episode-air::after { background: linear-gradient(0deg, #101e23 0%, transparent 28%, transparent 85%, #14293088); }
.air-copy { display: flex; flex-direction: column; justify-content: center; flex: 1; min-height: 0; position: relative; width: 71%; padding-bottom: 12px; }
.air-copy h1 { font-size: clamp(27px, 9.4cqi, 77px); line-height: .89; letter-spacing: -.3px; color: #f4d98b; }
.air-copy p { margin-top: clamp(11px, 2.5cqi, 23px); font-size: clamp(9px, 1.9cqi, 15px); line-height: 1.55; color: #e0d5ae; }
.air-tag { align-self: flex-start; margin-top: clamp(11px, 2.5cqi, 23px); padding: 6px 9px; background: #a43926; color: #f5d296; font: bold clamp(5px, 1.05cqi, 8px)/1.2 var(--mono); letter-spacing: .25px; transform: rotate(-1deg); }

/* Channel 02 — taped labels from a video rental shelf. */
.edition-mark { align-self: center; flex: none; padding: 8px 10px; border: 2px solid #b35230; color: #c16f3e; text-align: center; font: bold clamp(7px, 1.5cqi, 12px)/1.25 var(--mono); transform: rotate(7deg); }
.plans-content { flex: 1; min-height: 0; display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(12px, 3cqi, 25px); margin: clamp(13px, 3cqi, 26px) 0; }
.plans-character { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 0; overflow: hidden; }
.plans-character p { font: 400 clamp(15px, 3.1cqi, 26px)/1.05 Impact, 'Arial Narrow', sans-serif; color: #e1c485; }
.plans-character svg { display: block; width: 100%; height: 66%; margin: 8px 0; flex: 1; min-height: 0; overflow: hidden; mask-image: linear-gradient(0deg, transparent 0%, #000 6%, #000 93%, transparent 100%); }
.plans-character>span { padding-top: 8px; border-top: 1px solid #c3a36c55; font: clamp(5px, .95cqi, 8px)/1 var(--mono); letter-spacing: .7px; color: #a79471; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(9px, 2cqi, 16px); min-height: 0; }
.price-ticket {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(9px, 2.1cqi, 17px);
  background: linear-gradient(135deg, #f3d998, #d7b265);
  color: #352513;
  box-shadow: 2px 4px 0 #0005, inset 0 0 0 1px #f9e4b3bb;
  transform: rotate(-1deg);
}
.price-ticket:nth-child(2n) { transform: rotate(.8deg); }
.price-ticket:nth-child(n+3) { transform: rotate(.6deg); }
.price-ticket::before { content: ''; position: absolute; width: 34%; height: 11px; top: -5px; left: 32%; background: #d1c29b99; transform: rotate(3deg); box-shadow: 0 1px 2px #0002; }
.ticket-term { font: 400 clamp(12px, 2.6cqi, 22px)/1.1 Impact, 'Arial Narrow', sans-serif; letter-spacing: .2px; }
.price-ticket strong { display: block; margin-top: 7px; font: 400 clamp(25px, 7cqi, 58px)/.95 Impact, 'Arial Narrow', sans-serif; letter-spacing: -.5px; color: #8d281b; white-space: nowrap; }
.price-ticket small { font-size: .6em; }
.tape-mini { width: 30px; height: 15px; position: absolute; top: 11px; right: 11px; border: 2px solid #765c2e; background: #3d3826; box-shadow: 1px 2px 0 #9e7b41; transform: rotate(-10deg); }
.tape-mini::before { content: ''; position: absolute; left: 4px; right: 4px; top: 2px; height: 5px; background: #d9c68f; border-radius: 1px; }
.tape-mini::after { content: ''; position: absolute; width: 11px; height: 2px; left: 7px; bottom: 1px; background: #a7976c; }

/* Channel 03 — a typographic program without cropped icons. */
.episode-features .episode-heading h2 { font-size: clamp(20px, 5.9cqi, 49px); }
.benefit-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 0 clamp(12px, 3cqi, 25px); margin: clamp(9px, 2cqi, 18px) 0; }
.benefit { display: flex; align-items: center; min-width: 0; min-height: 0; padding: clamp(7px, 1.4cqi, 12px) 0; border-bottom: 1px solid #b69d6c3d; }
.benefit:nth-last-child(-n+2) { border-bottom: 0; }
.benefit>div { width: 100%; }
.benefit h3 { font-size: clamp(13px, 2.8cqi, 24px); line-height: 1.1; letter-spacing: .1px; }
.benefit p { margin-top: 5px; color: #cab995; font-size: clamp(8px, 1.55cqi, 12px); line-height: 1.45; }
.server-strip { flex: none; display: flex; align-items: center; gap: 11px; padding-top: 10px; border-top: 3px double #c5a66777; }
.server-strip>strong { font: 400 clamp(28px, 5.6cqi, 46px)/.9 Impact, 'Arial Narrow', sans-serif; color: #edc16c; }
.server-strip>span { font: 400 clamp(9px, 1.8cqi, 15px)/1.05 Impact, 'Arial Narrow', sans-serif; color: #e3c488; }
.server-strip>i { height: 23px; width: 1px; background: #bda57166; margin-left: auto; }
.server-strip>span.server-note { font-size: clamp(7px, 1.4cqi, 11px); color: #bca77e; letter-spacing: .2px; }

/* Channel 04 — the supplied character and room are a separate composition layer. */
.people-art { position: absolute; z-index: -1; right: -1%; bottom: 7%; width: 47%; height: 83%; overflow: hidden; mask-image: radial-gradient(ellipse at 58% 45%, #000 47%, #000000b3 61%, transparent 80%); }
.people-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex: 1; min-height: 0; width: 62%; }
.people-copy h2 { font-size: clamp(24px, 6.8cqi, 57px); }
.people-count { margin-top: clamp(12px, 3cqi, 25px); font: 400 clamp(42px, 14cqi, 116px)/.85 Impact, 'Arial Narrow', sans-serif; color: #f1cd78; text-shadow: 3px 3px 0 #130b05; letter-spacing: -1px; white-space: nowrap; }
.people-count-label { margin-top: 9px; padding: 6px 10px; color: #f2d89b; background: #8f301d; font: 400 clamp(10px, 2.5cqi, 20px)/1 Impact, 'Arial Narrow', sans-serif; letter-spacing: .5px; }
.people-copy p { margin: clamp(12px, 2.6cqi, 21px) 0; color: #c3af88; font-size: clamp(9px, 1.8cqi, 14px); line-height: 1.5; }

/* Channel 05 — an existing telephone illustration becomes the key visual. */
.help-art { position: absolute; z-index: -1; right: -5%; top: 50%; width: 56%; height: auto; aspect-ratio: 1; max-height: 100%; object-fit: contain; border-radius: 50%; transform: translateY(-50%) rotate(-6deg); filter: saturate(.85); box-shadow: 0 8px 28px #0006; }
.help-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; flex: 1; min-height: 0; width: 62%; }
.help-copy h2 { font-size: clamp(24px, 6.5cqi, 54px); }
.help-hours { display: block; margin-top: clamp(12px, 2.5cqi, 23px); color: #efc56e; font: 400 clamp(60px, 20cqi, 160px)/.9 Impact, 'Arial Narrow', sans-serif; letter-spacing: -2px; text-shadow: 3px 3px 0 #190d07; white-space: nowrap; }
.help-hours>span { color: #ac4930; font-size: .8em; }
.help-copy p { margin: clamp(12px, 2.8cqi, 24px) 0; color: #d4bd91; font-size: clamp(9px, 1.9cqi, 15px); line-height: 1.5; }

@container (max-width: 480px) {
  .channel-frame .episode { padding: 15px 16px 12px; }
  .episode-label { font-size: 6px; letter-spacing: .4px; margin-bottom: 7px; }
  .episode-footer { font-size: 5px; letter-spacing: .1px; padding-top: 7px; }
  .air-copy { width: 74%; padding-bottom: 7px; }
  .air-copy h1 { font-size: 8.7cqi; }
  .air-copy p { font-size: 9px; margin-top: 11px; }
  .air-tag { font-size: 5px; padding: 5px 6px; margin-top: 10px; }
  .air-art { left: 33%; background-size: auto 150%; }
  .plans-content { gap: 12px; margin-block: 14px; grid-template-columns: .7fr 1.5fr; }
  .plans-character p { font-size: 15px; }
  .plans-character>span { font-size: 4px; letter-spacing: .3px; }
  .price-ticket { padding: 9px; }
  .ticket-term { font-size: 12px; }
  .price-ticket strong { font-size: 7.4cqi; margin-top: 6px; }
  .tape-mini { width: 22px; height: 12px; top: 8px; right: 7px; }
  .tape-mini::before { left: 2px; right: 2px; top: 1px; height: 4px; }
  .tape-mini::after { width: 7px; left: 5px; }
  .benefit-grid { gap: 0 13px; margin: 8px 0; }
  .benefit { padding: 7px 0; }
  .benefit h3 { font-size: 13px; line-height: 1.05; }
  .benefit p { display: none; }
  .server-strip { gap: 8px; padding-top: 7px; }
  .server-strip>span { font-size: 10px; }
  .server-strip>strong { font-size: 29px; }
  .server-strip>span.server-note { font-size: 7px; }
  .server-strip>i { height: 20px; }
  .people-copy h2 { font-size: 7cqi; }
  .people-count { font-size: 13.5cqi; }
  .people-count-label { font-size: 11px; padding: 5px 7px; margin-top: 7px; }
  .people-copy p { font-size: 9px; margin-block: 11px; }
  .help-hours { font-size: 20cqi; margin-top: 12px; }
  .help-copy h2 { font-size: 7cqi; }
  .help-copy p { font-size: 9px; margin-block: 11px; }
}

@container (max-width: 340px) {
  .channel-frame .episode { padding: 12px 13px 10px; }
  .episode-label { font-size: 5px; margin-bottom: 6px; }
  .episode h2 { font-size: 24px; }
  .air-copy h1 { font-size: 8.7cqi; }
  .air-copy p { font-size: 8px; line-height: 1.45; }
  .air-tag { font-size: 4px; margin-top: 9px; }
  .plans-character { display: none; }
  .plans-content { grid-template-columns: 1fr; margin: 11px 0; }
  .price-grid { gap: 8px 10px; }
  .price-ticket { padding: 7px 10px; }
  .ticket-term { font-size: 12px; }
  .price-ticket strong { font-size: 25px; margin-top: 4px; }
  .edition-mark { font-size: 5px; padding: 4px 5px; border-width: 1px; }
  .episode-features .episode-heading h2 { font-size: 20px; }
  .benefit-grid { gap: 0 9px; margin: 7px 0; }
  .benefit { padding: 5px 0; }
  .benefit h3 { font-size: 11px; }
  .server-strip { padding-top: 6px; gap: 6px; }
  .server-strip>strong { font-size: 25px; }
  .server-strip>span { font-size: 8px; }
  .server-strip>span.server-note { font-size: 6px; }
  .people-copy h2, .help-copy h2 { font-size: 23px; }
  .people-count { font-size: 39px; letter-spacing: -1px; margin-top: 13px; }
  .people-count-label { font-size: 9px; margin-top: 6px; }
  .people-copy p, .help-copy p { font-size: 8px; line-height: 1.4; }
  .help-hours { font-size: 58px; }
  .episode-footer { font-size: 4.5px; gap: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-tuning .episode { animation: program-enter .3s ease-out; }
  @keyframes program-enter { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

@container (max-width: 270px) {
  .episode-plans .episode-label { margin-bottom: 4px; }
  .episode-plans h2 { font-size: 22px; }
  .plans-content { margin-block: 8px; }
  .price-ticket { padding: 5px 8px; }
  .ticket-term { font-size: 10px; }
  .price-ticket strong { font-size: 22px; margin-top: 2px; }
  .tape-mini { display: none; }
  .benefit { padding-block: 2px; }
  .server-strip>strong { font-size: 22px; }
}
