/* ================================================================
   SAGRUS.TOP — HI-TECH STYLE (только плеер + инфо-попап)
   ================================================================ */

/* ================================================================
   БАЗА
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #05070f;
    color: #e8f4ff;
    font-family: var(--font-sans, 'Inter', -apple-system, 'Segoe UI', sans-serif);
    overflow: hidden;
}
body.camera-only-page {
    background: radial-gradient(ellipse at center, #05070f 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ================================================================
   CAMERA SOLO — главный контейнер
   ================================================================ */
.camera-solo {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.camera-solo__player {
    position: relative;
    /* ИЗМЕНЕНО: убрана ширина с соотношением 16/9 и aspect-ratio */
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 120px rgba(30,144,255,0.1);
    outline: 1px solid rgba(30,144,255,0.15);
}

/* На мобиле — на всю ширину */
@media (max-width: 720px) {
    .camera-solo { padding: 0; }
    .camera-solo__player {
        width: 100%;
        height: 100%;
        box-shadow: none;
        outline: 0;
    }
}

/* ================================================================
   POPUPS (только user info)
   ================================================================ */
.popup { position: fixed; z-index: 2000; }
.popup--user {
    bottom: 24px;
    right: 24px;
    max-width: 340px;
    width: calc(100% - 48px);
}

.popup__body {
    background: rgba(5, 7, 15, 0.92);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(30, 144, 255, 0.12);
    padding: 20px;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.popup__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    font-size: 12px;
    color: #1e90ff;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.popup__content { font-size: 13px; font-family: var(--font-mono, monospace); }
.popup__content p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0;
    color: #b8c7d9;
    font-size: 12px;
}
.popup__content i { color: #1e90ff; width: 16px; text-align: center; flex-shrink: 0; }
.popup__content .fi { width: 18px !important; height: 13px !important; border-radius: 2px; }

.popup__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #8899aa;
    display: grid;
    place-items: center;
    transition: all 0.15s;
    background: transparent;
    border: none;
    cursor: pointer;
}
.popup__close:hover { background: rgba(30,144,255,0.12); color: #1e90ff; }

/* Скрываем иконку крестика, пока идет отсчет */
.popup__close.is-counting i { display: none; }

/* ★ Пока идет отсчет — кнопка НЕ кликабельна и не перехватывает клики */
.popup__close.is-counting {
    pointer-events: none;
    cursor: default;
}

/* Кружок с отсчетом */
.popup__timer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    font-weight: 700;
    color: #1e90ff;
    background: rgba(30, 144, 255, 0.15);
    border: 2px solid #1e90ff;
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.7; }
}

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

@media (max-width: 720px) {
    .popup--user { bottom: 16px; right: 16px; left: 16px; width: auto; max-width: none; }
}