:root{--purple:#5620bd;--purple2:#7435e6;--dark:#151b38;--muted:#60677a;--line:#e5e6ed;--soft:#f2effa;--bg:#fbfaff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--dark);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 70% 260px at 98% 50px,#f0eaff 0,transparent 80%),var(--bg)}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #9e8afb;outline-offset:3px}.container{max-width:850px;margin:auto;padding:32px 22px 18px}.brand{display:flex;align-items:center;gap:20px;margin:3px 0 34px}.brand-icon{width:68px;height:68px;display:grid;place-items:center;color:var(--purple);flex:none}.brand-icon svg{width:60px;height:60px}.brand h1{font-size:clamp(35px,6vw,49px);line-height:1.08;letter-spacing:-2.4px;margin:0 0 4px;font-weight:800}.brand p{margin:0;color:#72778e;font-size:clamp(15px,3.5vw,20px);font-weight:500}.filters{display:grid;gap:24px;margin-bottom:32px}.filter-block{min-width:0}.filter-title{font-size:14px;color:#6a6880;font-weight:700;margin:0 0 10px}.chips{display:flex;flex-wrap:wrap;gap:9px}.chips button{background:#efedf6;color:#242641;border:1px solid transparent;border-radius:999px;padding:12px 18px;font-weight:650;line-height:1.1;transition:background .15s,color .15s;min-height:42px}.chips button:hover{background:#e6e0f4}.chips button.selected{background:var(--purple);color:white;box-shadow:0 4px 12px #5124aa1c}.category-chips button{font-size:13px;padding:10px 14px;min-height:38px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 15px}.section-head h2{margin:5px 0 0;font-size:27px;letter-spacing:-.7px}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:800;color:var(--purple)}.count{font-size:12px;color:#858a9c;font-weight:650;white-space:nowrap;padding-bottom:5px}.program-list{display:grid;gap:12px}.program{width:100%;display:grid;grid-template-columns:113px minmax(0,1fr);gap:17px;text-align:left;border:1.5px solid #e0e1e9;background:#fff;border-radius:22px;padding:13px;box-shadow:0 3px 14px #2a255007;color:inherit;min-height:138px}.program:hover{border-color:#c2a9ee}.program.open{border:2px solid var(--purple2);background:linear-gradient(120deg,#fff 20%,#f9f5ff 100%);padding:12.5px;box-shadow:0 5px 20px #5620bd12}.poster{width:113px;height:111px;align-self:start;border-radius:13px;object-fit:cover;background:linear-gradient(145deg,#bfb2e8,#39436f);color:#fff}.poster-fallback{display:grid;place-items:center;font-size:36px}.program.open .poster{height:138px}.program-info{min-width:0;align-self:center}.category-label{display:inline-block;font-size:12px;color:#6026b6;font-weight:750;background:#eee5ff;border-radius:999px;padding:5px 10px;margin-bottom:5px}.program-title{font-size:clamp(17px,3.8vw,22px);letter-spacing:-.55px;line-height:1.2;font-weight:800;margin:0 25px 8px 0;overflow-wrap:anywhere}.program-meta{display:flex;gap:7px;flex-wrap:wrap}.pill{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:6px 10px;border-radius:999px;font-weight:700;font-size:12px;line-height:1.1}.pill-time{background:#eee8ff;color:#5826b5}.pill-channel{background:#f1f1f5;color:#36394a;font-weight:650}.pill svg{width:15px;height:15px;flex:none}.program-main{position:relative}.chevron{position:absolute;right:1px;top:23px;width:23px;height:23px;color:#323a57;transition:transform .2s}.program.open .chevron{transform:rotate(90deg);color:var(--purple)}.synopsis{font-size:14px;line-height:1.5;color:#3f4151;padding-top:12px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.expand-caption{font-weight:800;font-size:13px;color:var(--purple);margin:8px 0 0}.status{text-align:center;color:#666c80;padding:55px 10px;font-size:14px}.spinner{width:25px;height:25px;border:3px solid #ede8fa;border-top-color:var(--purple);border-radius:50%;animation:spin .65s linear infinite;margin:0 auto 14px}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;background:white;border:1px solid var(--line);border-radius:20px;padding:35px 15px}.empty-graphic{font-size:35px}.empty h3{margin:12px 0 7px}.empty p{color:var(--muted);margin:0}#loadSentinel{height:1px}footer{margin:40px 0 10px;border-top:1px solid var(--line);padding-top:19px;display:flex;flex-direction:column;gap:5px;text-align:center;color:#9295a2;font-size:11px;line-height:1.6}footer a{color:#6a55b0;text-decoration:none}footer a:hover{text-decoration:underline}[hidden]{display:none!important}
@media(max-width:600px){.container{padding:20px 14px 12px}.brand{gap:11px;margin:8px 0 24px}.brand-icon{width:54px;height:54px}.brand-icon svg{width:51px;height:51px}.brand h1{font-size:36px;letter-spacing:-1.8px}.brand p{font-size:15px}.filters{gap:19px;margin-bottom:27px}.filter-title{font-size:12px;margin-bottom:9px}.chips{gap:7px}.time-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-14px;padding-right:14px;padding-bottom:3px}.time-chips::-webkit-scrollbar{display:none}.time-chips button{flex:none;padding:12px 15px;font-size:14px}.category-chips button{font-size:12px;padding:9px 11px;min-height:36px}.section-head h2{font-size:23px}.program-list{gap:10px}.program{grid-template-columns:90px minmax(0,1fr);gap:12px;padding:10px;border-radius:19px;min-height:115px}.program.open{padding:9.5px}.poster{width:90px;height:92px;border-radius:12px}.program.open .poster{height:112px}.program-title{font-size:18px;margin:0 16px 7px 0}.category-label{font-size:11px;padding:4px 9px;margin-bottom:6px}.pill{font-size:11px;padding:6px 8px;min-height:29px}.pill svg{width:13px;height:13px}.chevron{width:19px;height:19px;top:23px;right:0}.synopsis{font-size:13px;padding-top:10px}.section-head{margin-bottom:12px}.status{padding:40px 10px}}
@media(max-width:360px){.container{padding-left:10px;padding-right:10px}.program{grid-template-columns:76px minmax(0,1fr);gap:9px}.poster{width:76px;height:90px}.program.open .poster{height:105px}.program-title{font-size:16px}.brand h1{font-size:33px}.brand p{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.mini-icon{display:inline-flex;align-items:center}.mini-icon svg{width:15px;height:15px}.retry{border:0;background:var(--purple);color:white;border-radius:999px;padding:11px 21px;font-weight:700}

/* Category filter: one compact horizontal row with an expandable menu. */
.category-block{position:relative}.category-bar{display:flex;align-items:center;gap:7px;min-width:0}
.category-primary{flex:1;min-width:0;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;gap:7px;padding:2px 0}
.category-primary::-webkit-scrollbar{display:none}.category-primary button{flex:none;white-space:nowrap}
.category-more{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;max-width:42%;background:#efedf6;color:#242641;border:1px solid #ddd5ee;border-radius:999px;padding:10px 12px;min-height:38px;font-size:13px;font-weight:750;white-space:nowrap}
.category-more .more-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.category-more.selected,.category-more.expanded{background:var(--purple);color:#fff;border-color:var(--purple)}
.category-more span[aria-hidden]{font-size:19px;line-height:10px;transition:transform .15s}.category-more.expanded span[aria-hidden]{transform:rotate(180deg)}
.category-dropdown{position:absolute;top:100%;right:0;z-index:20;width:min(100%,440px);margin-top:7px;padding:13px;background:#fff;border:1px solid #ddd7ee;border-radius:16px;box-shadow:0 12px 32px #24204229}
.category-dropdown .chips{gap:8px}.category-dropdown button{font-size:12px;padding:9px 12px;min-height:36px}
@media(max-width:600px){.category-primary{margin:0;padding:2px 0}.category-more{padding:9px 11px;font-size:12px;min-height:36px}.category-dropdown{width:100%}}

/* Live broadcast progress */
.live-progress{margin-top:10px;max-width:320px}.live-dot{height:7px;width:7px;border-radius:50%;background:#d23565;display:inline-block}.live-progress-track{height:6px;background:#e7e1f5;border-radius:999px;overflow:hidden}.live-progress-fill{display:block;height:100%;border-radius:inherit;background:#6e32da;transition:width .3s ease}

/* Header refresh control */
.brand-title{min-width:0;flex:1}.refresh-button{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-left:auto;border:1px solid #ddd5ee;border-radius:50%;background:#f1edfa;color:var(--purple);transition:background .2s}.refresh-button:hover{background:#e4dcfa}.refresh-button svg{height:23px;width:23px}.refresh-button.is-refreshing svg{animation:spin .75s linear infinite}.refresh-button:disabled{cursor:wait;opacity:.7}
@media(max-width:600px){.refresh-button{width:39px;height:39px}.refresh-button svg{width:21px;height:21px}}

/* No decorative logo: title + subtitle + refresh button only. */
.brand{gap:12px}.brand h1{font-size:clamp(29px,5.4vw,42px);letter-spacing:-1.5px}.brand p{font-size:clamp(13px,3.2vw,17px)}
@media(max-width:600px){.brand h1{font-size:clamp(26px,7vw,34px);letter-spacing:-1px}.brand p{font-size:clamp(12px,3vw,14px)}}
/* Inform users when the XML ends before the requested time window. */
.coverage-notice{margin:18px 0 8px;background:#f5f1fe;border:1px solid #e1d7fa;border-radius:16px;padding:16px;color:#292144}
.coverage-inner{display:flex;align-items:flex-start;gap:11px}.coverage-icon{font-size:23px;color:var(--purple);line-height:1}.coverage-content{min-width:0;flex:1}
.coverage-content strong{font-size:14px;font-weight:800}.coverage-content p{margin:6px 0 0;font-size:13px;line-height:1.5;color:#5c5571}

/* Updated title hierarchy: more prominent on both desktop and mobile. */
.brand h1{font-size:clamp(36px,6vw,49px)}
@media(max-width:600px){.brand h1{font-size:clamp(32px,8.2vw,41px)}}
@media(max-width:360px){.brand h1{font-size:32px}}

/* Readable refresh icon */
.refresh-button svg{width:26px;height:26px}
@media(max-width:600px){.refresh-button svg{width:25px;height:25px}}

/* Categoría y duración discreta en la misma línea */
.program-head-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;margin-bottom:6px}
.program-head-meta .category-label{margin-bottom:0;flex:none}
.duration-label{font-size:11px;color:#9295a4;font-weight:500;line-height:1.3}
@media(max-width:600px){.duration-label{font-size:10px}.program-head-meta{gap:4px 7px}}
