@font-face{
  font-family: 'BEBAS';
  src: url('/static/fonts/BebasNeue-Bold.woff2') format('woff2'),
       url('/static/fonts/BebasNeue_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  /* латиница + базовая Latin-Extended; кириллицу не трогаем */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
                 U+2013-2014, U+2018-201A, U+201C-201E, U+2020, U+2022, U+2026, U+2030, U+2039-203A;
}
* {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE 10+ */
}
*::-webkit-scrollbar {
  display: none;                    /* Chrome, Safari */
}
@font-face {
  font-family: 'Raleway';
  src: url('/static/fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: 'Raleway';
  src: url('/static/fonts/Raleway-SemiBold.ttf') format('truetype');
  font-weight: 600;
}
@font-face {
  font-family: 'Raleway';
  src: url('/static/fonts/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
}


.confirm_popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  color: black;
}
.confirm_popup.show {
  display: flex;
}
.popup_box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 20px;
  text-align: center;
  width: 50vw;
  font-size: 18px;
}
.popup_buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.popup_buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  height: 50px;
}
.popup_buttons #popup_yes {
  background-color: #ff0049;
  color: white;
}
.popup_buttons #popup_no {
  background-color: #ccc;
}


body{
    background-color: #4f0017;
    color: white;
    padding: 50px 20px 20px 20px;
    font-family: 'Raleway', sans-serif;
    margin: 0 auto;
    padding-bottom: 250px !important;

}
.vertical-waves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #4d0016;
}

.vertical-waves .wave {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translateX(-40%);
  opacity: 0.25;
  filter: blur(90px);
  animation: waveCurl 5s ease-in-out infinite;
  background: linear-gradient(to bottom, #9d002d, #be0036);
  clip-path: path("M0,0 C50,200 150,300 250,500 C350,700 450,600 550,800 C650,1000 750,900 850,1100 C950,1300 1050,1200 1150,1400 L1200,0 Z");
}

.vertical-waves .wave:nth-child(2) {
  background: linear-gradient(to bottom, #be0036, #9d002d);
  animation-delay: 4s;
  opacity: 0.2;
  clip-path: path("M0,0 C60,180 180,280 260,480 C360,680 460,580 580,780 C680,980 800,880 900,1080 C1000,1280 1120,1180 1200,1380 L1200,0 Z");
}

.vertical-waves .wave:nth-child(3) {
  background: linear-gradient(to bottom, #c00044, #6d0022);
  animation-delay: 8s;
  opacity: 0.15;
  clip-path: path("M0,0 C40,220 140,320 240,520 C340,720 440,620 540,820 C640,1020 740,920 840,1120 C940,1320 1040,1220 1140,1420 L1200,0 Z");
}

/* Живые колебания кудрей */
@keyframes waveCurl {
  0%, 100% {
    transform: translateX(-40%) scaleX(1);
  }
  50% {
    transform: translateX(-50%) scaleX(1.03) scaleY(1.02);
  }
}
.choosed_genre {
  text-align: left;
  margin-top: 25px;
  font-size: 60px;
  font-family: BEBAS !important;
}
.red {
  color: #ff0049;
}
.search_block {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}
.back_button {
  width: 60px;
  height: 60px;
  background-color: #2e000dc7;
  border-radius: 50%;
  background-image: url("/static/images/back_icon.png");
  background-size: contain;
}
.searcher {
  background-color: #2e000dc7;
  flex-grow: 1;
  height: 60px;
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}
.searcher_block {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
  width: 100%;
  margin-right: 20px;
}
.searcher_block:focus-visible {
  outline: none;
}
.search_icon {
  width: 22px;
  height: 22px;
  margin: 0 auto;
  margin-left: 30px;
}
.video {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  position: relative;
  height: 100%;
  left: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  margin-top: 10px;
  overflow: hidden;
}
.video_thumbnail {
  position: relative;
}
.video_thumbnail img {
  width: 100%;
  border-radius: 20px;
}
.not_favourited {
  opacity: 50%;
  width: 35px;
  height: 35px;
  background-color: rgb(255, 255, 255) !important;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: 15px;
  background-image: url('/static/images/fav_icon.png');
  background-size: 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 10;
}
.favourited {
  width: 35px;
  height: 35px;
  background-color: #ff0049;
  border-radius: 50%;
  position: absolute;
  right: 15px;
  top: 15px;
  background-image: url('/static/images/fav_icon_active.png');
  background-size: 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 10;
}
.fav_icon {
  cursor: pointer;
}
.video_duration {
  background-color: #ff0049;
  width: 100px;
  font-size: 18px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  text-align: center;
  border-radius: 25px;
  height: 30px;
  line-height: 30px;
  position: absolute;
  bottom: 20px;
  left: 10px;
}
.video_info {
  padding: 10px 20px 20px 20px;
}
.title {
  font-size: 20px;
  font-family: 'Raleway' !important;
  font-weight: 700;
  width: 100%;
}
.subtitle {
  font-size: 16px;
  font-family: 'Raleway';
  font-weight: 400;
  opacity: 80%;
  margin-top: 5px;
  width: 100%;
}
.audio {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400;
  margin-top: 10px;
  position: relative;
  height: 100%;
  left: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
}
.static_icon {
  width: 70px;
  height: 70px;
  background-color: #ff0049;
  border-radius: 50%;
}
.static_icon img {
  width: 100%;
  height: 100%;
}
.audio_duration {
  width: 70px;
  font-size: 16px;
  font-family: 'Raleway';
  font-weight: 600;
  text-align: center;
  margin-top: 5px;
  opacity: 80%;
}
.file {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400;
  margin-top: 10px;
  position: relative;
  height: 100%;
  left: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
}
.file_duration {
  width: 70px;
  font-size: 16px;
  font-family: 'Raleway';
  font-weight: 600;
  text-align: center;
  margin-top: 5px;
  opacity: 80%;
}
.file_info {
  padding-left: 10px;
}

.header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  left: 50%;
transform: translateX(-50%);
  background: linear-gradient(45deg, rgba(128, 26, 48, 0.164), rgba(78, 5, 21, 0.281));
  border: 1px solid #ffffff8f;
  border-radius: 50px;
  backdrop-filter: blur(5px);

  position: fixed;
  width: 90vw;
  height: 100px;
  bottom: 20px;

  box-sizing: border-box;
  z-index: 9999;

  box-shadow:
    inset 0 20px 30px -20px rgba(255, 255, 255, 0.3),  /* верх */
    inset 0 -20px 30px -20px rgba(255, 255, 255, 0.3); /* низ */
}
.header_icon{
  width: 22vw;
  height: 90px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header_icon img{
  margin-top: 17px;
  width: 30px;
  height: 30px;
 
}
.header_icon p{
  color: white;
  padding: 0;
  margin: 0;margin-top: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.header_icon.active {
  background-color: #0000009c;
  animation: fadeInActive 0.5s ease-out forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes fadeInActive {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

a {
  all: unset;
}



.blur_overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.2);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.blur_overlay.active {
  opacity: 1;
  pointer-events: all;
}
.explode-out {
    transform: scale(1.2);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  }
  /* Нужен для корректного удаления */
.video, .audio, .file {
  transition: transform 0.3s ease, opacity 0.3s ease, height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

/* Пульсация элемента */
@keyframes favPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 73, 0.4);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 20px 15px rgba(255, 0, 73, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 73, 0);
  }
}

.fav_icon.animate-pulse {
  animation: favPulse 0.6s ease-out;
}

@keyframes favPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 73, 0.4);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 20px 15px rgba(255, 0, 73, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 73, 0);
  }
}

.fav_icon.animate-pulse {
  animation: favPulse 0.6s ease-out;
}

.fav_explosion {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 0, 73, 0.25) 0%, rgba(255, 0, 73, 0) 70%);
  border-radius: 50%;
  animation: explodeFade 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes explodeFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}


#last_seen_card {
  outline: 2px dashed red;
  background-color: rgba(255, 0, 0, 0.1);
  height: 100px;
  width: 200px;
}
