/* PatchTV 3.5 — viewer support, mobile polish, home that sells. Loaded after patchtv-v4.css. */

/* ---------- Header ---------- */
.header-icon-button{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:999px;border:1px solid var(--line-soft);background:rgba(255,255,255,.04);color:var(--text);cursor:pointer;padding:0}
.header-icon-button:hover{background:rgba(255,255,255,.09)}
.header-icon-button svg{width:19px;height:19px}
@media(max-width:680px){
  .site-header{background:rgba(7,9,13,.94)!important}
  .header-actions{gap:8px!important}
  .install-app-button{display:none!important}
}
.guide-hero h1 span{white-space:nowrap}
@media(max-width:520px){.guide-hero h1 span{white-space:normal}}

/* ---------- Channel initials (logo fallback) ---------- */
.channel-initials{--hue:200;display:inline-grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:12px;font-style:normal;font-weight:900;font-size:14px;letter-spacing:-.02em;color:#fff;
  background:linear-gradient(140deg,hsl(var(--hue) 70% 42%),hsl(calc(var(--hue) + 40) 70% 28%));box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}

/* ---------- Guide: never-empty My TV ---------- */
.guide-more-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 12px;padding:12px 16px;border-radius:14px;border:1px solid rgba(196,255,77,.25);background:rgba(196,255,77,.06);font-size:14px}
.guide-more-banner[hidden]{display:none!important}
.guide-more-banner a{color:var(--lime);font-weight:800;white-space:nowrap}
.timeline-channel.is-first-suggested,.timeline-channel.is-first-suggested~.timeline-lane{border-top:2px solid rgba(196,255,77,.5)!important}
.timeline-channel.is-first-suggested::before{content:"MORE FOR YOU";position:absolute;top:-1px;left:8px;transform:translateY(-50%);padding:1px 7px;border-radius:999px;background:var(--lime);color:var(--lime-ink);font-size:9px;font-weight:900;letter-spacing:.1em;z-index:5}
.timeline-channel.is-suggested .timeline-channel-actions button:first-child{color:var(--lime);border-color:rgba(196,255,77,.4)}
.now-list-divider{margin:14px 2px 2px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--lime)}
/* Filters toggle is a phone-only control */
.guide-filters-toggle{display:none!important}

/* ---------- Guide on phones: compact, readable rows ---------- */
@media(max-width:680px){
  .timeline-viewport,.timeline-grid{--channel-width:128px!important}
  .timeline-grid{--slot-width:150px!important;grid-auto-rows:64px!important;grid-template-rows:42px!important}
  .timeline-viewport{margin-inline:0!important;max-height:calc(100dvh - var(--header-h) - var(--tabbar-h) - 70px)!important;border-radius:14px!important}
  .timeline-channel{grid-template-columns:1fr!important;padding:6px 6px 6px 8px!important;gap:0!important}
  .timeline-channel-main{gap:7px!important}
  .timeline-channel img,.timeline-channel .channel-initials{width:34px!important;height:34px!important;border-radius:9px!important;object-fit:contain!important;background:#fff1!important;font-size:11px}
  .timeline-channel b{font-size:12.5px!important;line-height:1.2;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .timeline-channel .device-health,.timeline-channel .guide-health-badge{display:none!important}
  .timeline-channel-actions{position:absolute;right:3px;top:3px}
  .timeline-channel-actions button{display:none}
  .timeline-channel-actions button:first-child{display:grid;place-items:center;width:24px!important;height:24px!important;border:0!important;background:rgba(0,0,0,.45)!important;border-radius:50%!important;font-size:13px}
  .timeline-channel-actions button.is-favorite{color:#ffd85a!important}
  .timeline-channel-main{padding-right:18px}
  .timeline-programme{margin:5px 2px!important;padding:6px 9px!important}
  .timeline-programme b{font-size:13px}
  .timeline-unscheduled{color:var(--muted)!important;font-size:12px!important;background:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 10px,transparent 10px 20px),#0e131c!important}
  .timeline-time{font-size:12px!important}
  .guide-topics{top:var(--header-h)!important;padding:8px 0!important}
  .guide-topics button{min-height:36px!important;padding:6px 13px!important;font-size:13.5px}
  /* filters collapse behind one button */
  .guide-filters-toggle{display:flex!important;align-items:center;justify-content:center;background:var(--surface-3)!important;color:var(--text)!important;border:1px solid var(--line)!important}
  .timeline-controls{grid-template-columns:minmax(0,1fr) auto!important}
  .timeline-controls .timeline-search{grid-column:1/2!important}
  .timeline-controls .guide-filters-toggle{grid-column:2/3!important;align-self:end;min-width:92px}
  .timeline-controls>label:not(.timeline-search),.timeline-controls>button[type=submit],.timeline-controls>.guide-options{display:none!important}
  .timeline-controls.filters-open>label:not(.timeline-search),.timeline-controls.filters-open>.guide-options{display:grid!important;grid-column:1/-1!important;animation:ptv-rise .2s var(--ease-out)}
  .timeline-controls.filters-open>.guide-options{display:block!important}
  .timeline-search{font-size:0!important;gap:0!important}
  .timeline-search input{font-size:15px!important}
  .guide-scan-callout{display:none!important}
  .timeline-health-summary{display:none!important}
}

/* Floating "Now" */
.ptv-now-fab{position:fixed;z-index:70;right:16px;bottom:22px;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid rgba(196,255,77,.45);background:rgba(10,14,20,.92);color:var(--lime);font-weight:850;cursor:pointer;
  box-shadow:0 14px 30px -14px #000;backdrop-filter:blur(12px);opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s var(--ease),transform .2s var(--ease)}
.ptv-now-fab.is-visible.is-away{opacity:1;transform:none;pointer-events:auto}
@media(max-width:680px){.ptv-now-fab{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px)}}

/* ---------- Toasts ---------- */
.ptv-toasts{position:fixed;z-index:1200;left:50%;bottom:22px;transform:translateX(-50%);display:grid;gap:8px;width:min(560px,calc(100vw - 24px));pointer-events:none}
@media(max-width:680px){.ptv-toasts{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px)}}
.ptv-toast{pointer-events:auto;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 12px 12px 16px;border-radius:16px;background:rgba(22,28,40,.97);border:1px solid rgba(255,255,255,.1);box-shadow:0 24px 50px -20px #000;font-size:14px;animation:ptv-pop .26s var(--ease-out)}
.ptv-toast>span{flex:1 1 220px}
.ptv-toast a,.ptv-toast button{min-height:36px;padding:0 13px;border-radius:999px;border:1px solid var(--line);background:var(--surface-3);color:var(--text);font-weight:800;font-size:13px;display:inline-flex;align-items:center;cursor:pointer}
.ptv-toast .is-primary{background:var(--lime);border-color:var(--lime);color:var(--lime-ink)}
.ptv-toast .ptv-toast-x{width:32px;min-height:32px;padding:0;justify-content:center;background:transparent;border:0;color:var(--muted);font-size:18px}
.ptv-toast.is-leaving,.ptv-tip.is-leaving{opacity:0;transform:translateY(8px);transition:opacity .2s,transform .2s}

/* ---------- Bottom sheet ---------- */
.ptv-sheet-backdrop{position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);animation:ptv-fade-only .2s}
.ptv-sheet{position:fixed;z-index:1101;left:50%;bottom:0;transform:translateX(-50%);width:min(620px,100vw);max-height:86dvh;overflow:auto;padding:10px 22px calc(22px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;background:#121824;border:1px solid rgba(255,255,255,.1);border-bottom:0;box-shadow:0 -30px 60px -20px #000;outline:none;animation:ptv-sheet-in .3s var(--ease-out)}
@media(min-width:861px){.ptv-sheet{bottom:50%;transform:translate(-50%,50%);border-radius:24px;border-bottom:1px solid rgba(255,255,255,.1);animation:ptv-pop .26s var(--ease-out)}}
@keyframes ptv-sheet-in{from{transform:translate(-50%,100%)}}
.ptv-sheet.is-leaving,.ptv-sheet-backdrop.is-leaving{opacity:0;transition:opacity .2s}
.ptv-sheet-grip{display:block;width:44px;height:5px;margin:0 auto 10px;border-radius:9px;background:rgba(255,255,255,.2)}
.ptv-sheet header{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:8px}
.ptv-sheet h2{margin:0;font-size:22px;letter-spacing:-.02em;line-height:1.2}
.ptv-sheet-x{flex:0 0 auto;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.07);color:var(--text);font-size:20px;cursor:pointer}
.ptv-sheet p{color:var(--muted);margin:6px 0 12px}
.ptv-sheet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.ptv-sheet-actions>*{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:13px;border:1px solid var(--line);background:var(--surface-3);color:var(--text);font-weight:800;cursor:pointer;flex:1 1 auto}
.ptv-sheet-actions .is-primary{background:var(--lime);border-color:var(--lime);color:var(--lime-ink)}
.ptv-programme-meta{display:flex;align-items:center;gap:8px;color:var(--text)!important;font-weight:700}
.ptv-live{padding:2px 7px;border-radius:6px;background:var(--red);color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em}
.ptv-progress,.rail-progress{display:block;height:4px;border-radius:9px;background:rgba(255,255,255,.1);overflow:hidden}
.ptv-progress i,.rail-progress i{display:block;height:100%;background:var(--lime);border-radius:9px}
.ptv-programme-sub{color:var(--text)!important;font-weight:700}
.ptv-steps{margin:6px 0 10px;padding-left:22px;display:grid;gap:10px}
.ptv-steps code{padding:2px 7px;border-radius:7px;background:rgba(196,255,77,.12);color:var(--lime);font-weight:800}
.ptv-note{font-size:13px}

/* ---------- Guide tips ---------- */
.ptv-tip{position:fixed;z-index:1150;left:50%;bottom:24px;transform:translateX(-50%);width:min(380px,calc(100vw - 24px));padding:16px 18px;border-radius:18px;background:linear-gradient(160deg,#1c2a12,#121a0c);border:1px solid rgba(196,255,77,.4);box-shadow:0 30px 60px -20px #000;animation:ptv-pop .3s var(--ease-out)}
@media(max-width:680px){.ptv-tip{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px)}}
.ptv-tip small{color:var(--lime);font-size:10.5px;font-weight:900;letter-spacing:.14em}
.ptv-tip b{display:block;margin-top:4px;font-size:17px}
.ptv-tip p{margin:4px 0 12px;color:#cfd8c4;font-size:14px}
.ptv-tip div{display:flex;justify-content:flex-end;gap:8px}
.ptv-tip button{min-height:38px;padding:0 15px;border-radius:999px;border:1px solid rgba(255,255,255,.15);background:transparent;color:var(--text);font-weight:800;cursor:pointer}
.ptv-tip .is-primary{background:var(--lime);color:var(--lime-ink);border-color:var(--lime)}

/* ---------- Setup checklist ---------- */
.setup-checklist{margin:18px 0 6px;padding:18px 20px;border-radius:20px;border:1px solid var(--line-soft);background:radial-gradient(500px 160px at 100% 0,rgba(98,230,255,.08),transparent 70%),var(--surface);box-shadow:var(--shadow-1);animation:ptv-rise .3s var(--ease-out)}
.setup-checklist[hidden]{display:none!important}
.checklist-head{display:flex;align-items:center;gap:14px}
.checklist-head>div{flex:1}
.checklist-head h2{margin:2px 0 0;font-size:20px}
.checklist-head .eyebrow{margin:0}
.checklist-ring{--p:0;display:grid;place-items:center;width:50px;height:50px;border-radius:50%;font-weight:900;font-size:13px;background:conic-gradient(var(--lime) calc(var(--p) * 1%),rgba(255,255,255,.08) 0);position:relative}
.checklist-ring::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--surface)}
.checklist-ring{isolation:isolate}.checklist-ring::before{z-index:-1}
.checklist-x{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.06);color:var(--muted);font-size:18px;cursor:pointer}
.checklist-steps{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
@media(max-width:900px){.checklist-steps{grid-template-columns:1fr}}
.checklist-steps a{display:flex;align-items:center;gap:10px;height:100%;padding:11px 12px;border-radius:13px;border:1px solid var(--line-soft);background:rgba(255,255,255,.025)}
.checklist-steps a:hover{border-color:rgba(196,255,77,.4)}
.checklist-steps i{flex:0 0 22px;height:22px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:900}
.checklist-steps span{display:grid;min-width:0}
.checklist-steps b{font-size:14px}
.checklist-steps small{color:var(--muted);font-size:12px;line-height:1.3}
.checklist-steps .is-done a{opacity:.6}
.checklist-steps .is-done i{background:var(--lime);border-color:var(--lime);color:var(--lime-ink)}
.checklist-steps .is-next a{border-color:rgba(196,255,77,.55);background:rgba(196,255,77,.07)}
.checklist-steps .is-next i{border-color:var(--lime)}

/* ---------- Watch page ---------- */
.ptv-swipe-flash{position:absolute;inset:0;z-index:25;display:grid;place-items:center;background:rgba(0,0,0,.45);color:#fff;font-size:20px;font-weight:900;animation:ptv-fade-only .15s}
.ptv-swipe-flash span{padding:10px 18px;border-radius:999px;background:rgba(0,0,0,.6)}
.recovery-suggestions{grid-column:1/-1;margin-top:12px}
.recovery-suggestions .eyebrow{margin:0 0 8px}
.recovery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.recovery-grid .stream-card .card-copy{padding:8px}.recovery-grid .stream-card h3{font-size:13px}
.recovery-grid .card-now{display:none}
.recovery-card{display:grid;gap:6px;justify-items:start;padding:10px;border-radius:12px;border:1px solid var(--line-soft);background:var(--surface)}
.recovery-card img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.recovery-card b{font-size:13px}

/* ---------- Home: starter picker ---------- */
.starter-card{position:relative;max-width:640px!important;max-height:calc(100dvh - 40px);overflow:auto}
.starter-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.07);color:var(--text);font-size:20px;cursor:pointer}
.starter-picker{display:grid;gap:14px;margin:14px 0 6px}
.starter-country{display:grid;gap:6px;font-weight:800;font-size:13.5px}
.starter-country select{min-height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 12px;font-size:15px}
.starter-interest-chips{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.starter-interest-chips legend{font-weight:800;font-size:13.5px;margin-bottom:8px}
.starter-interest-chips legend small{color:var(--muted);font-weight:600}
.starter-interest-chips label{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.03);cursor:pointer;font-weight:750;font-size:14px;user-select:none}
.starter-interest-chips input{position:absolute;opacity:0;pointer-events:none}
.starter-interest-chips label:has(input:checked){background:rgba(196,255,77,.14);border-color:var(--lime);color:#fff}
.starter-interest-chips label:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}

/* ---------- Home: hero + animated patch demo ---------- */
.home-hero-v5{align-items:center!important}
.patch-demo{position:relative;border-radius:24px;padding:16px;background:linear-gradient(160deg,rgba(23,30,44,.95),rgba(11,15,22,.95));border:1px solid rgba(255,255,255,.08);box-shadow:0 40px 90px -40px rgba(0,0,0,.95),0 0 0 1px rgba(196,255,77,.06);overflow:hidden;isolation:isolate}
.patch-demo::before{content:"";position:absolute;inset:-40% -10% auto;height:70%;z-index:-1;background:radial-gradient(closest-side,rgba(196,255,77,.18),transparent);animation:ptv-demo-glow 9s ease-in-out infinite}
.patch-demo::after{content:"";position:absolute;left:0;right:0;top:54px;height:46px;z-index:2;pointer-events:none;background:linear-gradient(180deg,transparent,rgba(196,255,77,.22),transparent);animation:ptv-demo-scan 9s var(--ease) infinite}
@keyframes ptv-demo-glow{50%{transform:translateY(30%)}}
@keyframes ptv-demo-scan{0%{transform:translateY(-60px);opacity:0}6%{opacity:1}40%{transform:translateY(330px);opacity:1}46%,100%{transform:translateY(330px);opacity:0}}
.patch-demo-chrome{display:flex;align-items:center;gap:6px;margin-bottom:12px;font-size:12.5px;color:var(--muted)}
.patch-demo-chrome i{width:10px;height:10px;border-radius:50%;background:#ff5f57}.patch-demo-chrome i:nth-child(2){background:#febc2e}.patch-demo-chrome i:nth-child(3){background:#28c840}
.patch-demo-chrome b{margin-left:8px;font-family:ui-monospace,Menlo,monospace;font-weight:600;color:#c9d2e0}
.patch-demo-badge{position:relative;margin-left:auto;display:grid;font-style:normal;font-size:10.5px;font-weight:900;letter-spacing:.12em}
.patch-demo-badge span{grid-area:1/1;padding:4px 9px;border-radius:999px;text-align:center}
.patch-demo-badge .is-a{background:rgba(255,216,76,.14);color:#ffd84c;animation:ptv-demo-a 9s infinite}
.patch-demo-badge .is-b{background:rgba(196,255,77,.16);color:var(--lime);animation:ptv-demo-b 9s infinite}
.patch-demo-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.patch-demo-list li{position:relative;display:grid;height:46px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.05);overflow:hidden;animation:ptv-demo-row 9s infinite}
.patch-demo-list li>span{grid-area:1/1;display:flex;align-items:center;gap:10px;padding:0 13px;min-width:0}
.patch-demo-list .raw{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:#9aa6b8;animation:ptv-demo-raw 9s infinite}
.patch-demo-list .clean{animation:ptv-demo-clean 9s infinite;font-size:14px}
.patch-demo-list .clean b{font-size:14px}
.patch-demo-list .clean small{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.patch-demo-list .dot{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;font-style:normal;font-size:10px;font-weight:900;color:#fff}
.patch-demo-list .dot.h1{background:linear-gradient(140deg,#e2463c,#8c1d18)}.patch-demo-list .dot.h2{background:linear-gradient(140deg,#d92b2b,#6e0f0f)}
.patch-demo-list .dot.h3{background:linear-gradient(140deg,#d8262e,#2a2a2a)}.patch-demo-list .dot.h4{background:linear-gradient(140deg,#1f6fe0,#0b2e66)}
.patch-demo-list .is-dead .clean,.patch-demo-list .is-dup .clean{color:#ff8a9b;font-size:13px;font-weight:700}
.patch-demo-list .is-dup .clean{color:#9fd8ff}
.patch-demo-list li:nth-child(1){--d:.25s}.patch-demo-list li:nth-child(2){--d:.55s}.patch-demo-list li:nth-child(3){--d:.85s}.patch-demo-list li:nth-child(4){--d:1.15s}
.patch-demo-list li:nth-child(5){--d:1.45s}.patch-demo-list li:nth-child(6){--d:1.75s}.patch-demo-list li:nth-child(7){--d:2.05s}
.patch-demo-list li,.patch-demo-list li>span{animation-delay:var(--d,0s)}
.patch-demo-list li.is-dead,.patch-demo-list li.is-dup{animation-name:ptv-demo-dim}
@keyframes ptv-demo-raw{0%,28%{opacity:1;transform:none}34%,92%{opacity:0;transform:translateX(-14px)}100%{opacity:1}}
@keyframes ptv-demo-clean{0%,30%{opacity:0;transform:translateX(14px)}36%,90%{opacity:1;transform:none}96%,100%{opacity:0}}
@keyframes ptv-demo-row{0%,30%{border-color:rgba(255,255,255,.05)}34%{border-color:rgba(196,255,77,.6);background:rgba(196,255,77,.08)}46%,90%{border-color:rgba(255,255,255,.07);background:rgba(255,255,255,.04)}}
/* fixed height: removed rows fade instead of collapsing, so the page never shifts */
@keyframes ptv-demo-dim{0%,30%{opacity:1}36%{background:rgba(255,77,109,.1);border-color:rgba(255,77,109,.4)}50%,88%{opacity:.38;background:rgba(255,77,109,.05);border-color:rgba(255,77,109,.18)}96%,100%{opacity:1}}
@keyframes ptv-demo-a{0%,44%{opacity:1}48%,96%{opacity:0}100%{opacity:1}}
@keyframes ptv-demo-b{0%,44%{opacity:0;transform:scale(.8)}50%,94%{opacity:1;transform:none}100%{opacity:0}}
.patch-demo-report{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.patch-demo-report span{padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.035);color:var(--muted);font-size:12px;text-align:center;animation:ptv-demo-report 9s infinite}
.patch-demo-report span:nth-child(2){animation-delay:.15s}.patch-demo-report span:nth-child(3){animation-delay:.3s}
.patch-demo-report b{display:block;color:var(--text);font-size:19px;letter-spacing:-.02em}
@keyframes ptv-demo-report{0%,48%,100%{transform:none;background:rgba(255,255,255,.035)}53%{transform:translateY(-4px);background:rgba(196,255,77,.14)}60%{transform:none;background:rgba(255,255,255,.035)}}
.patch-demo-ready{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:14px 16px;border-radius:14px;background:var(--lime);color:var(--lime-ink);font-weight:900;animation:ptv-demo-ready 9s infinite}
@keyframes ptv-demo-ready{0%,58%,100%{transform:none;box-shadow:0 0 0 0 rgba(196,255,77,0)}63%{transform:scale(1.03)}68%,92%{transform:none;box-shadow:0 14px 40px -14px rgba(196,255,77,.9)}}
.patch-demo #device-readiness{margin-top:12px}
@media(max-width:860px){.patch-demo{margin-top:8px}}
@media(prefers-reduced-motion:reduce){
  .patch-demo-list .raw,.patch-demo-badge .is-a{display:none}
  .patch-demo-list .clean,.patch-demo-badge .is-b,.patch-demo-report span,.patch-demo-ready{opacity:1!important;transform:none!important}
  .patch-demo-list li.is-dead,.patch-demo-list li.is-dup{opacity:.38}
}

/* Returning viewers: workspace + rails lead */
body.has-workspace .home-hero-v5{padding-top:28px!important}

/* ---------- Home: rails ---------- */
.home-rails{display:grid;gap:26px;margin:34px 0 10px}
.home-rail[hidden]{display:none!important}
.home-rail header{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:12px}
.home-rail header .eyebrow{margin:0 0 4px}
.home-rail h2{margin:0;font-size:clamp(20px,2.2vw,26px)}
.rail-add-all{flex:0 0 auto;min-height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--text);font-weight:800;cursor:pointer;font-size:13.5px}
.rail-add-all:hover{border-color:rgba(196,255,77,.55)}
.rail-add-all:disabled{color:var(--lime);opacity:1}
.rail-track{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(180px,22vw,250px);gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:4px 2px 10px;scrollbar-width:thin;scrollbar-color:#2a3446 transparent}
.rail-item{position:relative;scroll-snap-align:start}
.rail-card{display:grid;gap:6px;height:100%;padding:8px 8px 11px;border-radius:16px;background:var(--surface);border:1px solid var(--line-soft);transition:transform .22s var(--ease),border-color .22s var(--ease),box-shadow .22s var(--ease)}
.rail-card:hover,.rail-card:focus-visible{transform:translateY(-3px);border-color:rgba(196,255,77,.4);box-shadow:var(--shadow-2)}
.rail-art{position:relative;display:grid;place-items:center;aspect-ratio:16/9;border-radius:11px;overflow:hidden;background:linear-gradient(140deg,#1a2233,#0d1119)}
.rail-art i{font-style:normal;font-weight:900;font-size:22px;color:#55627a}
.rail-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rail-art em{position:absolute;left:8px;top:8px;padding:3px 6px;border-radius:6px;background:var(--red);color:#fff;font-size:9.5px;font-weight:900;font-style:normal;letter-spacing:.08em}
.rail-card b{padding:0 3px;font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.rail-card small{padding:0 3px;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-card .rail-progress{margin:0 3px}
.rail-star{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:16px;cursor:pointer;backdrop-filter:blur(6px)}
.rail-star.is-on{color:#ffd85a}
.rail-skeleton{display:block;aspect-ratio:16/12;border-radius:16px;background:linear-gradient(90deg,#10151f,#182030,#10151f) 0 0/480px 100%;animation:ptv-shimmer 1.3s linear infinite}
.home-rails-more{margin:0}.home-rails-more a{color:var(--cyan);font-weight:800}
@media(max-width:680px){.rail-track{grid-auto-columns:64%;margin-inline:-12px;padding-inline:12px;scroll-padding-inline:12px}}

/* ---------- Home: final CTA ---------- */
.home-final-cta{margin:40px 0 20px;padding:clamp(28px,5vw,56px);border-radius:28px;text-align:center;background:radial-gradient(600px 240px at 50% 0,rgba(196,255,77,.16),transparent 70%),var(--surface);border:1px solid var(--line-soft)}
.home-final-cta h2{margin:0;font-size:clamp(28px,4vw,48px);letter-spacing:-.04em}
.home-final-cta p{color:var(--muted);margin:8px 0 20px}
.home-final-cta div{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.home-final-cta a{min-height:48px;padding:0 20px;display:inline-flex;align-items:center;border-radius:14px!important;font-weight:850}
.home-final-cta .secondary-action{border:1px solid var(--line);background:var(--surface-3);color:var(--text)}

/* ---------- Setup: paste anything + Xtream ---------- */
.guided-paste{display:grid;gap:6px}
.guided-paste small{color:var(--muted);font-weight:500;font-size:12.5px}
.guided-paste textarea{min-height:84px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:12px;font:13.5px/1.45 ui-monospace,Menlo,monospace;resize:vertical}
.guided-paste-kind{min-height:18px;font-size:13px;color:var(--lime);font-weight:700}
.guided-paste-kind[data-type=insecure],.guided-paste-kind[data-type=error],.guided-paste-kind[data-type=xmltv-text]{color:#ffb4c0}
.guided-xtream{border:1px solid var(--line);border-radius:12px;padding:10px 14px;background:rgba(255,255,255,.02)}
.guided-xtream summary{cursor:pointer;font-weight:800}
.guided-xtream-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin:10px 0 6px}
@media(max-width:680px){.guided-xtream-grid{grid-template-columns:1fr}}
.guided-xtream input{width:100%;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 10px}
.guided-xtream small{color:var(--muted)}

/* rails must never widen the page */
.home-rails,.home-rail,.rail-track{min-width:0;max-width:100%}
main{min-width:0;overflow-x:clip}
/* compact guide header on phones */
@media(max-width:680px){
  .guide-hero .eyebrow,.guide-hero h1{display:none!important}
  .guide-hero,.guide-hero-row{padding:10px 0 2px!important}
  .guide-import-button{min-height:42px!important;background:var(--surface-3)!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important;font-size:14px}
  .guide-empty-state{grid-template-columns:1fr;padding:18px}
  .guide-empty-icon{display:none}
}
@media(max-width:680px){
  .timeline-viewport,.timeline-grid{--channel-width:142px!important}
  .timeline-channel img,.timeline-channel .channel-initials{width:30px!important;height:30px!important}
  .timeline-channel b{font-size:12px!important;overflow-wrap:anywhere;hyphens:auto}
  .guide-import-button{padding:6px 14px!important;flex-direction:row!important}
  .guide-import-button span{font-size:16px}
  .guide-more-banner:not([hidden])~.timeline-note,.timeline-note:has(~.guide-more-banner:not([hidden])){display:none}
  .guide-more-banner{font-size:13px;padding:10px 12px}
  .home-hero-lede{font-size:16px!important}
}
/* keep the GPU idle when the demo can't be seen */
.first-visit-open .patch-demo,.first-visit-open .patch-demo *,.patch-demo.is-offscreen,.patch-demo.is-offscreen *,.patch-demo.is-offscreen::before,.patch-demo.is-offscreen::after{animation-play-state:paused!important}
.first-visit-open .rail-skeleton{animation:none}
@media(max-width:680px){.starter-card h2{font-size:30px!important;line-height:1.05!important}.starter-card>p:not(.eyebrow){font-size:14.5px}.starter-interest-chips label{min-height:38px;padding:0 12px;font-size:13.5px}}
.ptv-toasts{z-index:1090}

/* the demo panel is a fixed box: nothing inside it can resize the hero */
.patch-demo{contain:layout paint}
.patch-demo-list .is-dead .clean{text-decoration:line-through;text-decoration-color:rgba(255,138,155,.5)}


/* ================= 3.6 ================= */
/* Header: one bright button only */
.install-app-button.is-quiet{background:transparent!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:none!important;min-height:40px;padding:0 14px!important;font-weight:750}
.install-app-button.is-quiet:hover{border-color:rgba(196,255,77,.5)!important}
footer .footer-adult{color:#8a93a3;font-size:12.5px}
footer .footer-adult:hover{color:var(--text)}

/* My TV strip (replaces the old "Your TV" bar) */
.mytv-strip{display:block!important;padding:18px 18px 12px!important;border-radius:22px!important;background:radial-gradient(600px 200px at 0 0,rgba(196,255,77,.08),transparent 70%),var(--surface)!important}
.mytv-strip[hidden]{display:none!important}
.mytv-head{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.mytv-head .eyebrow{margin:0 0 3px}
.mytv-head h2{margin:0;font-size:clamp(22px,2.4vw,28px)}
.mytv-summary{margin:2px 0 0!important;color:var(--muted);font-size:14px}
.mytv-head .home-workspace-actions{display:flex;gap:8px;flex-wrap:wrap}
.mytv-head .home-workspace-actions>*{min-height:42px;padding:0 15px;border-radius:12px;display:inline-flex;align-items:center;font-weight:800;font-size:14px;cursor:pointer}
.mytv-head .secondary-action{border:1px solid var(--line);background:var(--surface-3);color:var(--text)}
.mytv-tiles{grid-auto-columns:clamp(170px,18vw,220px)!important;padding-bottom:6px}
.mytv-empty{color:var(--muted);margin:6px 2px 10px}
@media(max-width:680px){.mytv-head .home-workspace-actions{width:100%}.mytv-head .home-workspace-actions>*{flex:1 1 auto;justify-content:center;padding:0 10px}.mytv-strip{margin-inline:-4px}}

/* compact checklist line */
.setup-checklist.is-compact{margin:10px 0 0!important;padding:10px 12px!important;border-radius:14px!important;background:rgba(255,255,255,.03)!important;box-shadow:none!important;animation:none!important}
.checklist-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.checklist-line .checklist-ring{width:38px;height:38px;font-size:11px}
.checklist-line .checklist-ring::before{inset:4px}
.checklist-next{color:var(--lime);font-weight:850}
.checklist-more{margin-left:auto;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);font-weight:750;cursor:pointer}
.setup-checklist.is-compact .checklist-x{width:30px;height:30px}
.setup-checklist.is-compact .checklist-steps{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:10px}
.setup-checklist.is-compact .checklist-steps[hidden]{display:none}
.setup-checklist.is-compact .checklist-steps a{padding:9px 10px}
@media(max-width:900px){.setup-checklist.is-compact .checklist-steps{grid-template-columns:1fr}}

/* Up next */
.home-upnext{margin:22px 0 0}
.upnext-card{grid-template-rows:auto auto 1fr;gap:4px!important;padding:14px 14px 13px!important;min-height:118px}
.upnext-when{justify-self:start;padding:3px 9px;border-radius:999px;background:rgba(98,230,255,.12);color:var(--cyan);font-size:12px;font-weight:850}
.upnext-card b{-webkit-line-clamp:2!important;font-size:15px!important;padding:0!important}
.upnext-card small{padding:0!important}
.upnext-bell{top:10px!important;right:10px!important;font-size:15px}
.upnext-bell.is-on{color:var(--lime)!important}

/* rails header with two actions */
.rail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

/* Returning viewers: the pitch becomes a slim strip at the bottom */
body.has-workspace .home-hero-v5{display:grid!important;grid-template-columns:1fr!important;min-height:0!important;padding:22px 24px!important;margin-top:28px;border-radius:22px;border:1px solid var(--line-soft);background:var(--surface)}
body.has-workspace .home-hero-v5 .patch-demo,body.has-workspace .home-hero-v5 .home-hero-lede,body.has-workspace .home-hero-v5 .home-trust-row{display:none!important}
body.has-workspace .home-hero-v5 h1{font-size:clamp(22px,2.6vw,30px)!important;letter-spacing:-.03em!important;margin:0 0 12px!important}
body.has-workspace .home-hero-v5 .eyebrow{margin-bottom:6px}
body.has-workspace .home-hero-v5 .home-main-actions{margin:0!important}
body.has-workspace .home-workspace:not([hidden])~.home-hero-clean .home-hero-copy h1{font-size:clamp(22px,2.6vw,30px)!important}
body.has-workspace .home-proof,body.has-workspace .home-steps{display:none!important}

/* watch controls with share + last */
.tv-channel-controls #tv-share{background:rgba(98,230,255,.08);border-color:rgba(98,230,255,.35);color:var(--text)}
.rail-card b{display:block!important;-webkit-line-clamp:unset!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upnext-card b{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical}
@media(max-width:680px){.mytv-head .home-workspace-actions>a[href="/tv"]{display:none}}
