/* TODAY.FM 4.1.61 · full-width, responsive station header
   Covers the public header only. Audio player instance and JS remain untouched.
   Load this AFTER site.css, nav-social-werbeportal-v22.css and todayly-link-v4160.css.
*/
.station-header,
.station-header__bar {
  box-sizing: border-box;
}
.station-header .station-header__bar {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-inline: 0;
}
.station-header .station-brand {
  min-width: 0;
  max-width: 100%;
}
.station-header .station-nav,
.station-header .station-player {
  min-width: 0;
  max-width: 100%;
}
.station-header .station-player {
  width: 100%;
}
.station-header .station-nav__todayly,
.station-header .station-nav-mobile__todayly,
.station-header .station-player__button,
.station-header .station-player__cover,
.station-header .station-player__popup,
.station-header .nav-toggle,
.station-header .station-nav__search {
  border-radius: 0 !important;
}

/* Desktops: the logo stays left, navigation stretches, player has useful room. */
@media (min-width: 1481px) {
  .station-header .station-header__bar {
    grid-template-columns: clamp(195px, 13.5vw, 260px) minmax(0, 1fr) clamp(320px, 23vw, 480px);
    column-gap: clamp(12px, 1.2vw, 26px);
    padding-inline: clamp(20px, 2.2vw, 52px);
    justify-content: stretch;
  }
  .station-header .station-brand {
    width: 100%;
    max-width: 248px;
  }
  .station-header .station-brand img {
    width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
  }
  .station-header .station-nav {
    display: flex !important;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    gap: clamp(6px, .7vw, 19px);
  }
  .station-header .station-nav > a:not(.station-nav__todayly),
  .station-header .station-nav__trigger {
    font-size: clamp(10px, .68vw, 12px);
    letter-spacing: .02em;
  }
  .station-header .nav-toggle {
    display: none !important;
  }
  .station-header .station-player--v2 {
    grid-template-columns: 48px minmax(0,1fr) 44px 30px;
    gap: 8px;
    padding: 7px 9px;
  }
  .station-header .station-player__art,
  .station-header .station-player--v2 .station-player__cover {
    display: block;
    width: 48px;
    height: 48px;
  }
  .station-header .station-player--v2 .station-player__button {width: 44px;height: 44px;}
  .station-header .station-player--v2 .station-player__popup {width: 30px;height: 44px;}
}

/* Wider monitors: keep the whole navigation comfortable rather than centring
   a narrow band in the middle of a large viewport. */
@media (min-width: 1900px) {
  .station-header .station-header__bar {
    grid-template-columns: 265px minmax(0, 1fr) clamp(440px, 24vw, 560px);
    column-gap: clamp(22px, 1.55vw, 40px);
    padding-inline: clamp(34px, 2.6vw, 72px);
  }
  .station-header .station-nav {gap: clamp(13px, 1vw, 26px);}
  .station-header .station-nav > a:not(.station-nav__todayly),
  .station-header .station-nav__trigger {font-size: 12px;}
  .station-header .station-player--v2 {
    grid-template-columns: 56px minmax(0,1fr) 48px 34px;
    gap: 10px;
  }
  .station-header .station-player__art,
  .station-header .station-player--v2 .station-player__cover {width: 56px;height: 56px;}
  .station-header .station-player--v2 .station-player__button {width: 48px;height: 48px;}
  .station-header .station-player--v2 .station-player__popup {width: 34px;height: 48px;}
}

/* Tablets/netbooks: menu collapses before the player can crush song metadata.
   Keep the player on the right in the existing header row. */
@media (min-width: 621px) and (max-width: 1480px) {
  .station-header .station-header__bar {
    grid-template-columns: clamp(140px, 16vw, 210px) 44px minmax(0, 420px);
    justify-content: space-between;
    column-gap: clamp(8px, 1.3vw, 20px);
    padding-inline: clamp(12px, 2vw, 28px);
  }
  .station-header .station-brand {
    width: 100%;
    max-width: 200px;
  }
  .station-header .station-brand img {width: 100%;height: auto;max-height: 64px;}
  .station-header .station-nav {display: none !important;}
  .station-header .nav-toggle {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line, rgba(255,255,255,.18));
    background: transparent;
  }
  .station-header .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--green, #b9f94a);
  }
  .station-header .station-nav-mobile {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #080b09;
    transition: max-height .3s ease, padding .3s ease;
  }
  .station-header.nav-open .station-nav-mobile,
  .nav-open .station-header .station-nav-mobile,
  .nav-open .station-nav-mobile {
    max-height: calc(100dvh - var(--header-height,78px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 20px 20px;
  }
  .station-header .station-nav-mobile > a,
  .station-header .station-nav-mobile__dropdown > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border-bottom: 1px solid var(--line,rgba(255,255,255,.13));
  }
  .station-header .station-nav-mobile__dropdown {grid-column: 1/-1;}
  .station-header .station-nav-mobile__dropdown > div {display: none;}
  .station-header .station-nav-mobile__dropdown[open] > div {display: grid;grid-template-columns: repeat(3,minmax(0,1fr));}
  .station-header .station-nav-mobile svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: var(--green,#b9f94a);
    stroke-width: 1.8;
  }
  .station-header .station-player--v2 {
    width: 100%;
    min-width: 0;
    grid-template-columns: 44px minmax(0,1fr) 42px 30px;
    gap: 7px;
    padding: 6px;
  }
  .station-header .station-player__art,
  .station-header .station-player--v2 .station-player__cover {display: block;width: 44px;height: 44px;}
  .station-header .station-player--v2 .station-player__button {width: 42px;height: 42px;min-width: 0;}
  .station-header .station-player--v2 .station-player__popup {width: 30px;height: 42px;min-width: 0;}
}
@media (min-width: 621px) and (max-width: 860px) {
  .station-header .station-header__bar {
    grid-template-columns: clamp(118px, 17vw, 150px) 44px minmax(0, 1fr);
  }
  .station-header .station-player--v2 {
    grid-template-columns: 38px minmax(0,1fr) 40px 28px;
    gap: 5px;
  }
  .station-header .station-player__art,
  .station-header .station-player--v2 .station-player__cover {width: 38px;height: 38px;}
  .station-header .station-player--v2 .station-player__button {width: 40px;height: 40px;}
  .station-header .station-player--v2 .station-player__popup {width: 28px;height: 40px;}
  .station-header .station-player__lower {display: none;}
  .station-header .station-nav-mobile {grid-template-columns: repeat(2,minmax(0,1fr));}
  .station-header .station-nav-mobile__dropdown[open] > div {grid-template-columns: repeat(2,minmax(0,1fr));}
}

/* Phones: preserve the proven two-row mobile player, with full viewport width. */
@media (max-width: 620px) {
  .station-header .station-header__bar {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0,1fr) 44px;
    grid-template-rows: 50px 54px;
    grid-template-areas: "brand toggle" "player player";
    column-gap: 10px;
    row-gap: 6px;
    justify-content: stretch;
  }
  .station-header .station-brand {grid-area: brand;max-width: 155px;}
  .station-header .nav-toggle {grid-area: toggle;}
  .station-header .station-player--v2 {grid-area: player;width: 100%;min-width: 0;}
}
