/* ========== CSS RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8ed;
    --text-secondary: #8b8b9e;
    --text-muted: #55556a;
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.4);
    --accent-2: #a29bfe;
    --accent-3: #fd79a8;
    --telegram: #2AABEE;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== ANIMATED BACKGROUND ========== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-3);
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-2);
    top: 50%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ========== HEADER ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    border-radius: 10px;
    font-size: 14px;
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 4px 15px var(--accent-glow); }
    50% { box-shadow: 0 4px 25px var(--accent-glow), 0 0 40px rgba(108, 92, 231, 0.15); }
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.telegram-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(42, 171, 238, 0.1);
    border: 1px solid rgba(42, 171, 238, 0.25);
    border-radius: 50px;
    color: var(--telegram);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
}

.telegram-btn:hover {
    background: rgba(42, 171, 238, 0.2);
    border-color: rgba(42, 171, 238, 0.5);
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.2);
    transform: translateY(-2px);
}

.tg-icon {
    width: 18px;
    height: 18px;
}

/* ========== MAIN CONTENT ========== */
.main {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* ========== VIDEO PLAYER ========== */
.player-container {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
    margin-bottom: 48px;
}

.glow-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-2), var(--accent));
    background-size: 300% 300%;
    animation: borderGlow 6s ease infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    object-fit: contain;
}

/* Hide native download button in video controls */
video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

/* ========== CUSTOM PLAY OVERLAY ========== */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: playPulse 2.5s ease-in-out infinite;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.play-btn svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 8px 30px var(--accent-glow); }
    50% { box-shadow: 0 8px 50px var(--accent-glow), 0 0 60px rgba(108, 92, 231, 0.2); }
}

.play-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== PLAYER INFO BAR ========== */
.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid var(--border);
}

.info-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00b894;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 184, 148, 0); }
}

.stream-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #00b894;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(0, 184, 148, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(0, 184, 148, 0.15);
}

/* ========== FEATURES ========== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 28px 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer a {
    color: var(--telegram);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--accent-2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header {
        padding: 14px 18px;
    }

    .logo-text {
        font-size: 16px;
    }

    .telegram-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .telegram-btn span {
        display: none;
    }

    .main {
        padding: 24px 14px 40px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 20px 18px;
    }

    .player-info {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }

    .play-btn {
        width: 64px;
        height: 64px;
    }

    .play-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 14px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .tg-icon {
        width: 22px;
        height: 22px;
    }
}

/* ========== DISABLE SELECT & DRAG ========== */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
