/* MAIS TUNER — biblioteca e estúdio editorial. Tipografia vertical, espaço e contraste. */
:root{--nordic-bg:#102a40;--nordic-surface:#15374b;--nordic-soft:#204757;--nordic-text:#edf5f3;--nordic-muted:#a8bfca;--nordic-line:#315464;--nordic-accent:#9ce8d2}
html[data-site-theme="light"]{--nordic-bg:#f1f3ee;--nordic-surface:#fffefa;--nordic-soft:#e2e9e3;--nordic-text:#1e353d;--nordic-muted:#526b70;--nordic-line:#c3d2ce;--nordic-accent:#176b61}
.community-panel,.community-reactions{color:var(--nordic-text);font-family:'NRK Sans',sans-serif;font-style:normal}
.community-panel *{box-sizing:border-box}
.community-panel [hidden],.community-reactions [hidden],#communityRankingMenu[hidden],#communityAnalyticsMenu[hidden]{display:none!important}
#mtAuthOverlay .mt-auth-card,#mtAuthOverlay .mt-auth-step,#mtAuthOverlay .mt-account-head>div,#mtAuthOverlay .mt-account-menu-row>span{min-width:0}
#mtAuthOverlay .mt-account-email,#mtAuthOverlay #mtAccountName{overflow-wrap:anywhere;white-space:normal}
#mtAuthOverlay .mt-account-menu-row{grid-template-columns:32px minmax(0,1fr) 20px}
#mtAuthOverlay .mt-auth-card:has(#communityStep.active),#mtAuthOverlay .mt-auth-card:has(#mtNewsroomStep.active){width:min(1200px,100%);padding:32px;background:var(--nordic-bg);border:1px solid var(--nordic-line);border-radius:16px}
.community-heading{margin:30px 0 12px!important;font-size:clamp(30px,4vw,46px)!important;letter-spacing:-.045em!important}
.community-intro{max-width:760px;color:var(--nordic-muted)!important}
.community-tabs{display:flex;gap:4px;padding:6px;background:var(--nordic-surface);border-radius:10px;margin:28px 0 24px;flex-wrap:wrap}
#mtAuthOverlay .community-button,.community-button,.community-login{border:1px solid var(--nordic-line);border-radius:8px;color:var(--nordic-text);background:transparent;font:600 14px/1.35 'NRK Sans',sans-serif;padding:11px 14px;cursor:pointer;min-height:42px;text-decoration:none;transition:background .15s,border-color .15s}
.community-button:hover{background:var(--nordic-soft)!important;border-color:var(--nordic-accent)!important}
.community-button:focus-visible,.community-panel input:focus-visible,.community-panel select:focus-visible{outline:3px solid var(--nordic-accent);outline-offset:3px}
.community-button:disabled{opacity:.45;cursor:wait}
#mtAuthOverlay .community-button[aria-pressed="true"],.community-button[aria-pressed="true"],#mtAuthOverlay .community-tabs [aria-current="page"]{background:var(--nordic-accent);border-color:var(--nordic-accent);color:var(--nordic-bg)}
.community-tabs .community-button{flex:1;border:0;white-space:nowrap}
.community-toolbar{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}
#mtAuthOverlay .community-toolbar input,#mtAuthOverlay .community-toolbar select{flex:1;min-width:170px;background:var(--nordic-surface);color:var(--nordic-text);border:1px solid var(--nordic-line);border-radius:8px;height:48px;font-size:15px}
#mtAuthOverlay .community-status{font-size:13px;color:var(--nordic-muted);margin:18px 0;line-height:1.6}
#mtAuthOverlay .community-status.error{color:#ffb9aa}
.community-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.community-episode-card{border:1px solid var(--nordic-line);background:var(--nordic-surface);border-radius:12px;overflow:hidden;display:grid;grid-template-columns:128px minmax(0,1fr)}
.community-art{aspect-ratio:1;background:var(--nordic-soft);display:flex;align-items:center;justify-content:center;font-size:32px;overflow:hidden;min-width:0}
.community-art img{width:100%;height:100%;object-fit:cover}
.community-art.brand{background:#102b42;padding:16px}
.community-art.brand img{object-fit:contain}
.community-episode-copy{padding:20px;min-width:0}
#mtAuthOverlay .community-episode-card h2,#mtAuthOverlay .community-song-row h2,#mtAuthOverlay .community-radio-card h2{font-size:19px;line-height:1.3;margin:8px 0;color:var(--nordic-text);overflow-wrap:anywhere}
#mtAuthOverlay .community-episode-card p,#mtAuthOverlay .community-song-row p{font-size:14px;margin:6px 0;color:var(--nordic-muted)}
.community-eyebrow{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--nordic-accent)}
.community-episode-copy time{display:block;font-size:12px;color:var(--nordic-muted);margin:10px 0}
.community-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.community-card-actions .community-button{font-size:12px;min-height:36px;padding:8px 10px}
.community-radio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.community-radio-card{background:var(--nordic-surface);border:1px solid var(--nordic-line);border-radius:12px;padding:18px;display:flex;gap:12px;flex-direction:column;min-width:0}
.community-radio-card .community-art{height:96px;aspect-ratio:auto;border-radius:8px}
.community-radio-card small{color:var(--nordic-muted);margin-bottom:auto}
.community-station-group{margin:24px 0 40px;border-top:1px solid var(--nordic-line)}
.community-station-heading{display:flex;align-items:center;gap:16px;padding:24px 0}
.community-station-heading .community-art{width:110px;height:56px;aspect-ratio:auto;border-radius:6px}
#mtAuthOverlay .community-station-heading h2{font-size:20px;margin:0;flex:1;color:var(--nordic-text)}
.community-station-heading small{color:var(--nordic-muted)}
.community-song-row{display:flex;align-items:flex-start;gap:20px;background:var(--nordic-surface);border:1px solid var(--nordic-line);border-radius:10px;padding:20px;margin-bottom:12px}
.community-song-row .community-art{width:88px;flex-shrink:0;border-radius:6px}
.community-rank{font-size:24px;color:var(--nordic-accent);font-variant-numeric:tabular-nums;min-width:34px;padding-top:8px}
.community-song-copy{flex:1;min-width:0}.community-song-stats{display:flex;gap:14px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:var(--nordic-muted)}
.community-empty{padding:48px 24px;border:1px dashed var(--nordic-line);border-radius:10px;text-align:center;color:var(--nordic-muted)!important}
.community-consent{display:flex;align-items:flex-start;gap:12px;border-top:1px solid var(--nordic-line);padding-top:24px;margin-top:32px;font-size:13px!important;color:var(--nordic-muted)!important;font-weight:400!important;line-height:1.6}
#mtAuthOverlay .community-consent input{width:20px;height:20px;flex-shrink:0;accent-color:var(--nordic-accent);margin-top:2px}
.community-reactions{padding:18px 0 6px;border-top:1px solid var(--nordic-line);margin-top:18px;text-align:left}
.community-track-caption{display:block;font-size:12px;color:var(--nordic-muted);margin-bottom:10px}
.community-reaction-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.community-reactions .community-button{font-size:12px;padding:8px 10px}
.community-stat-card{padding:24px;background:var(--nordic-surface);margin:16px 0;border-radius:12px}
.community-stat-card .community-art{width:120px;height:70px;aspect-ratio:auto;border-radius:6px}
.community-stat-number{font-size:34px;color:var(--nordic-accent)}
/* Estúdio editorial, sem alterar os controles ou permissões de publicação. */
#mtAuthOverlay #mtNewsroomStep h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.04em;color:var(--nordic-text)}
#mtAuthOverlay #mtNewsroomStep p{color:var(--nordic-muted)}
.community-editor-tools{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:24px 0;border-block:1px solid var(--nordic-line);margin:24px 0 30px}
#mtAuthOverlay .community-editor-tools p{flex:1;min-width:200px;font-size:14px;margin:0}
.community-editor-checks{display:flex;flex-wrap:wrap;gap:8px;width:100%;order:3}
.community-editor-checks span{border:1px solid var(--nordic-line);border-radius:999px;padding:6px 10px;color:var(--nordic-muted);font-size:12px}
.community-editor-checks .complete{color:var(--nordic-accent);border-color:var(--nordic-accent)}
#mtAuthOverlay #mtNewsroomForm{background:var(--nordic-surface);padding:28px;border:1px solid var(--nordic-line);border-radius:12px}
#mtAuthOverlay #mtNewsroomForm input,#mtAuthOverlay #mtNewsroomForm textarea{background:var(--nordic-bg);border-color:var(--nordic-line);color:var(--nordic-text);border-radius:7px}
#mtAuthOverlay #mtNewsroomForm label{color:var(--nordic-muted);font-size:12px;letter-spacing:.03em;margin-bottom:10px}
#mtAuthOverlay #mtNewsroomBody{font-size:18px;line-height:1.8;min-height:380px;padding:24px}
#mtAuthOverlay #mtNewsroomTitle{font-size:24px;font-weight:700;min-height:65px}
#mtAuthOverlay .mt-newsroom-actions{padding:24px 0;border-bottom:1px solid var(--nordic-line);margin-bottom:24px;align-items:center;flex-wrap:wrap}
#mtAuthOverlay #mtNewsroomPublish{background:var(--nordic-accent);color:var(--nordic-bg);border-radius:8px;font-weight:700}
#mtAuthOverlay .mt-newsroom-preview{background:var(--nordic-surface);border:1px solid var(--nordic-line);max-width:760px;margin:30px auto;padding:36px}
#mtAuthOverlay .mt-newsroom-preview p{font-size:18px;line-height:1.85}
#mtAuthOverlay .editor-focus #mtNewsroomForm .mt-auth-field:not(:has(#mtNewsroomBody,#mtNewsroomTitle)){display:none}
#mtAuthOverlay .editor-focus .mt-newsroom-list,#mtAuthOverlay .editor-focus .mt-newsroom-filters,#mtAuthOverlay .editor-focus .mt-newsroom-heading{display:none}
@media(max-width:760px){
 #mtAuthOverlay .mt-auth-card:has(#communityStep.active),#mtAuthOverlay .mt-auth-card:has(#mtNewsroomStep.active){padding:20px 12px;border:0;border-radius:0}
 .community-library-grid{grid-template-columns:minmax(0,1fr)}
 .community-episode-card{grid-template-columns:100px minmax(0,1fr)}
 .community-episode-copy{padding:16px}.community-radio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .community-radio-card{padding:12px}.community-song-row{gap:12px;padding:14px;flex-wrap:wrap}.community-song-row .community-art{width:64px}
 .community-song-copy{flex-basis:calc(100% - 120px)}.community-rank{font-size:18px;min-width:24px}
 .community-station-heading{flex-wrap:wrap}.community-station-heading .community-art{width:90px}
 .community-tabs .community-button{font-size:13px;padding:9px}.community-toolbar>*{width:100%}
 #mtAuthOverlay #mtNewsroomForm{padding:16px;grid-template-columns:minmax(0,1fr)}
 #mtAuthOverlay #mtNewsroomBody{padding:16px;min-height:320px;font-size:16px}
 #mtAuthOverlay .mt-newsroom-preview{padding:20px}
}
@media(prefers-reduced-motion:reduce){.community-button{transition:none}}

.chart-layout{display:grid;gap:12px}
.chart-cards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.chart-cards .community-song-row{display:flex;flex-direction:column;align-items:flex-start}
.chart-cards .community-art{width:100%;height:auto;aspect-ratio:1}
.chart-table .community-song-row{padding:8px;gap:10px}
.chart-table .community-art{width:40px;height:40px}
.chart-bars .community-song-row{flex-wrap:wrap}
.chart-bars meter{width:100%;height:18px}
.chart-layout button{white-space:normal}
.community-toolbar input{min-width:0;max-width:100%}
.audience-globe svg{display:block;width:100%;height:auto;max-height:460px}
.audience-globe input[type="range"]{display:block;width:min(520px,90%);margin:10px auto}
.audience-globe-ocean{fill:#123c50;stroke:#70ccbb;stroke-width:2}
.audience-globe-grid{fill:none;stroke:#315969;stroke-width:1}
.audience-globe-land{fill:none;stroke:#9dcac3;stroke-width:.8}
.audience-globe-point{fill:#9fe8d6;stroke:#fff;stroke-width:1;cursor:pointer}
