/* Public layout: shared rhythm, navigation and media controls across both shells. */
body:has(.public-header){--public-width:1280px;--public-gap:24px;--public-player-space:104px}
.skip-public{position:absolute;left:16px;top:8px;z-index:30;transform:translateY(-200%);padding:12px 18px;background:var(--brand,var(--accent,#dc82ff));color:var(--bg,#080b20);border-radius:8px;font-weight:900}
.skip-public:focus{transform:none}
.public-header{font-family:'Nunito Sans',Arial,sans-serif}
.header.public-header,.portal-header.public-header{width:100%;max-width:var(--public-width);height:96px;min-height:96px;margin:auto;padding:8px 24px;display:flex;align-items:center;flex-wrap:nowrap;gap:24px;position:relative;z-index:15}
.public-header>a:first-child,.public-header .brand{flex:none}
.public-header .brand-logo,.portal-header.public-header>a:first-child img{width:164px;height:80px;object-fit:contain}
.public-header .brand{width:164px;height:auto;margin:0;padding:0;justify-content:flex-start}
.public-header nav.public-nav{display:flex;align-items:center;justify-content:center;flex:1;gap:4px;flex-wrap:nowrap;min-width:0;font-size:13px}
.public-header .public-nav>a,.public-more>summary{min-height:44px;padding:12px 10px;font-size:13px;line-height:20px;font-weight:800;white-space:nowrap;color:var(--muted,#c1bddb);border-radius:9px;text-decoration:none}
.public-header .public-nav a:hover,.public-header .public-nav a.active,.public-more.has-active>summary{color:var(--brand,var(--accent,#dc82ff));background:var(--raised,#211937)}
.public-header .public-nav a.active{box-shadow:inset 0 -2px var(--brand,var(--accent,#dc82ff))}
.public-more{position:relative;flex:none}
@media(min-width:1101px) and (max-width:1260px){.public-header .public-nav>a,.public-more>summary{padding:12px 7px}}
.public-more>summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none}
.public-more>summary::-webkit-details-marker{display:none}
.public-more[open]>summary{background:var(--raised,#211937)}
.public-more>div{position:absolute;right:0;top:calc(100% + 8px);width:240px;padding:8px;background:var(--surface,#14152e);border:1px solid var(--stroke,var(--border,#493961));border-radius:14px;box-shadow:0 12px 40px #0006;display:grid;gap:2px;z-index:16}
.public-more>div a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-radius:8px;font-size:13px;font-weight:700}
.public-header .account{gap:10px;flex:none;margin-left:0}
.public-header .avatar-login{display:none}
.public-header .login-button,.public-header #member-link{min-height:44px;max-width:180px;padding:10px 16px;border-radius:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:900}
.public-menu-toggle{display:none;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid var(--stroke,var(--border,#493961));background:var(--surface,#14152e);color:inherit;font:inherit;font-size:13px;font-weight:800;padding:9px 12px;border-radius:10px;cursor:pointer}
.public-header :focus-visible,.home-community-grid :focus-visible,.account-sections :focus-visible{outline:3px solid var(--brand,var(--accent,#dc82ff));outline-offset:3px}

/* Home: listen first, then participation, today's schedule and news. */
.page-shell{max-width:none}
.page-shell>main{max-width:var(--public-width);margin:auto;padding:0 24px var(--public-player-space)}
.page-shell .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:24px;min-height:0;margin:24px 0 32px;overflow:clip}
.page-shell .hero .copy{width:100%;max-width:none;min-width:0;padding:0;align-self:center}
.page-shell .hero h1{font-size:clamp(34px,3.25vw,46px);line-height:1.09;letter-spacing:-1.8px;margin:16px 0}
.page-shell .hero .tagline{font-size:16px;line-height:1.6;margin:0 0 20px}
.page-shell .hero .live-pill{font-size:10px;padding:6px 12px}
.page-shell .room-stage{position:relative;top:auto;right:auto;width:100%;margin:0;align-self:center}
.page-shell .room-stage::after{display:none}
.page-shell .scene-background{mask-image:url('/assets/studio-silhouette.svg');mask-size:100% 100%;mask-repeat:no-repeat;mask-mode:alpha}
.page-shell .room-badge{top:14px;right:12px;bottom:auto;font-size:10px;padding:9px 12px;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.page-shell .radio-panel{padding:18px;border-radius:16px}
.page-shell .player-core{grid-template-columns:100px minmax(0,1fr);gap:16px}
.page-shell .host-portrait{height:142px;width:100%}
.page-shell .host-info h2{font-size:26px;line-height:1.2;overflow-wrap:anywhere}
.page-shell .show-name{font-size:14px;line-height:1.4}
.page-shell .audio-controls{gap:12px;margin-top:12px}
.page-shell .audio-controls .play-button{width:54px;height:54px;flex:none}
.page-shell .player-actions{gap:8px;margin-top:16px}
.page-shell .player-actions>button{min-height:44px;font-size:12px;padding:10px 12px}
.page-shell .recado-line{font-size:11px;margin:12px 0 0;line-height:1.6}
.page-shell .channel-discovery-card{padding:16px;margin:0 0 14px}
.page-shell .channel-discovery-card [data-channel-discovery]{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:6px 12px}
.page-shell .channel-discovery-card h3{font-size:19px;line-height:1.3;margin:0;grid-column:1}
.page-shell .channel-discovery-card [data-channel-discovery]>p{font-size:12px;margin:0 0 4px;grid-column:1}
.page-shell .channel-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));grid-column:1/-1;gap:6px;margin:0}
.page-shell .channel-shortcuts button{min-height:44px;padding:6px;font-size:10px;gap:5px;justify-content:center}
.page-shell .channel-shortcuts img{width:22px;height:22px}
.page-shell .channel-explore{grid-column:2;grid-row:1/3;min-height:44px;align-self:center;font-size:12px;padding:10px;gap:5px;flex-direction:row;white-space:nowrap}
.page-shell .channel-explore>svg,.page-shell .channel-explore>span:last-child{margin:0}
.home-community-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 36px}
.home-community-card,.home-community-grid .passport-invite{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:9px;margin:0;padding:22px;border:1px solid var(--stroke,var(--border,#493961));border-radius:16px;background:var(--surface,var(--panel,#14152e));transition:border-color .18s}
.home-community-card:hover,.home-community-grid .passport-invite:hover{border-color:var(--brand,var(--accent,#dc82ff))}
.home-card-label{font-size:9px;letter-spacing:1.2px;color:var(--muted,#c1bddb);font-weight:900}
.home-community-card strong,.home-community-grid .passport-invite strong{font-size:21px;line-height:1.25;letter-spacing:-.5px}
.home-community-card p,.home-community-grid .passport-invite p{font-size:13px;line-height:1.6;color:var(--muted,#c1bddb);margin:0}
.home-community-grid .passport-invite>div{display:grid;gap:9px}
.home-card-link,.home-community-grid .passport-invite>a{font-size:12px;font-weight:900;color:var(--brand,var(--accent,#dc82ff));margin-top:auto;padding-top:7px;min-height:36px}
.page-shell .schedule-section{padding:0;margin:0 0 36px}
.page-shell .section-heading{gap:16px;margin:0 0 18px;align-items:center}
.page-shell .section-heading h2,.page-shell .portal-home h2{font-size:26px;line-height:1.25;letter-spacing:-.6px;margin:0}
.page-shell .section-heading .hosts-link{font-size:12px;min-height:44px;display:flex;align-items:center;text-align:right;flex:none}
.page-shell .schedule{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.page-shell .program-card{min-height:156px}
.page-shell .portal-home{margin:36px 0}
.page-shell #home-news{gap:16px}
.page-shell #home-news:has(>.portal-card:only-child){grid-template-columns:minmax(0,1fr)}
.page-shell #home-news>.portal-card:only-child{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1fr)}
.page-shell #home-news>.portal-card:only-child .portal-cover{height:100%;min-height:210px;max-height:280px}
.page-shell .radio-about{padding:24px;border:1px solid var(--stroke,var(--border,#493961));border-radius:16px;background:var(--surface,var(--panel,#14152e))}
.page-shell .radio-about p{font-size:14px;line-height:1.7;max-width:940px;color:var(--muted,#c1bddb)}
.page-shell .construction-banner{margin:16px 0 0;padding:12px 18px 16px;gap:16px}
.page-shell .construction-banner-mark{width:46px;height:48px}
.page-shell .construction-banner-mark svg{width:46px;height:46px}
.page-shell .construction-banner-mark span{left:16px;font-size:8px}
.page-shell .construction-banner-copy p{font-size:22px}
.page-shell .construction-banner-tools{max-width:none}
.page-shell .construction-hub{gap:16px;margin:36px 0 0}
.page-shell .construction-welcome,.page-shell .construction-workbench{padding:24px}
.page-shell .construction-welcome h2{font-size:27px;line-height:1.2}
.page-shell .construction-welcome p{font-size:13px;line-height:1.7}
.page-shell .construction-jobs{gap:8px;margin:16px 0}
.page-shell .construction-circuit{margin:16px 0;height:48px}
.page-shell .construction-notice{margin:10px 0}
.page-shell .construction-feedback{margin-top:10px}

/* Internal pages share a compact heading and predictable content width. */
.portal-body .portal-main{max-width:var(--public-width);padding:0 24px;margin:28px auto 40px;min-height:50vh}
.portal-body .portal-hero{padding:26px 28px;border-radius:16px;gap:24px;margin-bottom:24px;min-height:150px}
.portal-body .portal-hero h1{font-size:clamp(29px,3.2vw,40px);line-height:1.17;letter-spacing:-1px;margin:8px 0 10px}
.portal-body .portal-hero p{font-size:14px;line-height:1.7;margin:0;max-width:680px}
.portal-body .team-header-avatars{max-width:210px;gap:4px}
.portal-body .team-header-avatars figure{width:62px}
.portal-body .team-header-avatars img{height:94px;width:56px}
.portal-body .portal-grid{gap:20px}
.portal-body .portal-card-body{padding:20px}
.portal-body .toolbar{gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:22px}
.portal-body .toolbar input,.portal-body .toolbar select{min-height:44px;min-width:0}
.portal-body .button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.portal-body .search,.portal-body .field input,.portal-body .field textarea,.portal-body .field select{font-size:16px;min-height:44px}
.portal-body .page-heading{flex-wrap:wrap;gap:16px}
.portal-body .columns{gap:20px;align-items:start}
.portal-body .columns>section{min-width:0}
.portal-body .portal-login{margin:40px auto;max-width:500px;padding:28px}
.portal-body .portal-login h1{font-size:32px;line-height:1.2;letter-spacing:-.7px}
.portal-body .portal-login .toolbar{justify-content:space-between;margin-bottom:0}
.portal-body .portal-article{max-width:840px}
.portal-body .portal-article.prose{max-width:860px;margin:32px auto}
.portal-body .portal-article.prose>h2{margin-top:32px;font-size:23px}
.public-faq{margin:12px 0;border:1px solid var(--stroke,#493961);border-radius:12px;background:var(--surface,#14152e);padding:0 18px}
.public-faq summary{padding:16px 0;min-height:52px;font-size:15px;font-weight:800;cursor:pointer}
.public-faq p{margin:0 0 18px;font-size:14px;line-height:1.8;color:var(--muted,#c1bddb)}
.account-sections{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}
.account-sections a{display:flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--stroke,#493961);border-radius:10px;background:var(--surface,#14152e);font-size:13px;font-weight:800}
.account-sections a:first-child{color:var(--brand,#dc82ff)}
.portal-body [data-passport-root]{scroll-margin-top:24px;margin-bottom:24px}
.portal-body [data-passport-root] .passport{margin-top:0}
.portal-body .passport-grid{gap:24px;margin:20px 0;padding-bottom:20px;border-bottom:1px solid var(--stroke,#493961)}
.portal-body #account-profile,.portal-body #account-activities{scroll-margin-top:24px}
.account-advanced{border-top:1px solid var(--stroke,#493961);padding-top:8px}
.account-advanced summary{font-size:12px;color:var(--muted,#c1bddb);cursor:pointer;padding:10px 0;min-height:44px}
.account-advanced .field{margin-top:8px}
.portal-body .live-host{flex-wrap:wrap}
.portal-body .live-host>div{min-width:0;overflow-wrap:anywhere}

/* A single, compact control bar; channel selection uses the existing dialog. */
.page-shell .sticky-player,.portal-body .portal-player{min-height:80px;gap:16px;padding:10px max(24px,calc((100vw - 1232px)/2));padding-bottom:max(10px,env(safe-area-inset-bottom));align-items:center}
.page-shell .sticky-player .sticky-avatar,.portal-body .portal-player .portal-avatar-frame{width:48px;height:58px;flex:none;border-radius:8px}
.page-shell .sticky-player .sticky-avatar img,.portal-body .portal-player .portal-radio-avatar{width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center bottom;image-rendering:auto}
.page-shell .sticky-player .sticky-host{flex:1;min-width:0;gap:12px;order:1}
.page-shell .sticky-player .sticky-host>div:last-child{min-width:0}
.page-shell .sticky-player .sticky-host strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-shell .sticky-player .sticky-host p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-shell .sticky-player .toggle-play{order:0;width:48px;height:48px;flex:none}
.page-shell .sticky-player .equalizer{display:none}
.page-shell .sticky-player .sticky-listeners{order:2;font-size:11px;white-space:nowrap}
.page-shell .sticky-player [data-channel-open]{order:3}
.page-shell .sticky-player .sticky-volume{order:4;display:flex;flex:0 0 150px;gap:8px;min-width:0}
.page-shell .sticky-player .footer-like{order:5;min-height:44px}
.page-shell .sticky-player .collapse-player{order:6;min-height:44px;min-width:36px}
.portal-body .portal-player{flex-wrap:nowrap}
.portal-body .portal-player #radio-toggle{order:0;min-width:90px;max-width:126px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-body .portal-player .portal-avatar-frame{order:1}
.portal-body .portal-player .portal-radio-info{order:2;flex:1;min-width:0}
.portal-body .portal-player .portal-radio-info b{font-size:14px}
.portal-body .portal-player .portal-radio-info small{font-size:11px}
.portal-body .portal-player #radio-listeners{display:inline-block;margin-top:4px;font-size:10px;padding:0;background:transparent;color:var(--lavender,#c7a2ff);border:0}
.portal-body .portal-radio-info:has(#radio-listeners:not([hidden])) #radio-song{display:none}
.portal-body .portal-player .portal-station-choice{order:3;flex:none;min-width:0;max-width:150px;font-size:11px}
.portal-body .portal-station-heading{display:block}
.portal-body .portal-station-heading>label,.portal-body .portal-tabblet-audience{display:none}
.portal-body .portal-player [data-channel-open]{order:4}
.portal-body .portal-player .portal-volume{order:5;display:flex;gap:8px;flex:none;margin:0}
.portal-body .portal-volume input{height:44px;width:90px}
.portal-body .portal-player>a,.portal-body .portal-player>#radio-listeners{display:none}
.channel-open-compact{min-height:44px}
.portal-body{padding-bottom:var(--public-player-space)}
body:has(.public-header) .fansite-footer{max-width:1232px;margin:36px auto 0;padding:24px 0 12px;font-size:11px;line-height:1.8}
.portal-body .fansite-footer{width:calc(100% - 48px);margin-bottom:24px}
body:has(.public-header) .fansite-footer nav{gap:8px 20px}
body:has(.public-header) .fansite-footer nav a{display:inline-flex;align-items:center;min-height:36px}

@media(max-width:1100px){
  .header.public-header,.portal-header.public-header{gap:12px;justify-content:flex-start}
  .public-header .public-menu-toggle:not([hidden]){display:flex;margin-left:auto}
  .public-header:not([data-nav-enhanced]){height:auto;flex-wrap:wrap}
  .public-header:not([data-nav-enhanced]) nav.public-nav{flex-basis:100%;flex-wrap:wrap}
  .public-header[data-nav-enhanced] nav.public-nav{display:none;position:absolute;top:calc(100% + 8px);left:24px;right:24px;margin:0;padding:12px;flex:none;background:var(--surface,#14152e);border:1px solid var(--stroke,var(--border,#493961));border-radius:16px;box-shadow:0 16px 40px #0008;max-height:calc(100dvh - 190px);overflow:auto;z-index:16;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .public-header[data-nav-open] nav.public-nav{display:grid}
  .public-header .public-nav>a{display:flex;align-items:center;min-height:48px;padding:12px}
  .public-more{grid-column:1/-1;border-top:1px solid var(--stroke,var(--border,#493961));padding-top:4px}
  .public-more>div{position:static;width:auto;background:transparent;border:0;box-shadow:none;padding:4px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-shell .hero{gap:12px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
  .page-shell .hero h1{font-size:38px}
  .page-shell .channel-discovery-card [data-channel-discovery]{grid-template-columns:minmax(0,1fr) 100px}
  .page-shell .channel-shortcuts{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}
  .page-shell .construction-banner-copy p{font-size:20px}
  .portal-body .portal-player .portal-volume>span{display:none}
}
@media(max-width:800px){
  .page-shell .hero{display:flex;flex-direction:column;align-items:stretch;gap:0;margin-top:24px;overflow:visible}
  .page-shell .room-stage{width:min(680px,100%);margin:12px auto 0;align-self:center}
  .page-shell .room-badge{top:auto;bottom:14px;right:12px;max-width:65%}
  .page-shell .copy{max-width:600px!important;margin:auto}
  .home-community-grid{grid-template-columns:1fr;gap:12px;margin-bottom:28px}
  .home-community-card,.home-community-grid .passport-invite{padding:20px}
  .home-community-card strong,.home-community-grid .passport-invite strong{font-size:20px}
  .page-shell .schedule{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-shell .sticky-player .sticky-listeners,.page-shell .sticky-player .footer-like,.page-shell .sticky-player .collapse-player{display:none}
  .page-shell .sticky-player .sticky-volume{flex:0 0 80px}
  .page-shell .sticky-player .sticky-volume .mute-button{display:none}
  .portal-body .portal-player .portal-station-choice{display:none}
  .portal-body .portal-hero .team-header-avatars{max-width:150px}
  .portal-body .team-header-avatars figure{width:44px}
  .portal-body .team-header-avatars img{width:42px;height:78px}
}
@media(max-width:600px){
  body:has(.public-header){--public-gap:16px;--public-player-space:96px}
  .header.public-header,.portal-header.public-header{height:80px;min-height:80px;padding:6px 16px;gap:8px}
  .public-header:not([data-nav-enhanced]){height:auto}
  .public-header .brand-logo,.portal-header.public-header>a:first-child img{width:118px;height:66px}
  .public-header .brand{width:118px}
  .public-header .login-button,.public-header #member-link{max-width:106px;padding:10px 12px;font-size:12px}
  .public-header .login-button .icon{display:none}
  .public-menu-toggle{padding:9px 10px}
  .public-header[data-nav-enhanced] nav.public-nav{left:12px;right:12px;max-height:calc(100dvh - 176px)}
  .public-header .public-more>div{grid-template-columns:1fr}
  .page-shell>main{padding:0 16px var(--public-player-space)}
  .page-shell .hero h1{font-size:36px;letter-spacing:-1.2px}
  .page-shell .hero .tagline{font-size:14px}
  .page-shell .construction-banner{padding:12px 14px 16px;flex-wrap:wrap;gap:10px;margin-top:12px}
  .page-shell .construction-banner-mark{display:none}
  .page-shell .construction-banner-copy{flex:1 0 100%;min-width:0}
  .page-shell .construction-banner-copy p{font-size:18px}
  .page-shell .construction-banner-tools{flex-basis:100%;justify-content:flex-start;gap:6px}
  .page-shell .construction-banner-tools a,.page-shell .construction-banner-tools button{font-size:10px;padding:8px 10px;min-height:36px}
  .page-shell .channel-discovery-card{padding:16px}
  .page-shell .channel-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-shell .channel-shortcuts button{font-size:12px}
  .page-shell .channel-explore{width:auto;justify-content:center}
  .page-shell .channel-discovery-card .channel-explore>svg{display:none}
  .page-shell .channel-discovery-card [data-channel-discovery]{grid-template-columns:minmax(0,1fr) 86px;gap:8px}
  .page-shell .channel-discovery-card h3{font-size:18px}
  .page-shell .player-core{grid-template-columns:80px minmax(0,1fr);gap:12px}
  .page-shell .radio-panel{padding:14px}
  .page-shell .host-portrait{height:136px}
  .page-shell .host-info h2{font-size:23px}
  .page-shell .show-name{font-size:12px}
  .page-shell .audio-controls .play-button{width:48px;height:48px}
  .page-shell .player-actions{grid-template-columns:minmax(0,1fr) auto}
  .page-shell .player-actions .visit-room{grid-column:1/-1;grid-row:2}
  .page-shell .schedule{grid-template-columns:1fr}
  .page-shell .section-heading h2,.page-shell .portal-home h2{font-size:23px}
  .page-shell .section-heading{align-items:flex-start}
  .page-shell .section-heading .hosts-link{font-size:11px;max-width:100px;justify-content:flex-end}
  .page-shell #home-news>.portal-card:only-child{display:flex}
  .page-shell #home-news>.portal-card:only-child .portal-cover{height:200px;min-height:0}
  .page-shell .radio-about{padding:20px}
  .page-shell .construction-hub{grid-template-columns:1fr}
  .page-shell .construction-welcome,.page-shell .construction-workbench{padding:20px}
  .portal-body .portal-main{padding:0 16px;margin:20px auto 32px}
  .portal-body .portal-hero{padding:22px;flex-direction:column;align-items:flex-start;gap:12px;min-height:0}
  .portal-body .portal-hero h1{font-size:29px;line-height:1.2;letter-spacing:-.7px}
  .portal-body .portal-hero .team-header-avatars{align-self:flex-end;max-width:none;gap:6px;margin-top:-4px}
  .portal-body .team-header-avatars img{height:70px;width:40px}
  .portal-body .team-header-avatars figure{width:48px}
  .portal-body .team-header-avatars figcaption{font-size:9px}
  .portal-body .toolbar>*{max-width:100%}
  .portal-body .toolbar .search{flex:1 0 100%;width:100%}
  .portal-body .toolbar select{flex:1}
  .portal-body .portal-login{padding:22px;margin:24px auto}
  .portal-body .card{padding:20px}
  .portal-body .topic-row{flex-wrap:wrap;padding:18px 0;gap:12px}
  .portal-body .topic-row h2{overflow-wrap:anywhere}
  .portal-body .rank-row{gap:8px;flex-wrap:wrap}
.portal-body .rank-row strong{overflow-wrap:anywhere;min-width:80px}
  .page-shell .sticky-player,.portal-body .portal-player{min-height:76px;padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom));gap:8px}
  .page-shell .sticky-player .sticky-avatar,.portal-body .portal-player .portal-avatar-frame{width:36px;height:54px}
  .page-shell .sticky-player .sticky-host{gap:8px}
  .page-shell .sticky-player .sticky-host strong,.portal-body .portal-player .portal-radio-info b{font-size:12px}
  .page-shell .sticky-player .sticky-host p,.portal-body .portal-player .portal-radio-info small{font-size:10px}
  .page-shell .sticky-player .sticky-volume{flex:0 0 54px}
  .portal-body .portal-player .portal-volume input{width:54px}
  .portal-body .portal-player #radio-toggle{min-width:44px;max-width:44px;min-height:44px;padding:0;font-size:0}
  .portal-body .portal-player #radio-toggle::before{content:'▶';font-size:16px}
  .portal-body .portal-player #radio-toggle[aria-pressed=true]::before{content:'❚❚'}
  .page-shell .sticky-player .toggle-play{height:44px;width:44px}
  .portal-body .portal-player [data-channel-open],.page-shell .sticky-player [data-channel-open]{padding:8px;min-width:44px;min-height:44px}
  .channel-open-compact svg{display:block!important;width:16px;height:16px}
  .channel-open-compact span{font-size:0!important}
  .channel-open-compact span::before{content:'Canais';font-size:9px;display:block}
  .channel-open-compact b{display:none}
  .portal-body .fansite-footer{width:calc(100% - 32px)}
  body:has(.public-header) .fansite-footer{margin-top:28px;font-size:10px}
  body:has(.public-header) .fansite-footer nav{gap:4px 16px}
}
@media(prefers-reduced-motion:reduce){.public-header *,.home-community-grid *{transition:none}}

/* Rankings: one grid shared with the hero. Filters live in a side rail on wide screens and stack above the list on narrow ones. */
.ranking-layout{display:grid;grid-template-columns:minmax(220px,264px) minmax(0,1fr);gap:24px;align-items:start}
.ranking-side{position:sticky;top:24px;display:grid;gap:12px;min-width:0}
.ranking-toolbar{display:grid;gap:8px;padding:16px;border:1px solid var(--stroke,#493961);border-radius:16px;background:var(--surface,#14152e)}
.ranking-toolbar label{font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#c1bddb)}
.ranking-toolbar select{width:100%;min-height:44px;padding:10px 14px;background:var(--raised,#251c38);border:1px solid var(--stroke,#493961);border-radius:10px;color:inherit}
.ranking-toolbar .hint{margin:0;font-size:12px}
.ranking-categories{display:grid;gap:6px}
.ranking-categories a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 14px;border:1px solid var(--stroke,#493961);border-radius:12px;font-size:14px;font-weight:800;background:var(--surface,#14152e);transition:border-color .16s ease,background-color .16s ease}
.ranking-categories a[aria-current]{border-color:var(--brand,#dc82ff);color:var(--brand,#dc82ff);background:var(--raised,#251c38);box-shadow:inset 3px 0 0 var(--brand,#dc82ff)}
.ranking-categories a:hover{border-color:var(--brand,#dc82ff)}
.ranking-categories a span{min-width:30px;padding:2px 8px;border-radius:999px;background:#ffffff0f;font-size:11px;text-align:center;color:var(--muted,#c1bddb);font-variant-numeric:tabular-nums}
.ranking-card{margin:0;min-width:0}
.ranking-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--stroke,#493961)}
.ranking-heading h2{margin:6px 0 0;font-size:24px;line-height:1.2}
.ranking-heading>.hint{margin:0 0 4px;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ranking-rows{list-style:none;margin:0;padding:0}
.ranking-rows .rank-row{display:grid;grid-template-columns:3ch 44px minmax(0,1fr) auto;align-items:center;column-gap:16px;min-height:72px;padding:6px 0}
.ranking-rows .rank-row .rank-position{width:auto;font-size:15px;font-weight:900;text-align:right;font-variant-numeric:tabular-nums}
.ranking-rows .rank-row img{width:44px;height:60px;object-fit:contain;justify-self:center}
.ranking-rows .rank-row strong{display:flex;align-items:center;gap:6px;font-size:15px;min-width:0;overflow-wrap:anywhere}
.ranking-rows .rank-row strong a{min-width:0}
.ranking-rows .rank-row .rank-score{text-align:right;font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.ranking-without-avatars .rank-row{grid-template-columns:3ch minmax(0,1fr) auto!important}
.ranking-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 16px}
.ranking-pagination>span[role=status]{font-size:13px;text-align:center}
.ranking-pagination .disabled{opacity:.45;cursor:default}
.ranking-methodology{border-top:1px solid var(--stroke,#493961);padding-top:16px;margin-bottom:0;line-height:1.7;font-size:12px}
.ranking-empty{padding:24px 0}
@media(max-width:1023px){
  .ranking-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .ranking-side{position:static}
  .ranking-toolbar{grid-template-columns:auto minmax(0,220px) 1fr;align-items:center;gap:12px;padding:12px 16px}
  .ranking-toolbar .hint{justify-self:end;text-align:right}
  .ranking-categories{grid-template-columns:repeat(6,minmax(0,1fr))}
  .ranking-categories a{flex-direction:column;justify-content:center;gap:4px;padding:8px 6px;font-size:13px}
  .ranking-categories a[aria-current]{box-shadow:inset 0 -3px 0 var(--brand,#dc82ff)}
}
@media(max-width:700px){.ranking-categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){
  .ranking-toolbar{grid-template-columns:auto minmax(0,1fr)}
  .ranking-toolbar .hint{grid-column:1/-1;justify-self:start;text-align:left}
  .ranking-heading{align-items:flex-start;flex-direction:column;gap:4px}
  .ranking-rows .rank-row{grid-template-columns:3ch 34px minmax(0,1fr) auto;column-gap:10px;min-height:64px}
  .ranking-rows .rank-row img{width:34px;height:52px}
  .ranking-rows .rank-row strong{font-size:13px}
  .ranking-rows .rank-row .rank-score,.ranking-rows .rank-row .rank-position{font-size:12px}
  .ranking-pagination{gap:6px}
  .ranking-pagination .button{padding:10px 8px;font-size:11px}
  .ranking-pagination>span[role=status]{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.ranking-categories a{transition:none}}

.portal-body .public-profile{max-width:900px;margin:0 auto}
.portal-body .public-profile-heading{display:flex;align-items:center;gap:24px;margin:18px 0 24px}
.portal-body .public-profile-heading .live-avatar{width:96px;height:140px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}
.portal-body .public-profile-heading h1{font-size:clamp(26px,5vw,42px);overflow-wrap:anywhere;margin:8px 0}
.portal-body .public-profile-bio{margin-bottom:28px;white-space:pre-wrap;overflow-wrap:anywhere}
.portal-body .profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.portal-body .profile-stat{display:flex;flex-direction:column;gap:8px}
.portal-body .profile-stat strong{font-size:28px;color:var(--brand)}
.portal-body .profile-stat span{font-size:13px;color:var(--muted)}
.portal-body .rank-row strong a{color:inherit;text-decoration:none;display:block;min-height:44px;align-content:center}
.portal-body .rank-row strong a:hover{text-decoration:underline}
@media(max-width:600px){.portal-body .profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-body .profile-stat{padding:16px}.portal-body .profile-stat strong{font-size:23px}.portal-body .public-profile-heading{gap:14px;padding:16px}.portal-body .public-profile-heading .live-avatar{width:64px;height:110px}}
