/* RadioExtasy V2.6.2 — purely presentational homepage rearrangement.
   The existing player, API listeners, forms and routes remain unchanged. */
.rx20-home .rx262-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 29%);
  align-items: start;
  gap: 16px;
  min-width: 0;
}
.rx20-home .rx262-main,
.rx20-home .rx262-sidebar {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: 15px;
  min-width: 0;
}
.rx20-home .rx262-sidebar > *,
.rx20-home .rx262-main > * {min-width:0;}
/* Keep releases and featured news in a strict vertical sequence. */
.rx20-home .rx262-main > .rx20-releases,
.rx20-home .rx262-main > .rx20-news {width:100%;min-width:0;}
/* Right sidebar: Shoutbox / Wunschbox / Song History, all flush right. */
.rx20-home .rx262-sidebar .rx20-panel {width:100%;margin:0;}
.rx20-home .rx262-sidebar .rx20-shout-list {min-height:160px;max-height:225px;}
.rx20-home .rx262-sidebar .rx20-chat-form {padding-top:8px;}
.rx20-home .rx262-sidebar .rx20-chat-form input {max-width:100%;}
.rx20-home .rx262-sidebar .rx20-chat-form .sendline input {width:0;min-width:0;flex:1;}
.rx20-home .rx262-sidebar .rx20-wish {min-height:0;}
.rx20-home .rx262-sidebar .rx20-wish > p {margin-top:10px;}
.rx20-home .rx262-sidebar .rx20-history #songHistory {min-height:60px;}
.rx20-home .rx262-sidebar .rx20-fav {margin-top:0;}
/* The radio player stays identical functionally, but fits its narrower column. */
@media(min-width:1051px) {
  .rx20-home .rx262-main .rx20-player {grid-template-columns:minmax(0,34%) minmax(0,1fr) minmax(120px,20%);min-height:310px;}
  .rx20-home .rx262-main .rx20-dj {min-height:310px;}
  .rx20-home .rx262-main .rx20-player-middle {padding:14px 11px 12px;}
  .rx20-home .rx262-main .rx20-current-title {padding-top:18px;min-height:98px;}
  .rx20-home .rx262-main .rx20-album {padding:10px;}
  .rx20-home .rx262-main .rx20-air-grid {grid-template-columns:1fr 1fr;}
  .rx20-home .rx262-main .rx20-show-body,
  .rx20-home .rx262-main .rx20-next-body {gap:9px;padding:11px;}
  .rx20-home .rx262-main .rx20-show-body > img {width:65px;height:78px;}
  .rx20-home .rx262-main .rx20-next-body > img {width:60px;height:70px;}
  .rx20-home .rx262-main .rx20-countdown {flex-basis:100%;}
  .rx20-home .rx262-main .rx20-release-list {grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media(min-width:901px) and (max-width:1250px) {
  .rx20-home .rx262-columns {grid-template-columns:minmax(0,1fr) minmax(260px,30%);gap:12px;}
  .rx20-home .rx262-main .rx20-player {grid-template-columns:minmax(0,39%) minmax(0,1fr);}
  .rx20-home .rx262-main .rx20-album {display:none;}
  .rx20-home .rx262-main .rx20-air-grid {grid-template-columns:1fr;}
  .rx20-home .rx262-main .rx20-release-list {grid-template-columns:repeat(3,minmax(0,1fr));}
  .rx20-home .rx262-main .rx20-news-hero {grid-template-columns:40% minmax(0,1fr);}
}
@media(max-width:1050px) {
  /* The old homepage rules only target rx20-main-grid / bottom-grid; these
     two new wrappers control the columns without affecting other modules. */
  .rx20-home .rx262-sidebar .rx20-panel {min-height:0;}
}
@media(max-width:900px) {
  .rx20-home .rx262-columns {grid-template-columns:minmax(0,1fr);}
  .rx20-home .rx262-main .rx20-air-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .rx20-home .rx262-sidebar {grid-template-columns:repeat(2,minmax(0,1fr));}
  .rx20-home .rx262-sidebar .rx20-history {grid-column:1/-1;}
  .rx20-home .rx262-sidebar .rx20-fav {grid-column:1/-1;}
  .rx20-home .rx262-main .rx20-album {display:block;}
}
@media(max-width:600px) {
  .rx20-home .rx262-main,.rx20-home .rx262-sidebar {gap:12px;}
  .rx20-home .rx262-main .rx20-air-grid,
  .rx20-home .rx262-sidebar {grid-template-columns:minmax(0,1fr);}
  .rx20-home .rx262-sidebar .rx20-history,
  .rx20-home .rx262-sidebar .rx20-fav {grid-column:auto;}
  .rx20-home .rx262-main .rx20-album {display:none;}
  .rx20-home .rx262-main .rx20-release-list {grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* V2.6.3 — Compact schedule preview at the very top of the right sidebar.
   Uses the existing JSON schedule and the live-refresh behavior from schedule.js. */
.rx20-home .rx262-sidebar .rx263-schedule { width:100%; margin:0; }
.rx20-home .rx263-schedule .rx20-head h2 {font-size:clamp(15px,1.38vw,18px);}
.rx20-home .rx263-schedule .schedule-home-status {
  margin:10px 10px 2px;
  padding:6px 8px;
  background:#26123c;
  border:1px solid #5b267d;
  font-size:10px;
}
.rx20-home .rx263-schedule .schedule-home-list {padding:5px 10px 8px;}
.rx20-home .rx263-schedule .schedule-home-item {
  padding:10px 6px;
  gap:9px;
  min-width:0;
}
.rx20-home .rx263-schedule .schedule-home-item>img {
  width:72px;
  height:72px;
  flex-shrink:0;
  object-fit:cover;
  border-radius:10px;
}
.rx20-home .rx263-schedule .schedule-home-meta {min-width:0;}
.rx20-home .rx263-schedule .schedule-home-meta small {color:#c9b0d9;font-size:10px;}
.rx20-home .rx263-schedule .schedule-home-meta strong {color:white;font-size:12px;}
.rx20-home .rx263-schedule .schedule-home-meta span {color:#d9c9e6;font-size:11px;}
.rx20-home .rx263-schedule .schedule-home-item.is-current {
  background:linear-gradient(100deg,#8f185770,#171027);
  box-shadow:inset 0 0 13px #ff2f9c21;
}
.rx20-home .rx263-schedule .program-live {flex-shrink:0;}
.rx20-home .rx263-schedule .schedule-home-next {
  margin:0 10px 12px;
  padding:9px 8px;
  border-top:1px solid #462862;
  font-size:11px;
  line-height:1.45;
}
.rx20-home .rx263-schedule .schedule-home-next span {display:inline-block;}
@media(max-width:900px){
  .rx20-home .rx262-sidebar .rx263-schedule {grid-column:1 / -1;}
}
@media(max-width:600px){
  .rx20-home .rx262-sidebar .rx263-schedule {grid-column:auto;}
}


/* V2.6.4 — Digital clock placed above the schedule in the right sidebar.
   This is presentation-only: player, forms, and schedule are not modified. */
.rx20-home .rx262-sidebar .rx264-clock {
  width:100%; min-width:0; margin:0; overflow:hidden;
  border:1px solid rgba(240,63,199,.68); border-radius:15px;
  background:linear-gradient(125deg,rgba(38,13,57,.96),rgba(12,9,30,.98) 60%,rgba(6,24,42,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065), 0 0 20px rgba(230,34,164,.11);
}
.rx20-home .rx264-clock-heading {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:9px 13px 8px;border-bottom:1px solid rgba(193,57,176,.27);
  background:linear-gradient(90deg,rgba(224,32,143,.13),transparent);
}
.rx20-home .rx264-clock-title {
  display:flex;align-items:center;gap:8px;color:#fff;font-size:12px;font-weight:800;letter-spacing:.01em;
}
.rx20-home .rx264-clock-title > span {color:#ff55d5;font-size:19px;line-height:1;}
.rx20-home .rx264-clock-zone {
  color:#8fe3ff;font-size:10px;font-weight:600;letter-spacing:.03em;white-space:nowrap;
}
.rx20-home .rx264-clock-content {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px 13px;
}
.rx20-home .rx264-clock-left {
  display:flex;align-items:center;gap:6px;color:#d1b5dc;font-size:9px;font-weight:700;
  letter-spacing:.11em;line-height:1.4;
}
.rx20-home .rx264-clock-pulse {
  display:block;width:7px;height:7px;flex:none;border-radius:50%;background:#ff3cad;
  box-shadow:0 0 8px #ff39a8;
}
.rx20-home .rx264-clock-reading {display:grid;justify-items:end;min-width:0;}
.rx20-home .rx264-clock-reading time {
  color:#fff;font-size:clamp(22px,2.25vw,33px);line-height:1.05;
  font-weight:850;letter-spacing:.015em;font-variant-numeric:tabular-nums;
  white-space:nowrap;text-shadow:0 0 13px rgba(243,81,227,.36);
}
.rx20-home .rx264-clock-seconds {font-size:.55em;color:#ff80dc;vertical-align:baseline;margin-left:4px;}
.rx20-home .rx264-clock-date {color:#cdb3e1;font-size:10px;line-height:1.3;margin-top:6px;text-align:right;}
@media(max-width:900px){
  .rx20-home .rx262-sidebar .rx264-clock {grid-column:1/-1;}
}
@media(max-width:600px){
  .rx20-home .rx262-sidebar .rx264-clock {grid-column:auto;}
  .rx20-home .rx264-clock-content {padding:13px 15px 14px;}
  .rx20-home .rx264-clock-reading time {font-size:clamp(27px,8vw,38px);}
  .rx20-home .rx264-clock-left {font-size:10px;}
}
@media(max-width:360px){
  .rx20-home .rx264-clock-content{gap:5px;padding:12px 11px;}
  .rx20-home .rx264-clock-reading time {font-size:26px;}
  .rx20-home .rx264-clock-left {font-size:8px;letter-spacing:.04em;}
}

/* V2.8.5: Larger portraits/covers in the start-page Sendeplan-Vorschau.
   Original 48 × 50 px; now 72 × 72 px, without changing the schedule logic. */
@media (max-width: 420px) {
  .rx20-home .rx263-schedule .schedule-home-item>img {
    width:64px;
    height:64px;
  }
}
