﻿.man_rel {
    display: inline-block;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    color: #667eea;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    transition: all 0.3s ease;
}

    .man_rel::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .man_rel:hover::after {
        width: 80%;
    }

    .man_rel:hover {
        transform: translateY(-2px);
    }


.iphone-15-wrapper {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    animation: slideInLeft 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

/* Блок с видео */
.video-container {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

    .video-container:hover {
        transform: translateY(-5px);
        background: rgba(0, 0, 0, 0.85);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    }

/* Внутренний контейнер для видео */
.video-inner {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

    .video-inner video {
        width: 245px;
        display: block;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .video-inner video.loaded {
            opacity: 1;
        }

/* Индикатор загрузки */
.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

    .video-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.video-loader span {
    color: white;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Блок с описанием */
.video-description-left {
    max-width: 280px;
    height: 570px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 16px 20px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInLeft 0.5s ease 0.2s forwards;
    opacity: 0;
}

    .video-description-left:hover {
        transform: translateX(5px);
        background: rgba(0, 0, 0, 0.85);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .video-description-left strong {
        color: #ffd700;
        font-weight: 600;
    }

    .video-description-left .emoji {
        font-size: 14px;
        margin-right: 6px;
    }

/* Анимации */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Мобильная адаптация */
@media (max-width: 900px) {
    .iphone-15-wrapper {
        left: 10px;
        bottom: 15px;
        gap: 10px;
    }

    .video-description-left {
        max-width: 200px;
        padding: 10px 14px;
        font-size: 10px;
    }

    .video-inner video {
        width: 196px;
    }

    .video-container {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .iphone-15-wrapper {
        display: none;
    }
}
