/* Channel-first home: equal program cards, immediate selection, no hero. */
.app-ui[data-page="home"]{--sidebar:88px;--broadcast-accent:#38bdf8}
.app-ui[data-page="home"] #main{max-width:1600px;padding:24px 32px 40px}
.app-ui[data-page="home"]>aside{padding:24px 8px}
.app-ui[data-page="home"] nav{gap:16px}
.app-ui[data-page="home"] nav a{display:flex;flex-direction:column;gap:7px;justify-content:center;padding:12px 2px;font-size:11px;line-height:1.4;text-align:center;border-radius:9px}
.app-ui[data-page="home"] nav a svg{width:24px;height:24px}
.app-ui[data-page="home"] nav a.active::before{left:-8px;top:14px;bottom:14px}
.app-ui[data-page="home"] nav small,.app-ui[data-page="home"] .sidebar-section,.app-ui[data-page="home"] .local-mark{display:none}
.app-ui[data-page="home"] .side-bottom{padding-top:16px}
.app-ui[data-page="home"] .side-bottom a{display:flex;flex-direction:column;padding:10px 2px;gap:7px;font-size:10px;text-align:center}
.broadcast-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
.broadcast-heading h1{font-size:28px;letter-spacing:-.6px;font-weight:800;margin:0 0 4px}
.broadcast-heading p{font-size:12px;color:var(--muted);margin:0}
.broadcast-heading .refresh-button{font-size:12px;height:36px;background:transparent}
.broadcast-heading .refresh-button svg{width:16px;height:16px}
.broadcast-tabs{display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);margin-bottom:22px;min-height:46px}
.broadcast-tabs>a,.broadcast-tabs>.selected{position:relative;display:flex;align-items:center;gap:7px;padding:12px 0;font-size:14px;font-weight:650;color:var(--muted);white-space:nowrap}
.broadcast-tabs>.selected{color:var(--text)}
.broadcast-tabs>.selected::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--broadcast-accent);border-radius:2px}
.broadcast-tabs>a:hover{color:var(--accent)}
.broadcast-tabs small{font-size:11px;color:var(--muted);background:var(--catalog-hover);border-radius:4px;padding:0 5px;font-weight:500}
.broadcast-tabs .broadcast-discover{margin-left:auto;font-size:12px;color:var(--accent)}
.broadcast-discover svg{width:16px;height:16px}
.station-filters{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:0 0 16px;margin-bottom:6px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.app-ui .station-filters button{flex:none;background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:7px 13px;max-width:200px;min-height:36px;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;transition:background .18s,color .18s,border-color .18s}
.app-ui .station-filters button[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--bg);font-weight:750}
.station-filters button>span{font-size:10px;margin-left:5px;opacity:.6}
.station-filters button:hover{border-color:var(--accent)}
.broadcast-result-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.broadcast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
.broadcast-card{display:block;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:9px;overflow:hidden;outline-offset:4px;animation:broadcast-in .32s var(--card-delay,0ms) ease-out both;transition:border-color .2s,box-shadow .25s,transform .25s}
.broadcast-station{display:flex;align-items:center;gap:9px;height:46px;padding:8px 12px}
.broadcast-station>img,.station-placeholder{width:26px;height:26px;border-radius:50%;flex:none;object-fit:cover;background:var(--catalog-hover)}
.station-placeholder{display:grid;place-items:center;color:var(--accent)}.station-placeholder svg{width:16px;height:16px}
.broadcast-station>span:not(.station-placeholder){font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.broadcast-station>small{flex:none;margin-left:auto;font-size:10px;color:var(--accent);font-weight:650}
.broadcast-picture{position:relative;aspect-ratio:16/9;overflow:hidden;background:#14161d}
.broadcast-picture>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1),filter .25s}
.broadcast-live{position:absolute;left:10px;bottom:10px;background:#f23852;color:#fff;font-size:10px;letter-spacing:.04em;line-height:1;font-weight:800;padding:5px 6px;border-radius:3px;box-shadow:0 2px 8px #0003}
.broadcast-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#0002;opacity:0;transition:opacity .2s}
.broadcast-play svg{display:block;width:48px;height:48px;padding:10px;background:#f5faff;color:#132637;border-radius:50%;box-shadow:0 3px 18px #0004;transform:scale(.88);transition:transform .25s}
.broadcast-caption{padding:14px 14px 12px;display:flex;flex-direction:column;min-height:105px;gap:12px}
.broadcast-caption h2{font-size:15px;font-weight:650;line-height:1.5;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:var(--text)}
.broadcast-watch{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:650;color:var(--muted);margin-top:auto;transition:color .2s}
.broadcast-watch svg{width:14px;height:14px}
.broadcast-card:focus-visible{outline:3px solid var(--accent)}
.broadcast-card:focus-visible .broadcast-play{opacity:1}
.broadcast-card:focus-visible .broadcast-play svg{transform:scale(1)}
.broadcast-card:active{transform:scale(.985)}
/* Registered stations remain a compact directory beneath the live board. */
.app-ui[data-page="home"] .follow-section{margin-top:36px;border-top:1px solid var(--line);padding-top:24px}
.app-ui[data-page="home"] .section-heading{margin-bottom:14px}.app-ui[data-page="home"] .section-heading h2{font-size:17px}
.app-ui[data-page="home"] .follow-strip{display:grid;grid-auto-flow:column;grid-auto-columns:200px;gap:10px;padding:0 0 12px;margin:0;scroll-snap-type:x proximity}
.app-ui[data-page="home"] .follow-item{display:flex;flex-direction:row;width:auto;gap:10px;border:1px solid var(--line);border-radius:7px;padding:12px;background:var(--panel);min-width:0;transition:background .18s,border-color .18s}
.app-ui[data-page="home"] .follow-avatar{width:38px;height:38px;flex:none;padding:1px;box-shadow:none;transform:none}
.app-ui[data-page="home"] .follow-avatar>span{font-size:7px;padding:1px 3px;bottom:-4px}
.app-ui[data-page="home"] .follow-item strong{font-size:12px;font-weight:600;text-align:left;line-height:1.5}
.app-ui[data-page="home"] .follow-item:hover{border-color:var(--accent);background:var(--catalog-hover)}
.app-ui[data-page="home"] .follow-add{border-style:dashed}.app-ui[data-page="home"] .follow-add .follow-avatar{background:transparent;border:0;color:var(--accent)}
.app-ui[data-page="home"] .empty{min-height:260px;border-radius:9px;box-shadow:none;background:var(--panel);padding:32px 24px;animation:broadcast-in .3s ease-out both}
.app-ui[data-page="home"] .empty h2{font-size:21px}.app-ui[data-page="home"] .empty-icon{width:48px;height:48px;border-radius:12px;margin-bottom:15px}
.app-ui[data-page="home"] .setup-banner{border-radius:8px;margin-bottom:22px}
.broadcast-loading>p{font-size:13px;color:var(--muted);margin:0 0 16px}
.broadcast-skeleton{padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);animation:broadcast-pulse 1.5s ease-in-out infinite}
.broadcast-skeleton i{display:block;aspect-ratio:16/9;background:var(--line);border-radius:4px;margin-bottom:14px}
.broadcast-skeleton>span{display:block;height:12px;border-radius:3px;background:var(--line);margin:8px 0;width:90%}.broadcast-skeleton>span:last-child{width:60%}
@media(hover:hover) and (pointer:fine){.broadcast-card:hover{border-color:#38bdf875;box-shadow:0 8px 24px #0002;transform:translateY(-3px)}.broadcast-card:hover .broadcast-picture>img{transform:scale(1.04)}.broadcast-card:hover .broadcast-play{opacity:1}.broadcast-card:hover .broadcast-play svg{transform:scale(1)}.broadcast-card:hover .broadcast-watch{color:var(--accent)}}
@media(min-width:1600px){.broadcast-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:761px) and (max-width:1100px){.broadcast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-ui[data-page="home"] #main{padding:24px}}
@media(max-width:760px){
 .app-ui[data-page="home"]{--sidebar:0px}.app-ui[data-page="home"] #main{padding:18px 16px 28px}
 .app-ui[data-page="home"]>aside{padding:5px 12px calc(5px + env(safe-area-inset-bottom))}.app-ui[data-page="home"] nav{gap:8px}.app-ui[data-page="home"] nav a{padding:4px 6px;gap:3px;font-size:12px}.app-ui[data-page="home"] nav a svg{width:22px;height:22px}.app-ui[data-page="home"] nav a.active::before{display:none}
 .broadcast-heading{margin-bottom:14px;gap:10px}.broadcast-heading h1{font-size:24px}.broadcast-heading p{font-size:11px}.broadcast-heading .refresh-button{width:36px;padding:0}.broadcast-heading .refresh-button>span{display:none}
 .broadcast-tabs{gap:22px;margin-bottom:16px;min-height:42px}.broadcast-tabs>a,.broadcast-tabs>.selected{font-size:13px;padding:10px 0}.broadcast-tabs .broadcast-discover{font-size:0;gap:0;padding:10px 4px}.broadcast-discover svg{width:20px;height:20px}
 .station-filters{margin-right:-16px;padding-right:16px;margin-bottom:2px;padding-bottom:12px}.app-ui .station-filters button{font-size:12px;min-height:36px;padding:7px 12px;max-width:180px}
 .broadcast-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.broadcast-station{height:40px;padding:7px 9px;gap:6px}.broadcast-station>img,.station-placeholder{width:23px;height:23px}.broadcast-station>span:not(.station-placeholder){font-size:11px}.broadcast-station>small{display:none}.broadcast-caption{padding:11px;gap:10px;min-height:110px}.broadcast-caption h2{font-size:14px}.broadcast-card{border-radius:7px}.broadcast-live{left:7px;bottom:7px;font-size:9px;padding:4px 5px}
 .app-ui[data-page="home"] .follow-section{margin-top:28px;padding-top:20px}.app-ui[data-page="home"] .follow-strip{grid-auto-columns:180px}.app-ui[data-page="home"] .follow-item{padding:10px}.app-ui[data-page="home"] .section-heading h2{font-size:16px}
}
@media(max-width:480px){.broadcast-grid{grid-template-columns:1fr;gap:18px}.broadcast-station{height:43px;padding:8px 12px}.broadcast-station>small{display:block}.broadcast-station>span:not(.station-placeholder){font-size:12px}.broadcast-caption{min-height:0;padding:13px 14px;gap:9px}.broadcast-caption h2{font-size:16px}.broadcast-live{left:10px;bottom:10px;font-size:10px}.broadcast-card{border-radius:8px}}
@keyframes broadcast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes broadcast-pulse{50%{opacity:.5}}
@media(prefers-reduced-motion:reduce){.broadcast-card,.broadcast-skeleton,.app-ui[data-page="home"] .empty{animation:none}.broadcast-card,.broadcast-picture>img,.broadcast-play,.broadcast-play svg{transition:none}.broadcast-card:hover{transform:none}}
