* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #05070a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Video Player Crop */
.crop-container {
    width: 100%;
    max-width: 750px;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.crop-container iframe {
    position: absolute;
    top: -111px; 
    left: 50%;
    transform: translateX(-50%) scale(0.98);
    width: 106%;
    height: calc(100% + 180px);
    border: none;
}

/* Telegram Pop-up CSS */
#telegram-popup {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    opacity: 0;
    visibility: hidden;
}

#telegram-popup.show {
    bottom: 30px;
    opacity: 1;
    visibility: visible;
}

.tg-link {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #24A1DE, #1a7bb0);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(36, 161, 222, 0.5);
    gap: 12px;
    animation: pulse 2s infinite;
}

.tg-link img {
    width: 28px;
    height: 28px;
}

#close-tg {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    border: 2px solid #05070a;
    transition: 0.3s;
}

#close-tg:hover { background: #ff1a1a; transform: scale(1.1); }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 8px 20px rgba(36, 161, 222, 0.5); }
    50% { transform: scale(1.03); box-shadow: 0 12px 30px rgba(36, 161, 222, 0.7); }
    100% { transform: scale(1); box-shadow: 0 8px 20px rgba(36, 161, 222, 0.5); }
}
