 :root {
            --primary: #ff00e4;
            --secondary: #00a3ff;
            --access: #00ff88;
            --danger: #ff3333;
            --bg: #000;
            --text: #fff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
        }

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}
.container {
    flex: 1;
}
        body {
            background: var(--bg);
             padding-top: 150px;
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .hero {
            text-align: center;
            padding: 4rem 0;
            position: relative;
        }

        .title {
            font-size: 4rem;
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 2rem;
            position: relative;
        }

        .input-container {
            position: relative;
            max-width: 800px;
            margin: 2rem auto;
        }

        .url-input {
            width: 100%;
            padding: 1.5rem;
            font-size: 1.2rem;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            color: white;
            transition: all 0.3s ease;
        }

        .url-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
        }

        .download-btn {
            background: linear-gradient(45deg, var(--primary), var(--secondary));
            border: none;
            padding: 1rem 3rem;
            font-size: 1.2rem;
            border-radius: 8px;
            color: black;
            cursor: pointer;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
        }

         .access-btn {
            background: linear-gradient(45deg, var(--access), var(--secondary));
            border: none;
            padding: 1rem 3rem;
            font-size: 1.2rem;
            border-radius: 8px;
            color: black;
            cursor: pointer;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .access-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
        }

         .danger-btn {
            background: linear-gradient(45deg, var(--danger), var(--secondary));
            border: none;
            padding: 1rem 3rem;
            font-size: 1.2rem;
            border-radius: 8px;
            color: black;
            cursor: pointer;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .danger-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
        }
        /* Эффект границ */
        .hover-border {
            position: absolute;
            background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
            opacity: 0.3;
            pointer-events: none;
            transform: translate(-50%, -50%);
            transition: width 0.3s, height 0.3s;
        }

        /* Анимация фона */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: radial-gradient(circle at 50% 50%, rgba(255, 0, 228, 0.1), rgba(0, 0, 0, 0));
        }

          .message-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1050;
        }
        .alert {
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 5px;
            opacity: 0.95;
        }

        .nav-header {
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    }

    .nav-brand {
        font-size: 1.5rem;
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        position: relative;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::before {
        width: 100%;
    }

    /* Стили для футера */
    .footer {
        background: rgba(0, 0, 0, 0.9);
        border-top: 1px solid rgba(0, 255, 136, 0.1);
        padding: 3rem 0;
        margin-top: 5rem;
    }

    .footer-title {
        color: var(--primary);
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

    .footer-link {
        color: rgba(255, 255, 255, 0.6) !important;
        text-decoration: none;
        padding: 0.3rem 0;
        transition: all 0.3s ease;
    }

    .footer-link:hover {
        color: var(--primary) !important;
        transform: translateX(5px);
    }

    .social-icon {
        width: 40px;
        height: 40px;
        border: 1px solid rgba(0, 255, 136, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .social-icon:hover {
        background: rgba(0, 255, 136, 0.1);
        transform: translateY(-3px);
    }

       /* Стили для секции с результатами */
    .results-section {
        margin: 4rem 0;
    }

    .media-preview {
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        margin-bottom: 2rem;
        border: 2px solid rgba(0, 255, 136, 0.1);
        background: rgba(255, 255, 255, 0.03);
        transition: all 0.3s ease;
    }

    .media-preview:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
    }

    .thumbnail-wrapper {
        position: relative;
        padding-top: 56.25%; /* 16:9 aspect ratio */
        background: #000;
    }

    .thumbnail-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
    }

    .media-info {
        padding: 1.5rem;
    }

    .media-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .format-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem;
        margin: 0.3rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        border: 1px solid rgba(0, 255, 136, 0.2);
    }

    .format-details {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    .download-options {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .quality-btn {
        background: rgba(0, 255, 136, 0.1);
        border: 1px solid var(--primary);
        color: var(--primary);
        padding: 0.8rem 1.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .quality-btn:hover {
        background: var(--primary);
        color: #000;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
      /* Добавляем стили для неизвестного размера */
    .unknown-size {
        color: rgba(255, 255, 255, 0.4);
        font-style: italic;
    }

    /* Стили для телеграм кнопки */
    .telegram-btn {
        background: rgba(29, 161, 242, 0.1);
        border: 1px solid #1da1f2;
        color: #1da1f2;
        position: relative;
        overflow: hidden;
    }

    .telegram-btn:hover {
        background: #1da1f2;
        color: white;
    }

    .telegram-btn i {
        margin-right: 8px;
    }

    /* Индикатор загрузки */
    .loading-indicator {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top-color: var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 10px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

        /* Контейнер переключателя */
    .download-switch {
        display: inline-flex;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50px;
        padding: 5px;
        position: relative;
        border: 1px solid rgba(0, 255, 136, 0.2);
        margin: 1rem 0;
    }

    /* Общий стиль кнопок */
    .switch-btn {
        padding: 0.8rem 2rem;
        border: none;
        background: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        position: relative;
        z-index: 1;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Активная кнопка */
    .switch-btn.active {
        color: #000;
    }

    /* Подложка для анимации */
    .switch-bg {
        position: absolute;
        background: linear-gradient(45deg, var(--primary), var(--secondary));
        border-radius: 50px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }

    /* Иконки */
    .switch-btn i {
        margin-right: 8px;
    }

    /* Специфичные стили для Telegram */
    .telegram-part .switch-btn.active {
        background: linear-gradient(45deg, #1da1f2, #0088cc);
    }

    .telegram-part.active .switch-bg {
        background: linear-gradient(45deg, #1da1f2, #0088cc);
    }



/* Стили для переключателя */
.switch-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 1rem 0;
}

.switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
}

.switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 49%;
    height: calc(100% - 6px);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.switch-option {
    position: relative;
    z-index: 1;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.switch-option i {
    margin-right: 8px;
}

/* Для Telegram режима */
.switch-input:checked ~ .switch-label .switch-slider {
    transform: translateX(100%);
    background: linear-gradient(45deg, #1da1f2, #0088cc);
    box-shadow: 0 0 15px rgba(29, 161, 242, 0.3);
}

.switch-input:checked ~ .switch-label .switch-option[data-type="telegram"] {
    color: #000;
}

.switch-input:not(:checked) ~ .switch-label .switch-option[data-type="direct"] {
    color: #000;
}


/* Общие стили для форм */
.auth-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-form label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Анимация фона формы */
.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: animateBg 6s linear infinite;
}

@keyframes animateBg {
    0% { transform: rotate(45deg) translateX(-50%); }
    100% { transform: rotate(45deg) translateX(50%); }
}


/* Контейнер для списка сайтов */
.supported-sites {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.supported-sites h2 {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Список сайтов */
.site-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.site-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.site-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.site-item:hover .site-icon {
    filter: grayscale(0%);
}

.site-name {
    color: white;
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s ease;
}

.site-item:hover .site-name {
    color: var(--primary);
}

/* Анимация фона */
.site-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 136, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: animateBg 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-item:hover::before {
    opacity: 1;
}

@keyframes animateBg {
    0% { transform: rotate(45deg) translateX(-50%); }
    100% { transform: rotate(45deg) translateX(50%); }
}


.instructions-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.instructions-title {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
}

/* Стили для текста */
.instructions-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

.instructions-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0 1rem;
    position: relative;
}

.instructions-text h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: var(--secondary);
}

.instructions-text p {
    margin-bottom: 1.5rem;
}

.instructions-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.instructions-text li {
    margin-bottom: 0.5rem;
    position: relative;
}

.instructions-text li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: -1rem;
}

/* Стили для изображений */
.instruction-image {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.instruction-image:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.2);
}

.image-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.instructions-text h3,
.instructions-text p,
.instruction-image {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.instructions-text h3 { animation-delay: 0.2s; }
.instructions-text p { animation-delay: 0.4s; }
.instruction-image { animation-delay: 0.6s; }
</style>

