.ssepg{font-family:var(--ssepg-font-family,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);font-size:var(--ssepg-font-size,14px);font-weight:var(--ssepg-font-weight,400);color:#111827;background:transparent;width:var(--ssepg-display-width,100%)!important;max-width:var(--ssepg-display-width,100%)!important;margin:0 auto}
.ssepg *{box-sizing:border-box}
.ssepg-toolbar{display:flex;gap:12px;align-items:center;background:var(--ssepg-surface);border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;margin-bottom:16px;box-shadow:0 8px 30px rgba(15,23,42,.06)}
.ssepg-toolbar__left,.ssepg-toolbar__center,.ssepg-toolbar__right{display:flex;align-items:center;gap:10px;min-width:0}
.ssepg-toolbar__center{justify-content:flex-end;margin-left:auto}
.ssepg-toolbar__right{justify-content:flex-end;overflow:hidden}
.ssepg-nav,.ssepg-view,.ssepg-pill,.ssepg-date,.ssepg-group{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:10px 14px;font-size:14px;line-height:1.2}
.ssepg-nav,.ssepg-view,.ssepg-pill{cursor:pointer}
.ssepg-view.is-active,.ssepg-pill:hover,.ssepg-nav:hover{border-color:var(--ssepg-accent);color:var(--ssepg-accent)}
.ssepg-channel-pills{display:flex;gap:8px;overflow:auto hidden;padding-bottom:4px}
.ssepg-pill{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto}
.ssepg-pill img{width:20px;height:20px;object-fit:contain;border-radius:4px}
.ssepg-body{background:var(--ssepg-surface);border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 8px 30px rgba(15,23,42,.06);overflow:hidden}
.ssepg-grid-wrap{position:relative}
.ssepg-grid-scroller{overflow:auto;max-height:78vh;overscroll-behavior-x:contain;overscroll-behavior-y:auto;background:linear-gradient(180deg,#fff,#f9fafb)}
.ssepg-grid{position:relative;min-width:100%}
.ssepg-grid-head{display:flex;position:relative;z-index:5;background:#fff;border-bottom:1px solid #e5e7eb}
.has-sticky-head .ssepg-grid-head{position:sticky;top:0}
.ssepg-grid-corner{width:var(--ssepg-channel-col);min-width:var(--ssepg-channel-col);padding:16px;font-weight:700;border-right:1px solid #e5e7eb;background:#fff;z-index:7}
.has-sticky-col .ssepg-grid-corner{position:sticky;left:0}
.ssepg-grid-timeline{position:relative;height:58px;background:linear-gradient(180deg,#fff,#fbfbfd)}
.ssepg-grid-hour{position:absolute;top:0;bottom:0;padding:18px 10px 0;font-size:13px;font-weight:600;color:#475569;border-left:1px solid #edf2f7}
.ssepg-grid-body{position:relative}
.ssepg-row{display:flex;min-height:var(--ssepg-row-height);border-bottom:1px solid #eef2f7}
.ssepg-channel-cell{width:var(--ssepg-channel-col);min-width:var(--ssepg-channel-col);display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-right:1px solid #e5e7eb;font-weight:600;z-index:4}
.has-sticky-col .ssepg-channel-cell{position:sticky;left:0}
.ssepg-channel-cell img{width:32px;height:32px;object-fit:contain;border-radius:8px;background:var(--ssepg-logo-bg,#fff);padding:4px}
.ssepg-programmes{position:relative;min-height:var(--ssepg-row-height);background:repeating-linear-gradient(90deg,#ffffff 0,#ffffff calc(30 * var(--ssepg-minute-width)),#fafbfc calc(30 * var(--ssepg-minute-width)),#fafbfc calc(60 * var(--ssepg-minute-width)))}
.ssepg-line{position:absolute;top:0;bottom:0;width:1px;background:#edf2f7}
.ssepg-now-line{position:absolute;top:0;bottom:0;width:2px;background:var(--ssepg-accent);z-index:3;box-shadow:0 0 0 1px rgba(217,28,92,.12)}
.ssepg-card{position:absolute;top:10px;bottom:10px;border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:10px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;overflow:hidden;text-align:left;box-shadow:0 4px 18px rgba(15,23,42,.05);cursor:pointer}
.ssepg-card:hover{border-color:var(--ssepg-accent);transform:translateY(-1px)}
.ssepg-card.is-live{background:linear-gradient(180deg,rgba(217,28,92,.07),rgba(217,28,92,.02));border-color:rgba(217,28,92,.38)}
.ssepg-card__time{font-size:12px;font-weight:700;color:var(--ssepg-accent)}
.ssepg-card__title{font-size:13px;line-height:1.25;font-weight:700;color:#111827;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--ssepg-title-lines);overflow:hidden}
.ssepg-list{padding:16px}
.ssepg-list-channel{margin-bottom:22px}
.ssepg-list-channel h3{margin:0 0 10px;font-size:18px}
.ssepg-list-item{width:100%;display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center;padding:12px 14px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;text-align:left;margin-bottom:10px;cursor:pointer}
.ssepg-list-item__time{font-weight:700;color:var(--ssepg-accent)}
.ssepg-list-item__title{font-weight:700}
.ssepg-list-item__sub{grid-column:2;color:#64748b}
.ssepg-list-item.is-live{border-color:rgba(217,28,92,.38);background:linear-gradient(180deg,rgba(217,28,92,.05),rgba(217,28,92,.015))}
.ssepg-modal[hidden]{display:none}
.ssepg-modal{position:fixed;inset:0;z-index:99999}
.ssepg-modal__backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.ssepg-modal__card{position:relative;width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;margin:12px auto;background:#fff;border-radius:22px;box-shadow:0 28px 70px rgba(15,23,42,.4)}
.ssepg-modal__close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:none;border-radius:999px;background:#111827;color:#fff;font-size:24px;cursor:pointer;z-index:2}
.ssepg-modal__media img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover}
.ssepg-modal__content{padding:22px}
.ssepg-modal__content h3{margin:0 0 8px;font-size:28px;line-height:1.1}
.ssepg-modal__meta{display:flex;flex-wrap:wrap;gap:12px;color:#475569;font-weight:600;margin-bottom:12px}
.ssepg-modal__desc{color:#1f2937;line-height:1.6}
.ssepg-modal__source{display:inline-block;margin:0 0 10px;padding:4px 10px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:700}
.ssepg-modal__loading{margin:0 0 12px;color:#475569;font-size:14px}
.ssepg-modal__cast{margin-top:14px;color:#334155;line-height:1.5}

.ssepg-error,.ssepg-empty{padding:18px;border:1px solid #fecaca;background:#fff1f2;color:#9f1239;border-radius:16px}
@media (max-width:960px){.ssepg-toolbar{flex-wrap:wrap;}.ssepg-toolbar__center,.ssepg-toolbar__right{justify-content:flex-start;margin-left:0}.ssepg-grid-scroller{max-height:72vh}}
@media (max-width:640px){.ssepg-nav,.ssepg-view,.ssepg-pill,.ssepg-date,.ssepg-group{padding:9px 12px;font-size:13px}.ssepg-grid-corner,.ssepg-channel-cell{padding:10px}.ssepg-list-item{grid-template-columns:1fr}.ssepg-list-item__sub{grid-column:1}}

.ssepg-day-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 10px}
.ssepg-day-tab{appearance:none;border:1px solid rgba(255,255,255,.12);background:#161922;color:#e8edf7;border-radius:999px;padding:8px 12px;font:inherit;font-weight:600;cursor:pointer;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}
.ssepg-day-tab:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.24)}
.ssepg-day-tab.is-active{background:var(--ssepg-accent);border-color:var(--ssepg-accent);color:#fff}

.ssepg-theme-dark .ssepg-toolbar{background:linear-gradient(180deg,#161922,#0f131a);border-color:#202632;box-shadow:0 14px 40px rgba(2,6,23,.28)}
.ssepg-theme-dark .ssepg-toolbar__left,.ssepg-theme-dark .ssepg-toolbar__center,.ssepg-theme-dark .ssepg-toolbar__right{color:#e5e7eb}
.ssepg-theme-dark .ssepg-nav,.ssepg-theme-dark .ssepg-view,.ssepg-theme-dark .ssepg-pill,.ssepg-theme-dark .ssepg-date,.ssepg-theme-dark .ssepg-group,.ssepg-theme-dark .ssepg-now-button{border:1px solid rgba(255,255,255,.12);background:#1b2330;color:#e5e7eb;border-radius:999px;padding:10px 14px;font-size:14px;line-height:1.2}
.ssepg-theme-dark .ssepg-now-button{cursor:pointer;font-weight:700}
.ssepg-theme-dark .ssepg-view.is-active,.ssepg-theme-dark .ssepg-pill:hover,.ssepg-theme-dark .ssepg-nav:hover,.ssepg-theme-dark .ssepg-now-button:hover{border-color:var(--ssepg-accent);color:#fff;background:rgba(217,28,92,.16)}
.ssepg-theme-dark .ssepg-date,.ssepg-theme-dark .ssepg-group{color-scheme:dark}
.ssepg-theme-dark .ssepg-pill.is-selected{border-color:var(--ssepg-accent);background:rgba(217,28,92,.16);color:#fff}
.ssepg-theme-dark .ssepg-body{background:#0f131a;border-color:#202632;box-shadow:0 12px 36px rgba(2,6,23,.22)}
.ssepg-theme-dark .ssepg-grid-scroller{scroll-behavior:smooth;overflow:auto;max-height:78vh;overscroll-behavior:contain;background:linear-gradient(180deg,#0f131a,#131923)}
.ssepg-theme-dark .ssepg-grid-head{background:#161d28;border-bottom:1px solid #232c39}
.ssepg-theme-dark .ssepg-grid-corner{color:#e5e7eb;border-right:1px solid #232c39;background:#161d28}
.ssepg-theme-dark .ssepg-grid-timeline{background:linear-gradient(180deg,#161d28,#141a24)}
.ssepg-theme-dark .ssepg-grid-hour{color:#aeb9c9;border-left:1px solid #202a38}
.ssepg-theme-dark .ssepg-row{border-bottom:1px solid #1b2431}
.ssepg-theme-dark .ssepg-channel-cell{gap:12px;padding:10px 12px;background:#111822;border-right:1px solid #232c39;color:#f8fafc;font-weight:700}
.ssepg-theme-dark .ssepg-channel-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;background:#1b2330;color:#93a4bb;font-size:12px;font-weight:700}
.ssepg-theme-dark .ssepg-channel-name{line-height:1.2}
.ssepg-theme-dark .ssepg-channel-cell img{width:34px;height:34px;object-fit:contain;border-radius:8px;background:var(--ssepg-logo-bg,#fff);padding:4px}
.ssepg-theme-dark .ssepg-programmes{background:repeating-linear-gradient(90deg,#111822 0,#111822 calc(30 * var(--ssepg-minute-width)),#0f151f calc(30 * var(--ssepg-minute-width)),#0f151f calc(60 * var(--ssepg-minute-width)))}
.ssepg-theme-dark .ssepg-line{background:#1f2a38}
.ssepg-theme-dark .ssepg-now-line{background:var(--ssepg-accent);width:2px;box-shadow:0 0 0 8px rgba(217,28,92,.08),0 0 18px rgba(217,28,92,.28)}
.ssepg-theme-dark .ssepg-card{border-color:#293243;background:#18212d;color:#fff;box-shadow:0 8px 20px rgba(2,6,23,.18);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ssepg-theme-dark .ssepg-card:hover{border-color:var(--ssepg-accent);box-shadow:0 12px 28px rgba(2,6,23,.28)}
.ssepg-theme-dark .ssepg-card__title{color:#fff}
.ssepg-theme-dark .ssepg-list{background:#0f131a}
.ssepg-theme-dark .ssepg-list-channel h3{color:#fff}
.ssepg-theme-dark .ssepg-list-item{border-color:#293243;background:#18212d;color:#fff}
.ssepg-theme-dark .ssepg-list-item__sub{color:#93a4bb}
.ssepg-theme-dark .ssepg-admin-number{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#111827;color:#fff;font-size:12px;font-weight:700}
.ssepg-theme-dark .ssepg-admin-logo{width:36px;height:36px;object-fit:contain;border-radius:8px;background:#fff;padding:4px;border:1px solid #e5e7eb}
.ssepg-theme-dark .ssepg-admin-hide{white-space:nowrap}

.ssepg-channel-name{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}

.ssepg-admin-logo{width:36px;height:36px;object-fit:contain;border-radius:8px;background:var(--ssepg-logo-bg,#fff);padding:4px;border:1px solid #e5e7eb}

.ssepg-channel-select{min-width:180px;max-width:260px;}
.ssepg-theme-dark .ssepg-channel-select{color-scheme:dark;}


.ssepg-toolbar__center--views{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.ssepg-channel-select--toolbar{min-width:180px;max-width:240px;height:44px;padding:0 16px;border-radius:999px;font-weight:600;}
.ssepg-theme-dark .ssepg-channel-select--toolbar{background:#141b26;border:1px solid #2a3445;color:#e5e7eb;}
.ssepg-theme-light .ssepg-channel-select--toolbar{background:#fff;border:1px solid #d1d5db;color:#111827;}
@media (max-width: 900px){.ssepg-toolbar__center--views{justify-content:flex-start;width:100%;}}


/* Mobile optimization */
.ssepg-grid-scroller{-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;scrollbar-gutter:stable both-edges}
.ssepg-programmes{contain:layout paint}
.ssepg-card{touch-action:manipulation}
@media (hover:none){.ssepg-card:hover{transform:none}}
@media (max-width:900px){
  .ssepg{font-size:13px}
  .ssepg-toolbar{position:sticky;top:8px;z-index:30;padding:12px;border-radius:16px}
  .ssepg-toolbar__left,.ssepg-toolbar__center,.ssepg-toolbar__right{flex-wrap:wrap}
  .ssepg-toolbar__right{overflow:visible}
  .ssepg-channel-select--toolbar,.ssepg-channel-select,.ssepg-group,.ssepg-date{width:100%;max-width:none;min-width:0}
  .ssepg-body{border-radius:16px}
  .ssepg-grid-scroller{max-height:68vh}
  .ssepg-grid-timeline{height:50px}
  .ssepg-grid-hour{padding:14px 8px 0;font-size:12px}
  .ssepg-card{top:6px;bottom:6px;border-radius:12px;padding:8px 10px;gap:4px}
  .ssepg-card__time{font-size:11px}
  .ssepg-card__title{font-size:12px;-webkit-line-clamp:2}
  .ssepg-modal__card{width:min(100vw - 16px,720px);max-height:calc(100vh - 16px);margin:8px auto;border-radius:18px}
  .ssepg-modal__content{padding:18px}
  .ssepg-modal__content h3{font-size:22px}
}
@media (max-width:640px){
  .ssepg{--ssepg-channel-col:88px}
  .ssepg-toolbar{top:4px;gap:10px;padding:10px 10px 12px}
  .ssepg-nav,.ssepg-view,.ssepg-pill,.ssepg-date,.ssepg-group,.ssepg-channel-select--toolbar{min-height:40px}
  .ssepg-toolbar__center--views{gap:8px}
  .ssepg-day-tabs{overflow:auto hidden;flex-wrap:nowrap;padding-bottom:6px}
  .ssepg-day-tab{flex:0 0 auto;padding:8px 10px}
  .ssepg-grid-corner{font-size:12px}
  .ssepg-grid-corner,.ssepg-channel-cell{padding:8px 6px;min-width:var(--ssepg-channel-col);width:var(--ssepg-channel-col)}
  .ssepg-channel-cell{gap:6px;justify-content:center;flex-direction:column;align-items:center;text-align:center}
  .ssepg-channel-cell img{width:24px;height:24px;padding:2px}
  .ssepg-channel-name{max-width:74px;font-size:11px;line-height:1.15;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .ssepg-grid-scroller{max-height:62vh}
  .ssepg-grid-hour{font-size:11px;padding:12px 6px 0}
  .ssepg-list{padding:12px}
  .ssepg-list-channel h3{font-size:16px}
  .ssepg-list-item{padding:10px 12px;border-radius:14px}
  .ssepg-modal__close{width:36px;height:36px;font-size:20px}
  .ssepg-modal__media img{max-height:220px}
  .ssepg-modal__content h3{font-size:20px}
}
@media (max-width:480px){
  .ssepg{font-size:12px}
  .ssepg{--ssepg-channel-col:76px}
  .ssepg-grid-corner,.ssepg-channel-cell{padding:8px 4px}
  .ssepg-channel-name{max-width:66px;font-size:10px}
  .ssepg-card{padding:7px 8px}
  .ssepg-card__title{font-size:11px}
}


/* Wedos + mobile performance */
.ssepg-grid-scroller{content-visibility:auto;contain-intrinsic-size:900px 640px}
.ssepg-row,.ssepg-list-channel{content-visibility:auto;contain-intrinsic-size:120px}
.ssepg-modal__media img,.ssepg-channel-cell img,.ssepg-admin-logo{image-rendering:auto}
@media (max-width:640px){
  .ssepg-grid-scroller{scroll-snap-type:x proximity}
  .ssepg-grid-hour{scroll-snap-align:start}
}


/* Modern view switch */
.ssepg-view-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:999px;background:rgba(148,163,184,.12);border:1px solid rgba(148,163,184,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 22px rgba(15,23,42,.08);backdrop-filter:saturate(140%) blur(6px)}
.ssepg-view-switch .ssepg-view{position:relative;border:none;background:transparent;min-width:110px;min-height:44px;padding:0 18px;font-weight:700;letter-spacing:.01em;color:#475569;box-shadow:none;transition:background-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.ssepg-view-switch .ssepg-view:hover{border:none;color:#0f172a;background:rgba(255,255,255,.55)}
.ssepg-view-switch .ssepg-view.is-active{background:linear-gradient(180deg,var(--ssepg-accent),color-mix(in srgb,var(--ssepg-accent) 72%, #111827));color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.22);transform:translateY(-1px)}
.ssepg-theme-light .ssepg-view-switch{background:linear-gradient(180deg,#f8fafc,#eef2f7);border-color:#d7dee8}
.ssepg-theme-dark .ssepg-view-switch{background:linear-gradient(180deg,#111827,#0f172a);border-color:rgba(148,163,184,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 26px rgba(2,6,23,.28)}
.ssepg-theme-dark .ssepg-view-switch .ssepg-view{color:#cbd5e1;background:transparent}
.ssepg-theme-dark .ssepg-view-switch .ssepg-view:hover{background:rgba(255,255,255,.06);color:#fff}
.ssepg-theme-dark .ssepg-view-switch .ssepg-view.is-active{background:linear-gradient(180deg,var(--ssepg-accent),color-mix(in srgb,var(--ssepg-accent) 72%, #0f172a));color:#fff;box-shadow:0 12px 26px rgba(2,6,23,.34),inset 0 1px 0 rgba(255,255,255,.18)}
@media (max-width:640px){.ssepg-view-switch{width:100%;justify-content:stretch}.ssepg-view-switch .ssepg-view{flex:1 1 0;min-width:0;height:40px;padding:0 12px}}

/* 1.2: compact, accessible controls and mobile programme cards. */
.ssepg [hidden]{display:none!important}
.ssepg-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;background:var(--ssepg-surface,#fff);border:1px solid #8590a433;border-radius:18px;margin:12px 0}
.ssepg-tools label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;flex:1;min-width:160px;color:inherit}
.ssepg-tools input,.ssepg-tools select,.ssepg-live-filter{font:inherit;min-height:44px;padding:10px 14px;border:1px solid #8590a455;border-radius:12px;background:var(--ssepg-surface,#fff);color:inherit;max-width:100%}
.ssepg-live-filter{cursor:pointer;font-weight:600}
.ssepg-live-filter[aria-pressed=true]{background:var(--ssepg-accent,#d91c5c);color:#fff;border-color:transparent}
.ssepg-status{font-size:13px;padding:4px 4px 12px;color:inherit;opacity:.8;min-height:28px}
.ssepg:focus-within{scroll-margin-top:20px}
.ssepg :is(button,input,select):focus-visible{outline:3px solid var(--ssepg-accent,#d91c5c);outline-offset:3px}
.ssepg[aria-busy=true] .ssepg-body{opacity:.5;pointer-events:none}
.ssepg[data-theme] .ssepg-grid-scroller{overscroll-behavior-x:contain;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch}
.ssepg-row,.ssepg-list-channel{content-visibility:auto;contain-intrinsic-size:auto 100px}
.ssepg-card{transition:border-color .15s,background-color .15s}
.ssepg-list-item{transition:border-color .15s}
.ssepg-list-item:hover{border-color:var(--ssepg-accent)}
.ssepg-list-item.is-live .ssepg-list-item__title:before{content:'● ';color:var(--ssepg-accent)}
@media(max-width:640px){
.ssepg{--ssepg-channel-col:112px!important}
.ssepg-toolbar{padding:12px!important;gap:12px!important;border-radius:16px}
.ssepg-toolbar__left,.ssepg-toolbar__center{width:100%;flex-wrap:wrap;gap:8px!important}
.ssepg-toolbar :is(button,input,select){min-height:44px;min-width:0}
.ssepg-toolbar .ssepg-date{flex:1;width:130px}
.ssepg-toolbar .ssepg-group,.ssepg-channel-select--toolbar{flex:1;max-width:100%;width:100%}
.ssepg-tools{padding:12px;gap:10px}
.ssepg-tools label:first-child{flex-basis:100%}
.ssepg-tools label{min-width:140px}
.ssepg-live-filter{flex:1;white-space:nowrap}
.ssepg-channel-cell{flex-wrap:wrap;gap:4px!important;padding:8px!important}
.ssepg-channel-cell img{max-width:48px;max-height:28px;object-fit:contain}
.ssepg-channel-name{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
.ssepg-grid-scroller{max-height:65vh;max-height:65dvh}
.ssepg-list{padding:10px}
.ssepg-list-channel h3{font-size:17px;padding:10px 4px;text-align:left}
.ssepg-list-item{grid-template-columns:88px minmax(0,1fr)!important;gap:6px;padding:12px!important;border-radius:12px!important}
.ssepg-list-item__time{font-size:12px}
.ssepg-list-item__title{font-size:14px;line-height:1.4}
.ssepg-list-item__sub{grid-column:2!important;font-size:12px}
.ssepg-modal__card{width:100%;margin:0;border-radius:20px 20px 0 0;position:absolute;bottom:0;max-height:90vh;max-height:90dvh;padding-bottom:env(safe-area-inset-bottom)}
.ssepg-modal__content{padding:20px}
.ssepg-modal__content h3{font-size:23px;padding-right:34px}
}
@media(prefers-reduced-motion:reduce){.ssepg *{scroll-behavior:auto!important;transition:none!important}}
.ssepg-theme-dark .ssepg-tools{background:#111822;color:#e5e7eb;border-color:#293243}
.ssepg-theme-dark .ssepg-tools :is(input,select,button){background:#18212d;color:#e5e7eb;color-scheme:dark}
.ssepg-theme-dark .ssepg-tools button[aria-pressed=true]{background:var(--ssepg-accent);color:#fff}
.ssepg-theme-dark .ssepg-status{color:#b6c2d4}

/* 1.3: shared contrast palette for both appearances. */
.ssepg[data-theme]{--epg-bg:#101722;--epg-panel:#17212f;--epg-card:#1b2839;--epg-text:#f0f4fa;--epg-muted:#b0bfd2;--epg-border:#344359;--epg-highlight:#ffa1b5;--epg-live:#2c2235;color:var(--epg-text);color-scheme:dark;min-width:0}
.ssepg[data-theme=light]{--epg-bg:#f4f6fa;--epg-panel:#fff;--epg-card:#fff;--epg-text:#182537;--epg-muted:#485a70;--epg-border:#cbd5e1;--epg-highlight:#a6173a;--epg-live:#fff0f3;color-scheme:light}
.ssepg[data-theme] :is(.ssepg-toolbar,.ssepg-tools,.ssepg-preferences,.ssepg-body,.ssepg-list,.ssepg-grid-head,.ssepg-grid-corner,.ssepg-grid-timeline,.ssepg-channel-cell){background:var(--epg-panel);border-color:var(--epg-border);color:var(--epg-text);box-shadow:none}
.ssepg[data-theme] :is(.ssepg-nav,.ssepg-date,.ssepg-group,.ssepg-channel-select,.ssepg-now-button,.ssepg-search,.ssepg-sort,.ssepg-live-filter,.ssepg-time,.ssepg-time-go,.ssepg-time-clear,.ssepg-appearance button){background:var(--epg-bg);color:var(--epg-text);border:1px solid var(--epg-border);border-radius:10px;font:inherit;min-height:44px;padding:10px 12px;max-width:100%;min-width:0;color-scheme:inherit}
.ssepg[data-theme] :is(.ssepg-toolbar__left,.ssepg-toolbar__center,.ssepg-tools label,.ssepg-time-form label){color:var(--epg-text)}
.ssepg[data-theme] .ssepg-grid-scroller{background:var(--epg-bg);scrollbar-color:var(--epg-border) var(--epg-bg);scrollbar-gutter:auto;content-visibility:visible;scroll-snap-type:none}
.ssepg[data-theme] .ssepg-programmes{background:var(--epg-bg)}
.ssepg[data-theme] .ssepg-row{border-color:var(--epg-border)}
.ssepg[data-theme] .ssepg-line{background:var(--epg-border);opacity:.5}
.ssepg[data-theme] :is(.ssepg-card,.ssepg-list-item){background:var(--epg-card);border-color:var(--epg-border);color:var(--epg-text)}
.ssepg[data-theme] :is(.ssepg-card__title,.ssepg-list-item__title,.ssepg-list-channel h3,.ssepg-channel-name){color:var(--epg-text)}
.ssepg[data-theme] :is(.ssepg-card__time,.ssepg-list-item__time){color:var(--epg-highlight)}
.ssepg[data-theme] :is(.ssepg-grid-hour,.ssepg-list-item__sub,.ssepg-status){color:var(--epg-muted);opacity:1}
.ssepg[data-theme] .ssepg-channel-number{background:var(--epg-bg);color:var(--epg-muted);border-radius:8px;padding:2px 6px;font-size:11px}
.ssepg[data-theme] .ssepg-view-switch{background:var(--epg-bg);border-color:var(--epg-border);box-shadow:none;backdrop-filter:none}
.ssepg[data-theme] .ssepg-view-switch .ssepg-view{background:transparent;color:var(--epg-muted);min-width:88px}
.ssepg[data-theme] .ssepg-view-switch .ssepg-view.is-active,.ssepg[data-theme] .ssepg-appearance button[aria-pressed=true],.ssepg[data-theme] .ssepg-live-filter[aria-pressed=true]{background:var(--epg-text);color:var(--epg-panel);border-color:var(--epg-text);box-shadow:none}
.ssepg[data-theme] :is(.ssepg-card,.ssepg-list-item).is-live{background:var(--epg-live);border-color:var(--epg-highlight)}
.ssepg[data-theme] .ssepg-list-item.is-live .ssepg-list-item__title:before{color:var(--epg-highlight)}
.ssepg[data-theme] .ssepg-card:hover{border-color:var(--epg-highlight)}
.ssepg[data-theme] .ssepg-modal__card{background:var(--epg-panel);color:var(--epg-text)}
.ssepg[data-theme] :is(.ssepg-modal__content h3,.ssepg-modal__desc,.ssepg-modal__cast){color:var(--epg-text)}
.ssepg[data-theme] :is(.ssepg-modal__meta,.ssepg-modal__loading){color:var(--epg-muted)}
.ssepg[data-theme] .ssepg-modal__source{background:var(--epg-bg);color:var(--epg-highlight)}
.ssepg[data-theme] .ssepg-modal__close{background:var(--epg-text);color:var(--epg-panel)}
.ssepg[data-theme] .ssepg-modal__media img{object-fit:contain;background:var(--epg-bg)}
.ssepg-preferences{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 14px;border:1px solid var(--epg-border);border-radius:16px;margin-bottom:12px}
.ssepg-appearance{display:flex;gap:6px;flex-wrap:wrap}
.ssepg-time-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:0}
.ssepg-time-form label{display:flex;flex-direction:column;gap:5px;font-size:12px}
.ssepg-time{width:130px}
.ssepg[data-theme] .ssepg-time-go{font-weight:600;cursor:pointer}
.ssepg-time-clear,.ssepg-appearance button{cursor:pointer}
.ssepg[data-theme] .ssepg-toolbar{position:static;flex-wrap:wrap}
.ssepg[data-theme] .ssepg-channel-select{flex:1;min-width:140px}
.ssepg[data-theme] .ssepg-tools{display:grid;grid-template-columns:minmax(160px,2fr) minmax(150px,1fr) auto;align-items:end}
.ssepg[data-theme] .ssepg-tools label{min-width:0}
.ssepg[data-theme] .ssepg-card__title{-webkit-line-clamp:2;font-size:13px;line-height:1.3}
@media(max-width:640px){
.ssepg[data-theme]{--ssepg-channel-col:92px!important}
.ssepg[data-theme] .ssepg-toolbar__left{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:100%}
.ssepg[data-theme] .ssepg-group{grid-column:1/-1;width:100%}
.ssepg[data-theme] .ssepg-date{width:100%;font-size:16px;padding:8px}
.ssepg[data-theme] .ssepg-toolbar__center{display:flex;width:100%;gap:8px;margin:0}
.ssepg[data-theme] .ssepg-view-switch{flex:1}
.ssepg[data-theme] .ssepg-view-switch .ssepg-view{flex:1;min-width:0;padding-inline:10px}
.ssepg[data-theme] .ssepg-channel-select{width:100%;flex-basis:100%;font-size:16px}
.ssepg-preferences{padding:10px;gap:12px}
.ssepg-appearance{width:100%}
.ssepg-appearance button{flex:1}
.ssepg-time-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);width:100%}
.ssepg-time-form label,.ssepg-time{width:100%;min-width:0}
.ssepg[data-theme] .ssepg-time{font-size:16px}
.ssepg-time-clear{grid-column:1/-1}
.ssepg[data-theme] .ssepg-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.ssepg-tools label:first-child{grid-column:1/-1}
.ssepg[data-theme] .ssepg-tools :is(input,select){font-size:16px;width:100%}
.ssepg[data-theme] .ssepg-live-filter{font-size:13px;white-space:normal}
.ssepg[data-theme] .ssepg-channel-cell{gap:4px;flex-direction:column;justify-content:center;padding:8px 4px}
.ssepg[data-theme] .ssepg-channel-name{font-size:12px;line-height:1.3;max-width:82px;-webkit-line-clamp:2;white-space:normal}
.ssepg[data-theme] .ssepg-channel-cell img{width:30px;height:26px;object-fit:contain}
.ssepg[data-theme] .ssepg-modal__close{width:44px;height:44px}
.ssepg[data-theme] .ssepg-modal__card{max-height:90dvh}
.ssepg[data-theme] .ssepg-card{padding:8px}
}

/* A single tooltip lives outside the scrolling grid and never downloads data on hover. */
.ssepg[data-theme] .ssepg-tooltip{position:fixed;z-index:99990;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:var(--epg-panel);color:var(--epg-text);border:1px solid var(--epg-border);border-radius:14px;padding:16px;box-shadow:0 12px 32px #0003;line-height:1.5;text-align:left;font-size:13px;pointer-events:auto}
.ssepg-tooltip__title{font-size:15px;font-weight:700;margin-bottom:4px;color:var(--epg-text)}
.ssepg-tooltip__meta{font-size:12px;color:var(--epg-muted);margin-bottom:9px}
.ssepg-tooltip__genre{font-size:12px;font-weight:600;color:var(--epg-highlight);margin-bottom:7px}
.ssepg-tooltip__summary{color:var(--epg-text);white-space:normal;overflow-wrap:anywhere}
@media(hover:none){.ssepg .ssepg-tooltip{display:none!important}}

/* 1.4: personal channel selection, compact navigation and programme discovery. */
.ssepg-quick-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.ssepg-time-presets{display:flex;gap:6px;flex-wrap:wrap}
.ssepg[data-theme] :is(.ssepg-quick-controls button,.ssepg-day-strip button,.ssepg-density button,.ssepg-modal-actions button){min-height:42px;padding:9px 13px;border:1px solid var(--epg-border);border-radius:10px;background:var(--epg-panel);color:var(--epg-text);font:inherit;cursor:pointer}
.ssepg[data-theme] :is(.ssepg-quick-controls,.ssepg-day-strip,.ssepg-density) button[aria-pressed=true]{background:var(--epg-text);color:var(--epg-panel);border-color:var(--epg-text)}
.ssepg[data-theme] .ssepg-day-strip{display:flex;gap:6px;overflow:auto;overscroll-behavior-x:contain;padding:2px 0 10px;scrollbar-width:thin;max-width:100%}
.ssepg[data-theme] .ssepg-day-strip button{flex:none;white-space:nowrap;font-size:13px}
.ssepg[data-theme] .ssepg-tools{grid-template-columns:minmax(130px,1fr) minmax(180px,2fr) minmax(120px,1fr) auto}
.ssepg[data-theme] .ssepg-tools :is(input,select){width:100%;min-width:0;color:var(--epg-text);background:var(--epg-bg);border:1px solid var(--epg-border);border-radius:10px;min-height:44px;padding:10px;font:inherit}
.ssepg[data-theme] .ssepg-tools .ssepg-programme-genre{font-size:14px}
.ssepg-filters-toggle{display:none}
.ssepg-density{display:flex;gap:6px;justify-content:flex-end;margin:8px 0}
.ssepg[data-theme] .ssepg-density button{font-size:12px;min-height:36px;padding:6px 10px}
.ssepg[data-theme] .ssepg-favorite{display:inline-grid;place-items:center;flex:none;min-width:36px;min-height:36px;padding:0;border:1px solid var(--epg-border);border-radius:9px;background:var(--epg-panel);color:var(--epg-muted);font-size:23px;line-height:1;cursor:pointer}
.ssepg[data-theme] .ssepg-favorite[aria-pressed=true]{color:var(--epg-highlight);border-color:var(--epg-highlight)}
.ssepg-channel-cell .ssepg-favorite{margin-left:auto}
.ssepg-list-channel h3{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ssepg[data-theme] .ssepg-channel-cell img{width:32px;height:30px;background:#fff;padding:3px;border-radius:7px;object-fit:contain}
.ssepg-genre-badge{font-size:11px;line-height:1.3;color:var(--epg-muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;border-left:3px solid var(--epg-border);padding-left:5px}
[data-kind=film] .ssepg-genre-badge{border-left-color:#818cf8}[data-kind=series] .ssepg-genre-badge{border-left-color:#c084fc}[data-kind=documentary] .ssepg-genre-badge{border-left-color:#34d399}[data-kind=sport] .ssepg-genre-badge{border-left-color:#f59e0b}[data-kind=kids] .ssepg-genre-badge{border-left-color:#fb7185}
.ssepg[data-theme] .ssepg-card.is-past:not(:hover):not(:focus){opacity:.67}
.ssepg[data-theme] .ssepg-list-item.is-past:not(:hover):not(:focus){opacity:.72}
.ssepg-progress{display:block;position:relative;width:100%;min-height:17px;margin-top:auto;background:var(--epg-bg);border-radius:4px;overflow:hidden}
.ssepg-progress-fill{position:absolute;inset:0 auto 0 0;background:var(--epg-highlight);opacity:.14}
.ssepg-progress-label{position:relative;display:block;font-size:10px;line-height:17px;padding:0 4px;color:var(--epg-text);white-space:nowrap}
.ssepg[data-theme] .ssepg-list-item .ssepg-progress{grid-column:2;max-width:240px}
.ssepg-card .ssepg-genre-badge{display:none}
.ssepg[data-density=comfortable]{--ssepg-row-height:124px!important;--ssepg-title-lines:3}
.ssepg[data-density=comfortable] .ssepg-card__title{-webkit-line-clamp:3!important;font-size:14px!important}
.ssepg[data-density=comfortable] .ssepg-card .ssepg-genre-badge{display:block}
.ssepg[data-theme][data-density=compact] .ssepg-card{gap:3px;padding:7px 9px}
.ssepg[data-theme][data-density=compact] .ssepg-card__title{-webkit-line-clamp:2}
.ssepg.has-overview .ssepg-body{display:none}
.ssepg-overview{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;margin:12px 0}
.ssepg-overview-channel{min-width:0;padding:14px;border:1px solid var(--epg-border);border-radius:14px;background:var(--epg-panel)}
.ssepg-overview-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.ssepg-overview-heading h3{font-size:16px;margin:0;color:var(--epg-text)}
.ssepg-summary-item{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;border:0;border-top:1px solid var(--epg-border);background:transparent;color:var(--epg-text);padding:12px 0;cursor:pointer;font:inherit}
.ssepg-summary-item strong{font-size:14px;line-height:1.5}
.ssepg-summary-label{font-size:11px;color:var(--epg-highlight)}
.ssepg-summary-time{font-size:12px;color:var(--epg-muted)}
.ssepg-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.ssepg-repeats{margin-top:12px;font-size:13px;color:var(--epg-muted)}
.ssepg-repeats p{margin:5px 0}
@media(max-width:960px){.ssepg[data-theme] .ssepg-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.ssepg[data-theme] .ssepg-tools label:nth-child(2){grid-column:auto}}
@media(max-width:640px){
.ssepg-quick-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ssepg-time-presets{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.ssepg[data-theme] .ssepg-time-presets button{padding:9px 5px;font-size:12px;min-height:44px;white-space:nowrap}
.ssepg-filters-toggle{display:block;grid-column:1/-1}
.ssepg[data-theme] .ssepg-quick-controls>button{font-size:13px;min-height:44px;padding:9px 6px}
.ssepg[data-theme] .ssepg-tools{display:none}
.ssepg[data-theme].filters-open .ssepg-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px}
.ssepg[data-theme] .ssepg-tools label:first-child{grid-column:auto}
.ssepg[data-theme] .ssepg-tools label:nth-child(2){grid-column:1/-1;grid-row:1}
.ssepg[data-theme] .ssepg-tools :is(input,select){font-size:16px}
.ssepg[data-theme] .ssepg-toolbar{padding:10px!important;gap:8px!important}
.ssepg[data-theme] .ssepg-toolbar__left{grid-template-columns:44px minmax(0,1fr) 44px}
.ssepg[data-theme] .ssepg-toolbar__left .ssepg-group{display:none}
.ssepg[data-theme].filters-open .ssepg-toolbar__left .ssepg-group{display:block}
.ssepg[data-theme] .ssepg-preferences{gap:8px;padding:10px}
.ssepg-density{justify-content:flex-start}
.ssepg[data-theme] .ssepg-density button{min-height:42px}
.ssepg[data-theme] .ssepg-channel-cell{position:sticky;gap:3px;padding:6px 3px}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-favorite{min-width:28px;min-height:28px;font-size:20px;margin:0;position:absolute;top:2px;right:2px;background:var(--epg-panel);border:0}
.ssepg-channel-number{align-self:flex-start}
.ssepg[data-theme] .ssepg-channel-cell img{width:30px;height:26px}
.ssepg-overview{grid-template-columns:minmax(0,1fr)}
.ssepg[data-theme] .ssepg-summary-item{padding:13px 0}
.ssepg[data-theme] .ssepg-favorite{min-height:44px;min-width:44px}
.ssepg[data-theme] .ssepg-modal-actions button{min-height:44px;font-size:13px}
}
@media(max-width:640px){
.ssepg[data-theme] .ssepg-toolbar__left,.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-channel-select,.ssepg[data-theme] .ssepg-preferences>.ssepg-time-form,.ssepg[data-theme]>.ssepg-density{display:none}
.ssepg[data-theme].filters-open .ssepg-toolbar__left{display:grid}
.ssepg[data-theme].filters-open .ssepg-toolbar__center>.ssepg-channel-select{display:block}
.ssepg[data-theme].filters-open .ssepg-preferences>.ssepg-time-form{display:grid}
.ssepg[data-theme].filters-open>.ssepg-density{display:flex}
.ssepg-quick-controls{grid-template-columns:repeat(3,minmax(0,1fr))}
.ssepg-filters-toggle{grid-column:auto}
.ssepg[data-theme] .ssepg-quick-controls>button{font-size:12px;padding:8px 4px}
.ssepg[data-theme] .ssepg-channel-cell{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px auto;align-content:center;gap:2px}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-channel-number{display:none}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-favorite{position:static;grid-column:2;grid-row:1;width:44px;height:44px;min-width:44px;min-height:44px}
.ssepg[data-theme] .ssepg-channel-cell img{grid-column:1;grid-row:1;width:28px;height:26px;justify-self:center}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-channel-name{grid-column:1/-1;grid-row:2}
}
.ssepg[data-density=compact]{--ssepg-row-height:104px!important}

/* Appearance now shares the row with the programme view switch. */
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-appearance{width:auto;flex:none;flex-wrap:nowrap;gap:6px}
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-appearance button{min-height:44px;white-space:nowrap}
@media(max-width:640px){
.ssepg[data-theme] .ssepg-toolbar__center{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important}
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-appearance{width:100%;min-width:0;gap:4px;display:flex}
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-appearance button{flex:1;min-width:0;font-size:12px;padding:8px 5px}
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-view-switch{min-width:0;width:100%;padding:3px;gap:2px}
.ssepg[data-theme] .ssepg-toolbar__center .ssepg-view{font-size:12px;padding-inline:5px;min-width:0}
.ssepg[data-theme] .ssepg-toolbar__center>.ssepg-channel-select{grid-column:1/-1}
}


/* Readable station column: logo above the complete channel name. */
.ssepg[data-theme]{--ssepg-channel-col:176px!important}
.ssepg[data-theme][data-density=compact]{--ssepg-row-height:132px!important}
.ssepg[data-theme][data-density=comfortable]{--ssepg-row-height:148px!important}
.ssepg[data-theme] .ssepg-channel-cell{position:sticky;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;gap:7px!important;padding:30px 10px 10px!important;text-align:center}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-channel-number{position:absolute;top:6px;left:8px;display:block;min-width:0;height:auto;font-size:10px;line-height:18px;padding:0 5px}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-favorite{position:absolute;top:3px;right:4px;margin:0;width:30px;height:30px;min-width:30px;min-height:30px;font-size:21px}
.ssepg[data-theme] .ssepg-channel-cell img{display:block;flex:none;width:88px;height:42px;max-width:100%;max-height:none;padding:5px;object-fit:contain;background:#fff;border-radius:7px}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-channel-name{display:block;flex:none;width:100%;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;-webkit-line-clamp:unset;line-clamp:unset;overflow-wrap:anywhere;font-size:13px;line-height:1.3}
@media(max-width:640px){
.ssepg[data-theme]{--ssepg-channel-col:120px!important}
.ssepg[data-theme][data-density=compact]{--ssepg-row-height:144px!important}
.ssepg[data-theme][data-density=comfortable]{--ssepg-row-height:156px!important}
.ssepg[data-theme] .ssepg-channel-cell{padding:32px 6px 8px!important;gap:6px!important}
.ssepg[data-theme] .ssepg-channel-cell img{width:78px;height:38px}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-channel-name{font-size:12px;line-height:1.3}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-favorite{top:0;right:1px;width:36px;height:32px;min-width:36px;min-height:32px}
}


/* Keep pale and transparent station marks readable on their own backdrop. */
.ssepg[data-theme] .ssepg-channel-cell .ssepg-logo-frame{display:flex;align-items:center;justify-content:center;flex:none;width:100px;height:46px;max-width:100%;padding:5px 7px;border-radius:8px;background:#64748b;border:1px solid #94a3b8;overflow:hidden}
.ssepg[data-theme] .ssepg-channel-cell .ssepg-logo-frame img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;padding:0;border:0;border-radius:0;background:transparent;object-fit:contain;filter:drop-shadow(0 0 .65px #fff) drop-shadow(0 0 .65px #0f172a)}
@media(max-width:640px){.ssepg[data-theme] .ssepg-channel-cell .ssepg-logo-frame{width:96px;height:42px;padding:4px 6px}}

/* 1.5: movie detail with CZDB attribution and optional ČSFD rating. */
.ssepg[data-theme] .ssepg-modal__card{width:min(820px,calc(100vw - 24px));border:1px solid var(--epg-border);border-radius:20px}
.ssepg[data-theme] .ssepg-modal__card.has-poster{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start}
.ssepg[data-theme] .ssepg-modal__media:empty{display:none}
.ssepg[data-theme] .ssepg-modal__media{padding:54px 0 24px 24px;min-width:0}
.ssepg[data-theme] .ssepg-modal__media img{border-radius:12px;width:100%;height:auto;max-height:340px;object-fit:contain;background:var(--epg-bg)}
.ssepg[data-theme] .ssepg-modal__content{padding:48px 26px 26px;min-width:0}
.ssepg[data-theme] .ssepg-modal__content h3{font-size:27px;line-height:1.2;letter-spacing:-.5px;padding-right:16px}
.ssepg-modal__original{font-size:12px;margin:5px 0 12px;color:var(--epg-muted)}
.ssepg[data-theme] .ssepg-modal__meta{gap:6px;font-size:12px;font-weight:400}
.ssepg[data-theme] .ssepg-modal__meta span{background:var(--epg-bg);color:var(--epg-muted);border-radius:7px;padding:4px 8px}
.ssepg-rating{display:flex;gap:14px;align-items:center;margin:18px 0}
.ssepg-rating__score{background:#c22649;color:#fff;min-width:90px;padding:12px;border-radius:12px;font-size:29px;line-height:1.1;font-weight:700;white-space:nowrap}
.ssepg-rating__score span{font-size:17px;font-weight:400}
.ssepg-rating strong{display:block;font-size:13px;color:var(--epg-text)}
.ssepg-rating small{display:block;font-size:11px;color:var(--epg-muted);margin-top:3px}
.ssepg-rating-unavailable{font-size:12px;color:var(--epg-muted);padding:10px 0}
.ssepg[data-theme] .ssepg-modal__desc{font-size:14px;line-height:1.75;white-space:pre-line}
.ssepg-modal__director{border-top:1px solid var(--epg-border);padding-top:16px;margin-top:20px;font-size:13px;color:var(--epg-text)}
.ssepg[data-theme] .ssepg-modal__cast{font-size:13px;line-height:1.7;margin-top:7px}
.ssepg-csfd-link{display:inline-flex;align-items:center;padding:10px 14px;min-height:42px;margin-top:18px;border-radius:10px;background:#c22649;color:#fff;text-decoration:none;font-size:13px;font-weight:600}
.ssepg-csfd-link:hover{background:#a31b3b;color:#fff}
.ssepg-modal__provider{margin-top:12px;font-size:11px;color:var(--epg-muted);line-height:1.6}
@media(max-width:640px){
.ssepg[data-theme] .ssepg-modal__card,.ssepg[data-theme] .ssepg-modal__card.has-poster{display:block;width:100%;border-radius:20px 20px 0 0;max-height:90dvh;bottom:0;margin:0}
.ssepg[data-theme] .ssepg-modal__media{float:left;width:110px;padding:24px 0 0 18px;margin-right:16px;margin-bottom:12px}
.ssepg[data-theme] .ssepg-modal__media img{width:92px;max-height:150px}
.ssepg[data-theme] .ssepg-modal__content{padding:26px 18px 20px}
.ssepg[data-theme] .ssepg-modal__content h3{font-size:23px;padding-right:38px}
.ssepg[data-theme] .ssepg-modal__meta{font-size:11px}
.ssepg[data-theme] .ssepg-modal__meta span{padding:3px 6px}
.ssepg-rating,.ssepg-rating-unavailable,.ssepg-modal__loading,.ssepg-modal__desc{clear:both}
.ssepg-rating{padding-top:8px}
.ssepg-csfd-link{min-height:44px}
}
