#site-header {
  margin-bottom: 0;
}

#site-header > div > div {
  padding-inline: 1em;
}

#site-header button {
  display: inline-flex;
}

#site-header button + #main-menu {
  display: none;
}

#site-footer > div {
  padding: var(--base-space);
}

.header-logo {
  width: 110px;
}

main {
  margin-block-start: 0;
}

#modal nav {
  width: min(100% - 1rem, 60.625rem);
  margin-inline: auto;
  padding-block: 2em;
  padding-inline: 1em;

  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline)
}

#modal nav > ul {
  flex-direction: column;
  gap: 2em
}

.wrapper[variant="grid"] {
  display: flex;
  flex-direction: column;
}
.scroll-down .page-header-category,
.scroll-up .page-header-category {
  background-color: var(--dark-secondary);
  position: fixed !important;
  top: 0px;
  left: 0;
  z-index: 298;
  width: 100%;
}

.scroll-up .page-header-category {
  top: 40px;
}

.scroll-up .superapp-header-category {
  top: 43px !important;
}

.scroll-down .home-page,
.scroll-up .home-page {
  margin-top: 96px;
}

.scroll-down .music-stations-page,
.scroll-down .music-stations-category-page,
.scroll-up .music-stations-page,
.scroll-up .music-stations-category-page {
  margin-top: 96px;
}

.scroll-down #site-header > div {
  transform: none;
}

#main-menu {
  isolation: isolate;
  position: fixed;
  inset: auto 0 -1px 0;
  background-color: var(--dark-secondary);
  box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.1), 0px -6px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

#main-menu > ul {
  justify-content: center;
  align-items: center;
  height: 3.75rem;
  gap: 0 0.8125em;
}

#main-menu > ul > li {
  min-width: 3.5rem;
}

#main-menu > ul a {
  display: inline-flex;
  justify-content: space-between;
  flex-direction: column;
  flex: 1;
  min-width: 3rem;
  min-height: 3rem;
  width: 100%;
  font-size: var(--ofm-fontsize-xxs);
  font-weight: 300;
  text-align: center;
  color: hsla(230, 51%, 80%, 0.9);
  text-transform: none;
}

#main-menu > ul a::before {
  content: var(--icon);
  line-height: 1.2;
  font-size: 2.4em;
}

#main-menu > ul a[aria-current] {
  color: var(--ofm-color-white);
}

#main-menu > ul a:hover::before,
#main-menu > ul a[aria-current]::before {
  content: var(--icon-active);
}

:is(#main-menu, .controls) [data-hidden=desktop] {
  display: initial;
}

#user-bar {
  gap: 0.5em;
  align-items: center;
}

/* #__next {
  padding-bottom: 3.75rem;
} */

#ofm-info {
  position: relative;
  padding-bottom: 3.75rem;
  z-index: -1;
}

.categorySelection input:checked~ul {
  flex-wrap: wrap;
}

#page-header {
  background-color: var(--dark-primary);
}

#page-header > div:first-child {
  justify-content: center;
  align-items: center;
}

#page-header .backLink {
  display: inline-flex;
  box-sizing: content-box;
  width: 48px;
  height: 48px;
  padding-inline: 0;
  border: none;
}

#page-header h1 {
  width: calc(100% - 2rem);
  margin-inline: auto;
  text-transform: none;
  font-size: var(--_fontSize);
}

#page-header [for=tagsToggle] {
  position: absolute;
  top: 0;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  height: 3rem;
  font-size: 0.875rem;
  color: var(--white-70);
}

.tags {
  flex-wrap: nowrap;
  gap: 0.5rem;
  scrollbar-width: none;  /* ukrycie scrollbara dla FF */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-inline: 1rem;
}
.scroll-down .tags,
.scroll-up .tags {
  padding-bottom: 14px;
}
.tags::-webkit-scrollbar {
  display: none;
}

#page-header:has(.actions) h1 {
  --ofm-fontWeight: 600;
  width: calc(100% - 8rem);
  min-height: 3.875rem;
  justify-content: center;
}

:is(.station, .podcast, .podcastEpisode) > header#page-header {
  background-color: hsl(230, 51%, 12%);
}

#page-header h1[style*="--cover-image"]::before {
  content: "";
  width: var(--ofm-size-40-48);
  height: var(--ofm-size-40-48);
  aspect-ratio: 1 / 1;
  background: var(--cover-image) no-repeat center;
  background-size: 100%;
  border-radius: 0.125rem;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

#page-header .actions [name=back] {
  margin-inline-start: 0;
  font-size: var(--ofm-fontsize-xl);
}

#radioStations > div {
  width: min(100% - 2rem, var(--mid-page-width));
  margin-inline: auto;
}
#page-header ~ section {
  width: min(100% - 1rem, var(--mid-page-width));
  margin-inline: 0 auto;
}

:is(#radioStations, .recommended) > div,
#page-header ~ section > div {
  --teaser-width: var(--teaser-mobile-row-width);

  grid-template-columns: repeat(auto-fill, minmax(var(--teaser-width), 1fr));
  grid-auto-flow: row;
  row-gap: 12px;
  padding-right: 0;
}

:is(#radioStations, .recommended) article,
#page-header ~ section article {
  --teaser-tile-width: var(--teaser-tile-mobile-row-width);

  justify-content: center;
  padding-block-start: 0;
  padding-inline-start: var(--teaser-tile-padding);
  width: 100%;
  gap: 0.5em;
}


:is(#radioStations, .recommended) article p > strong,
#page-header ~ section article p > strong {
  display: inline-block;
  width: 100%;
  font-size: var(--ofm-fontsize-s);
  font-weight: 400;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--ofm-text-secondary-color) 65%, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:is(#radioStations, .recommended) article > header + *,
#page-header ~ section article > header + * {
  order: unset;
}

:is(#radioStations, .recommended) article :is(h3, h4, h5),
#page-header ~ section article :is(h3, h4, h5) {
  font-size: var(--ofm-fontsize-m);
  line-height: 1;
  text-transform: initial;
  background: linear-gradient(90deg, var(--ofm-text-color) 65%, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

:is(#radioStations, .recommended) article p,
#page-header ~ section article p {
  --ofm-line-clamp-number: 1;
  color: #BABEC0;
}

:is(#radioStations, .recommended) article[data-premium] p,
#page-header ~ section article[data-premium] p {
  position: relative;
  padding-left: 3.25rem;
}

:is(#radioStations, .recommended) article[data-premium] > div > div,
#page-header ~ section article[data-premium] > div > div {
  display: flex;
  align-items: center;
}

article[data-premium] header::before {
  padding: 0.2813rem 0.375rem;
  margin-right: 0.5rem;
  font-size: 0.4375rem;
  border-radius: 0.25rem;
  height: 1rem;
}

:is(#radioStations, .recommended) article[data-premium] > header::before,
#page-header ~ section article[data-premium] > header::before {
  content: unset;
}

:is(#radioStations, .recommended) article[data-premium] > p::before,
#page-header ~ section article[data-premium] > p::before,
:is(#radioStations, .recommended) article[data-premium] > div > div::before,
#page-header ~ section article[data-premium] > div > div::before {
  content: "PREMIUM";
  display: inline-flex;
  align-items: center;
  padding: 0.2813rem 0.375rem;
  margin-right: 0.5rem;
  font-size: 0.4375rem;
  font-weight: 700;
  background-color: var(--ofm-bg-premium-color);
  color: var(--ofm-text-color);
  border-radius: 0.25rem;
  height: 1rem;
  overflow: hidden;
}

:is(#radioStations, .recommended) article[data-premium] > p::before,
#page-header ~ section article[data-premium] > p::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

:is(#radioStations, .recommended) article footer,
#page-header ~ section article footer {
  display: none;
}

:is(#radioStations, .recommended) article footer .premium,
#page-header ~ section article footer .premium {
  position: static;
  transform: unset;
  box-shadow: unset;
  padding: 0.125em 0.7125em;
  min-height: auto;
  font-size: var(--ofm-fontsize-xxs);
  border-radius: 1em;
  font-weight: bold;
  background-color: var(--ofm-bg-premium-color);
}

:is(#radioStations, .recommended) article [name=favorite],
#page-header ~ section article [name=favorite] {
  display: inline-flex;
}

.recommended > :is(h2, h3, h4, h5) {
  margin-bottom: 1rem;
}

.modal {
  align-items: flex-end;
}

.modal:target > div {
  transform: scaleY(1);
}

.modal > div {
  --ofm-modal-radius: 1.875rem 1.875rem 0 0;
  overflow: hidden;
  max-height: 86%;
  margin-bottom: 0;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.5s;
}

.modal > div > div:first-of-type {
  max-height: 65vh;
}

.modal div > .modalClose {
  width: 3.75rem;
  padding: .75rem 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.modal div > .modalClose::before {
  content: "";
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background-color: #fff;
  border-radius: 1em;
}

.modal div > .modalClose span {
  position: fixed;
  left: -999em;
}

.modal footer a {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  border: 0.0625rem solid var(--ofm-color-white);
  border-radius: 2em;
  padding: 0.875rem 1em;
  font-weight: 600;
}

#offline,
#oferta {
  --ofm-modal-bgColor: var(--dark-primary);
}

#delete-account .actions :is(li, a) {
  width: 100%;
}

:is(#oferta, #offline) img {
  display: block;
  margin-inline: auto;
}

:is(#oferta, #offline) img {
  width: 80%;
}

:is(#oferta, #offline) p {
  padding-block: 1rem 1.5rem;
}

body:has(.modal:target) {
  overflow: hidden;
}

#notifications {
  inset: 0;
  transform: unset;
  z-index: 99999;
}

#notifications > div {
  position: unset;
  right: unset;
}

#notifications > div > div {
  position: unset;
  transform: unset;
}

#notifications > div > div > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: min(100% - 3rem, 28.125rem);
}

#notifications .actions li {
  flex: 1 0;
}
#notifications .actions :is(a, button) {
  width: 100%;
}

#tagsToggle:checked ~ .tags {
  flex-wrap: wrap;
}

#ofm-player.open > div {
  inset: 50% 0 auto;
  transform: scale(1) translateY(-50%);
  z-index: 2;
}

#ofm-player.open::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: hsl(0, 0%, 0%);
  z-index: 1;
}

#ofm-player.open ~ #ofm-stickyplayer {
  bottom: 0;
  z-index: 2;
  background: linear-gradient(135deg, #5522B5 -3.84%, #B522A6 115.33%);
}

#site-footer .socialLinks h2 {
  display: none;
}

#site-footer .linkSections section {
  flex: 1 0 50%;
}

.cards {
  grid-auto-flow: column;
  padding-right: 1rem;
}

.iconLoader {
  width: 2rem;
}

:is(.station, .podcast, .podcastEpisode) {
  margin-block-end: 0;
  gap: 1rem 0;
}

:is(.station, .podcast, .podcastEpisode) .extras {
  flex-direction: column;
  gap: 0.5em;
  border-radius: 1.25rem 1.25rem 0px 0px;

  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

:is(.station, .podcastEpisode) .controls li:nth-child(2) {
  flex: 1 0;
  text-align: center;
}

:is(.station, .podcastEpisode) .controls a[class^=icon-arrow] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ofm-fontsize-xxl);
  width: clamp(3rem, 4.3478rem + -1.7391vw, 4rem);
  aspect-ratio: 1 / 1;
}

:is(.station, .podcastEpisode) :is(.playingNow, .controls) {
    width: min(100% - 4rem, var(--mid-page-width));
    margin-inline: auto;
    text-align: center;
    margin-block: 0.5rem;
}

:is(.station, .podcast, .podcastEpisode) ~ .recommended {
  background: rgba(255, 255, 255, 0.05);
  padding-inline-end: 0.5rem;
  padding-block-end: 1.5rem;
  margin-block-end: 0;
}

:is(.station, .podcast, .podcastEpisode) ~ .newestArticles > :not(.tags),
#episodes > :not(.tags) {
  margin-inline-start: 0;
}

:is(.station, .podcast, .podcastEpisode) ~ .newestArticles > :is(h2,h3,h4) > a::before {
  margin-right: 0;
}

:is(.podcast, .podcastEpisode) .extras {
  margin-block-start: 1.5rem;
}

.extras:empty {
  padding: 1rem 0 0;
}

button[value=stop]::before,
button[value=pause]::before,
.station .playingNow > p::before {
  content: unset;
  position: fixed;
  left: -999em;
}

#main-content > div.atg-container {
  background: url("/atg-bg.png") top right no-repeat;
  margin-block-start: 0;
}

.atg-images-group {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
}

.atg-section {
  width: calc(100% - 2rem);
  margin-inline: auto;
  margin-bottom: 3rem;
}

.atg-title {
  font-size: var(--ofm-fontsize-xxl);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.atg-logo {
  vertical-align: middle;
  margin-left: .75rem;
}

.shop-link {
  display: inline-block;
  margin-bottom: 2rem;
  margin-right: 0.5rem;
}

.atg-list {
  list-style-image: url('/check-badge-bullet.svg');
  margin-left: 1.375rem;
}

.atg-list li {
  margin-bottom: 0.375rem;
  font-size: var(--ofm-fontsize-s);
  font-weight: 400;
}

@media (max-width: 30rem) {
  #site-footer .rodoLinks {
    gap: 0 0.5rem;
    justify-content: space-between;
    padding: 0 .1875rem;
  }
}