/* Header: symmetrical title area, separate wrapping navigation, theme control at right. */
.theme-thai .site-header .header-inner{display:grid;grid-template-columns:minmax(44px,1fr) minmax(0,10fr) minmax(44px,1fr);gap:16px 12px;align-items:center;padding:22px 4.5% 16px}
.theme-thai .site-header .brand{grid-column:2;grid-row:1;display:block;width:100%;margin:0;text-align:var(--brand-align,center);font-size:clamp(22px,5vw,var(--header-size,42px));line-height:1.15;color:var(--header-title-dark,#f5c46b);white-space:normal;overflow-wrap:anywhere}
.theme-thai .site-header .brand>span{display:block;color:inherit}
.theme-thai .site-header .brand small{display:block;margin-top:8px;font-size:var(--header-subtitle-size,16px);line-height:1.4;font-weight:400;letter-spacing:normal;color:var(--header-subtitle-dark,#c8bfd6);white-space:normal}
.theme-thai .site-header #site-nav{grid-row:2;grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;width:100%;margin:0;padding:0;gap:8px 18px}
.theme-thai .site-header .theme-toggle{grid-row:1;grid-column:3;justify-self:end;margin:0;order:initial}
html[data-theme=light] .theme-thai .site-header .brand{color:var(--header-title-light,#563080)}
html[data-theme=light] .theme-thai .site-header .brand small{color:var(--header-subtitle-light,#574b64)}
.theme-thai .stream-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.theme-thai .stream-grid .channel-card{box-sizing:border-box;flex:0 0 calc((100% - (var(--stream-columns,3) - 1)*20px)/var(--stream-columns,3));min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.theme-thai .channel-card .btn{margin-top:auto}.theme-thai .channel-card h3{overflow-wrap:anywhere}.platform-label{display:inline-flex;align-items:center;gap:9px}.platform-icon{width:24px;height:24px;fill:currentColor;flex-shrink:0}.platform-twitch{color:#a970ff}.platform-kick{color:#53d631}.platform-youtube{color:#ff4545}.platform-tiktok{color:var(--ink)}
.live-popup[hidden]{display:none!important}.live-popup{position:fixed;bottom:80px;right:24px;width:min(420px,calc(100vw - 32px));max-height:65vh;overflow:auto;z-index:150;background:var(--panel-bg,#211a30);color:var(--ink,#fff);border:2px solid var(--mint,#8de2c3);border-radius:18px;padding:24px;box-shadow:0 12px 50px #0005}.live-popup h2{font-size:24px;margin:0 32px 12px 0}.live-popup p{margin:12px 0}.live-popup a{color:var(--mint,#8de2c3);font-weight:650}.live-popup-close{position:absolute;right:10px;top:8px;background:transparent;border:0;color:inherit;font-size:30px;cursor:pointer;width:36px;height:36px}.live-popup a:focus-visible,.live-popup-close:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.reorder-list{list-style:none;padding:0;display:grid;gap:8px}.reorder-list li{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #7f779755;border-radius:10px;background:var(--panel-bg,#211a30)}.reorder-list li>span{flex:1;min-width:0;overflow-wrap:anywhere}.reorder-list button,.block-drag,.item-drag,.item-move{color:inherit;background:transparent;border:1px solid #9b91ac66;border-radius:6px;min-width:36px;min-height:36px;cursor:pointer}.drag-handle,.block-drag,.item-drag{cursor:grab!important}.dragging{opacity:.5}.reorder-list button:disabled{opacity:.3;cursor:default}.reorder-status{min-height:1.4em}.item-tools{display:flex;gap:8px;margin-bottom:12px}
@media(max-width:900px){.theme-thai .stream-grid .channel-card{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:580px){.theme-thai .stream-grid .channel-card{flex-basis:100%}.theme-thai .site-header .header-inner{grid-template-columns:36px minmax(0,1fr) 36px;gap:14px 6px;padding:18px 18px 12px}.theme-thai .site-header .brand small{font-size:min(var(--header-subtitle-size,16px),18px)}.theme-thai .site-header #site-nav{gap:8px 12px}.live-popup{right:16px;bottom:72px}}

.blocks-compact .block-body{display:none}.blocks-compact .editor-block{margin:12px 0}.block-header strong{flex:1;margin-left:12px}

/* Admin panels use a light palette independently of the public website theme. */
.admin-theme .reorder-list li{background:#f4f0fa;color:#251c38;border-color:#d4c9e5}
.admin-theme .reorder-list li small{color:#58466d}
.admin-theme .reorder-list button{background:#fff;color:#39234f;border-color:#b7a5cd;opacity:1}
.admin-theme .reorder-list button:hover:not(:disabled){background:#e6dcf4;border-color:#76509c}
.admin-theme .reorder-list button:disabled{color:#756582;background:#e9e3ef;border-color:#d5cbdf;opacity:1;cursor:default}
.admin-theme .reorder-list button:focus-visible{outline:3px solid #7033b0;outline-offset:3px}
.admin-back-to-top[hidden]{display:none!important}
.admin-theme .admin-back-to-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:grid;place-items:center;width:46px;height:46px;z-index:100;border:1px solid #b18bd4;border-radius:50%;background:#7033b0;color:#fff;box-shadow:0 4px 18px #251c3833;text-decoration:none}
.admin-back-to-top svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.admin-theme .admin-back-to-top:hover{background:#542285}.admin-back-to-top:focus-visible{outline:3px solid #b779ed;outline-offset:3px}
.admin-theme .release-history{bottom:80px}.admin-theme .admin-main{padding-bottom:100px}
