:root {
  --cor1: #001542;
  --cor2: #086465;
  --cor3: #647086;
  --cor4: #fffefa;
  --cor5: #ffb30d;
  --modern-navy-soft: #08265f;
  --modern-teal-dark: #054b4d;
  --modern-ink: #14213d;
  --modern-muted: #647086;
  --modern-line: #dfe5ed;
  --modern-surface: #fffefa;
  --modern-cream: #fff9ec;
  --modern-shadow: 0 20px 50px rgba(0, 21, 66, .10);
  --fonte-padrao: "DM Sans", system-ui, sans-serif;
  --fonte-destaque: "Lora", Georgia, serif;
}

html { scroll-padding-top: 76px; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 12%, rgba(8, 100, 101, .08), transparent 28rem),
    linear-gradient(180deg, #eef3f7 0, #f7f9fb 620px, #f3f6f9 100%);
  color: var(--modern-ink);
  font-family: var(--fonte-padrao);
}
button, input, textarea { font-family: inherit; }

/* Cabeçalho alinhado à nova página de louvores. */
body > header {
  min-height: 0;
  border: 0;
  background: var(--cor1);
  box-shadow: none;
}
.topIndex {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: repeat(3, auto);
  align-content: center;
  justify-content: start;
  column-gap: 13px;
  text-align: left;
}
.brand-mark {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .22);
}
.topIndex p,
.topIndex h1 {
  grid-column: 2;
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: 1.08;
}
.topIndex p:first-of-type {
  align-self: end;
  color: #c6d2ea;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .07em;
}
.topIndex h1 {
  color: #fff;
  font-family: var(--fonte-destaque);
  font-size: 1.35rem;
  letter-spacing: .035em;
}
.topIndex p:last-of-type {
  align-self: start;
  color: #9fb0cf;
  font-size: .7rem;
}

.nav {
  top: 0;
  z-index: 20;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 21, 66, .97);
  box-shadow: 0 10px 25px rgba(0, 21, 66, .16);
  backdrop-filter: blur(12px);
}
.nav > ul {
  width: min(1180px, 100%);
  margin: auto;
  background: transparent;
  overflow: visible;
}
.nav .dropbtn {
  min-width: 54px;
  min-height: 48px;
  padding: 12px 15px;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #667085;
}
.nav .dropbtn .material-symbols-outlined {
  color: #667085;
  font-weight: 600;
  opacity: 1;
}
.nav .dropbtn:hover,
.nav .dropdown:hover .dropbtn,
.nav .dropbtn:hover .material-symbols-outlined {
  color: #344054;
}
.nav .dropdown-content {
  min-width: 280px;
  padding: 7px;
  border: 1px solid rgba(0, 21, 66, .08);
  border-radius: 0 0 15px 15px;
  background: var(--modern-surface);
  box-shadow: 0 22px 45px rgba(0, 21, 66, .2);
}
.nav .dropdown-content a {
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--modern-ink);
  font-weight: 700;
  text-align: left;
}
.nav .dropdown-content a:hover { background: #e8f4f2; color: var(--modern-teal-dark); }

/* Estrutura principal. */
.gridcontainer {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  margin: 30px auto 72px;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}
.main { min-width: 0; }
.main article,
aside section {
  margin: 0 0 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(0, 21, 66, .07);
  border-radius: 22px;
  background: var(--modern-surface);
  box-shadow: var(--modern-shadow);
}
.main article[id] { scroll-margin-top: 78px; }
.main article > h3 {
  margin: 0;
  padding: 0 0 18px;
  color: var(--cor1);
  font-family: var(--fonte-destaque);
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.18;
  text-align: left;
}
.main article > h3 span {
  display: inline-flex;
  margin-left: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f3f0;
  color: var(--cor2);
  font-family: var(--fonte-padrao);
  font-size: .68rem;
  font-weight: 800;
  vertical-align: middle;
}
.main article > p {
  margin: 0 0 15px;
  color: #42506a;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
}
.main article > hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--modern-line);
}
.main article > br { display: none; }

/* Hero da rádio. */
.main .radio-hero {
  min-height: 410px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.25fr);
  grid-template-areas:
    "image title"
    "image copy"
    "image action";
  align-items: center;
  gap: 18px 42px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 179, 13, .17), transparent 20rem),
    linear-gradient(135deg, var(--cor1), var(--modern-navy-soft) 58%, var(--modern-teal-dark));
  box-shadow: 0 24px 60px rgba(0, 21, 66, .2);
}
.radio-hero::after {
  content: "♫";
  position: absolute;
  right: -24px;
  bottom: -105px;
  color: rgba(255, 255, 255, .045);
  font-family: var(--fonte-destaque);
  font-size: 18rem;
  transform: rotate(-8deg);
  pointer-events: none;
}
.main .radio-hero h3 {
  grid-area: title;
  position: relative;
  z-index: 1;
  padding: 0;
  color: white;
  font-size: clamp(2rem, 4vw, 3.35rem);
  text-align: left;
}
.radio-hero .imgrd {
  grid-area: image;
  width: 100%;
  max-width: 330px;
  margin: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.radio-hero .intro-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dce5f7;
  font-size: 1.04rem;
  text-align: left;
}
.radio-hero .intro-copy strong {
  padding-top: 12px;
  color: #ffd46f;
}
.radio-hero .apk-download-link {
  grid-area: action;
  position: relative;
  z-index: 1;
  justify-self: start;
  width: min(100%, 350px);
  margin: 0;
  border-radius: 13px;
  font-style: normal;
  box-shadow: 0 12px 28px rgba(255, 179, 13, .2);
}

.main .offline-full-section {
  justify-items: start;
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(120deg, #e5f3ef, #f8f1db);
  text-align: left;
}
.offline-full-section__eyebrow {
  color: var(--cor2) !important;
  letter-spacing: .14em;
}
.offline-full-section h3 {
  padding: 0;
  color: var(--cor1);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  text-align: left;
}
.offline-full-section p { margin: 0; text-align: left; }
.offline-full-section__button {
  width: auto;
  min-width: 300px;
  border-radius: 12px;
  background: var(--cor1);
}

/* Índice e cartões de programação. */
.main .program-index {
  padding: clamp(26px, 4vw, 38px);
  background: var(--modern-surface);
}
.nomes-container > span {
  justify-content: flex-start;
  padding: 0 0 18px;
  color: var(--cor1);
  font-family: var(--fonte-destaque);
  font-size: 1.4rem;
}
.nomes-container .listas { gap: 10px; }
.nomes-container .nome a {
  min-height: 54px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  border-color: var(--modern-line);
  border-radius: 13px;
  background: #f8fafb;
  color: var(--modern-ink);
  font-style: normal;
  box-shadow: none;
}
.nomes-container .nome a:hover {
  border-color: rgba(8, 100, 101, .4);
  background: #eaf4f2;
  color: var(--modern-teal-dark);
  box-shadow: 0 10px 22px rgba(0, 21, 66, .08);
}

.main article:not(.radio-hero):not(.offline-full-section):not(.program-index):not(.articleBanner) .imgrd {
  width: 100%;
  max-height: 300px;
  margin: 0 0 24px;
  padding: 0;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0, 21, 66, .12);
}
.main .articleBanner {
  padding: 9px;
  overflow: hidden;
}
.articleBanner a { display: block; }
#bannerRadio {
  width: 100%;
  padding: 0;
  border-radius: 15px;
}

article #indicativo {
  margin: -3px 0 18px;
  padding: 11px 13px;
  border-left: 3px solid var(--cor5);
  border-radius: 0 9px 9px 0;
  background: var(--modern-cream);
  color: #66552a;
  font-size: .82rem;
  font-style: normal;
}
#return {
  width: fit-content;
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #edf2f6;
  color: var(--cor1);
  font-size: .85rem;
  font-style: normal;
}
#return:hover { background: #e4ecf1; color: var(--modern-teal-dark); }

.programa-btn {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 13px;
  background: var(--cor2);
  color: white;
  font-size: .95rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 100, 101, .2);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.programa-btn:hover {
  background: var(--modern-teal-dark);
  box-shadow: 0 14px 28px rgba(8, 100, 101, .26);
  transform: translateY(-1px);
}
#louvor {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #ebe7db;
  border-radius: 15px;
  background: linear-gradient(180deg, #fffefa, #fff9ed);
  box-shadow: none;
}
#louvor p {
  margin: 0 0 13px;
  color: #3f4a5f;
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}
#louvor p:first-child { color: var(--cor1); font-weight: 800; }

/* Barra lateral. */
aside { position: sticky; top: 72px; align-self: start; }
aside section { padding: 20px; }
aside section img,
aside section .imgDiscp,
aside section .imgMiss {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 17px;
  padding: 0;
  border-radius: 14px;
}
aside section h3 {
  margin: 0 0 12px;
  padding: 0;
  color: var(--cor1);
  font-family: var(--fonte-destaque);
  font-size: 1.22rem;
  line-height: 1.3;
  text-align: left;
}
aside section p,
#missoes p {
  margin: 0 0 11px;
  padding: 0;
  color: #536078;
  font-size: .86rem;
  line-height: 1.62;
  text-align: left !important;
}
aside section > a,
aside section .enter {
  width: 100%;
  min-height: 43px;
  margin-top: 15px;
  border-radius: 10px;
  background: var(--cor1);
  font-style: normal;
}
#missoes #alerta {
  padding: 10px;
  border-radius: 9px;
  background: #fff2d2;
  color: #715000;
  text-align: center !important;
}
#missoes .dados {
  max-width: 100%;
  margin: 18px 0 0;
  padding: 14px;
  border: 0;
  border-radius: 13px;
  background: var(--modern-teal-dark);
  box-shadow: none;
  font-style: normal;
}
#missoes .dados input {
  max-width: calc(100% - 70px);
  min-height: 28px;
  padding: 3px 6px;
}
#missoes .dados #btn {
  min-width: 32px;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .14);
}

/* Reprodutor, instalação e elementos utilitários. */
.modal-regras { z-index: 1100; background: rgba(0, 15, 43, .68); backdrop-filter: blur(6px); }
.modal-regras-conteudo {
  width: min(520px, calc(100% - 24px));
  padding: 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--cor1), #073866 56%, var(--modern-teal-dark));
  box-shadow: 0 28px 80px rgba(0, 15, 43, .4);
}
.modal-regras-conteudo .fechar { top: 12px; right: 12px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
#revisar { border-radius: 16px; }
#backMusic { border-radius: 12px; }
#btnsR button { border-radius: 12px; }
.install-app-modal { background: rgba(0, 15, 43, .68); backdrop-filter: blur(6px); }
.install-app-modal__content {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--cor1), #073866 56%, var(--modern-teal-dark));
  box-shadow: 0 28px 80px rgba(0, 15, 43, .4);
}
.install-app-modal__primary,
.install-app-modal__secondary { border-radius: 12px; }

.main article:last-of-type .naveg a {
  border: 0;
  border-radius: 11px;
  background: #edf2f6;
  color: var(--cor1);
  font-style: normal;
}
body > footer {
  min-height: 130px;
  padding: 38px 16px;
  display: grid;
  place-content: center;
  background: var(--cor1);
  color: #dbe5f8;
  font-style: normal;
  font-size: .85rem;
}

@media (max-width: 1000px) {
  .gridcontainer {
    width: min(820px, calc(100% - 28px));
    display: block;
    margin: 24px auto 56px;
    overflow: visible;
  }
  .main { overflow: visible; }
  .main article,
  .main .articleBanner,
  aside section {
    margin: 0 0 20px;
    border-radius: 20px;
  }
  aside { position: static; }
  .aside section { border-radius: 20px; }
}

@media (max-width: 700px) {
  .topIndex { width: min(100% - 24px, 1180px); min-height: 76px; grid-template-columns: 48px 1fr; column-gap: 10px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 13px; }
  .topIndex h1 { font-size: 1.02rem; }
  .topIndex p:first-of-type { font-size: .68rem; }
  .topIndex p:last-of-type { font-size: .61rem; }
  .nav .dropdown, .nav .dropbtn { width: 100%; }
  .nav .dropdown-content { width: 100%; min-width: 0; border-radius: 0 0 15px 15px; }
  .gridcontainer { width: min(100% - 20px, 820px); margin-top: 18px; }
  .main .radio-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "title" "image" "copy" "action";
    gap: 20px;
    padding: 28px 20px;
  }
  .radio-hero h3 { font-size: clamp(2rem, 10vw, 3rem); text-align: center; }
  .radio-hero .imgrd { max-width: 250px; }
  .radio-hero .intro-copy { text-align: center; }
  .radio-hero .apk-download-link { justify-self: stretch; width: 100%; }
  .offline-full-section__button { width: 100%; min-width: 0; }
  .nomes-container .listas { grid-template-columns: 1fr; }
  .main article > h3 { font-size: 1.62rem; }
  .main article:not(.radio-hero):not(.offline-full-section):not(.program-index):not(.articleBanner) .imgrd { max-height: 230px; }
  .install-app-modal__actions { flex-direction: column; }
}

@media (max-width: 450px) {
  .main article,
  .main .articleBanner,
  aside section {
    margin: 0 0 16px;
    padding: 20px 16px;
    border-radius: 18px;
    background: var(--modern-surface);
  }
  .main .articleBanner { padding: 7px; }
  .main article > p { font-size: .94rem; }
  .card-actions { grid-template-columns: 1fr; }
  .install-app-modal__content { border-radius: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
