/* TV Tray Nights website v4 (Dec 2026): subscribe first, watch second, shop third.
   Red buttons are only ever "Subscribe". Cream buttons play or watch. Mustard buttons go to the shop. */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.btn-sm{font-size:.95rem;padding:.5rem 1rem}
.btn-big{font-size:1.2rem;padding:.95rem 1.7rem}
.btn-cream svg,.btn-mustard svg{width:1.2em;height:1.2em}

/* On-air strip */
.onair{background:var(--teal-ink);color:var(--cream);font-size:1rem;line-height:1.4}
.onair-row{display:flex;align-items:center;gap:.7rem;min-height:44px;padding:.35rem 0}
.onair-text{margin:0;max-width:none;flex:1}
.onair a{color:var(--mustard)}
.onair-link{white-space:nowrap}
.onair-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#ff3b2f;box-shadow:0 0 0 3px rgba(255,59,47,.25)}
@media (prefers-reduced-motion:no-preference){.onair-dot{animation:onair 2.4s ease-in-out infinite}@keyframes onair{50%{box-shadow:0 0 0 7px rgba(255,59,47,0)}}}
@media (max-width:640px){.onair-link{display:none}.onair{font-size:.95rem}}
.nav .btn-sub{border-bottom:3px solid var(--ink)}
.nav .btn-sub:hover{border-bottom-color:var(--ink)}

/* Compact page hero on phones so the content (and the video) starts sooner */
@media (max-width:640px){
  .tray-hero{margin:1rem auto 2.4rem}
  .tray-hero h1{font-size:clamp(1.75rem,8vw,2.3rem)}
  .tray-hero .lede{font-size:1.12rem}
}

/* Video hook inside articles */
.yt-hook .facade{box-shadow:none;border-color:var(--ink)}
.yt-hook .newest{font-size:1rem;margin:.9rem 0 0;padding:.6rem .8rem;background:rgba(255,255,255,.08);border-radius:10px}
.postplay{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:.9rem 0 0;padding:.8rem 1rem;background:var(--cream);color:var(--ink);border:3px solid var(--ink);border-radius:14px}
.postplay p{margin:0;flex:1 1 16rem}

/* Subscribe card, shop card */
.sub-card{background:var(--teal);color:var(--cream);border:3px solid var(--ink);border-radius:var(--radius);padding:1.3rem;margin-bottom:1.4rem;text-align:left}
.sub-card img{width:110px;margin:0 auto .8rem}
.sub-card h2{color:var(--mustard);font-size:1.3rem;margin:0 0 .5rem}
.sub-card p{font-size:1.05rem}
.ticks{list-style:none;padding:0;margin:0 0 1.1rem;font-size:1rem}
.ticks li{padding-left:1.6rem;position:relative;margin:.35rem 0}
.ticks li::before{content:"";position:absolute;left:.2rem;top:.45em;width:.8rem;height:.45rem;border-left:3px solid var(--mustard);border-bottom:3px solid var(--mustard);transform:rotate(-45deg)}
.sub-help{font-size:.98rem;margin:.9rem 0 0;line-height:1.8}
.sub-card a:not(.btn){color:var(--cream)}
.shop-card{background:#fff;border:3px solid var(--teal);border-radius:var(--radius);overflow:hidden;margin-bottom:1.4rem}
.shop-img{display:block;background:#fff}
.shop-img img{width:100%;aspect-ratio:1/1;object-fit:cover}
.shop-body{padding:.9rem 1.1rem 1.2rem}
.shop-kicker{font-size:.95rem;color:var(--muted);margin:0 0 .2rem}
.shop-body h2,.shop-body h3{font-size:1.15rem;margin:0 0 .35rem}
.shop-body p{font-size:1rem;margin:0 0 .5rem}
.shop-price{font-family:var(--display);color:var(--teal);font-size:1.1rem}

/* Never miss an episode */
.never-miss{margin:2.6rem 0;padding:1.5rem 1.5rem 1.7rem;border:3px solid var(--ink);border-radius:18px;background:var(--cream);box-shadow:6px 6px 0 var(--cherry)}
.never-miss h2{margin-top:0}
.nm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.2rem}
.nm h3{margin:.4rem 0 .3rem;font-size:1.15rem}
.nm p{font-size:1.02rem}
.nm-ico{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--teal);color:var(--mustard)}
.nm-ico svg{width:26px;height:26px}
.nm-links{display:flex;flex-direction:column;gap:.3rem}
.nm-links a{font-weight:600}

/* Coming soon: the test pattern */
.testcard{position:relative;aspect-ratio:16/9;border:4px solid var(--ink);border-radius:18px;overflow:hidden;display:grid;place-items:center;
  background:linear-gradient(90deg,#c9c9c9 0 14.28%,#e3c23a 0 28.57%,#3fb7b0 0 42.85%,#3f9b48 0 57.14%,#b0479c 0 71.42%,#c23a2c 0 85.71%,#2f45a8 0)}
.tp-ring{position:absolute;width:46%;aspect-ratio:1;border-radius:50%;background:repeating-conic-gradient(var(--ink) 0 10deg,var(--cream) 0 20deg);border:6px solid var(--ink);box-shadow:0 0 0 10px var(--cream)}
.tp-text{position:relative;background:var(--ink);color:var(--cream);font-family:var(--display);font-size:clamp(1rem,3vw,1.5rem);padding:.4rem 1rem;border-radius:8px}
.soon-block p{margin-top:.8rem}

/* Sticky subscribe bar */
.subbar{position:fixed;left:0;right:0;bottom:0;z-index:50;padding:.55rem 0 calc(.55rem + env(safe-area-inset-bottom));background:var(--teal);border-top:4px solid var(--mustard);color:var(--cream)}
.subbar[hidden]{display:none}
.subbar-in{width:var(--wrap);margin:0 auto;display:flex;align-items:center;gap:.8rem}
.subbar img{width:44px;height:44px;flex:none}
.subbar p{margin:0;flex:1;font-size:1.02rem;line-height:1.35}
.subbar .btn{padding:.55rem 1.1rem}
.subbar-x{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid var(--cream);background:transparent;color:var(--cream);font-size:1.5rem;line-height:1;cursor:pointer}
body.has-subbar{padding-bottom:84px}
@media (max-width:520px){.subbar img{display:none}.subbar p{font-size:.95rem}}

/* Home: the TV set */
.home-hero{display:grid;grid-template-columns:1fr 1.08fr;gap:3rem;align-items:center;padding:2.4rem 0 1.5rem}
@media (max-width:940px){.home-hero{grid-template-columns:1fr;gap:2rem;padding-top:1.4rem}}
.home-hero h1{color:var(--cherry);text-shadow:3px 3px 0 var(--mustard);font-style:italic;font-size:clamp(2.4rem,5.4vw,4rem);margin:.2rem 0 .5rem}
.home-hero .lede{font-size:1.3rem}
.hh-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.3rem 0 .9rem}
.hh-help{font-size:1.05rem}
.tvset{position:relative;margin-top:60px}
.tvset::before,.tvset::after{content:"";position:absolute;top:-62px;left:50%;width:5px;height:74px;background:var(--ink);border-radius:3px;transform-origin:bottom}
.tvset::before{transform:translateX(-34px) rotate(-28deg)}.tvset::after{transform:translateX(30px) rotate(28deg)}
.tv-cab{position:relative;background:var(--cherry);border:4px solid var(--ink);border-radius:34px;padding:20px;display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:18px;align-items:center;box-shadow:8px 8px 0 var(--teal)}
.tv-screen{position:relative;border:4px solid var(--ink);border-radius:26px;overflow:hidden;background:#111;aspect-ratio:16/9}
.tv-screen .facade{height:100%}
.tv-screen .facade{border:0;border-radius:0;box-shadow:none}
.tv-screen::after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,rgba(0,0,0,.07) 0 2px,transparent 2px 4px)}
.tvset.static .tv-screen::before{content:"";position:absolute;inset:0;z-index:3;background:#777 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");animation:snow .32s steps(4) infinite}
@keyframes snow{0%{background-position:0 0}25%{background-position:-60px 40px}50%{background-position:50px -70px}75%{background-position:-30px 90px}}
.tv-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;text-align:center}
.tv-chlabel{font-family:var(--display);color:var(--cream);font-size:.95rem;line-height:1.15;margin:0}
.tv-chlabel b{display:block;font-size:2.4rem;font-weight:400;color:var(--mustard);line-height:1}
.knobs{display:flex;flex-direction:column;gap:.7rem}
.knob{width:62px;height:62px;border-radius:50%;background:var(--cream);color:var(--teal);border:4px solid var(--ink);font-family:var(--display);font-size:1.7rem;line-height:1;cursor:pointer;box-shadow:inset -4px -4px 0 rgba(0,0,0,.12)}
.knob:hover{background:var(--mustard)}
.tv-on{font-family:var(--display);font-size:.95rem;background:var(--mustard);color:var(--ink);border:3px solid var(--ink);border-radius:999px;padding:.45rem .8rem;cursor:pointer}
.tv-legs{height:18px;background:var(--mustard);border:3px solid var(--ink);border-radius:10px;margin:12px -8px 0;position:relative}
.tv-legs::before,.tv-legs::after{content:"";position:absolute;top:14px;width:6px;height:40px;background:var(--cream);border:2px solid var(--ink);border-radius:3px}
.tv-legs::before{left:20%;transform:rotate(16deg)}.tv-legs::after{right:20%;transform:rotate(-16deg)}
.tv-title{margin:3.2rem 0 0;font-family:var(--display);font-size:1.1rem;line-height:1.3;max-width:none}
.tv-title a{color:var(--teal);text-decoration:none}
.tv-title a:hover{text-decoration:underline}
.tv-title .dur{font-family:var(--body);font-size:.95rem;color:var(--muted);white-space:nowrap}
@media (max-width:560px){
  .tv-cab{grid-template-columns:1fr;padding:14px;border-radius:26px}
  .tv-panel{flex-direction:row;justify-content:space-between}
  .knobs{flex-direction:row}
  .knob{width:54px;height:54px}
  .tv-chlabel b{font-size:1.8rem}
}

/* TV listings */
.listings{margin:3.5rem auto}
.guide{list-style:none;padding:0;margin:1rem 0 0;border-top:4px solid var(--teal)}
.guide>li{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:1.2rem;align-items:center;padding:1.1rem 0;border-bottom:2px dotted var(--teal)}
.guide .when{margin:0;font-family:var(--display);color:var(--teal);line-height:1.2}
.guide .day{display:block;font-size:1.05rem}
.guide .hr{display:block;font-family:var(--body);font-size:.95rem;color:var(--muted)}
.guide .new-tag{display:inline-block;margin-top:.3rem;font-family:var(--body);font-size:.85rem;background:var(--cherry);color:var(--cream);border-radius:999px;padding:0 .55rem}
.guide h3{margin:0 0 .2rem;font-size:1.2rem}
.guide h3 a{color:var(--ink);text-decoration:none}
.guide h3 a:hover{color:var(--cherry);text-decoration:underline}
.guide .show p{margin:0;font-size:1.02rem;color:var(--muted)}
.guide li.soon{opacity:1}
.guide li.soon .when{color:var(--cherry)}
@media (max-width:700px){.guide>li{grid-template-columns:1fr;gap:.4rem}.guide .when .day,.guide .when .hr{display:inline;margin-right:.5rem}}

/* Three ways to never miss one (home) */
.ways{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.4rem;margin:1.4rem 0 1rem}
.way{background:#fff;border:3px solid var(--teal);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.3rem 1.3rem 1.5rem}
.way h3{margin:.6rem 0 .4rem}
.way p{font-size:1.05rem}
.way.red{background:var(--cherry);color:var(--cream);border-color:var(--ink);box-shadow:5px 5px 0 var(--ink)}
.way.red h3{color:var(--cream)}
.way.red .btn{background:var(--cream);color:var(--cherry)}
.way.red .nm-ico{background:var(--cream);color:var(--cherry)}

/* Shop band and shop page */
.shop-band{background:var(--mustard);border-top:4px solid var(--ink);border-bottom:4px solid var(--ink);padding:3rem 0;margin:3.5rem 0 0}
.shop-band h2{margin-top:0;color:var(--ink)}
.shop-band .lede{font-size:1.2rem;max-width:60ch}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.3rem;margin:1.4rem 0 1.6rem}
.shop-grid .shop-card{margin:0;display:flex;flex-direction:column;box-shadow:5px 5px 0 var(--ink);border-color:var(--ink)}
.shop-grid .shop-body{display:flex;flex-direction:column;flex:1}
.shop-grid .shop-body .btn{margin-top:auto;align-self:flex-start}
.cat-links{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 2rem}

/* Shorts */
.shorts{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1.3rem;margin:1.2rem 0 2rem}
.shorts li{background:#fff;border:3px solid var(--teal);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.shorts a{display:block;text-decoration:none;color:var(--ink)}
.shorts img{width:100%;aspect-ratio:16/9;object-fit:cover}
.shorts .body{padding:.8rem 1rem 1rem}
.shorts h3{font-size:1.1rem;margin:0 0 .4rem}
.shorts a[aria-disabled]{cursor:default}

/* How-to pages */
.steps{list-style:none;counter-reset:s;padding:0;margin:1.2rem 0 2rem}
.steps>li{counter-increment:s;position:relative;padding:0 0 1.3rem 4.2rem;min-height:3.2rem}
.steps>li::before{content:counter(s);position:absolute;left:0;top:-.2rem;width:3rem;height:3rem;border-radius:50%;background:var(--teal);color:var(--mustard);font-family:var(--display);font-size:1.5rem;display:grid;place-items:center}
.steps h3{margin:.1rem 0 .3rem}
.device{background:#fff;border:3px solid var(--teal);border-radius:var(--radius);padding:1.4rem 1.5rem .6rem;margin:1.6rem 0;box-shadow:var(--shadow)}
.device h2{margin-top:0}
.big-cta{text-align:left;margin:1.4rem 0 2rem}
.jump{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0 1.5rem;padding:0;list-style:none}
.jump a{display:inline-block;font-family:var(--display);text-decoration:none;color:var(--teal);background:var(--cream);border:3px solid var(--teal);border-radius:999px;padding:.4rem 1rem}
.jump a:hover{background:var(--mustard)}

/* Sunday 1962 listings */
.sunday{list-style:none;padding:0;margin:1rem 0 2rem;border:3px solid var(--teal);border-radius:var(--radius);background:#fff;overflow:hidden}
.sunday li{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;padding:.65rem 1.1rem;border-bottom:1px dotted var(--teal)}
.sunday li:last-child{border-bottom:0}
.sunday a{font-weight:600}
.sunday .ts{font-family:var(--display);color:var(--muted);font-size:.95rem;white-space:nowrap}

/* Footer */
.foot-sub{display:flex;gap:1.6rem;align-items:center;padding:0 0 2.2rem;margin:0 0 2.2rem;border-bottom:2px solid rgba(252,235,189,.25)}
.foot-sub img{width:120px;flex:none}
.foot-sub h2{font-size:1.5rem;color:var(--mustard);margin:0 0 .3rem}
.foot-sub p{margin:0 0 .6rem;color:var(--cream)}
.foot-actions{display:flex;flex-wrap:wrap;gap:.7rem}
.site-foot .foot-actions a.btn{font-size:1rem}
.site-foot .btn-cream{color:var(--teal)}
.site-foot .foot-grid{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.site-foot .foot-grid{grid-template-columns:1fr 1fr}.foot-sub{flex-direction:column;align-items:flex-start}}
.btn-teal{background:var(--teal);color:var(--cream);box-shadow:3px 3px 0 var(--ink)}
.btn-teal:hover{color:#fff;background:var(--teal-2)}
.band .btn-cream{color:var(--teal)}
@media (max-width:980px){.layout{grid-template-columns:minmax(0,1fr)}}
.tv-on{white-space:nowrap}
.aside-box a.btn-mustard{color:var(--ink)}
.aside-box a.btn-red{color:var(--cream)}
.tbl-wrap:focus-visible{outline:4px solid var(--mustard);outline-offset:3px}
.years a.boom[aria-current="page"],.years a[aria-current]{color:var(--ink)}
p,li,dd,td{overflow-wrap:break-word}
.home-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr)}
@media (max-width:940px){.home-hero{grid-template-columns:minmax(0,1fr)}}
@media (max-width:560px){
  .tv-cab{grid-template-columns:minmax(0,1fr)}
  .tv-panel{flex-wrap:wrap;gap:.6rem;justify-content:center}
  .tv-chlabel{font-size:.85rem}
  .knob{width:48px;height:48px;font-size:1.4rem}
  .tv-on{font-size:.9rem;padding:.4rem .7rem}
}
.guide .btn{justify-self:start}
@media (max-width:560px){
  .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
  .shop-grid .shop-body{padding:.7rem .75rem .9rem}
  .shop-grid .shop-body h3{font-size:1rem}
  .shop-grid .shop-body p{font-size:.95rem}
  .shop-grid .btn{font-size:.9rem;padding:.55rem .7rem;align-self:stretch;justify-content:center;text-align:center}
}
