/* Homepage TV (Oct 1): original brown set, TV on the left, a printed channel guide on the right,
   console push-keys instead of pills (carried over from the Now Showing hero). */
/* background: the original brown screening room from la.css (navy reverted at Zahra's request) */
.motion__stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .7fr); gap: clamp(24px, 3vw, 44px); align-items: start; margin-top: clamp(16px, 2vw, 28px); }
.motion--guide .wrap { max-width: 1360px; }
.motion--guide .tv { margin: 0; width: 100%; max-width: none; position: relative; padding-top: 118px; }
.motion--guide .tvguide { margin-top: 118px; }
.motion--guide .tv__count { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.motion--guide .tv__caption { font-size: 17px; margin-top: 10px; }
.motion--guide .tv__credit { font-size: 14px; margin-top: 8px; text-align: center; }

/* push-keys set into a wood strip */
.motion--guide .tv__controls {
  gap: 6px; width: fit-content; max-width: 100%; margin: 22px auto 0; padding: 7px;
  background: linear-gradient(180deg, #5A3A22, #3E2716); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.35);
}
.motion--guide .ctl {
  min-height: 52px; min-width: 132px; border-radius: 3px; border: 0;
  font: 700 15px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: .12em; text-transform: uppercase;
  color: #1E1A14; background: linear-gradient(180deg, #F1EBDD 0%, #DAD3C1 100%);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.4);
  transition: transform .08s ease, box-shadow .08s ease;
}
.motion--guide .ctl:hover { background: linear-gradient(180deg, #FFFFFF 0%, #E6DFCD 100%); color: #1E1A14; }
.motion--guide .ctl:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); }
.motion--guide .ctl:focus-visible { outline: 3px solid #FFCE00; outline-offset: 3px; }
.motion--guide .ctl--play { background: linear-gradient(180deg, #FFDB4D 0%, #FFCE00 100%); color: #111; }

/* the channel guide: part of the same dark screening room. Warm cream type, gold hairlines,
   brass channel badges that echo the TV dial; "On now" is a soft glow, not a block. */
.tvguide { color: #EFE7D6; border-top: 2px solid rgba(210,159,19,.75); padding-top: 18px; }
.tvguide__mast { padding: 0 0 14px; border-bottom: 1px solid rgba(210,159,19,.35); }
.tvguide__kicker { margin: 0; font: 700 13px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: .24em; text-transform: uppercase; color: #FFCE00; }
.tvguide__title { margin: 8px 0 4px; font: 400 26px/1.05 var(--serif, Georgia, serif); color: #FBF6EA; }
.tvguide__sub { margin: 0; font: 400 16px/1.4 var(--sans, Inter, Arial, sans-serif); color: #BDB4A2; }
.tvguide__list { list-style: none; margin: 0; padding: 4px 0 0; }
.tvguide__list li + li { border-top: 1px solid rgba(239,231,214,.12); }
.tvguide__item {
  width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px 10px; margin: 0 -10px; width: calc(100% + 20px); text-align: left; background: none; border: 0; border-radius: 6px;
  cursor: pointer; color: inherit; font: inherit; position: relative; transition: background-color .2s ease;
}
.tvguide__item:hover { background: rgba(255,255,255,.04); }
.tvguide__item:focus-visible { outline: 3px solid #FFCE00; outline-offset: 0; }
.tvguide__ch {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font: 700 16px/1 var(--sans, Inter, Arial, sans-serif); font-variant-numeric: tabular-nums;
  color: #2A2016; background: radial-gradient(circle at 35% 30%, #F4E6BF, #CDB27A 60%, #9C7F45);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.4);
}
.tvguide__body { min-width: 0; display: grid; gap: 5px; }
.tvguide__name { font: 700 17px/1.3 var(--serif, Georgia, serif); color: #FBF6EA; }
.tvguide__desc { font: 400 16px/1.45 var(--sans, Inter, Arial, sans-serif); color: #BDB4A2; }
.tvguide__now {
  display: none; position: absolute; top: 12px; left: 58px;
  font: 700 12px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #FFCE00;
}
.tvguide__now::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #FFCE00; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 8px rgba(255,206,0,.8); }
.tvguide__item.is-on { background: rgba(255,206,0,.08); }
.tvguide__item.is-on .tvguide__ch { box-shadow: 0 0 0 3px rgba(255,206,0,.55), 0 0 18px rgba(255,206,0,.35); }
.tvguide__item.is-on .tvguide__now { display: block; }
.tvguide__item.is-on { padding-top: 34px; }
.tvguide__item.is-on .tvguide__ch { margin-top: -2px; }


/* rabbit ears: two chrome telescoping rods on a domed base, sitting on top of the cabinet */
.tv__ears { position: absolute; top: 0; left: 0; right: 0; height: 122px; pointer-events: none; z-index: 1; }
.ears__base {
  position: absolute; left: 50%; bottom: 0; width: 120px; height: 34px; transform: translateX(-50%);
  border-radius: 60px 60px 6px 6px;
  background: radial-gradient(ellipse at 40% 30%, #6B6257, #2B251F 70%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.18), 0 3px 6px rgba(0,0,0,.45);
}
.ear {
  position: absolute; left: 50%; bottom: 20px; width: 5px; height: 150px; margin-left: -2.5px;
  transform-origin: 50% 100%; border-radius: 3px;
  background: linear-gradient(90deg, #8D8A84, #F2F0EA 45%, #A9A59D 70%, #6D6A64);
  box-shadow: 0 0 2px rgba(0,0,0,.4);
}
.ear::after { content: ""; position: absolute; top: -7px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFFFFF, #B9B5AD 55%, #6D6A64); }
.ear::before { content: ""; position: absolute; left: -1px; right: -1px; top: 45%; height: 3px; background: rgba(0,0,0,.25); border-radius: 2px; }  /* telescoping joint */
.ear--l { --r: -34deg; transform: rotate(var(--r)); }
.ear--r { --r: 28deg; transform: rotate(var(--r)); }
/* the touch target: the whole antenna area (hover or tap) */
.tv__ears-hit {
  position: absolute; left: 50%; bottom: 0; width: 260px; height: 100%; transform: translateX(-50%);
  pointer-events: auto; cursor: grab; background: none; border: 0; padding: 0; border-radius: 12px;
}
.tv__ears-hit:active { cursor: grabbing; }
.tv__ears-hit:focus-visible { outline: 3px solid #FFCE00; outline-offset: 2px; }

/* looking for a signal: snow comes and goes, the picture ghosts and drifts, the ears get nudged */
.tv.is-tuning .tv__static { animation: signal-hunt 1.1s steps(1) infinite, static-jitter .12s steps(3) infinite; }
@keyframes signal-hunt {
  0% { opacity: .75; } 12% { opacity: .35; } 24% { opacity: .9; } 38% { opacity: .2; }
  52% { opacity: .65; } 66% { opacity: .1; } 80% { opacity: .55; } 100% { opacity: .3; }
}
.tv.is-tuning .tv__picture { animation: signal-ghost .22s steps(2) infinite; }
@keyframes signal-ghost {
  0%   { transform: translateX(0) skewX(0); filter: blur(1.4px) contrast(1.3) brightness(1.15); }
  50%  { transform: translateX(-4px) skewX(-2deg); filter: blur(.6px) contrast(1.5) brightness(.9); }
  100% { transform: translateX(3px) skewX(1deg); filter: blur(1.8px) contrast(1.2) brightness(1.2); }
}
.tv.is-tuning .tv__lower { opacity: .35; }
.tv.ears-nudged .ear--l { animation: ear-nudge-l 1.2s ease-in-out; }
.tv.ears-nudged .ear--r { animation: ear-nudge-r 1.2s ease-in-out; }
@keyframes ear-nudge-l { 0%,100% { transform: rotate(var(--r)); } 25% { transform: rotate(calc(var(--r) - 9deg)); } 55% { transform: rotate(calc(var(--r) + 6deg)); } 80% { transform: rotate(calc(var(--r) - 3deg)); } }
@keyframes ear-nudge-r { 0%,100% { transform: rotate(var(--r)); } 25% { transform: rotate(calc(var(--r) + 8deg)); } 55% { transform: rotate(calc(var(--r) - 7deg)); } 80% { transform: rotate(calc(var(--r) + 2deg)); } }
@media (prefers-reduced-motion: reduce) {
  .tv.is-tuning .tv__static { animation: none; opacity: .45; }
  .tv.is-tuning .tv__picture { animation: none; filter: blur(1px); }
  .tv.ears-nudged .ear--l, .tv.ears-nudged .ear--r { animation: none; }
}
@media (max-width: 1000px) {
  .motion--guide .tvguide { margin-top: 0; }
}
@media (max-width: 900px) {
  .tv__ears { height: 96px; }
  .tv__ears-hit { width: 200px; }
  .motion--guide .tv { padding-top: 92px; }
  .ear { height: 118px; }
}

@media (max-width: 1000px) {
  .motion__stage { grid-template-columns: minmax(0, 1fr); }
  .tvguide { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .motion--guide .ctl, .tvguide__item { transition: none; } }

/* Oct 1: compact guide. Rows show channel + title; only the "On now" row opens to its description. */
.tvguide { padding-top: 14px; }
.tvguide__mast { padding-bottom: 10px; }
.tvguide__kicker { font-size: 12px; }
.tvguide__title { font-size: 22px; margin: 6px 0 2px; }
.tvguide__sub { font-size: 15px; }
.tvguide__item { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px); align-items: center; }
.tvguide__ch { width: 30px; height: 30px; font-size: 14px; }
.tvguide__name { font-size: 16px; line-height: 1.3; }
.tvguide__desc { display: none; font-size: 16px; }
.tvguide__item.is-on { align-items: start; padding-top: 30px; }
.tvguide__item.is-on .tvguide__desc { display: block; }
.tvguide__now { top: 10px; left: 48px; font-size: 11px; }

/* Oct 1: a tad larger, and on desktop the guide runs from the top of the cabinet down to the feet
   (height set by tv-guide.js); the listings spread to fill it. */
.tvguide__title { font-size: 25px; }
.tvguide__item { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 11px 8px; }
.tvguide__ch { width: 34px; height: 34px; font-size: 15px; }
.tvguide__name { font-size: 17px; }
.tvguide__now { left: 54px; }
@media (min-width: 1001px) {
  .tvguide.is-fitted { display: flex; flex-direction: column; box-sizing: border-box; }
  .tvguide.is-fitted .tvguide__list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}

/* =====================================================================
   Oct 2: the guide as a newspaper TV grid (Zahra's reference: the evening listings page).
   Bold day heading, grey time bar, boxed channel column, thin black rules, the "on now" row
   highlighted the way the listings color-coded a show. Aged newsprint, flat, framed in the
   TV's wood so it sits beside the set rather than floating on the page.
   ===================================================================== */
.tvguide--grid {
  background: #EDE6D3; color: #141210; border: 6px solid #4A3020; border-radius: 3px; padding: 0;
  box-shadow: inset 0 0 0 1px #141210, 0 6px 18px rgba(0,0,0,.35);
  font-family: var(--sans, Inter, Arial, sans-serif);
}
.tvguide--grid .tvguide__mast { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px 8px; border-bottom: 3px solid #141210; }
.tvguide--grid .tvguide__title { margin: 0; font: 800 26px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: -.02em; color: #141210; }
.tvguide--grid .tvguide__title span { display: block; margin-top: 4px; font: 700 14px/1.2 var(--sans, Inter, Arial, sans-serif); letter-spacing: .02em; color: #5B5346; }
.tvguide__legend { margin: 0; }
.tvguide__chip { display: inline-block; font: 800 12px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: .08em; text-transform: uppercase; background: #FFE680; color: #141210; padding: 5px 8px; border: 1px solid #141210; }
.tvguide__times { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); background: #3A3530; color: #fff; font: 800 14px/1 var(--sans, Inter, Arial, sans-serif); }
.tvguide__times span { padding: 7px 8px; border-left: 1px solid #6B645A; }
.tvguide__times span:first-child { border-left: 0; }
.tvguide--grid .tvguide__list { padding: 0; }
.tvguide--grid .tvguide__list li + li { border-top: 1px solid #141210; }
.tvguide--grid .tvguide__item {
  margin: 0; width: 100%; padding: 0; border-radius: 0; gap: 0; align-items: stretch;
  grid-template-columns: 52px minmax(0, 1fr); color: #141210; background: transparent;
}
.tvguide--grid .tvguide__item:hover { background: #E2D9C2; }
.tvguide--grid .tvguide__item:focus-visible { outline: 3px solid #002A82; outline-offset: -3px; }
.tvguide--grid .tvguide__ch {
  width: auto; height: auto; border-radius: 0; box-shadow: none; background: #DCD2BA; color: #141210;
  border-right: 1px solid #141210; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 800 22px/1 var(--sans, Inter, Arial, sans-serif);
}
.tvguide--grid .tvguide__ch::before { content: "CH"; font: 700 10px/1 var(--sans, Inter, Arial, sans-serif); letter-spacing: .08em; color: #5B5346; }
.tvguide--grid .tvguide__body { padding: 8px 10px; gap: 3px; align-content: center; }
.tvguide--grid .tvguide__name { font: 700 16px/1.25 var(--sans, Inter, Arial, sans-serif); color: #141210; }
.tvguide--grid .tvguide__desc { font: 400 15px/1.35 var(--sans, Inter, Arial, sans-serif); color: #3A3530; }
.tvguide--grid .tvguide__now { display: none !important; }
.tvguide--grid .tvguide__item.is-on { background: #FFE680; padding-top: 0; box-shadow: none; }
.tvguide--grid .tvguide__item.is-on .tvguide__ch { background: #141210; color: #FFE680; box-shadow: none; margin-top: 0; }
.tvguide--grid .tvguide__item.is-on .tvguide__ch::before { color: #FFE680; }
@media (min-width: 1001px) {
  .tvguide--grid.is-fitted .tvguide__list { justify-content: stretch; }
  .tvguide--grid.is-fitted .tvguide__list li { flex: 1; display: flex; }
}
