/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-y: auto;
    position: relative;
}

/* === ГЛОБАЛЬНЫЕ СТИЛИ === */

/* Скрываем мобильные элементы по умолчанию */
.mobile-only {
    display: none !important;
}

/* Скрываем подписи кнопок по умолчанию */
.button-label {
    display: none !important;
}

/* Фоновое видео */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Общий контейнер */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 40px;
    max-width: 614px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}

/* Неон-бокс и таблица */
.neon-box,
.guarantees-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 614px;
    text-align: center;
    z-index: 2;
}

.neon-box::before,
.guarantees-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, #8d8b8b, #000000);
    filter: blur(5px);
    z-index: -1;
}

.neon-box::after,
.guarantees-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Аватар и инфо */
.avatar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7);
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.username {
    font-size: 36px;
    color: #fff;
}

.name {
    font-size: 20px;
    color: #ccc;
}

.additional-text {
    font-size: 14px;
    color: #d4d4d4;
	font-weight: bold;
}

/* Spotify */
.spotify-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 614px;
    text-align: center;
    z-index: 2;
    margin-top: 20px;
    margin-bottom: 20px;
}

.spotify-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(189, 183, 183));
    filter: blur(5px);
    z-index: -1;
}

.spotify-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.spotify-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.spotify-album-art {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.spotify-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.spotify-track-name {
    font-size: 18px;
    color: #fff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-artist-name {
    font-size: 16px;
    color: #ccc;
    margin: 0 0 10px 0;
}

.spotify-progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
}

.spotify-progress-bar {
    flex-grow: 1;
    height: 5px;
    background-color: #555;
    border-radius: 5px;
    overflow: hidden;
}

.spotify-progress-bar-inner {
    height: 100%;
    background-color: white;
    width: 0%;
    border-radius: 5px;
}

/* Десктопные иконки */
.desktop-only.icon-left-container {
    left: -80px;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.desktop-only.icon-right-container {
    right: -80px;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Кнопки с иконками (десктоп) */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.808);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    touch-action: manipulation;
    z-index: 10;
    position: relative;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 20;
    margin-left: 10px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.button:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Большая кнопка "Мои отзывы" */
.large-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 20px;
    padding: 15px 20px; /* Увеличили вертикальный отступ (было 20px) */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 614px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 2;
    min-height: 50px; /* Добавляем минимальную высоту */
}

.large-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, #5a5a5a, #000000);
    filter: blur(5px);
    z-index: -1;
}

.large-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.large-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* Изображения иконок */
.icon-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-image:hover {
    transform: scale(1.1);
}

/* Поиск и таблица */
.guarantees-container {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
    width: 100%;
    max-width: 614px;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 16px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: #aaa;
}

.guarantees-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: transparent;
    color: white;
    font-size: 14px;
}

.guarantees-table th,
.guarantees-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guarantees-table th {
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.guarantees-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.1);
}

/* === АДАПТИВ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    /* Скрываем десктопные блоки */
    .desktop-only.icon-left-container,
    .desktop-only.icon-right-container {
        display: none !important;
    }

    /* Показываем мобильные кнопки */
    .mobile-only {
        display: flex !important;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
        flex-wrap: nowrap; /* Кнопки — в одной строке */
        overflow-x: auto; /* Горизонтальный скролл, если не помещаются */
        -webkit-overflow-scrolling: touch;
        padding: 0 10px; /* Небольшой отступ от краёв экрана */
    }

/* Размеры кнопок для мобилки — круглые для коротких, прямоугольные для длинных */
.mobile-only .button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    min-width: 48px;
    min-height: 48px;
    width: auto;
    height: auto;
    /* Фиксированный радиус вместо 50% */
    border-radius: 12px; /* ~половина от 48px — даёт круг для квадратных кнопок */
    background: rgba(255, 255, 255, 0.808);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
}

.mobile-only .button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.mobile-only .icon-image {
    width: 22px;
    height: 22px;
    object-fit: cover;
}

/* Подписи — внутри кнопки, чёрные, жирные */
.mobile-only .button .button-label {
    display: block !important;
    font-size: 10px;
    color: black;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    position: static;
}

    /* Скрываем тултип на мобилке */
    .tooltip {
        display: none !important;
    }

    /* Показываем только одну кнопку "Мои отзывы" на мобилке */
    .large-button.mobile-only {
        display: flex !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    /* Скрываем десктопную кнопку на мобилке */
    .large-button:not(.mobile-only) {
        display: none !important;
    }

    /* Адаптация таблицы */
    .guarantees-table,
    .guarantees-table thead,
    .guarantees-table tbody,
    .guarantees-table th,
    .guarantees-table td,
    .guarantees-table tr {
        display: block;
    }

    .guarantees-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .guarantees-table tr {
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px 0;
        margin-bottom: 8px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.2);
    }

    .guarantees-table td {
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        padding-left: 30%;
        text-align: right;
    }

    .guarantees-table td:last-child {
        border-bottom: none;
    }

    .guarantees-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 8px;
        width: 25%;
        text-align: left;
        font-weight: bold;
        color: #ccc;
    }

    /* Spotify на мобилке */
    .spotify-content {
        flex-direction: column;
        text-align: center;
    }

    .spotify-album-art {
        width: 80px;
        height: 80px;
    }

    .spotify-info {
        text-align: center;
    }

    .spotify-progress-container {
        justify-content: center;
    }
}