.dropdown-content {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
}





/*отступ в категориях*/
.main-page-margin {margin: 5px 0 5px 0;}

/* Скрыть блок с песней */
[data-myinfo="song"] {
  display: none;
}


/*    плавные обложки               */

.fade-in {
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/*   --------------------------------   плеер  HLS -----------------------      */

.container-player {display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px;}

.block {
  flex: 1 1 45%;
  min-width: 300px;
  background-color: #fff;
  border: 0px solid #ccc;
  display: flex;
  flex-direction: column; /* Чтобы внутрь можно было разделить на части */
  height: 300px; /* Общая высота блока */
}

/* Центральный контент левого и правого блока */
.left,
.right .content-top {
/*  flex: 1; /* Занимает всю доступную высоту */
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 0px solid #fff;
}
/* Нижний блок с плеером */
.content-bottom {
  flex: 0 0 auto; /* Не растягивается */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 10px 0;
}

.player {
  width: 100%;
  max-width: 300px;
  text-align: center;
  font-weight: bold;
  background-color: #fff;
  padding: 10px;
} 


/*  -----------------------------  2div ---------------------   */

    .container-div {
      display: flex;
      align-items: center; /* вертикальное выравнивание */
      height: 1em; /* или любая фиксированная высота */
    }

    .left-div {
      text-align: left;
    }

    .right-div {
      text-align: right;
      margin-left: auto; /* толкает блок вправо */
    }

/*  ------------------  PLAYER ---------------------   */

    .controls {
      position: relative; align-items: center;
    }

    .controls img {
      cursor: pointer;
    }

    /* Анимация вращения */
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .rot {
      animation: spin 8s linear infinite;
    }

/*----------------------анимация cover-------------------------*/
   /* Анимация появления */
    @keyframes fadeIn {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    /* Анимация исчезновения */
    @keyframes fadeOut {
      from { opacity: 1; transform: scale(1); }
      to { opacity: 0; transform: scale(0.95); }
    }

    .cover-img {
      animation: fadeIn 0.4s ease forwards;
      transition: all 0.3s ease;
      border-radius: 12px;  
    }

    .cover-img.removing {
      animation: fadeOut 0.4s ease forwards;
    }

    #coverContainer {
      display: flex;
      justify-content: center;
      margin-top: 10px;
    }

/*----------------------глобальный поиск-------------------------*/
    .radio-browser__container {
      max-width: 800px;
      width: 100%;
      padding: 20px;
    }

    .radio-browser__form {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }

    .radio-browser__input {
      width: 100%;
      max-width: 400px;
      padding: 10px;
      font-size: 16px;
    }

    .radio-browser__button {
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
    }

    .radio-browser__station {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #fff;
      padding: 15px;
      margin: 0 auto 15px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      max-width: 320px;
      opacity: 0;
      animation: fadeIn 0.6s ease forwards;
    }

    @keyframes fadeIn {
      from {
        transform: translateY(10px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .radio-browser__station:hover {
      transform: translateY(-4px);
    }

    .radio-browser__logo-container {
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 10px;
      cursor: pointer;
    }

    .radio-browser__station img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 12px;
    }

    .radio-browser__play-btn {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      font-size: 28px;
      background-color: rgba(0, 0, 0, 0.2);
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      border: none;
      border-radius: 12px;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      z-index: 2;
      transition: background-color 0.3s ease;
    }

    .radio-browser__logo-container:hover .radio-browser__play-btn {
      background-color: rgba(0, 0, 0, 0.3);
    }

    .radio-browser__play-btn.playing {
      background-color: rgba(0, 0, 0, 0.5);
    }

    .radio-browser__station-name {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 4px;
      text-align: center;
    }

    .radio-browser__station-info {
      color: #666;
      font-size: 14px;
      margin-bottom: 6px;
      text-align: center;
    }

    .radio-browser__add-link {
      margin-bottom: 6px;
      font-size: 14px;
    }

    .radio-browser__link {
      text-decoration: none;
      color: #007BFF;
    }

    .radio-browser__link:hover {
      text-decoration: underline;
    }

    .radio-browser__audio {
      width: 100%;
      height: 30px;
      display: none;
    }

    #backToTop {
      position: fixed;
      bottom: 30px;
      right: 30px;
      display: none;
      padding: 10px 14px;
      font-size: 18px;
      background: #007BFF;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      z-index: 999;
    }

    .radio-browser__load-more {
      text-align: center;
      margin-top: 20px;
    }

    @media (max-width: 768px) {
      .radio-browser__input, .radio-browser__button {
        width: 100%;
        max-width: 100%;
      }

      .radio-browser__container {
        padding: 10px;
      }
        
/*              SVG menu                */        
        
.menu-button rect {
  transition: all 0.3s ease;
}

.menu-button:hover rect:nth-child(1) {
  transform: translateY(4px) rotate(-10deg);
}

.menu-button:hover rect:nth-child(2) {
  opacity: 0;
}

.menu-button:hover rect:nth-child(3) {
  transform: translateY(-4px) rotate(10deg);
}
        
        
/*               hr                       */
hr {
    border: none;
    border-top: 2px dashed #333;
}     
        
        
/*         стиль для ID     */                
ftext-no {display: none;}        
        
/*        скрыть код в PWA           */        
 .pwa-hidden { display: none; }   
/*                подчеркнуть ссылки             */        
   .underlined {
  text-decoration: underline;
}


/* Стили для формы оплаты YooMoney */
.payment-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.payment-form h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #8b3dff;
    background-color: #f9f5ff;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #8b3dff;
}

.amount-display {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.submit-btn {
    background: linear-gradient(135deg, #8b3dff 0%, #6c2bd9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(108, 43, 217, 0.2);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(108, 43, 217, 0.3);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(108, 43, 217, 0.2);
}







/*    switcher   */

.theme-switch-wrapper {
    display: inline-block;
    margin: 0 10px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider .icon {
    position: absolute;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.slider .sun {
    left: 8px;
    opacity: 0;
}

.slider .moon {
    right: 8px;
    opacity: 1;
}

input:checked + .slider .sun {
    opacity: 1;
}

input:checked + .slider .moon {
    opacity: 0;
}

/* Темная тема для кнопки */
body.dark-theme .slider {
    background-color: #444;
}

body.dark-theme .slider:before {
    background-color: #222;
}



/* Коррекция оформления спойлера */
.text_spoiler {
    display: none;
}

/* Коррекция оформления календаря */
.monthselect-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3em;
}
.monthselect-title {
	display: inline-block;
}

}