
/* =====================================================================
   V9.6.15 — Spacing, negative space & hierarchy polish
   Scope: top navigation, shared filter console, Home / Calendar / List View.
   CSS only. No markup, data, IDs or JavaScript behaviour changed.
   ===================================================================== */
:root{
  --ux-gold:#e4cf9e;
  --ux-gold-ink:#ead7b4;
  --ux-gold-line:rgba(228,207,158,.26);
  --ux-gold-wash:rgba(228,207,158,.07);
  --ux-hair:rgba(255,255,255,.09);
  --ux-panel:rgba(255,255,255,.022);
  --ux-radius-lg:20px;
  --ux-radius-md:14px;
  --ux-section-top:clamp(28px,3.4vw,48px);
  --ux-block-gap:clamp(18px,2.2vw,28px);
  --ux-zone-gap:clamp(28px,3.6vw,48px);
}

/* ---------- 1. TOP NAVIGATION ---------------------------------------- */
html header.nav{
  position:relative;
  gap:14px clamp(20px,3vw,40px);
  padding:16px var(--pad);
  border-bottom-color:rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,0) 70%);
}
html header.nav::after{
  content:'';position:absolute;left:0;right:0;bottom:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent 0,rgba(228,207,158,.38) 22%,rgba(155,128,255,.28) 62%,transparent 100%);
}
html header.nav .brand{line-height:1.25}
html header.nav .brand small{margin-top:4px;letter-spacing:.24em;opacity:.85}
html header.nav .navlinks{gap:4px;flex-wrap:nowrap;justify-content:flex-end;min-width:0}
html header.nav .navlinks .view-tab{
  padding:10px 16px;border-radius:12px;font-size:14.5px;line-height:1.3;
  transition:color .2s,background-color .2s;
}
html header.nav .navlinks .view-tab:hover{background:rgba(255,255,255,.045)}
html header.nav .navlinks .view-tab.active{background:rgba(228,207,158,.075);color:#f6e9cd}
html header.nav .navlinks .view-tab::after{left:16px;right:16px;bottom:3px}
html header.nav .navlinks .button.primary{
  margin-left:clamp(10px,1.6vw,22px);padding:10px 18px;min-height:44px;border-radius:13px;
  box-shadow:0 10px 26px -12px rgba(214,58,155,.65),inset 0 1px rgba(255,255,255,.18);
  transition:transform .2s,box-shadow .2s;
}
html header.nav .navlinks .button.primary:hover{transform:translateY(-1px);box-shadow:0 14px 30px -12px rgba(214,58,155,.75),inset 0 1px rgba(255,255,255,.22)}

@media(max-width:1100px){
  html header.nav .navlinks .view-tab{padding:10px 11px;font-size:14px}
  html header.nav .navlinks .view-tab::after{left:11px;right:11px}
}

/* Tablet + phone: brand row on top, tabs as a segmented track below */
@media(max-width:1000px){
  html header.nav{flex-wrap:wrap;padding:14px var(--pad) 14px;gap:12px}
  html header.nav .navlinks{
    order:3;width:100%;gap:2px;justify-content:space-between;
    padding:4px;border:1px solid var(--ux-hair);border-radius:15px;background:rgba(255,255,255,.03);
    overflow-x:auto;scrollbar-width:none;
  }
  html header.nav .navlinks::-webkit-scrollbar{display:none}
  html header.nav .navlinks .view-tab{flex:1 1 auto;text-align:center;padding:10px 8px;border-radius:11px;min-height:42px}
  html header.nav .navlinks .view-tab::after{display:none}
  html header.nav .navlinks .view-tab.active{
    background:linear-gradient(135deg,rgba(228,207,158,.17),rgba(155,128,255,.13));
    box-shadow:inset 0 0 0 1px rgba(228,207,158,.3);
  }
  html header.nav .navlinks .button.primary{
    position:absolute;top:14px;right:var(--pad);margin:0;padding:8px 16px;min-height:42px;
  }
}
@media(max-width:639px){
  html header.nav{padding:13px var(--pad) 14px}
  html header.nav .navlinks .view-tab{font-size:13.5px;padding:10px 4px}
  html header.nav .navlinks .button.primary{top:12px;padding:8px 14px}
}

@media(max-width:359px){
  html header.nav .navlinks .view-tab{font-size:12.5px;padding:10px 2px}
}

/* ---------- 2. SHARED FILTER CONSOLE + NOTICE ------------------------- */
html .toolbar{
  gap:12px 20px;
  padding:16px var(--pad) 14px;
  border-top:1px solid rgba(228,207,158,.1);
  border-bottom:1px solid rgba(228,207,158,.2);
  box-shadow:0 10px 32px -10px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.035);
}
html .toolbar .filterline{gap:12px}
@media(min-width:640px) and (max-width:1100px){
  html .toolbar .filterline{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) auto}
}
html .toolbar .quick-filters{gap:8px}
html .toolbar .months{padding-top:0}
html .toolbar .months button{min-height:32px}
@media(max-width:639px){
  html .toolbar{gap:10px;padding:12px var(--pad) 12px}
  html .toolbar .filterline{gap:8px}
}

html #configNotice{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;
  margin:clamp(16px,2vw,24px) var(--pad) 0;padding:12px 18px;
  border-radius:var(--ux-radius-md);line-height:1.6;
  border-color:rgba(219,170,79,.32);
  background:linear-gradient(110deg,rgba(174,124,26,.11),rgba(174,124,26,.04));
}
html #configNotice.hidden{display:none!important}
html #configNotice .button{margin-left:auto;padding:6px 14px;min-height:34px;font-size:13px;border-radius:10px}
html #loadingState{margin:var(--ux-block-gap) var(--pad) 0}
@media(max-width:639px){html #configNotice .button{margin-left:0}}

/* ---------- 3. SECTION RHYTHM (Home · Calendar · List View) ----------- */
html body:not(.banner-mode):not(.cmdu-packages-mode) :is(#schedule,#programs,#listView){
  padding-top:var(--ux-section-top);
  padding-bottom:clamp(10px,1.4vw,18px);
}
html :is(#schedule,#programs,#listView) .sectionhead{
  position:relative;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:14px 24px;margin:0 0 var(--ux-block-gap);padding-bottom:clamp(16px,2vw,22px);
}
html :is(#schedule,#programs,#listView) .sectionhead::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(228,207,158,.4),rgba(155,128,255,.2) 40%,rgba(255,255,255,0) 92%);
}
html :is(#schedule,#programs,#listView) .sectionhead>div:first-child{
  display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1 1 300px;
}
html :is(#schedule,#programs,#listView) .sectionhead .eyebrow{
  margin:0 0 8px;line-height:1.4;letter-spacing:.2em;color:var(--ux-gold-ink);opacity:.9;
}
html :is(#schedule,#programs,#listView) .sectionhead h2{
  margin:0 0 8px;font-size:clamp(26px,2.5vw,34px);line-height:1.28;font-weight:700;letter-spacing:-.02em;
}
html :is(#schedule,#programs,#listView) .sectionhead p{
  margin:0;font-size:13.5px;line-height:1.65;color:#aab5ca;
}

/* Home: month line + "ดูปฏิทิน" sit together under the title; Export aligns to the rule */
html #programs .sectionhead>div:first-child{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:14px}
html #programs .sectionhead .eyebrow,
html #programs .sectionhead h2{flex:0 0 100%}
html #programs .sectionhead p{order:2}
html #programs .sectionhead .calendar-home-link{
  order:3;margin:0;padding:5px 14px;min-height:34px;font-size:12.5px;font-weight:500;border-radius:999px;
  color:var(--ux-gold-ink);background:var(--ux-gold-wash);border-color:var(--ux-gold-line);
  transition:background-color .2s,border-color .2s;
}
html #programs .sectionhead .calendar-home-link:hover{background:rgba(228,207,158,.13);border-color:rgba(228,207,158,.45)}
html #programs .sectionhead>.button{margin:0 0 2px;min-height:42px}

/* Calendar: month label becomes a quiet chip instead of floating text */
html #schedule #calendarLabel{
  align-self:flex-end;margin:0 0 4px;padding:6px 16px;border:1px solid var(--ux-gold-line);border-radius:999px;
  background:var(--ux-gold-wash);color:var(--ux-gold-ink);font:600 13px/1.4 'Plus Jakarta Sans','Noto Sans Thai',sans-serif;
  letter-spacing:.05em;white-space:nowrap;
}
html #schedule #calendarLabel:empty{display:none}

/* ---------- 4. CALENDAR ------------------------------------------------ */
html #schedule .calendar-controls{gap:12px 14px;margin:0 0 clamp(16px,2vw,22px)}
html #schedule .calendar-switch{
  padding:4px;border-radius:14px;border-color:rgba(255,255,255,.1);background:rgba(255,255,255,.03);
}
html #schedule .calendar-switch button{
  min-height:42px;padding:8px 20px;border-radius:10px;transition:background-color .2s,color .2s;
}
html #schedule .calendar-switch button:not([aria-pressed="true"]):hover{background:rgba(255,255,255,.05);color:#e4e9f4}
html #schedule .calendar-switch button[aria-pressed="true"]{
  background:linear-gradient(135deg,#f3e8cb,#e6d6f8);color:#2d2140;
  box-shadow:0 6px 16px -8px rgba(228,207,158,.55);
}
html #schedule #calendarScopeNote{
  display:flex;align-items:flex-start;gap:9px;flex-basis:100%;margin:0;font-size:12.5px;line-height:1.6;color:#98a4ba;
}
html #schedule #calendarScopeNote:empty{display:none}
html #schedule #calendarScopeNote::before{
  content:'';flex:none;width:6px;height:6px;margin-top:.62em;border-radius:50%;background:var(--ux-gold);box-shadow:0 0 8px rgba(228,207,158,.5);
}

html #schedule .calendar{
  border-radius:var(--ux-radius-lg);
  background:linear-gradient(180deg,#121b2b,#0f1623);
  box-shadow:0 22px 56px -28px rgba(0,0,0,.8),inset 0 1px rgba(255,255,255,.04);
}
html #schedule .calendar .weekday{
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015));color:#b3bfd3;letter-spacing:.04em;
}
@media(min-width:640px){
  html #schedule .calendar .weekday{padding:15px 4px;font-size:12px}
  html #schedule .calendar .day{padding:12px}
}
html #schedule .calendar .day:not(.blank){transition:background-color .2s}
html #schedule .calendar .day:not(.blank):not(.is-today):hover{background:rgba(255,255,255,.028)}

/* Day highlights = secondary level, clearly separated from the grid */
html #schedule .agenda.calendar-day-list{
  margin-top:var(--ux-zone-gap);padding:clamp(16px,2.2vw,26px);
  border:1px solid rgba(255,255,255,.07);border-radius:var(--ux-radius-lg);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.012));
}
html #schedule .mini-highlights-head{align-items:center;gap:10px 14px;margin:0 0 clamp(14px,1.8vw,20px)}
html #schedule .mini-highlights-head h3{font-size:clamp(19px,1.8vw,22px);line-height:1.35;font-weight:650;letter-spacing:-.01em}
html #schedule .mini-highlights-head>span{
  padding:3px 12px;border:1px solid var(--ux-gold-line);border-radius:999px;background:var(--ux-gold-wash);
  color:var(--ux-gold-ink);font-size:12.5px;line-height:1.55;
}
html #schedule .calendar-day-list .day-events{gap:clamp(10px,1.2vw,16px)}
html #schedule .mini-highlight{
  border-radius:var(--ux-radius-md);border-color:rgba(255,255,255,.09);
  transition:border-color .2s,transform .2s,box-shadow .2s;
}
html #schedule .mini-highlight:hover{
  border-color:rgba(228,207,158,.4);box-shadow:0 14px 28px -16px rgba(0,0,0,.7),0 0 22px -14px rgba(228,207,158,.5);
}
html #schedule .mini-highlight-copy{gap:6px;padding:12px 14px 14px}
html #schedule .day-events>p{margin:2px 0 4px;color:#98a4ba}

/* Unscheduled (TBA) = tertiary level */
html #schedule #tba{margin-top:var(--ux-block-gap)}
html #schedule .tba-panel{border-radius:var(--ux-radius-md);border-color:rgba(255,255,255,.08);background:var(--ux-panel)}
html #schedule .tba-panel summary{display:flex;align-items:center;min-height:48px;padding:12px 18px}

@media(max-width:639px){
  html #schedule .agenda.calendar-day-list{padding:14px;border-radius:16px}
  html #schedule .mini-highlight-copy{padding:10px 11px 12px}
  html #schedule .calendar{border-radius:16px}
}

/* ---------- 5. HOME ---------------------------------------------------- */
html .hero::before{
  content:'';position:absolute;left:0;right:0;bottom:0;height:1px;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(228,207,158,.42) 30%,rgba(155,128,255,.3) 70%,transparent);
}
html .hero .hero-actions{margin-top:clamp(22px,3vh,32px);gap:12px 14px}
html .hero .hero-actions .button{min-height:46px}
html #programGrid{gap:clamp(14px,1.5vw,22px)}
html #pagination{padding-top:clamp(26px,3vw,38px)}

/* ---------- 6. LIST VIEW ----------------------------------------------- */
html #listView .list-scroll{
  border-radius:var(--ux-radius-lg);border-color:rgba(255,255,255,.1);background:#0f1623;
  box-shadow:0 22px 56px -28px rgba(0,0,0,.8),inset 0 1px rgba(255,255,255,.04);
  scrollbar-width:thin;scrollbar-color:rgba(155,128,255,.45) transparent;
}
html #listView .list-scroll::-webkit-scrollbar{height:10px}
html #listView .list-scroll::-webkit-scrollbar-thumb{background:rgba(155,128,255,.4);border-radius:999px;border:2px solid #0f1623}
html #listView .list-scroll::-webkit-scrollbar-track{background:transparent}
html #listView .program-list th{
  padding:16px 12px;font-size:12.5px;font-weight:600;letter-spacing:.02em;color:#d3dbea;
  background:linear-gradient(180deg,#273048,#1e2638);border-bottom:1px solid rgba(228,207,158,.22);
}
html #listView .program-list th:nth-child(1),
html #listView .program-list th:nth-child(6){padding-left:4px;padding-right:4px;font-size:12px}
html #listView .program-list td{padding:14px 12px}
html #listView .program-list tbody tr{height:96px;transition:background-color .18s}
html #listView .program-list tbody tr:nth-child(even){background:rgba(255,255,255,.016)}
html #listView .program-list tbody tr:hover{background:rgba(155,128,255,.075)}
html #listView .program-list tbody tr:last-child td{border-bottom:0}

/* ---------- 7. SMALL SCREENS ------------------------------------------- */
@media(max-width:639px){
  html body:not(.banner-mode):not(.cmdu-packages-mode) :is(#schedule,#programs,#listView){padding-top:26px}
  html :is(#schedule,#programs,#listView) .sectionhead{gap:12px 16px;margin-bottom:18px;padding-bottom:16px}
  html :is(#schedule,#programs,#listView) .sectionhead h2{font-size:26px}
  html #programs .sectionhead>.button{margin-top:4px}
  html #listView .list-scroll{border-radius:16px}
}
@media(pointer:coarse){
  html #programs .sectionhead .calendar-home-link{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  html header.nav *,html #schedule *,html #programs *,html #listView *{transition:none!important}
}

/* =====================================================================
   V9.6.16 — Detail popup (#programPopover)
   Image-first: the frame hugs the image and the image always covers it,
   so there is never empty space inside the frame.
   ===================================================================== */
html #programPopover>div{
  background:linear-gradient(180deg,#131c30,#0f1727);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 40px 100px -30px rgba(0,0,0,.85),0 0 0 1px rgba(228,207,158,.06);
}
/* top bar */
html #programPopover>div>div:first-child{
  padding:14px clamp(18px,2.4vw,28px);
  border-bottom:1px solid rgba(228,207,158,.14);
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01));
}
html #programPopover [aria-label="ปิดรายละเอียดรายการ"]{
  width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);
  transition:background-color .2s,border-color .2s,color .2s;
}
html #programPopover [aria-label="ปิดรายละเอียดรายการ"]:hover{background:rgba(228,207,158,.12);border-color:var(--ux-gold-line);color:#fff}

/* scroll area rhythm: one gap value between the three zones */
html #programPopover .overflow-y-auto{
  display:flex;flex-direction:column;gap:clamp(24px,3vw,36px);
  padding:clamp(18px,2.6vw,32px);
}
html #programPopover .overflow-y-auto>*{margin:0!important}

/* overview layout: media | details */
html #programPopover .modal-overview{
  display:grid;grid-template-columns:1fr;gap:clamp(20px,2.4vw,32px);align-items:start;
}
@media(min-width:760px){
  html #programPopover .modal-overview{grid-template-columns:clamp(300px,38%,520px) minmax(0,1fr)}
  html #programPopover .modal-media-column{position:sticky;top:0;align-self:start}
}

/* ---- image: fills the frame, frame hugs the image ---- */
html #programPopover #modalMediaFrame{
  position:relative;overflow:hidden;border-radius:20px;
  min-height:0;aspect-ratio:auto!important;line-height:0;
  border:0;background:#0b1220;
  box-shadow:0 24px 48px -26px rgba(0,0,0,.85);
}
html #programPopover #modalMediaFrame.has-video{aspect-ratio:16/9!important}
html #programPopover #modalPoster{
  display:block;width:100%;height:auto;
  max-height:min(74dvh,640px);
  object-fit:cover;object-position:center 28%;
}
html #programPopover #modalPoster[hidden]{display:none}
html #programPopover #modalMediaFrame::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(228,207,158,.22),inset 0 -70px 60px -56px rgba(8,13,24,.6);
}
/* video fills the frame completely */
html #programPopover #modalVideo{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
/* no image available: designed placeholder, not an empty box */
html #programPopover #modalMediaFrame:not(.has-video):has(#modalPoster[hidden]){
  aspect-ratio:16/9!important;
  background:radial-gradient(ellipse at 70% 30%,rgba(155,128,255,.28),transparent 60%),linear-gradient(145deg,#1d2640,#0e1626);
}
@media(max-width:759px){
  html #programPopover #modalPoster{max-height:min(52dvh,440px)}
}

/* actions under the image */
html #programPopover #modalDownloadWrapper{margin-top:14px}
html #programPopover #modalDownloadLink{
  min-height:48px;border-radius:14px;font-size:14px;font-weight:600;
  background:linear-gradient(105deg,#6d3ae0,#c43b98);
  box-shadow:0 14px 30px -14px rgba(196,59,152,.7),inset 0 1px rgba(255,255,255,.2);
  transition:transform .2s,box-shadow .2s;
}
html #programPopover #modalDownloadLink:not([aria-disabled="true"]):hover{transform:translateY(-1px);box-shadow:0 18px 34px -14px rgba(196,59,152,.8),inset 0 1px rgba(255,255,255,.25)}
html #programPopover #modalYoutubeLink{min-height:48px;margin-top:14px!important;border-radius:14px}

/* ---- details column ---- */
html #programPopover .modal-details{display:flex;flex-direction:column;gap:clamp(18px,2vw,24px)}
html #programPopover .modal-details>*{margin:0!important}
html #programPopover #modalTitleEN{font-size:clamp(25px,2.7vw,36px);line-height:1.22;letter-spacing:-.02em}
html #programPopover #modalTitleTH{margin-top:10px!important;font-size:clamp(16px,1.5vw,18px);line-height:1.6;color:#b9c4ff}

html #programPopover #modalHookBox{
  padding:18px 22px;border-radius:18px;border-left:3px solid var(--ux-gold);
  background:linear-gradient(100deg,rgba(99,102,241,.2),rgba(255,255,255,.025) 70%);
}
html #programPopover #modalHookBox>div:first-child{margin-bottom:8px;color:var(--ux-gold-ink);letter-spacing:.14em}
html #programPopover #modalHookText{font-size:15.5px;line-height:1.85}

/* info cards: schedule + channel lead, the rest support */
html #programPopover .modal-details .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:0}
html #programPopover .modal-details .grid>div{
  padding:14px 16px;border-radius:14px;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);
}
html #programPopover .modal-details .grid>div>div:first-child{font-size:12px;margin-bottom:4px;color:#9ba8bf}
html #programPopover .modal-details .grid>div>div:last-child{margin-top:0!important;font-size:15.5px;line-height:1.55;overflow-wrap:anywhere}
html #programPopover .modal-details .grid>div:has(#modalAirSchedule),
html #programPopover .modal-details .grid>div:has(#modalChannel){
  order:-1;padding:16px 18px;
  background:linear-gradient(145deg,rgba(228,207,158,.1),rgba(228,207,158,.03));
  border-color:var(--ux-gold-line);
}
html #programPopover .modal-details .grid>div:has(#modalAirSchedule)>div:last-child,
html #programPopover .modal-details .grid>div:has(#modalChannel)>div:last-child{font-size:17.5px;font-weight:700}
html #programPopover .modal-details .grid>div:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:420px){
  html #programPopover .modal-details .grid{grid-template-columns:1fr}
}

/* ---- insight cards ---- */
html #programPopover .overflow-y-auto>.grid{
  position:relative;padding-top:clamp(24px,3vw,32px);gap:clamp(12px,1.6vw,18px);border-top:0;
}
html #programPopover .overflow-y-auto>.grid::before{
  content:'';position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,rgba(228,207,158,.4),rgba(155,128,255,.2) 45%,transparent 95%);
}
html #programPopover .overflow-y-auto>.grid>div{
  --acc:#a5b4fc;
  padding:clamp(18px,2vw,24px);border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 2px 0 color-mix(in srgb,var(--acc) 55%,transparent);
}
html #programPopover .overflow-y-auto>.grid>div:has(h4.text-amber-400){--acc:#fbbf24}
html #programPopover .overflow-y-auto>.grid>div:has(h4.text-sky-400){--acc:#38bdf8}
html #programPopover .overflow-y-auto>.grid>div:has(h4.text-rose-400){--acc:#fb7185}
html #programPopover .overflow-y-auto>.grid>div:has(h4.text-emerald-400){--acc:#34d399}
html #programPopover .overflow-y-auto>.grid h4{
  margin:0 0 14px;padding-bottom:12px;gap:10px;letter-spacing:.05em;line-height:1.5;
  border-bottom:1px solid rgba(255,255,255,.07);
}
html #programPopover .readable-content ul{list-style:none;padding:0;margin:0 0 .85em}
html #programPopover .readable-content li{position:relative;margin:.55em 0;padding-inline-start:20px}
html #programPopover .readable-content li::before{
  content:'';position:absolute;left:2px;top:.78em;width:7px;height:7px;border-radius:50%;
  background:var(--acc,#a5b4fc);box-shadow:0 0 10px color-mix(in srgb,var(--acc,#a5b4fc) 60%,transparent);
}
html #programPopover #modalBrands{gap:8px;margin-top:0}
html #programPopover #modalBrands>span{padding:6px 14px;border-radius:999px;line-height:1.6}

/* footer meta */
html #programPopover .overflow-y-auto>div:last-child{padding-top:18px;border-top:1px solid rgba(255,255,255,.07);gap:8px 20px}

@media(max-width:759px){
  html #programPopover>div{border-radius:20px}
}
html #programPopover [aria-label="ปิดรายละเอียดรายการ"]:focus-visible{outline-offset:2px;outline-width:2px}
