@font-face {
  font-family: "Manrope";
  src: url(fonts/manrope/static/Manrope-Light.ttf);
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url(fonts/manrope/static/Manrope-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url(fonts/manrope/static/Manrope-Bold.ttf);
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Manrope";
  src: url(fonts/manrope/static/Manrope-ExtraBold.ttf);
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Lora";
  src: url(fonts/Lora-BoldItalic.ttf);
  font-weight: 700;
  font-style: italic;
}

body.theme-dark {
  --page-bg: #293241;
  --base-text-color: #e2e7ef;
  --link-color: #d4dae4;
  --copyrighted-band-color: #d4dae4;
  --logo-color: #ef7558;
  --top-ten-finnish-color: #ef7558;
  --track-hover: #ef7558;
  --play-button-hover: #ef7558;
  --important-link-color: #ef7558;
  --controls-bg: #ef7558;
  --as-app-shadow: #ef7558;
  --donate-bg: #ef7558;
  --block-header-shadow: #ef7558;
  --image-wrapper-bg: #1c232e;
  --additional-text-color: #979ba1;
  --full-discorgaphy-color: #949aa1;
  --beta-sign-color: #979ba1;
  --additional-text-hover: #979ba1;
  --current-track-bg: #444d5e;
  --track-nomusic-color: #bdc2cb;
  --controls-block-bg: #1c232e;
  --as-app-bg: #1c232e;
  --block-header-bg: #1c232e;
  --block-genre-background: #1c232e;
  --real-accent: #efbe20;
}

/* :focus-visible {
  outline: 2px solid #efbe20 !important;
  outline-offset: 3px !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
} */

html,
#main-content {
  background-color: #293241;
}

body {
  background-color: #293241;
  margin: 0;
  padding: 20px 60px;
  color: #e2e7ef;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
}

@media (max-width: 600px) {
  body {
    padding: 10px 30px;
  }
}

a {
  color: #d4dae4;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  line-height: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
}

h3,
h4 {
  line-height: 21px;
}

a:hover {
  color: white;
}

.logo {
  font-weight: 800;
  color: #ef7558;
}

.beta {
  color: #979ba1;
}

.band {
  margin-bottom: 5px;
}

.top {
  margin-bottom: 10px;
  display: flex;
}

.top a {
  color: #e2e7ef !important;
}

.top3 {
  margin-bottom: 10px;
  display: flex;
}

.top410 {
  margin-bottom: 10px;
  display: flex;
}

.top410fixed {
  flex-shrink: 0;
}

.topLink {
  margin-bottom: 30px;
  margin-top: 80px;
  background-color: #1c232e;
  display: flex;
  align-items: center;
  max-width: 305px;
  border-radius: 50px;
  @supports (corner-shape: squircle) {
    corner-shape: squircle;
  }
}

.topLine {
  display: flex;
  gap: 60px;
}

.topLine div {
  flex-shrink: 0;
}

.finTop {
  color: #ef7558;
  font-weight: bold;
}

.photosAndLogo {
  background-color: #1c232e;
  height: 400px;
  background-size: cover;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.bandLogo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  height: 100px;
}

@media (max-width: 600px) {
  .bandLogo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 260px;
    height: initial;
  }
}

.disabled,
.year {
  color: #979ba1;
}

.trackNumber {
  color: #979ba1;
  width: 25px;
  display: inline-block;
  text-align: left;
}

.bands {
  -moz-column-count: 4;
  column-count: 4;
  grid-column-gap: 30px;
  -moz-column-gap: 30px;
  column-gap: 30px;
  width: 1100px;
}

footer {
  margin-top: 280px;
}

.copyrighted {
  color: #d4dae4;
}

.siteHeader {
  margin-top: 50px;
  margin-bottom: 10px;
  line-height: 1;
}

a.logoLink:hover {
  text-decoration: none;
}

a.logoLink:focus-visible {
  outline: 2px solid #efbe20 !important;
  outline-offset: -2px !important; /* Рамка рисуется прямо по внутреннему краю логотипа */
}

h2.albumName {
  margin: 0;
  max-width: 250px;
}

.album {
  display: inline-block;
  padding-right: 30px;
  padding-bottom: 10px;
}

.discography {
  display: block;
  font-size: smaller;
  color: #949aa1;
  line-height: 0.9;
}

.albumLink {
  vertical-align: top;
  display: inline-block;
}

.albumLinkForNews {
  vertical-align: top;
  display: inline-block;
  margin-right: 20px;
  margin-bottom: 20px;
  width: 250px;
}

.albumCover {
  width: 250px;
  aspect-ratio: 1 / 1;
}

.albumCoverPremiere {
  width: 480px;
  aspect-ratio: 1 / 1;
}

.smallAlbums {
  .album {
    width: 125px;
    padding-right: 10px;
  }

  .albumCover {
    width: 125px;
  }

  .album {
    line-height: 1.5;
    font-weight: bold;
    font-size: 12px !important;
  }

  .albumYear {
    font-weight: normal;
    color: #979ba1;
  }
}

@media (max-width: 600px) {
  .albumCoverPremiere {
    width: 320px;
    aspect-ratio: 1 / 1;
  }
}

.ambilight {
  filter: url(#ambilight);
}

.ambilightsmall {
  filter: url(#ambilightsmall);
}

.albumDetailsWithAbout {
  grid-template-rows: 250px 1fr 1fr;
}

.albumDetails {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 250px 1fr;
  margin-bottom: 100px;
}

.albumCoverImage {
  grid-column: 1;
  grid-row: 1;
}

.albumDetails .tracks {
  grid-column: 2;
  grid-row: 1 / 3;
}

.albumDescription {
  font-size: smaller;
  grid-column: 1;
  grid-row: 2;
}

@media (max-width: 600px) {
  .albumDetails .albumCoverImage {
    grid-column: 1;
    grid-row: 1;
  }

  .albumDetails {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 100px;
  }

  .albumDetails .tracks {
    grid-column: 1;
    grid-row: 2;
  }

  .albumDescription {
    font-size: smaller;
    grid-column: 1;
    grid-row: 3;
  }
}

.tracks {
  margin-left: 30px;
}

@media (max-width: 600px) {
  .bands {
    -moz-column-count: 1;
    column-count: 1;
    width: inherit;
  }

  .albumDetails {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tracks {
    margin-top: 1em;
    margin-left: 0;
  }
}

.albumDetails {
  margin-bottom: 80px;
}

.trackWrapper {
  margin-bottom: 4px;
}

.track {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.track {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}

.trackNoPlaying {
  margin-bottom: 4px;
  padding-left: 4px;
}

.track:hover {
  color: #ef7558;
}

.track:target,
.track.is-target {
  background-color: #444d5e;
}

.trackSubname {
  color: #979ba1;
  margin-left: 0.3em;
}

.trackSubname:hover {
  color: #979ba1;
}

.audioBlock {
  margin-top: 5px;
  padding-bottom: 5px;
}

#next {
  position: relative;
  top: 2px;
  cursor: pointer;
}

.miniPlayButton {
  display: inline-block;
  width: 15px;
}

.track:hover .miniPlayButton {
  color: #ef7558;
}

.copyright {
  text-align: right;
}

.currentTrack {
  font-weight: 700;
}

.information {
  margin-top: 40px;
  max-width: 730px;
  padding: 0.1em 1em;
  line-height: 1.4;
  position: relative;
  left: -1em;
  text-wrap: pretty;
}

.information a,
.author a,
.less a {
  color: #ef7558;
}

.information h2 {
  line-height: 1.2;
}

.gag a {
  color: #ef7558;
}

a.nomusic {
  color: #bdc2cb;
}

.lastAddedAlbum h2,
.lastAddedAlbum h3 {
  margin: 0;
  padding: 0;
}

.asApp {
  padding: 1px 20px 15px 20px;
  background-color: #1c232e;
  max-width: 540px;
  box-shadow: 4px 4px 0px 0px #ef7558;
}

.siteHeaderAsApp {
  margin-top: 18px;
  margin-bottom: 3px;
  line-height: 1;
}

.asApp h2 {
  margin-bottom: 0;
}

.asApp ol {
  margin-top: 2px;
  padding-inline-start: 30px;
}

.aboutPremiere {
  max-width: 500px;
  margin-top: 1em;
  line-height: 1.4;
  color: #979ba1;
  white-space: pre-wrap;
}

.albumCover.premier {
  max-width: 500px;
}

.bandsList {
  font-weight: bold;
}

.gig {
  padding-right: 20px;
  padding-bottom: 1em;
  display: flex;
  gap: 16px;
}

.gigName {
  font-weight: bold;
  color: #ef7558;
}

.gig a:hover {
  color: #ef7558;
}

.gig span {
  margin-right: 0.4em;
}

.gigCover {
  width: 260px;
  height: 357px;
}

.gigImage {
  max-width: 260px;
  max-height: 347px;
  aspect-ratio: initial;
}

.bandLink {
  white-space: nowrap;
  color: white;
}

/* Гиги на отдельной странице */

.concerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.concert__image {
  width: 180px;
}

.concert__description {
  width: 210px;
  padding: 10px;
}

.concert__bands {
  font-size: 22px;
  font-weight: 700;
}

/* Карточка */

/* Ваша карточка во флексе */
.card-grid {
  position: relative; /* База для абсолютного позиционирования углов */
  width: 400px; /* Строго фиксированная ширина */
  min-height: 330px; /* Фиксированная высота, чтобы углы были на месте */
  background: #1c232e;
  padding: 15px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .card-grid {
    width: calc(100% + 60px);
    margin: 0 -30px;
  }
}

/* Картинка слева (занимает левый верхний угол по умолчанию) */
.card-grid img {
  max-width: 180px; /* Ограничиваем ширину */
  height: auto; /* Высота своя у каждого гига, соседний текст не прыгает! */
  max-height: 270px; /* Ограничение по высоте, чтобы не перекрыть нижний текст */
  object-fit: contain; /* Картинка аккуратно вписывается */
  object-position: right top;
}

.corner-tl {
  max-width: 200px;
}

/* Правый верхний угол (например, время) */
.corner-tr {
  position: absolute;
  top: 15px;
  right: 15px;
  text-align: right;
}

/* Левый нижний угол (например, место проведения) */
.corner-bl {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

/* Правый нижний угол (например, цена) */
.corner-br {
  position: absolute;
  bottom: 15px;
  right: 15px;
  text-align: right;
  max-width: 100px;
}

/* Гиги закончились */

.donate {
  padding: 30px 0 0 0;
}

.donateLink {
  padding: 10px 20px;
  background-color: #ef7558;
  font-weight: bold;
  margin: 10px 0;
  border-radius: 7px;
}

.donateLink {
  padding: 10px 20px;
  background-color: #ef7558;
  font-weight: bold;
  margin: 10px 0;
  border-radius: 7px;
}

.donateLink a,
.donateLink a:visited {
  color: white;
}

.donateDescription {
  margin-top: 20px;
  display: block;
  font-size: smaller;
  color: #979ba1;
  line-height: 1.2;
}

.blockHeader {
  background-color: #1c232e;
  box-shadow: 4px 4px 0px 0px #ef7558;
  padding: 0 10px 2px 10px;
}

.genres {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.genre {
  display: inline-block;
  padding: 16px 20px;
  font-weight: 700;
  background-color: #1c232e;
  width: 170px;
  height: 75px;
  border-radius: 0 0 16px 0;
}

@media (max-width: 600px) {
  .genres {
    gap: 8px;
  }

  .genre {
    padding: 8px 10px;
    width: 130px;
    height: 60px;
    font-size: smaller;
  }
}

#shareStatusText {
  font-weight: 400;
  color: #979ba1;
  font-size: 14px;
  line-height: 1;
  position: relative;
  top: -5px;
  left: 3px;
}

header {
  display: flex;
}

.logoWrapper {
  flex-grow: 1;
  min-width: 157px;
  white-space: nowrap;
}

.linkToFavorites {
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.whatIsIt {
  margin-left: 60px;
  margin-top: 17px;
}

.whatIsItLink {
  background-color: #ef7558;
  color: white;
  font-weight: bold;
  padding: 3px;
}

/* Сториз */

.stories {
  display: flex;
  gap: 20px;
  margin-top: 5px;
  margin-left: -60px;
  margin-right: -60px;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 15px;
  padding-bottom: 15px;
  overflow-x: auto;

  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 600px) {
  .stories {
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
  }
}

.stories::-webkit-scrollbar {
  display: none;
}

.story {
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.story:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.storyImage {
  width: 256px;
  height: 427px;
  border-radius: 20px;
}

.storyBlank {
  width: 256px;
  height: 427px;
  border-radius: 20px;
  background-color: #1c232e;
}

table.allBands {
  border-spacing: 0 5px;
}

td.allBandsBand {
  vertical-align: top;
  width: 400px;
}

.allBands th {
  text-align: left;
}

.allBandsNoBand {
  color: #949aa1;
  vertical-align: top;
}

/* Форма поиска */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  font-family: Manrope, sans-serif;
  padding-bottom: 10px;
}

.search-input {
  flex-grow: 1;
  padding: 10px 16px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  background: #f9f9f9;
}

.search-input:focus {
  border-color: #ef7558;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.search-button {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: #ef7558;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #ef7558;
}

.search-button:active {
  transform: scale(0.98);
}

.search-clear {
  padding-left: 4px;
  padding-top: 8px;
}

.border {
  border-top: 1px solid #949aa1;
  padding-top: 10px;
  max-width: 700px;
  height: 1px;
}

.allControls {
  position: fixed;
  width: 100%;
  height: 160px;
  bottom: -40px;
  left: 0;
  background-color: black;
}

.progressbarWrapper {
  padding: 0;
  background-color: #1c232e;
}

.controlsWrapper {
  padding: 22px 55px;
  background-color: #1c232e;
  display: flex;
  align-items: center;
}

.controls {
  width: 60px;
  height: 60px;
  min-width: 60px;
  background-color: #ef7558;
  border-radius: 50% 50%;
  font-size: 45px;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.playButton {
  position: relative;
  top: -3px;
  left: 1px;
}

.pauseButton {
  position: relative;
  top: -3px;
}

#now-playing-wrapper {
  text-align: left;
  padding-left: 14px;
  line-height: 1.2;
  flex-grow: 1;
  min-width: 0;
}

#like {
  position: relative;
  top: 10px;
  padding: 0 10px;
}

#now-playing-album-cover-wrapper {
  padding: 2px 0 0 20px;
  position: relative;
  top: 2px;
  flex-shrink: 0;
}

#nowPlaying {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#typeOfNowPlayingPlaylist {
  background-color: #293241;
  font-size: smaller;
  color: #bdc2cb;
  display: inline-block;
  padding: 1px 7px 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  left: -7px;
}

#nowPlayingBandAndAlbum {
  color: #979ba1;
  font-size: smaller;
  display: block;
  width: 100%;
  white-space: nowrap; /* Запрещаем перенос текста на новую строку */
  overflow: hidden; /* Скрываем текст, который не помещается в блок */
  text-overflow: ellipsis; /* Добавляем многоточие (...) на конце */
}

#playingAll {
  padding-left: 20px;
  position: relative;
  top: -1px;
  cursor: pointer;
}

.prevButton,
.nextButton,
.favButton {
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .controlsWrapper {
    padding: 14px 15px 30px 19px;
  }

  #now-playing-album-cover-wrapper {
    padding: 2px 0 0 10px;
  }

  #now-playing-wrapper {
    padding-left: 6px;
  }
}

.flowtext {
  background: linear-gradient(
    90deg,
    #bdc2cb,
    #bdc2cb,
    #bdc2cb,
    white,
    #e2e7ef,
    white,
    #e2e7ef,
    #bdc2cb,
    white,
    #e2e7ef,
    white,
    #bdc2cb
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textflow 5s linear infinite;
}
@keyframes textflow {
  from {
    background-position: 200% center;
  }
  to {
    background-position: 0% center;
  }
}

.aboutUKM {
  margin-top: 5px;
  font-size: 32px;
  color: #979ba1;
  line-height: 38px;
  text-wrap: pretty;
  letter-spacing: -1pxж;
}

.aboutUKM a {
  color: #979ba1;
  transition: all ease-out 0.1s;
}

.aboutUKM a:hover {
  color: white;
  text-shadow:
    1px 1px 10px #ffffff22,
    1px 1px 10px #cccccc22;
}

.gtel {
  margin-top: 60px;
  width: 100%;
  max-width: 1000px;
  height: auto;
  /* Резервирует место под картинку в современных браузерах: */
  aspect-ratio: 1000 / 367;
  display: block;
}

.albumsCompact {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -40px;
}

.albumCompact {
  padding: 0;
  margin: 0;
  height: 72.5px;
}

.albumCoverCompact {
  width: 72.5px;
  aspect-ratio: 1 / 1;
  /*     border-top: 4px solid #1c232e;
    border-left: 24px solid #1c232e;
    border-bottom: 4px solid #1c232e;
    border-right: 4px solid #1c232e; */
}

.linkIcon {
  padding-right: 4px;
  position: relative;
  top: 2px;
}

.lastAddedSticker {
  position: absolute;
  top: -20px;
  left: -45px;
}

.lastAddedHeader {
  padding-left: 140px;
}

@media (max-width: 600px) {
  .lastAddedSticker {
    top: -30px;
  }

  .lastAddedHeader {
    padding-left: 0;
    padding-top: 55px;
  }
}

.video-container {
  padding: 10px 0 30px 0;
  max-width: 800px;
}

@media (max-width: 600px) {
  .video {
    margin: 0 -30px;
  }
}

/* #ukm-player {
  max-width: 800px;
} */

.plyr--video {
  --plyr-color-main: #ef7558;
}

.telegram {
  background-color: #444d5e;
  border-radius: 36px;
  margin-top: 10px;
  padding: 10px 12px 6px 12px;
  display: inline-block;
  @supports (corner-shape: squircle) {
    corner-shape: squircle;
  }
}

.telegramText {
  position: relative;
  top: -2px;
}
