body.rw-layout-home {
  --rw-layout-gap: clamp(10px, 1vw, 18px);
}

body.rw-layout-home .rw-site-header {
  position: relative;
  z-index: 1100;
}

body.rw-layout-home .rw-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) !important;
  grid-template-areas: "player player" "banner onair";
  gap: var(--rw-layout-gap);
}

body.rw-layout-home .rw-showcase > .rw-showcase-player {
  grid-area: player;
  width: 100%;
  max-width: none;
  height: auto !important;
  min-height: 0 !important;
  order: 0;
}

body.rw-layout-home .rw-showcase > .rw-rc-slider {
  grid-area: banner;
  min-width: 0;
}

body.rw-layout-home .rw-showcase-player .rw-player-bar,
body.rw-layout-home .rw-showcase-player .rw-player-inner {
  height: auto !important;
  min-height: 0 !important;
}

body.rw-layout-home .rw-showcase-player .rw-player-inner {
  width: 100%;
  max-width: none;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, 18%);
  align-items: center;
  gap: clamp(8px, 1.5vw, 22px);
  padding: 8px clamp(12px, 2vw, 28px);
}

body.rw-layout-home .rw-showcase-player .rw-now-playing {
  grid-area: 1 / 1 !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.rw-layout-home .rw-showcase-player .rw-now-playing :is(strong, small, span) {
  max-width: 100%;
  white-space: normal;
}

body.rw-layout-home .rw-showcase-player #rw-play {
  grid-area: 1 / 2 !important;
  width: 46px;
  height: 46px;
}

body.rw-layout-home .rw-showcase-player .rw-volume {
  grid-area: 1 / 3 !important;
  min-width: 0;
}

body.rw-layout-home .rw-showcase-player .rw-volume input {
  width: 100%;
  min-width: 0;
}

body.rw-layout-home .rw-showcase-player .rw-now-playing img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

body.rw-layout-home .rw-layout-onair {
  grid-area: onair;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 26px);
  color: #fff;
  background: linear-gradient(145deg, #481356, #111233 53%, #461054);
  border: 1px solid #d262df;
  border-radius: 18px;
}

body.rw-layout-home .rw-layout-onair .rw-onair-enhanced {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 0;
  padding-block: 12px;
}

body.rw-layout-home .rw-onair-enhanced-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.rw-layout-home .rw-layout-onair :is(h2, h3, p, .rw-onair-enhanced-info > span),
body.rw-layout-home #top-10 .rw-board-title,
body.rw-layout-home #top-10 .rw-board-title span,
body.rw-layout-home #sala-do-ouvinte .rw-section-heading :is(h2, p),
body.rw-layout-home .rw-interaction-requests h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.rw-layout-home .rw-reference-board {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  grid-template-areas: "news poll requests ranking" "news poll requests events";
  gap: var(--rw-layout-gap);
}
body.rw-layout-home .rw-board-news { grid-area: news !important; }
body.rw-layout-home .rw-board-poll { grid-area: poll !important; }
body.rw-layout-home .rw-board-request { grid-area: requests !important; }
body.rw-layout-home .rw-board-secondary { grid-area: ranking !important; }
body.rw-layout-home .rw-board-events { grid-area: events !important; }

body.rw-layout-home .rw-reference-board > section {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.rw-layout-home :is(.rw-board-poll, .rw-board-request) {
  padding: clamp(12px, 1.2vw, 22px);
}

body.rw-layout-home :is(.rw-board-poll > .rw-poll, .rw-board-request > form) {
  width: 100%;
  margin-block: auto;
}

body.rw-layout-home .rw-board-poll .rw-poll-form {
  display: grid;
  gap: 8px;
}

body.rw-layout-home #top-10 .rw-top-grid {
  max-height: 245px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body.rw-layout-home #ultimas-tocadas,
body.rw-layout-home #programacao {
  padding-block: 14px;
}

body.rw-layout-home #ultimas-tocadas {
  margin-block: 10px var(--rw-layout-gap);
}

body.rw-layout-home :is(#ultimas-tocadas, #programacao) .rw-section-heading {
  margin-block: 0 12px;
  padding-block: 0;
}

body.rw-layout-home :is(#ultimas-tocadas, #programacao) .rw-section-heading h2 {
  margin-block: 0 4px;
  font-size: clamp(1.25rem, 1.06rem + 0.55vw, 1.625rem);
}

body.rw-layout-home #ultimas-tocadas .rw-recent-track-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.rw-layout-home #ultimas-tocadas .rw-recent-track {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  gap: 8px;
  padding: 7px 10px;
}

body.rw-layout-home #ultimas-tocadas .rw-recent-track-art {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

body.rw-layout-home #ultimas-tocadas .rw-recent-track time {
  white-space: nowrap;
}

body.rw-layout-home #programacao .rw-program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.rw-layout-home #programacao .rw-program-card {
  min-height: 0;
  padding: 10px;
}

body.rw-layout-home #programacao .rw-program-cover {
  margin-block-end: 8px;
  aspect-ratio: 16 / 7;
  max-height: 110px;
}

body.rw-layout-home .rw-reference-interaction {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: var(--rw-layout-gap);
}

body.rw-layout-home .rw-reference-interaction > section {
  min-width: 0;
  padding: clamp(16px, 1.5vw, 26px);
}

body.rw-layout-home #sala-do-ouvinte .rw-listener-chat {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

body.rw-layout-home #sala-do-ouvinte .rw-chat-feed {
  min-height: 210px;
}

body.rw-layout-home #sala-do-ouvinte .rw-chat-send-form :is(input, textarea),
body.rw-layout-home .rw-interaction-requests .rw-chat-list {
  font-size: 0.9rem;
}

body.rw-layout-home .rw-interaction-requests .rw-chat-list {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-section > .rw-container {
  display: block !important;
  width: 100%;
  max-width: none;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-heading {
  width: 100%;
  margin-block: 0 8px;
  text-align: center;
  font-size: 1.125rem;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)) !important;
  align-items: start;
  gap: 12px;
  width: 100%;
}

body.rw-layout-home .rw-reference-sponsors :is(.rw-ad-section, .rw-ad-card, .rw-ad-image) {
  height: auto !important;
  max-height: none !important;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-section {
  padding: 10px 14px 14px;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-card {
  width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

body.rw-layout-home .rw-reference-sponsors .rw-ad-image img {
  display: block;
  width: 100%;
  height: clamp(125px, 14vw, 200px) !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 1050px) {
  body.rw-layout-home .rw-reference-board {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas: "news poll" "requests ranking" "events events";
  }

  body.rw-layout-home #sala-do-ouvinte .rw-listener-chat {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.rw-layout-home .rw-showcase {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "player" "banner" "onair";
  }

  body.rw-layout-home :is(.rw-reference-board, .rw-reference-interaction) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.rw-layout-home .rw-reference-board {
    grid-template-areas: "news" "poll" "requests" "ranking" "events";
  }

  body.rw-layout-home .rw-showcase-player .rw-player-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.rw-layout-home .rw-showcase-player .rw-volume {
    display: flex !important;
    grid-area: 2 / 1 / auto / span 2 !important;
  }

  body.rw-layout-home #ultimas-tocadas .rw-recent-track-list,
  body.rw-layout-home #programacao .rw-program-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
