body.body {
    margin: 0;
    padding: 0;
    background: #000;
    height: 100vh;
    overflow: hidden;
}

/* Центрируем */
.xh-player-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контейнер плеера */
.xh-fake-player {
    width: 100%;
    max-width: 1220px;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

/* ПРЕВЬЮ-КАРТИНКА */
.xh-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* PLAY-кнопка */
.xh-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    /* АДАПТИВНЫЙ РАЗМЕР */
    width: 90px;
    height: 90px;
}

/* КНОПКА PLAY — SVG с glow-эффектом */
.xh-play-btn svg {
    width: 100%;
    height: 100%;
    fill: white;

    /* лёгкая тень + подсветка */
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6))
            drop-shadow(0 0 3px rgba(255,255,255,0.8));

    opacity: 0;
    transform: scale(0.85);
    animation: playFadeIn 0.35s ease-out forwards;
}

/* АНИМАЦИЯ появления */
@keyframes playFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Лёгкая пульсация при наведении */
.xh-play-btn:hover svg {
    transform: scale(1.07);
    transition: 0.15s ease-out;
}

/* Более крупный Play на больших экранах */
@media (min-width: 480px) {
    .xh-play-btn {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 768px) {
    .xh-play-btn {
        width: 150px;
        height: 150px;
    }
}

/* ========================
   НИЖНЯЯ ПАНЕЛЬ (как было)
   ======================== */

/* Нижняя панель – увеличенная, адаптивная */
.xh-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px 20px; /* было 14px 16px */
    background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
    box-sizing: border-box;
    pointer-events: none;
}

/* Прогрессбар – толще */
.xh-progress {
    height: 5px; /* было 3px */
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px; /* было 8px */
}

.xh-progress::after {
    content: "";
    width: 18%;
    height: 100%;
    background: #fff;
}

/* Контролы — крупнее */
.xh-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Время — читаемее */
.xh-time {
    color: #fff;
    font-size: 17px; /* было 14px */
    opacity: 0.95;
}

/* Иконки — крупнее */
.xh-icons {
    display: flex;
    gap: 18px; /* было 12px */
}

.xh-icon {
    width: 28px; /* было 22px */
    height: 28px; /* было 22px */
    fill: #fff;
    opacity: 0.95;
}
/* ====== ЭФФЕКТ ЗАТЕМНЕНИЯ НИЖНЕЙ ЧАСТИ ПЛЕЕРА ====== */

.xh-fake-player::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ====== ПУЛЬСАЦИЯ PLAY КНОПКИ ====== */

@keyframes pulsePlay {
    0%   { transform: translate(-50%, -50%) scale(1); }
    50%  { transform: translate(-50%, -50%) scale(1.07); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.xh-play-btn {
    animation: pulsePlay 2.4s ease-in-out infinite;
    z-index: 3;
}

/* Дополнительный блик на Play (premium-style) */
.xh-play-btn svg {
    filter:
        drop-shadow(0 0 10px rgba(255,255,255,0.7))
        drop-shadow(0 0 4px rgba(255,255,255,0.9));
}

/* ====== АНИМАЦИЯ ПОЯВЛЕНИЯ НИЖНЕЙ ПАНЕЛИ ====== */

.xh-bottom-bar {
    animation: bottomFadeIn 0.55s ease-out forwards;
    opacity: 0;
}

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

/* ====== УЛУЧШЕНИЕ ВИДА ПРОГРЕСС-БАРА ====== */

.xh-progress {
    background: rgba(255,255,255,0.25);
}

.xh-progress::after {
    background: linear-gradient(90deg, #fff, #ddd);
}

/* ====== ПОДСВЕТКА ИКОНКИ ПРИ НАВЕДЕНИИ (мобильный tap эффект) ====== */

.xh-icon {
    transition: opacity 0.15s ease-out;
}

.xh-icon:active {
    opacity: 0.55;
}
/* панель скрыта по умолчанию */
.xh-bottom-bar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* класс для показа панели */
.xh-bottom-bar.active {
    opacity: 1;
    transform: translateY(0);
}
/* движущийся "заполняющий" прогресс */
.xh-progress::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 22%; /* длина псевдо-прогресса */
    background: linear-gradient(90deg, #ffffff, #e3e3e3);
    animation: fakeProgress 6s linear infinite;
}

/* Анимация */
@keyframes fakeProgress {
    0%   { transform: translateX(0); }
    100% { transform: translateX(400%); }
}
/* Прогрессбар – фикс */
.xh-progress {
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    margin-bottom: 12px;
    position: relative;      /* ← фикс */
    overflow: hidden;        /* ← фикс, чтобы белый квадрат не вылезал */
}

.xh-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #ffffff, #e5e5e5);
    animation: fakeProgress 6s linear infinite;
}

@keyframes fakeProgress {
    0%   { transform: translateX(0); }
    100% { transform: translateX(400%); }
  
}


.xh-frame {
    opacity: 0;
    transition: opacity 0.25s ease-out;
}
.xh-frame.loaded {
    opacity: 1;
}
