/* Видео попап всегда поверх всего когда активен */
.video-popup-overlay.active {
    z-index: 99999 !important;
}

/* Компактный видео контейнер */
.video-container-compact {
    width: 350px;
    height: 210px; /* Фиксированная высота для обрезки */
    margin: 20px auto;
    position: relative;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Обрезаем переполнение (верх/низ) */
    --scale-factor: 0.6; /* Регулируйте здесь: 1.0 = без увеличения, 1.1 = немного, 1.2 = сильнее */
}

.compact-video-player {
    width: 100%; /* Заполняем ширину контейнера */
    height: auto; /* Авто-высота для сохранения пропорций */
    display: block;
    background: #2F2F34;
    object-fit: cover; /* Масштабируем для покрытия, обрезая верх/низ */
    transform: scale(var(--scale-factor)); /* Дополнительное увеличение через переменную */
    object-position: center; /* Центрируем фокус (можно изменить на top или bottom для сдвига) */
    opacity: 0.7;
}


/* Кнопка PLAY в центре компактного видео */
.play-button-compact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button-compact:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Треугольник Play */
.play-button-compact::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* ============================================ */
/* ПОЛНОЭКРАННЫЙ ПОПАП */
/* ============================================ */

.video-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ПРОЗРАЧНОСТЬ ФОНА ВИДЕО: измените последнее число (0 = полностью прозрачный, 1 = черный) */
    background: rgba(0, 0, 0, 0); /* 0 = прозрачный, 0.5 = полупрозрачный, 0.9 = почти черный */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-popup-overlay.active {
    display: flex;
}

/* Скрытие контейнера сайта при воспроизведении видео */
body.video-playing #pgHd,
body.video-playing #pgBd,
body.video-playing #pgFt {
    opacity: 0 !important;
    pointer-events: none !important;
    /* СКОРОСТЬ ИСЧЕЗАНИЯ: измените число (0.3s = быстро, 1s = медленно, 2s = очень медленно) */
    transition: opacity 1s ease; /* Здесь меняйте скорость: 0.5s, 1s, 1.5s, 2s и т.д. */
}

/* НО попап видео должен быть ВИДЕН */
body.video-playing .video-popup-overlay {
    opacity: 1 !important;
    pointer-events: all !important;
}

.video-popup-container {
    position: relative;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullsize-video-player {
    width: auto;
    max-width: 85vw;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    background: transparent;
    /* ПРОЗРАЧНОСТЬ ВИДЕО: измените число (0.3 = очень прозрачное, 0.5 = средне, 1 = непрозрачное) */
    opacity: 0.65; /* Здесь меняйте: 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 1 */
    /* СКОРОСТЬ ВОЗВРАТА К ПРОЗРАЧНОСТИ: измените число (1s = медленно, 2s = очень медленно, 3s = супер медленно) */
    transition: opacity 1.5s ease; /* Здесь меняйте: 1s, 1.5s, 2s, 3s */
}

/* При наведении на видео - становится непрозрачным */
.video-popup-container:hover .fullsize-video-player {
    opacity: 1 !important; /* Полностью непрозрачное при наведении */
    transition: opacity 0.3s ease; /* Быстрое появление при наведении */
}

/* СКРЫТИЕ КУРСОРА при неактивности */
.video-popup-overlay {
    cursor: auto;
}

.video-popup-overlay.hide-cursor {
    cursor: none !important; /* Курсор исчезает */
}

.video-popup-overlay.hide-cursor * {
    cursor: none !important; /* Курсор исчезает на всех элементах */
}

/* Кнопка закрытия */
.close-popup {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s;
}

.close-popup:hover {
    transform: scale(1.2);
}

/* Панель управления полноразмерного видео */
.video-controls-fullsize {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 50px 20px 20px;
    opacity: 1; /* ИСПРАВЛЕНО: всегда видны */
    transition: opacity 0.3s ease;
}

.video-popup-container:hover .video-controls-fullsize,
.video-controls-fullsize.show {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent); /* чуть темнее при наведении */
}

/* Прогресс бар */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: #CCCCCC;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s;
}

/* Кнопки управления */
.controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* растягиваем элементы по всей ширине */
    gap: 15px; /* отступ между элементами */
}

.control-button {
    background: none; /* убираем фон */
    border: none; /* убираем рамку */
    border-radius: 0; /* убираем скругление */
    color: white;
    cursor: pointer;
    padding: 4px; /* уменьшаем отступы */
    font-size: 24px;
    transition: transform 0.2s;
    line-height: 1;
    display: inline-flex; /* важно для SVG */
    align-items: center;
    justify-content: center;
    min-width: auto; /* убираем минимальную ширину */
    min-height: auto; /* убираем минимальную высоту */
    width: 32px; /* фиксированная ширина */
    height: 32px; /* фиксированная высота */
    outline: none !important; /* убираем outline */
    text-decoration: none !important; /* убираем подчёркивание */
}

.control-button:hover {
    transform: scale(1.2); /* при наведении увеличиваем */
    background: none; /* фон не меняется */
    text-decoration: none !important; /* убираем подчёркивание при наведении */
}

.control-button:focus {
    outline: none !important; /* убираем квадратик при фокусе */
    box-shadow: none !important;
}

.control-button:active {
    outline: none !important; /* убираем квадратик при нажатии */
}

/* Время */
.time-display {
    color: white;
    font-size: 14px;
    font-family: monospace;
    min-width: 100px;
}

/* Громкость */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Кнопка громкости - убираем все эффекты */
#muteBtn {
    outline: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#muteBtn:focus {
    outline: none !important;
    box-shadow: none !important;
}

#muteBtn:active {
    outline: none !important;
}

#muteBtn:hover {
    text-decoration: none !important;
}

#muteBtn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.volume-slider {
    width: 80px; /* Увеличили для контейнера 400px */
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    /* ШИРИНА РЕГУЛЯТОРА ГРОМКОСТИ: измените для вашего размера видео */
    /* Для 350px контейнера: 80px */
    /* Для 400px контейнера: 120px */
    /* Для 500px контейнера: 150px */
    /* Для 600px+ контейнера: 180-200px */
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #808080;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #808080;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* ========================= */
/* Play/Pause кнопка SVG */
/* ========================= */

/* ИСПРАВЛЕНО: По умолчанию показываем Play */
#playPauseBtn .icon-play {
    display: inline; /* показываем иконку Play */
}

#playPauseBtn .icon-pause {
    display: none; /* по умолчанию Pause скрыт */
}

#playPauseBtn.playing .icon-play {
    display: none; /* когда видео играет, скрываем Play */
}

#playPauseBtn.playing .icon-pause {
    display: inline; /* когда видео играет, показываем Pause */
}

/* Убедимся что SVG видны */
#playPauseBtn svg {
    width: 24px;
    height: 24px;
    display: inline-block;
}

/* Убедимся что кнопка видна */
.control-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

  .art.compact {
    overflow: visible !important; /* Prevent clipping when scaling */
  }

  .art-thumb.thumb-glow {
    transition: transform 0.3s ease !important; /* Smooth transition */
  }

  .art-thumb.thumb-glow:hover {
    transform: scale(1.05) !important; /* Enlarge by 10% on hover */
  }
  

  /* Скрываем весь раздел Full Digital Discography на мобильных (max-width: 740px,) */
  @media (max-width: 600px) {
    /* Целевой селектор: контейнер дискографии (по тексту и классам из кода) */
    #full-discography,
    .leftColumn .art.compact,  /* Контейнер для компактных thumbs */
    .art-thumb.thumb-glow {    /* Конкретно thumbnails (8 маленьких картинок) */
      display: none !important;
    }
    
    /* Опционально: скрываем кнопку Buy Digital Discography и текст, если нужно полностью убрать блок */
    .buyItem.digital-discography {
      display: none !important;
    }
    
    /* Скрываем блок .bd с текстом "Get all 38 releases..." на мобильных */
    .bd {
      display: none !important;
    }
    
    /* Скрываем оригинальное видео наверху на мобильных */
    .video-container-compact {
      display: none !important;
    }
    
    /* Меню на всю ширину */
    .band-navbar-wrapper {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      background: #434347 !important;
    }
    
    #band-navbar {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      padding: 5px 10px !important;
      box-sizing: border-box !important;
      display: flex !important;
      background: #434347 !important;
    }
    
    /* Убираем отступы у body и контейнеров */
    body {
      overflow-x: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
      background: #2F2F34 !important;
    }
    
    /* Главный контейнер */
    #pgBd {
      padding: 0 !important;
      margin: 0 !important;
      width: 100% !important;
      max-width: 100% !important;
      overflow-x: hidden !important;
      background: #2F2F34 !important;
    }
    
    /* Хедер */
    #customHeaderWrapper,
    #customHeader {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
      background: #2F2F34 !important;
    }
    
    /* Скрываем десктоп хедер на мобильных */
    .desktop-header {
      display: none !important;
    }
    
    /* Показываем мобильный хедер */
    .mobile-header {
      display: flex !important; /* Изменили на flex для размещения логотипа и текста рядом */
      align-items: center !important; /* Выравнивание по центру */
      gap: 15px !important; /* Отступ между логотипом и текстом */
      padding: 8px !important;
    }
    
    .mobile-header img {
      width: 70px !important;
      height: 70px !important;
      border-radius: 50%;
    }
    
    /* Название группы рядом с логотипом */
    .mobile-band-name {
      color: #D1DDEB !important;
      font-size: 20px !important;
      font-weight: normal !important;
      letter-spacing: 1px !important;
    }
    
    /* Контейнер страницы - непрозрачный фон */
    .tralbum-page,
    #propOpenWrapper,
    .trackView,
    .leftMiddleColumns {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow-x: hidden !important;
      background: #2F2F34 !important;
    }
    
    /* Левая колонка без отступов */
    .leftColumn,
    #trackInfo {
      width: 100% !important;
      max-width: 100% !important;
      padding: 0 10px !important;
      margin: 0 !important;
      float: none !important;
      box-sizing: border-box !important;
    }
    
    /* Картинка альбома на всю ширину, без отступов */
    #tralbumArt {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      margin-bottom: 5px !important;
      padding: 0 !important;
      box-sizing: border-box !important;
      overflow: visible !important;
      max-height: none !important;
      height: auto !important;
    }
    
    /* Отключаем клик на обложке */
    #tralbumArt a,
    #tralbumArt .popupImage {
      pointer-events: none !important;
      cursor: default !important;
    }
    
    #tralbumArt img,
    #tralbumArt a,
    #tralbumArt .popupImage,
    #tralbumArt .popupImage img {
      width: 100% !important;
      max-width: 100% !important;
      height: auto !important;
      max-height: none !important;
      margin: 0 !important;
      padding: 0 !important;
      display: block !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      overflow: visible !important;
      object-fit: contain !important;
    }
    
    /* Скрываем "Timeless synthetic landscapes" */
    .deets,
    .deets .writing,
    .deets .text {
      display: none !important;
    }
    
    /* Превью видео для мобильных */
    .video-preview-mobile {
      display: block !important;
      position: relative !important;
      width: calc(100% - 20px);
      min-height: 200px;
      height: auto;
      aspect-ratio: 16/9;
      margin: 30px 10px 10px 10px;
      cursor: pointer;
      overflow: hidden;
      clear: both;
      background: #000;
    }
    
    /* Копирайт - фиксим позиционирование */
    .tags-label {
      display: none !important;
    }
    
    .tralbum-tags,
    .tralbum-tags-nu {
      position: static !important;
      float: none !important;
      clear: both !important;
      margin-top: 20px !important;
      padding: 10px !important;
      display: block !important;
    }
    
    .tralbum-tags p,
    .tralbum-tags-nu p {
      position: static !important;
      margin: 0 !important;
    }
    
    .video-preview-mobile canvas,
    .video-preview-mobile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .play-button-mobile {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 50px;
      height: 50px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .play-button-mobile::after {
      content: '';
      display: block;
      width: 0;
      height: 0;
      border-left: 18px solid white;
      border-top: 11px solid transparent;
      border-bottom: 11px solid transparent;
      margin-left: 4px;
    }
    
    /* Скрываем звёздное небо (canvas) на мобильных */
    #canvas {
      display: none !important;
    }
  }
  
  /* На десктопе скрываем мобильное превью */
  @media (min-width: 600px) {
    .video-preview-mobile {
      display: none !important;
    }
    .mobile-header {
      display: none !important;
    }
  }
  
  /* ПОКАЗАТЬ ПРАВУЮ КОЛОНКУ только на широких экранах */

/* ================================================ */
/* АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА */
/* ================================================ */
@media screen and (max-width: 600px) {
    /* Шапка сайта */
    #customHeaderWrapper {
        width: 100% !important;
        overflow: hidden !important;
        max-width: 100vw !important;
    }
    
    #customHeader {
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .desktop-header {
        width: 100% !important;
        height: auto !important;
        padding: 10px !important;
        text-align: center !important;
        max-width: 100vw !important;
    }
    
    .desktop-header img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Навигация */
    .band-navbar-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    #band-navbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        padding: 0 10px !important;
        white-space: nowrap !important;
    }
    
    #band-navbar li {
        flex-shrink: 0 !important;
        margin: 0 5px !important;
    }
    
    #band-navbar a {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
    
    /* Основная структура - вертикальная */
    .trackView {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Скрыть правую колонку на мобильных */
    #rightColumn {
        display: none !important;
    }
    
    /* Обложка альбома на весь экран */
    .art-thumb {
        width: 100vw !important;
        height: 100vw !important;
        max-width: 100vw !important;
        max-height: 100vw !important;
        margin: 0 !important;
    }
    
    /* Контейнер с обложкой */
    #tralbumArt {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Компактное видео сразу после обложки */
    .video-container-compact {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 20px 0 !important;
        order: 2;
    }
    
    .compact-video-player {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Средняя колонка - полная ширина */
    .middleColumn {
        width: 100% !important;
        padding: 15px !important;
        order: 3;
    }
    
    /* Название секция */
    #name-section {
        width: 100% !important;
        padding: 15px !important;
    }
    
    /* Видео контейнер на мобильных */
    .video-popup-container {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .fullsize-video-player {
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
    
    /* Кнопка закрытия */
    .close-popup {
        top: 10px !important;
        right: 10px !important;
        font-size: 30px !important;
        z-index: 100000 !important;
    }
    
    /* Панель управления */
    .video-controls-fullsize {
        padding: 30px 15px 15px !important;
    }
    
    /* Кнопки управления */
    .control-button {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* Время */
    .time-display {
        font-size: 12px !important;
    }
    
    /* Ползунок громкости */
    .volume-slider {
        width: 60px !important;
    }
    
    /* Основной контент */
    body {
        font-size: 14px !important;
        overflow-x: hidden !important;
    }
    
    /* Скрыть кнопку скрытия контента на мобильных */
    .hide-content-button {
        display: none !important;
    }
    
    /* Центрирование контента */
    #centerWrapper {
        width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .video-controls-fullsize {
        padding: 20px 10px 10px !important;
    }
    
    .controls-row {
        gap: 8px !important;
    }
    
    .volume-slider {
        width: 40px !important;
    }
    
    .time-display {
        font-size: 11px !important;
    }
    
    #band-navbar a {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
}

/* ============================================ */
/* МОБИЛЬНАЯ АДАПТАЦИЯ */
/* ============================================ */

@media screen and (max-width: 600px) {
    /* Убираем фиксированную ширину контейнера */
    #pgBd, .widebody #pgBd {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px 20px !important; /* Убрали верхний отступ */
        box-sizing: border-box !important;
    }
    
    #pgHd, .widebody #pgHd {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important; /* Убрали отступ после меню */
    }
    
    /* СКРЫТЬ НАЗВАНИЕ АЛЬБОМА на мобильных */
    #name-section {
        display: none !important;
    }
    
    /* СКРЫТЬ ПРАВУЮ КОЛОНКУ (дискография) на мобильных */
    .rightColumn, #rightColumn {
        display: none !important;
    }
    
    /* ПОРЯДОК ЭЛЕМЕНТОВ: обложка → аудио → кнопка → треки → видео */
    .leftMiddleColumns {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* 1. Обложка первая (сверху) */
    .middleColumn {
        order: 1;
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 2. Плеер + кнопка + треки второй */
    .leftColumn {
        order: 2;
        width: 100% !important;
        float: none !important;
        padding: 20px 0 0 !important;
    }
    
    /* Обложка альбома - без отступов сверху */
    #tralbumArt {
        max-width: 100% !important;
        margin: 0 auto 20px !important;
    }
    
    /* Аудио плеер */
    .inline_player {
        max-width: 100% !important;
        margin-bottom: 20px !important;
        order: 1; /* Первый в leftColumn */
    }
    
    /* Кнопка Buy */
    .tralbumCommands {
        order: 2; /* Вторая */
        margin-bottom: 20px !important;
    }
    
    /* Треки */
    #track_table {
        order: 3; /* Третий */
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* ВИДЕО ВНИЗУ (после треков) */
    .video-container-compact {
        order: 4; /* Последнее */
        width: 100% !important;
        max-width: 350px !important;
        margin: 20px auto !important;
    }
    
    /* Убираем видео из collected-by блока и перемещаем вниз */
    .collected-by {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Таблица треков */
    .track_list {
        width: 100% !important;
    }
}

@media screen and (max-width: 600px) {
    /* Дополнительные настройки для телефонов */
    body {
        overflow-x: hidden !important;
    }
    
    #pgBd {
        padding: 15px 10px !important;
    }
    
    /* Уменьшаем размеры на телефонах */
    h2, .trackTitle {
        font-size: 18px !important;
    }
    
    .inline_player table {
        font-size: 14px !important;
    }
}

/* ============================================ */
/* РАСКРЫВАЮЩАЯСЯ ГАЛЕРЕЯ ДИСКОГРАФИИ */
/* ============================================ */
.art.compact {
    position: relative;
    transition: all 0.4s ease;
}

.art.compact .art-thumb {
    transition: all 0.3s ease;
}

/* Развёрнутое состояние */
.art.expanded {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
}

.art.expanded .art-thumb {
    position: relative !important;
    width: 65px !important;
    height: 65px !important;
    margin: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: 1 !important;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.art.expanded .art-thumb.visible {
    display: block !important;
    opacity: 1;
    transform: scale(1);
}

.art.expanded .more-button {
    display: none !important;
}


/* Показываем изображение в натуральном размере 872px */
#imagePopupOverlay img {
    max-width: min(872px, 95vw) !important;
    max-height: 95vh !important;
}

@media (min-width: 1000px) {
    #imagePopupOverlay img {
        max-width: 872px !important;
    }
}

.last-track .play-col .play_status {
       visibility: hidden;
   }
   
  





/* ================================================ */
/* ФИКС ДЛЯ СРЕДНИХ ЭКРАНОВ (741px - 1199px) */
/* ================================================ */

/* ================================================ */
/* ФИКС ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ (1024x768 и меньше) */
/* ================================================ */

/* ================================================ */
/* ДЛЯ iPad Mini 768x1024 И ПОХОЖИХ (самые узкие планшеты) */
/* ================================================ */
@media (min-width: 600px) and (max-width: 820px) {
    #pgBd {
        zoom: 0.8; /* Уменьшаем на 20% */
    }
}

/* ДЛЯ iPad Air 820x1180 И ПОХОЖИХ */
@media (min-width: 821px) and (max-width: 900px) {
    #pgBd {
        zoom: 0.85; /* Уменьшаем на 15% */
    }
}

/* ДЛЯ Surface Pro 912x1368 И ПОХОЖИХ */
@media (min-width: 901px) and (max-width: 1100px) {
    #pgBd {
        zoom: 0.9; /* Уменьшаем на 10% */
    }
}

.ft.compound-button.main-button {
    margin-top: 8px;
}

/* ============================================ */
/* ЧИСТЫЕ ШРИФТЫ - ВАРИАНТ 3: DM SANS (очень популярный) */
/* ============================================ */
/* Добавьте в HEAD вашего HTML:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
*/
body,
.inline_player,
.inline_player .track_info,
.trackView,
#tralbumData,
.trackTitle,
p,
div,
span,
a {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600;
}
#name-section h2,
#name-section .title {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700;
}
#band-name-location .title,
.fromAlbum {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 500;
}
button,
.buyItem,
.compound-button,
.main-button {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 500;
}
#band-navbar,
#band-navbar a,
.band-navbar-wrapper {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 500;
}
.track_list .title,
.track_list .title-col {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400;
}
.time-display,
.inline_player .time,
.track_list .time {
    font-family: 'Space Mono', 'Courier New', Consolas, monospace !important;
}
.tralbumData.tralbum-about,
.bd,
.tralbum-credits {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 400;
    line-height: 1.6;
}
.buyItem .price,
.ft span {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600;
}
small,
.smallText,
.secondary-text {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 300;
}

/* Выравнивание аватарок по левому краю с обложкой */
.collected-by .no-writing {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.collected-by .deets {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.collected-by {
    padding-left: 0 !important;
}

/* Размер аватарок */
.collected-by img.thumb {
    width: 28px !important;
    height: 28px !important;
    object-fit: cover !important;
    margin: 2.1px !important;
    opacity: 0.88 !important; /* Прозрачность */
}

/* При наведении - светлее */
.collected-by a.fan.pic:hover img.thumb {
    filter: brightness(1) !important;
    opacity: 1 !important;
}


.collected-by a.fan.pic {
    display: inline-block !important;
}
