/* Guide TV : même univers que la page (fond sombre bleuté, police DM, anneau de focus bleu). */
#epg{position:relative;color:#f5f7fc;height:100%;display:flex;flex-direction:column;gap:18px}
#epg[hidden]{display:none}
#epg .epg-bar{display:flex;gap:12px;align-items:center;flex:0 0 auto}
#epg .epg-bar .epg-title{font-size:30px;font-weight:700;margin-right:auto}
#epg button{font:inherit;color:inherit;cursor:pointer;border:0}
#epg .epg-ctl{height:52px;padding:0 24px;border-radius:26px;background:#101b25;border:1px solid rgba(255,255,255,.1);font-size:21px}
#epg .epg-ctl.on{background:#17344a;border-color:#38b6ff}
#epg .epg-ctl:focus,#epg .epg-prog:focus{outline:none;border-color:#38b6ff;box-shadow:0 0 0 4px rgba(56,182,255,.55),0 0 28px rgba(56,182,255,.35)}
#epg .epg-body{position:relative;display:flex;flex:1 1 auto;min-height:0;overflow:hidden;border-radius:14px;background:#0b141c;border:1px solid rgba(255,255,255,.07)}
#epg .epg-names{flex:0 0 190px;background:#0e1822;z-index:2;box-shadow:6px 0 18px rgba(0,0,0,.35);overflow:hidden}
#epg .epg-ch{height:78px;display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,.06);font-size:22px;font-weight:600}
#epg .epg-ch img{width:44px;height:44px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}
#epg .epg-corner{height:46px;border-bottom:1px solid rgba(255,255,255,.1)}
#epg .epg-view{position:relative;flex:1 1 auto;overflow:hidden}
#epg .epg-tracks{position:relative}
#epg .epg-time{position:relative;height:46px;border-bottom:1px solid rgba(255,255,255,.1)}
#epg .epg-time span{position:absolute;top:10px;font-size:19px;color:#9fb0c0;transform:translateX(-50%)}
#epg .epg-row{position:relative;height:78px;border-bottom:1px solid rgba(255,255,255,.06)}
#epg .epg-prog{position:absolute;top:6px;height:66px;border-radius:10px;padding:6px 12px;text-align:left;overflow:hidden;background:#15212c;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;justify-content:center}
#epg .epg-prog.now{background:linear-gradient(120deg,#17344a,#15212c);border-color:rgba(56,182,255,.5)}
#epg .epg-prog b{font-size:21px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#epg .epg-prog small{font-size:16px;color:#9fb0c0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#epg .epg-nowline{position:absolute;top:0;bottom:0;width:3px;background:#ff5a4f;z-index:1;pointer-events:none}
#epg .epg-msg{font-size:26px;color:#9fb0c0;margin:40px 8px}
/* À l'antenne / Ensuite */
#epg .epg-nn{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;overflow:hidden;align-content:start}
#epg .epg-nn-ch{grid-column:1/-1;font-size:20px;color:#9fb0c0;margin:8px 0 -6px}
#epg .epg-nn .epg-prog{position:relative;top:auto;height:96px}
#epg .epg-nn .epg-prog b{font-size:24px}

#epg-live{position:fixed;inset:0;z-index:99998;background:rgba(5,10,16,.96);overflow:auto;padding:36px 48px;color:#fff;font-family:inherit}
#epg-live h3{margin:26px 0 12px;font-size:24px;opacity:.8}
#epg-live .epg-bar{display:flex;justify-content:space-between;align-items:center}
.epg-live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.epg-live-ch{display:flex;gap:12px;align-items:center;height:64px;padding:0 18px;border-radius:14px;background:#101b25;border:1px solid rgba(255,255,255,.1);color:#fff;font-size:21px;text-align:left}
.epg-live-ch b{min-width:34px;color:#38b6ff}
.epg-live-ch:focus,#epg-live .epg-ctl:focus{outline:none;border-color:#38b6ff;box-shadow:0 0 0 4px rgba(56,182,255,.55),0 0 28px rgba(56,182,255,.35)}
#epg-live .epg-ctl{height:52px;padding:0 24px;border-radius:26px;background:#101b25;border:1px solid rgba(255,255,255,.1);color:#fff;font-size:21px}
#epg-toast{position:fixed;left:50%;bottom:48px;transform:translateX(-50%);z-index:99999;background:#17344a;border:1px solid #38b6ff;color:#fff;padding:14px 26px;border-radius:14px;font-size:22px}

/* Fit the guide and scroll channels with their programmes. */
#content-page.epg-page{display:flex;flex-direction:column}
#content-page.epg-page[hidden]{display:none}
#content-page.epg-page .apps-page-heading{flex:0 0 auto}
#content-page.epg-page #epg{height:auto;flex:1 1 auto;min-height:0;margin-top:26px}
#epg .epg-view{overflow:auto;scrollbar-width:thin;scrollbar-color:#345166 #0b141c}
#epg .epg-nn{overflow-y:auto;padding:8px 12px}
#epg .epg-empty b{color:#9fb0c0}

#content-page.tv-bands-page{display:flex;flex-direction:column}#content-page.tv-bands-page[hidden]{display:none}
#tv-bands{margin-top:28px;min-height:0;overflow-y:auto;padding:8px 12px 30px;scrollbar-width:thin}#tv-bands[hidden]{display:none}
.tv-band-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}.tv-band-heading h3{font-size:28px;margin:0}.tv-guide-link{height:48px;padding:0 24px;border-radius:24px;background:#14364b;font-size:20px}
.tv-strip{display:flex;gap:18px;overflow-x:auto;padding:10px 8px 18px;margin:0 -8px 24px;scrollbar-width:thin;scrollbar-color:#345166 #0b141c}
.tv-channel{position:relative;flex:0 0 180px;height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:14px;background:linear-gradient(135deg,#172c3c,#0c1720)}
.tv-channel>small{position:absolute;top:12px;left:14px;color:#71caff;font-size:16px}.tv-channel img{width:86px;height:86px;object-fit:contain;background:#fff;border-radius:10px;padding:8px}.tv-channel strong{font-size:18px}.tv-channel-fallback{display:grid;place-items:center;width:86px;height:86px;border-radius:10px;background:#24445c;font-size:20px;padding:6px}
.tv-now-card{flex:0 0 335px;height:184px;border-radius:14px;background:linear-gradient(135deg,#152f43,#0b1722);padding:18px;text-align:left;display:flex;flex-direction:column;gap:14px}.tv-programme-brand{display:flex;align-items:center;gap:10px;color:#adbdc9;font-size:16px}.tv-programme-brand img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:6px;padding:4px}.tv-programme-icon{margin-left:auto;color:#69cbff;font-size:28px}.tv-now-card>strong{font-size:23px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tv-now-card>small{font-size:15px;color:#adbdc9;margin-top:auto}

/* Move the live TV content 20px left and explain each programme. */
#content-page.tv-bands-page{padding-left:44px}
.tv-now-card{flex-basis:300px;height:260px;gap:10px}.tv-programme-summary{margin:0;font-size:15px;line-height:1.4;color:#b5c7d5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tv-now-card>strong{font-size:22px}

/* Shift the entire live TV block, including the return button, by 20px. */
#content-page.tv-bands-page{left:220px;right:20px;padding-left:64px}
/* Channel selection with programme details on the right. */
#tv-bands{flex:1;overflow:hidden;padding-bottom:10px;display:flex;flex-direction:column}#tv-bands[hidden]{display:none}
.tv-browser{display:grid;grid-template-columns:650px minmax(0,1fr);gap:34px;min-height:0;flex:1}.tv-channel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:17px;overflow-y:auto;padding:8px 10px 24px;scrollbar-width:thin}.tv-channel-grid .tv-channel{width:100%;height:155px;flex:none;gap:10px}.tv-channel-grid .tv-channel img{width:78px;height:78px;padding:7px}.tv-channel.selected{border-color:#edaa66;box-shadow:inset 0 0 0 2px #edaa66;background:#233747}.tv-channel strong{max-width:100%;text-align:center;padding:0 6px;font-size:16px}
.tv-selected-programmes{overflow-y:auto;scrollbar-width:thin;padding:8px 10px 24px;min-width:0}.tv-selected-brand{display:flex;align-items:center;gap:20px;margin-bottom:24px}.tv-selected-brand img{width:96px;height:96px;object-fit:contain;background:white;padding:9px;border-radius:12px}.tv-selected-brand p{margin:0 0 8px;font-size:12px;letter-spacing:2px;color:#d9a56e}.tv-selected-brand h3{font-size:34px;margin:0}.tv-selected-brand .tv-watch{margin-left:auto;min-height:50px;border-radius:25px;padding:0 20px;font-size:20px;background:#f0c28f;color:#152332}.tv-selected-programmes h4{font-size:24px;margin:0 0 18px}.tv-selected-show{display:block;width:100%;text-align:left;padding:22px;border-radius:14px;margin-bottom:17px;background:#102331}.tv-selected-show small{display:block;font-size:16px;color:#ecbf89;margin-bottom:12px}.tv-selected-show strong{font-size:29px;line-height:1.15}.tv-selected-show p{font-size:19px;line-height:1.45;color:#b7cad6;margin:14px 0 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.tv-selected-show.now{background:linear-gradient(120deg,#17364a,#10212e)}.tv-no-programme{font-size:24px;line-height:1.45;color:#b8cbd9}.tv-radio-link{height:48px;padding:0 24px;border-radius:24px;background:#223644;font-size:20px}
#content-page.radio-page{display:flex;flex-direction:column}#content-page.radio-page[hidden]{display:none}#radio-bands{margin-top:30px;overflow:auto;min-height:0;padding:10px}#radio-bands[hidden]{display:none}.radio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.radio-station{height:177px;padding:22px;display:grid;grid-template-columns:100px 1fr;grid-template-rows:1fr 1fr;gap:8px 22px;text-align:left;background:linear-gradient(120deg,#173144,#0c1924);border-radius:16px}.radio-badge{grid-row:1/3;width:100px;height:100px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:15px;padding:12px;font-size:22px;font-weight:700;color:#fff}.radio-station strong{font-size:27px;align-self:end}.radio-station small{font-size:17px;color:#b8cbd7}.radio-station.selected{border-color:#edb271;box-shadow:inset 0 0 0 2px #edb271}.radio-player{display:flex;align-items:center;gap:24px;margin-top:28px;padding:24px 30px;border-radius:16px;background:#132b3c}.radio-player strong{display:block;font-size:27px}.radio-player small{display:block;font-size:15px;color:#b1c4d1;margin-top:6px}.radio-stop{padding:12px 24px;border-radius:25px;margin-left:auto}.radio-status{font-size:19px;color:#edc08c}
.tv-podcast-link{height:48px;padding:0 22px;border-radius:24px;font-size:20px;background:#273446}.radio-tabs{display:flex;gap:14px;margin-bottom:25px}.radio-tabs button{padding:12px 24px;border-radius:24px;font-size:21px}.podcast-browser{display:grid;grid-template-columns:540px 1fr;gap:40px}.podcast-grid{display:flex;flex-direction:column;gap:18px}.podcast-choice{height:105px;border-radius:16px;padding:22px;text-align:left;font-size:29px;background:#142c3e}.podcast-choice.selected{border-color:#e3aa72;background:#25445a}.podcast-detail{padding:30px 42px;background:linear-gradient(120deg,#173246,#0c1926);border-radius:20px}.podcast-mark{display:block;font-size:68px;color:#e3b17e}.podcast-detail h3{font-size:39px;margin:12px 0 24px}.podcast-detail p{font-size:25px;line-height:1.45;color:#c0d3e0}.podcast-detail .podcast-instructions{font-size:20px;color:#a7bfce}.podcast-detail a{display:flex;align-items:center;gap:24px;color:#e8be8f;font-size:23px;text-decoration:none}.podcast-detail a img{width:125px;height:125px;padding:5px;background:white;border-radius:10px}
/* Programme artwork, shared by both AROK layouts. */
.tv-selected-show{display:flex;align-items:flex-start;gap:20px;padding:16px;min-height:126px}
.tv-selected-show .programme-art{width:180px;height:110px;flex:0 0 180px;object-fit:cover;border-radius:9px;background:#172a38}
.tv-selected-show.now .programme-art{width:210px;height:132px;flex-basis:210px}
.tv-selected-show .programme-brand{object-fit:contain;padding:16px;background:#fff}
.tv-show-copy{min-width:0;flex:1}.tv-selected-show small{font-size:15px;margin-bottom:8px}.tv-selected-show strong{font-size:25px;line-height:1.2;display:block}.tv-selected-show p{font-size:17px;line-height:1.35;margin-top:9px;-webkit-line-clamp:2}.tv-selected-show.now p{-webkit-line-clamp:3}
#epg .epg-prog .programme-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.32;pointer-events:none}
#epg .epg-prog:has(.programme-art){background:#071521}
#epg .epg-prog:has(.programme-art)::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,12,20,.72),rgba(4,12,20,.2));pointer-events:none}
#epg .epg-prog b,#epg .epg-prog small{position:relative;z-index:1}
.epg-detail-art{margin:20px 0}.epg-detail-art img{width:100%;max-height:320px;object-fit:cover;border-radius:14px}
@media(max-width:1200px){.tv-selected-show .programme-art,.tv-selected-show.now .programme-art{width:140px;height:96px;flex-basis:140px}.tv-selected-show strong{font-size:22px}.tv-selected-show{gap:14px}}
.dialog.epg-programme-detail{padding:36px 44px;max-height:960px;overflow-y:auto}.dialog.epg-programme-detail h2{font-size:34px;margin:10px 0 16px}.epg-programme-detail .epg-detail-art img{max-height:250px}.dialog.epg-programme-detail #modal-copy{font-size:21px;line-height:1.4;max-height:310px;overflow-y:auto;margin:18px 0}.epg-programme-detail #modal-actions{margin-top:22px}
