/* ==============================
   Base
============================== */

html {
  scroll-behavior: smooth;
}


/* ==============================
   Loader
============================== */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader img {
  border-radius: 28px;
}

/* Анимация исчезновения */
#loader.fade-out {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}


/* ==============================
   Radioheart Player
============================== */

#radioheart-player {
  margin-top: 50px;
}


/* ==============================
   Background
============================== */

#background {
  margin: 0 auto;
  background: url() no-repeat scroll center top transparent;
  object-fit: none;
  background-size: 1400px;
  width: 100%;
  height: 1000px;
  position: absolute;
  animation: show 12s;
  animation-timing-function: linear;
  animation-delay: -6s;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}

#background img {
  width: 1800px;
  max-width: 1800px;
  margin: 0 auto;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}


/* ==============================
   Styles Chips
============================== */

#styles {
  text-align: center;
  width: 100%;
  height: 58px;
}

#styles a {
  margin: 6px;
  padding: 8px 16px;
  background: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.60);
  font-family: Manrope;
  font-size: 16px;
}

#styles a:hover {
  background: rgba(25, 25, 25, 1);
  color: rgba(255, 255, 255, 0.8);
  transition: filter 0.3s ease;
}


/* ==============================
   Music Chips
============================== */

#music_chips {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  --chip-bg: rgba(12, 12, 12, 0.80);
  z-index: 20;
  position: relative;
}

#music_chips .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px 8px 10px;
  border-radius: 100px;
  background: var(--chip-bg);
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.18px;
  color: #fff;
  border: 1px solid rgba(62, 62, 62, 0.60);
  transition: background 0.25s ease, color 0.25s ease;
}

#music_chips .chip:hover {
  background: #fff;
  color: #000;
}

#music_chips .avatars {
  display: flex;
}

#music_chips .avatars img {
  height: 26px;
  object-fit: cover;
}

#music_chips .avatars img + img {
  margin-left: -8px;
}


/* ==============================
   Track
============================== */

#trackid {
  width: 400px !important;
}


/* ==============================
   Main Feed
============================== */

#mainfeed {
  background: none;
  transition: background 0.3s ease;
  opacity: 1 !important;
  display: block;
  width: 100%;
}

#mainfeed.feed-ready {
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease;
}

.feed-link {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.feed {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 40px auto 178px;
  max-width: 1000px;
  min-height: 600px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(200, 200, 200, 0.08);
  color: #fff;
  background: rgba(20, 20, 20, 0.80);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: transform 0.6s ease;
  will-change: transform;
}

.feed:first-child {
  scroll-snap-stop: normal;
}

.feed-authors {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.feed-authors .feed {
  scroll-snap-align: none;
}

/* Слой фонового изображения */
.feed::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: var(--feed-bg) center / cover no-repeat;
  opacity: 0.6;
  z-index: -1;
}

.feed:hover {
  transform: scale(1.03);
}

.feed h1 {
  color: #fff;
  font-size: 20px;
  line-height: 20px;
  margin-top: 4px;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.feed-item {
  position: relative;
  margin-bottom: 80px;
}

.feed-item::after {
  display: none;
}

.feed-item svg {
  position: absolute;
  left: 50%;
  top: calc(100% + 40px);
  transform: translateX(-50%);
  height: 100px;
  pointer-events: none;
  z-index: 3;
}

.feed-divider {
  scroll-snap-align: none;
  display: contents;
}


/* ==============================
   Feed Top Info
============================== */

.top_author {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.top_author img {
  max-width: 68px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.top_info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.top_info h2 {
  color: #FFF;
  font-family: Manrope;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  margin: 0;
}

.top_tags {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.top_tags div {
  display: flex;
  padding: 6px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  color: #FFF;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.top_date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: 1 0 0;
}

.date {
  color: rgba(255, 255, 255, 0.40);
  font-family: Manrope;
  font-size: 46px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.dateinfo {
  color: rgba(255, 255, 255, 0.40);
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}


/* ==============================
   Feed Center Text
============================== */

.center_text {
  color: #FFF;
  text-align: center;
  font-family: Manrope;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.2px;
  max-width: 500px;
}


/* ==============================
   Feed Bottom Player
============================== */

.bottom_player {
  display: flex;
  width: 100%;
  padding: 17px 20px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.40);
  text-align: right;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.bottom_time {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 23px;
}

.listeners img {
  margin-left: 6px;
}


/* ==============================
   Feed Promo / Ads
============================== */

#promoya {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

#promotag {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.40);
  font-family: Manrope;
  font-size: 12px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

#yandex_rtb_R-A-13604440-2 {
  width: 100%;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ==============================
   Today Section
============================== */

#today {
  display: flex;
  flex-wrap: wrap;
  width: 96%;
  max-width: 1600px;
  background: rgba(40, 40, 40, 0.40);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  margin: 0 auto 24px;
  color: #fff;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* Обертка для today1 и today2 */
#todaystart {
  display: flex;
  width: 100%;
  gap: 24px;
}

/* Левая часть */
#today1 {
  flex: 0 0 40%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: url();
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Правая часть */
#today2 {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  box-sizing: border-box;
}

/* Нижний ряд */
#today3 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}


/* ==============================
   Today Blocks
============================== */

#tblock {
  width: calc(33.3% - 16px);
  box-sizing: border-box;
}

#tblock h2 {
  font-weight: 550;
  font-size: 16pt;
  line-height: 28px;
  margin-top: 6px;
  color: #fff;
}

#tblock b {
  font-weight: 450 !important;
  color: #95979F;
}

#tblock img {
  filter: grayscale(20%) brightness(80%);
  transition: filter 0.3s ease;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#tblock img:hover {
  filter: grayscale(0%) brightness(100%);
}

#tblock:nth-child(odd) {
  padding-left: 0;
}

#tblock:nth-child(2n) {
  padding-right: 0;
}


/* ==============================
   Featured Today Blocks
============================== */

#tblockf {
  width: calc(25% - 18px);
  box-sizing: border-box;
}

#tblockf h2 {
  font-weight: 550;
  font-size: 16pt;
  line-height: 28px;
  margin-top: 6px;
  color: #fff;
}

#tblockf img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}


/* ==============================
   Brief / Info Blocks
============================== */

.zagtest {
  color: #FFF;
  font-family: Manrope;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  text-align: left;
  width: 100%;
  margin-bottom: 24px;
}

#briefdiv {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 24px;
  align-self: stretch;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.blockbutton {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  width: 100% !important;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #373737 0%, #313131 100%);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-align: center;
  font-family: Manrope;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.2px;
  transition: color .25s ease, border-color .25s ease;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* Белый слой */
.blockbutton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}

/* Контент поверх */
.blockbutton > * {
  position: relative;
  z-index: 1;
}

.blockbutton:hover::before {
  opacity: 1;
}

.blockbutton:hover {
  color: #000;
  border-color: #fff;
}

.sicon {
  width: 32px;
}

.blockbutton span {
  text-align: center;
  width: 100%;
}

.brief {
  display: flex;
  min-width: 460px;
  align-items: center;
  gap: 16px;
  flex: 1 0 0;
}

.briefbig {
  display: flex;
  height: 300px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.brief img {
  border-radius: 12px;
  width: 64px;
}

.briefinfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
}

.briefname {
  color: #FFF;
  font-family: Manrope;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
}

.briefcase {
  color: #8B8B8B;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
}

.divider {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 32px;
}

#briefwave {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

#briefwave img {
  border-radius: 12px;
  width: 100%;
  flex-shrink: 0;
  align-self: stretch;
  aspect-ratio: 1/1;
}


/* ==============================
   Content
============================== */

#contentfree {
  width: 96%;
  max-width: 1600px;
  display: none !important;
}

#content_podcast {
  width: 96% !important;
  max-width: 1600px;
}

#content_podcast img {
  filter: grayscale(20%) brightness(86%);
  transition: filter 0.3s ease;
}

#content_podcast img:hover {
  filter: grayscale(0%) brightness(100%);
}


/* ==============================
   Feed Ads
============================== */

#feed_ads {
  width: 96% !important;
  margin: 0 auto 24px;
  max-width: 1600px;
  min-height: 200px;
  overflow: auto;
  background: rgba(40, 40, 40, 0.40);
  backdrop-filter: blur(30px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==============================
   Fixed Content
============================== */

#fixedcontent {
  position: fixed;
  width: 100%;
  padding: 24px;
}

#starter {
  height: 520px;
}

.player-wrapper {margin-top: 120px !important;}


/* ==============================
   Promo
============================== */

#promo {
  display: none;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
  font-family: sans-serif;
  color: #fff;
}

.promoblock {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 260px;
  display: flex;
  gap: 24px;
  background: rgba(25, 25, 25, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 16px;
  box-sizing: border-box;
}

/* Левая часть — картинка */
.promoimg {
  flex: 0 0 128px;
}

.promoimg img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Правая часть — текст */
.promotext {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.ptitle {
  font-weight: 600;
  font-size: 16pt;
  line-height: 1.6;
  margin: 0;
}

.poption {
  font-size: 12pt;
  line-height: 1.6;
  margin: 0;
  color: #ccc;
}


/* ==============================
   Adaptive
============================== */

@media (max-width: 900px) {
  .promoblock {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden !important;
    width: 100%;
    margin: 0 auto;
  }

  #RTWidgetStatus table {
    width: 350px !important;
    margin: 0 auto;
  }

  #mobilemenu {
    display: none;
  }

  #music_chips {
    display: none !important;
  }

  #mainhead {
    width: 100%;
    overflow-y: hidden;
    margin-bottom: -12px !important;
  }

  #starter {
  height: 400px;
  }

  .player-wrapper {margin-top: 100px !important;}

  #mainfeed {
    width: 100%;
  }

  #artists {
    overflow: hidden;
    align-items: normal;
  }

  #fixedcontent {
    max-width: 100%;
    margin: 0 auto;
  }

  #today {
    display: none;
  }

  #feed_ads {
    padding: 0;
    overflow: hidden;
  }

  .promoblock {
    flex: 1 1 100%;
  }

  .feed-item {
    margin-bottom: 180px !important;
    width: 100%;
  }

  .feed {
    margin: 16px;
    margin-bottom: 180px !important;
    padding: 16px !important;
    min-height: 400px !important;
  }

  .top_author {
    justify-content: flex-start;
    gap: 12px;
  }

  .top_author img {
    display: none;
  }

  .date {
    font-size: 32px !important;
  }

  .dateinfo {
    font-size: 14px !important;
  }

  .center_text {
    font-size: 16px !important;
  }

  .top_tags div {
    font-size: 14px !important;
  }

  .top_info {
    gap: 6px !important;
  }

  .top_info h2 {
    font-size: 18px !important;
  }

  .top_date {
    min-width: 80px;
    align-self: flex-start;
  }

  #briefwave {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    overflow-x: auto;
  }

  #briefwave img {
    border-radius: 12px;
    width: 100%;
    flex-shrink: 0;
    align-self: stretch;
    aspect-ratio: 1/1;
  }

  .briefbig {
    display: flex;
    width: 120px;
    height: auto;
    margin-bottom: 12px;
  }

  .briefcase {
    color: #8B8B8B;
    font-family: Manrope;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
  }
}