html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1a1a1a;
    height: 100%;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}



.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    color: #fff;
    background-color: rgba(61, 61, 61, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.nav-logo {
    margin-left: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.nav-logo:hover {
    opacity: 0.9;
}

.nav-logo-icon {
    filter: drop-shadow(0 0 8px rgba(0, 163, 255, 0.5));
}

.nav-logo span {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    font-weight: 800;
}

.download-btn {
    margin-right: 20px;
    background-color: #009ce6;
    border: none;
    border-radius: 300px;
    padding: 6px 16px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 163, 255, 0.3);
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #0088FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 163, 255, 0.4);
}

.container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    transform: translateY(-30px);
}

.logo-container {
    margin-bottom: 1px;
}

.logo-image {
    max-width: 20%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.3));
}

.page-title {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 10px;
}

.page-description {
    margin-bottom: 20px;
    font-size: small;
    color: #ffffff3d;
}

.input-field {
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 10px 15px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: rgba(0, 163, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.08);
}

.link-buttons {
    padding: 0px 0px 10px 0px;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: all 0.2s;
    min-width: 70px;
    height: 26px;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.action-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.copy-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,0.7)' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.open-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(255,255,255,0.7)' viewBox='0 0 24 24'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.buttons {
    margin-top: 10px;
}

.generate-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    width: 200px;
    padding: 8px 0;
    font-weight: 500;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 13px;
}

.generate-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.notification {
    color: #fff;
    background: rgba(0, 163, 255, 0.15);
    border: 1px solid rgba(0, 163, 255, 0.3);
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeInOut 2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    85% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

.catalog-section {
    margin-top: 35px;
}

.catalog-section a {
    text-decoration: none;
    display: inline-block;
}

.catalog-btn {
    background-color: rgba(65, 105, 225, 0.1);
    color: #fff;
    border: 1px solid rgba(65, 105, 225, 0.3);
    padding: 5px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    line-height: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
    animation: dot-blink 1.5s infinite ease-in-out;
    flex-shrink: 0;
    margin-bottom: 1px;
    margin-left: -5px;
    /* Смещаем чуть левее для визуального баланса */
    margin-right: 5px;
    /* Дополнительный зазор до текста */
}

@keyframes dot-blink {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        box-shadow: 0 0 12px #2ecc71;
    }

    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.catalog-btn:hover {
    background-color: rgba(65, 105, 225, 0.2);
    border-color: rgba(65, 105, 225, 0.5);
}

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 0;
    text-align: center;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -7px 5px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #fff;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover {
    color: #fff;
}

.footer-link:hover::after {
    width: 100%;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

#convert-form {
    width: 100%;
    max-width: 400px;
}

#convert-form.hidden {
    display: none !important;
}

#openlink02222 {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 20px;
}

#openlink02222.hidden {
    display: none !important;
}

.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

/* Добавляем стили для редиректа */
.redirect-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
    z-index: 10;
}

.channel-card {
    background-color: rgba(42, 42, 42, 0.95);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
    width: 100%;
    box-sizing: border-box;
    margin: 45px auto 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.channel-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    filter: drop-shadow(0 0 10px rgba(0, 163, 255, 0.3));
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #00A3FF;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #2a2a2a;
}

.channel-info {
    margin-bottom: 1px;
}

.channel-info::-webkit-scrollbar {
    width: 6px;
}

.channel-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.channel-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.channel-info::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.channel-name {
    font-size: 26px;
    font-weight: bold;
    font-weight: 700;
    margin: 0 0 10px;
}

.subscribers {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.channel-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.redirect-timer {
    margin: 20px 0px -10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

#timer {
    color: #ff4444;
    font-weight: bold;
}

.telegram-button {
    display: block;
    background-color: #00A3FF;
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.telegram-button:hover {
    background-color: #0088FF;
    transform: translateY(-1px);
}

.post-id {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-top: 15px;
}

.footer-info {
    margin-top: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.channel-description a {
    color: rgba(133, 185, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.channel-description a:hover {
    color: #00A3FF;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #00A3FF;
}

.sponsor,
.copyright,
.developer {
    margin: 5px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description-text {
    max-height: 0;
    /* Установите начальное значение */
    transition: max-height 0.5s ease-out;
    overflow: hidden;
}

.description-text.collapsed {
    max-height: 35px;
}



@media (max-width: 768px) {
    .nav-header {
        padding: 10px 15px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .download-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .input-field {
        width: 95%;
    }


    .channel-card {
        padding: 20px;
        margin: 5px auto;
    }

    .channel-name {
        font-size: 20px;
    }

    .footer-nav {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-link {
        font-size: 10px;
    }

    .channel-avatar {
        width: 100px;
        height: auto;
    }

    .verified-badge {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}