/* RLE-DESIGN-001 — Cartões da galeria com padrão visual RLE Programas. */
/* RLE-ARCH-008 — apenas a Página Inicial Rádio. */
.rle-home{padding:28px 20px 56px;min-height:65vh;background:#fff;color:#1b2531}
.rle-home-inner{max-width:1280px;margin:0 auto;display:grid;gap:22px;min-width:0}
.rle-home-panel{min-width:0;border:1px solid #d7dfe8;border-radius:7px;background:#f8fafc;padding:18px;overflow:hidden}
.rle-home-heading{font-size:clamp(1.05rem,1.6vw,1.35rem);line-height:1.35;margin:0 0 16px;color:#17283b}
.rle-home-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:stretch}
.rle-home-placeholder{min-height:320px;border:1px dashed #cad5e2;border-radius:7px;background:#fff}
.rle-home-placeholder-small{min-height:125px}
.rle-home-empty{margin:0;color:#53657c}
.rle-home-marquee{width:100%;overflow:hidden;position:relative}
.rle-home-marquee-track{display:flex;width:max-content;will-change:transform;animation:rle-home-scroll var(--rle-home-duration,35s) linear infinite;animation-play-state:paused}
.rle-home-marquee.is-ready .rle-home-marquee-track{animation-play-state:running}
.rle-home-marquee:hover .rle-home-marquee-track,.rle-home-marquee:focus-within .rle-home-marquee-track{animation-play-state:paused}
.rle-home-marquee-group{display:flex;gap:16px;flex:0 0 auto;padding-right:16px}
.rle-home-programa{flex:0 0 210px;min-width:0;border:1px solid #c7c7c7;border-radius:7px;overflow:hidden;background:#e6e6e6;box-shadow:0 2px 7px rgba(0,0,0,.06)}
.rle-home-programa-link{display:block;height:100%;color:#17283b;text-decoration:none}
.rle-home-programa-link:hover,.rle-home-programa-link:focus{box-shadow:inset 0 0 0 2px #536d90;text-decoration:none}
.rle-home-programa-link:focus-visible{outline:3px solid #315a91;outline-offset:-3px}
.rle-home-programa-media{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;background:#f4f4f4;overflow:hidden}
.rle-home-programa-img{width:100%;height:100%;object-fit:contain;display:block}
.rle-home-programa-fallback{font-size:.9rem;text-align:center;padding:12px;color:#526479}
.rle-home-programa-title{font-size:1rem;line-height:1.35;margin:0;padding:12px;min-height:65px}
@keyframes rle-home-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:850px){.rle-home-columns{grid-template-columns:1fr 1fr}.rle-home-columns>.rle-home-panel:nth-child(2){grid-column:1/-1;grid-row:1}.rle-home-placeholder{min-height:230px}}
@media(max-width:560px){.rle-home{padding:18px 12px 36px}.rle-home-columns{grid-template-columns:1fr;gap:14px}.rle-home-columns>.rle-home-panel:nth-child(2){grid-column:auto;grid-row:auto}.rle-home-panel{padding:14px}.rle-home-programa{flex-basis:175px}.rle-home-programa-media{aspect-ratio:16/9}.rle-home-placeholder{min-height:160px}}
@media(prefers-reduced-motion:reduce){.rle-home-marquee-track,.rle-home-marquee.is-ready .rle-home-marquee-track{animation:none!important}.rle-home-marquee{overflow-x:auto}.rle-home-marquee-group[aria-hidden="true"]{display:none}}

/* RLE-ARCH-008-R04 — estado público da emissão, sem alterar a galeria. */
.rle-home-emissao{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:155px}
.rle-home-live-label{font-size:.85rem;font-weight:700;color:#a22a28}
.rle-home-live-label.is-automatic{color:#315a91}
.rle-home-live-label.is-live{color:#a22a28}
.rle-home-live-image{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;border-radius:7px;background:#fff}
/* NOR-001: apenas imagens dos programas em direto; Auto DJ mantém o seu enquadramento. */
.rle-home-live-image.is-programa{aspect-ratio:16/9;max-height:none;object-fit:contain}
.rle-home-live-title{font-size:1.05rem;font-weight:700;color:#17283b;text-decoration:none;overflow-wrap:anywhere}
.rle-home-live-title:hover{text-decoration:underline}
.rle-home-live-share{align-self:center;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:min(100%,260px);min-height:46px;border:1px solid #8597BE;border-radius:7px;background:#8597BE;color:#fff;padding:10px 14px;font:inherit;font-weight:600;line-height:1.35;text-align:center;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.rle-home-live-share:hover{background:#e6e6e6;border-color:#c7c7c7;color:#8597BE}
.rle-home-live-share:focus-visible{background:#e6e6e6;color:#8597BE;outline:3px solid #315a91;outline-offset:2px}
.rle-home-proximos{margin-top:16px;padding-top:12px;border-top:1px solid #d7dfe8}
.rle-home-proximos h3{margin:0 0 8px;font-size:1rem}

/* RLE-DP-VISUAL-002 — Coluna esquerda sem contribuicao intrinseca da galeria para a altura da grelha. */
.rle-home-columns>.rle-home-panel:first-child{display:flex;flex-direction:column;min-height:0;height:0;min-height:100%;box-sizing:border-box}
.rle-home-columns>.rle-home-panel:first-child>.rle-home-heading{flex:none}
.rle-dp-destaque{flex:none;width:100%;aspect-ratio:16/9;margin-bottom:12px;overflow:hidden;border-radius:7px;background:#e6e6e6}
.rle-dp-destaque>a{display:block;width:100%;height:100%}
.rle-dp-img{display:block;width:100%;height:100%;object-fit:contain}
.rle-dp-destaque .rle-dp-img{width:100%;height:100%;object-fit:contain}
.rle-dp-viewport{flex:1 1 0;min-height:0;width:100%;overflow:hidden;position:relative;border-radius:7px}
.rle-dp-track{display:flex;flex-direction:column;will-change:transform;animation:rle-dp-vertical var(--rle-dp-duration,18s) linear infinite;animation-play-state:paused}
.rle-dp-viewport.is-ready .rle-dp-track{animation-play-state:running}
.rle-dp-viewport:hover .rle-dp-track,.rle-dp-viewport:focus-within .rle-dp-track{animation-play-state:paused}
.rle-dp-group{display:flex;flex-direction:column;flex:0 0 auto}
.rle-dp-parceria{width:100%;aspect-ratio:16/9;height:auto;padding:5px 0;box-sizing:border-box}
.rle-dp-parceria>a,.rle-dp-parceria>.rle-dp-img{display:block;width:100%;height:100%;background:#e6e6e6;border-radius:7px;overflow:hidden}
.rle-dp-parceria a:focus-visible{outline:3px solid #315a91;outline-offset:-3px}
@keyframes rle-dp-vertical{from{transform:translateY(-50%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.rle-dp-track,.rle-dp-viewport.is-ready .rle-dp-track{animation:none!important}.rle-dp-viewport{overflow-y:auto}.rle-dp-group[aria-hidden="true"]{display:none}}

/* RLE-ARCH-008 — Cidades dos Locutores: fotografia individual. */
/* RLE-DEV-GAL-CIDADES-002 / RLE-NOR-CIDADES-001 — galeria panoramica 4:1, altura maxima 300px. */
.rle-cl-galeria{position:relative;width:100%;height:auto;aspect-ratio:4/1;max-height:300px;overflow:hidden;border-radius:7px;background:#e8eef4}
.rle-cl-slide{position:absolute;inset:0;margin:0;background:#e8eef4}
.rle-cl-slide[hidden]{display:none!important}
.rle-cl-imagem{display:block;width:100%;height:100%;object-fit:contain}
.rle-cl-legenda{position:absolute;bottom:0;left:0;right:0;padding:12px 18px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.76));font-size:1rem;font-weight:600;text-shadow:0 1px 2px #222}
@media(prefers-reduced-motion:reduce){.rle-cl-slide{animation:none!important;transition:none!important}}

/* RLE-DP-VISUAL-002: quando as colunas deixam de partilhar a linha, usar altura natural. */
@media(max-width:850px){.rle-home-columns>.rle-home-panel:first-child{height:auto;min-height:0}.rle-dp-viewport{flex:0 0 auto;height:300px}}

/* RLE-DESIGN-LAYOUT-001-R01 — referencia visual institucional. */
.rle-home .rle-editorial-slide img,.rle-home .rle-globo,
.rle-home .rle-proximos-001-lista .rle-proximos-001-item,
.rle-home .rle-dp-trigger,body.home .rle-dp-dialog,body.home .rle-dp-dialog .rle-dp-actions button,
body.home .rle-dp-dialog input:not(.rle-dp-honey),body.home .rle-dp-dialog textarea{border-radius:7px}
.rle-home .rle-proximos-001-item[data-rle-layout-recolhido]{display:none!important}
@media(min-width:851px){
 .rle-home .rle-home-columns{align-items:stretch}
 .rle-home .rle-home-left-stack,.rle-home .rle-home-center-stack{min-height:0;align-self:stretch}
 .rle-home .rle-home-left-stack>.rle-home-panel:first-child{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
 .rle-home .rle-home-left-stack .rle-dp-viewport{flex:1 1 0;min-height:0;height:auto;overflow:hidden}
 .rle-home .rle-home-center-stack>.rle-home-panel:last-child{flex:1 1 auto;min-height:0;overflow:visible}
 .rle-home .rle-home-columns.rle-layout-ready{min-height:var(--rle-layout-base,0px)}
}
body.home .rle-chat-layout,
body.home .rle-chat-bubble,
body.home .rle-chat-send textarea,
body.home .rle-chat-compose-preview textarea,
body.home .rle-chat-emoji-toggle,
body.home .rle-chat-people-toggle,
body.home .rle-chat-emoji-panel,
body.home .rle-chat-submit,
body.home .rle-chat-details,
body.home .rle-chat-login summary,
body.home .rle-chat-logout,
body.home .rle-chat-form-panel,
body.home .rle-chat-login-button,
body.home .rle-chat-profile-dialog,
body.home .rle-chat-modal,
body.home .rle-chat-modal input:not([type=checkbox]),
body.home .rle-chat-profile-dialog input:not([type=checkbox]):not([type=hidden]),
body.home .rle-chat-rich-compose,
body.home .rle-chat-emoji-panel button,
body.home .rle-p-message,
body.home .rle-p-compose textarea,
body.home .rle-p-contact-dialog,
body.home .rle-p-contact-dialog button,
body.home .rle-p-profile-nav button,
body.home .rle-p-profile-list button,
body.home .rle-p-report-dialog,
body.home .rle-p-report-dialog select,
body.home .rle-p-report-dialog textarea,
body.home .rle-p-report-dialog button,
body.home .rle-p-consent button,
body.home .rle-p-message-options button,
body.home .rle-p-private-notice,
body.home .rle-p-private-notice button,
body.home .rle-chat-profile-wait,
body.home .rle-chat-profile-wait-close{border-radius:7px!important}
body.home .rle-chat-header,body.home .rle-p-log{border-radius:7px 7px 0 0!important}
body.home .rle-chat-room-footer{border-radius:0 0 7px 7px!important}

/* RLE-DESIGN-LAYOUT-001-R02 — largura uniforme dos três botões aprovados. */
.rle-home [data-rle-emissao] > .rle-home-live-share,
.rle-home [data-rle-emissao] > .rle-dp-trigger {
  width:100%; max-width:100%; box-sizing:border-box; border-radius:7px;
}
body.home .rle-chat-compose-actions > .rle-chat-profile-trigger {
  grid-column:1/-1!important; width:100%!important; min-width:0!important;
  max-width:100%!important; box-sizing:border-box; justify-self:stretch;
  border-radius:7px!important;
}

/* RLE-DESIGN-LAYOUT-001-R04: preservar a uniao esquerda com Chat Geral. */
body.home .rle-p-enabled .rle-chat-layout{border-bottom-left-radius:0!important}
