/* Critical CSS - Optimized for fast loading */
:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-solid: #6366f1;
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --secondary-solid: #4f46e5;
    --accent: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --accent-solid: #f59e0b;
    --dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    --darker: #0f0f23;
    --card: rgba(255, 255, 255, 0.08);
    --card-solid: #334155;
    --text: #ffffff;
    --muted: #a0aec0;
    --border: rgba(255, 255, 255, 0.12);
    --success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --success-solid: #10b981;
    --danger: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --danger-solid: #ef4444;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 20px 40px rgba(0,0,0,0.3);
    --shadow-light: 0 8px 25px rgba(31, 38, 135, 0.37);
    --glow: 0 0 30px rgba(103, 126, 234, 0.5);
}

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

body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    background: var(--dark);
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(103, 126, 234, 0.1) 0%, transparent 70%),
                radial-gradient(ellipse at bottom right, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

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

/* Header - Optimized */
header{
    background:var(--darker);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
    padding:1rem 0
}

.header-content{display:flex;justify-content:space-between;align-items:center}

.logo{
    display:flex;
    align-items:center;
    gap:.75rem;
    text-decoration:none;
    color:var(--text);
    font-weight:700;
    font-size:1.5rem
}

.logo img{width:40px;height:40px;border-radius:8px}

.desktop-nav{display:flex;align-items:center;gap:1rem}
.nav-buttons{display:flex;align-items:center;gap:1rem}

/* Header Button Alignment Fix */
.auth-buttons .auth-btn {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    margin: 0;
    vertical-align: middle;
}

.nav-buttons a{
    color:var(--text);
    text-decoration:none;
    font-weight:500;
    padding:.5rem 1rem;
    border-radius:8px;
    transition:all .3s ease;
    display:flex;
    align-items:center;
    gap:.5rem
}

.nav-buttons a:hover{background:var(--card);color:var(--primary)}

.telegram-btn{
    background:linear-gradient(135deg,#0088cc,#229ed9);
    color:white!important;
    box-shadow:0 4px 15px rgba(0,136,204,.3);
    position:relative;
    overflow:hidden
}

.telegram-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(0,136,204,0.4)
}

.telegram-btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
    transition:left 0.5s
}

.telegram-btn:hover::before{
    left:100%
}

.chrome-extension-btn{
    background:linear-gradient(135deg,#4285f4,#34a853);
    color:white!important;
    box-shadow:0 4px 15px rgba(66,133,244,.3)
}




.age-badge{
    background:rgba(255,255,255,.2);
    padding:2px 6px;
    border-radius:4px;
    font-size:11px;
    font-weight:700;
    margin-left:4px
}

/* Mobile Sticky Telegram Button */
.mobile-telegram-sticky {
    position: fixed;
    bottom: 20px;
    right: 15px;
    background: linear-gradient(135deg, #0088cc, #229ed9, #0088cc);
    color: white;
    padding: 10px 14px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.7);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: glow 2.5s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.mobile-telegram-sticky:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.7), 0 0 20px 5px rgba(0, 136, 204, 0.4);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.mobile-telegram-sticky .telegram-icon {
    animation: bounce 2s infinite;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }


    .mobile-telegram-sticky {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }

}

/* Mobile Menu - Lazy loaded */
.mobile-menu-toggle{
    display:none;
    background:none;
    border:none;
    color:var(--text);
    font-size:1.5rem;
    cursor:pointer;
    padding:.5rem;
    border-radius:8px;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: var(--card);
}

.mobile-sidebar{
    position:fixed;
    top:0;
    left:-300px;
    width:300px;
    height:100vh;
    background: linear-gradient(135deg, var(--darker) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(103, 126, 234, 0.2);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    z-index:1000;
    transition:left .3s ease;
    overflow-y:auto
}

.mobile-sidebar.open{left:0}

.sidebar-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:999;
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility .3s ease;
    pointer-events:none
}

.sidebar-overlay.active{opacity:1;visibility:visible;pointer-events:auto}

.sidebar-header{
    padding:1rem;
    border-bottom:1px solid var(--border);
    display:flex;
    justify-content:space-between;
    align-items:center;
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1), rgba(119, 75, 162, 0.1));
    backdrop-filter: blur(10px);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header .logo h1 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header .logo img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.3);
}

.sidebar-close{
    background:none;
    border:none;
    color:var(--text);
    font-size:1.5rem;
    cursor:pointer;
    padding:.5rem
}

.sidebar-menu ul{list-style:none;padding:1rem 0}

.sidebar-menu a{
    display:flex;
    align-items:center;
    gap:.75rem;
    padding:1rem 1.5rem;
    color:var(--text);
    text-decoration:none;
    font-weight:500;
    transition: all .3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(103, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.sidebar-menu a:hover::before {
    left: 100%;
}

.sidebar-menu a:hover{
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.15), rgba(240, 147, 251, 0.1));
    color: #f093fb;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.2);
}

.sidebar-menu a i {
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

/* Sidebar Authentication Section */
.sidebar-auth-section {
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.sidebar-auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sidebar-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.4);
}

.sidebar-profile {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1), rgba(119, 75, 162, 0.05));
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-info i {
    font-size: 2rem;
    color: #667eea;
}

.profile-details {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.profile-type {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: capitalize;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.profile-action-btn.logout {
    color: #ff6b6b;
}

.profile-action-btn.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Main Content */
main{flex:1;padding:2rem 0}

.hero{text-align:center;margin-bottom:3rem;padding-top:2rem}

.hero h1{
    font-size:2.5rem;
    margin-bottom:.5rem;
    margin-top:-3rem;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 50%,#f093fb 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
    text-shadow: 0 0 30px rgba(103, 126, 234, 0.3);
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 3rem;
        padding-bottom: 1rem;
    }
}

.hero p{
    font-size:.9rem;
    color:var(--muted);
    max-width:800px;
    margin:0 auto;
    margin-bottom:-3rem
}

/* Player Container - Premium Glass Morphism */
.player-container{
    background: var(--glass);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow), 0 0 60px rgba(103, 126, 234, 0.1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 24px 24px 0 0;
}

.player-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow), 0 0 80px rgba(103, 126, 234, 0.15);
}

@media (min-width: 768px) {
    .player-container {
        margin-top: 2rem;
        margin-bottom: 5rem;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 16px;
        padding: 2.5rem;
    }
}

.input-container{display:flex;gap:.75rem;margin-bottom:1.5rem;align-items:stretch}
.input-group{flex:1;position:relative}

input[type="url"]{
    width:100%;
    padding:1rem 5rem 1rem 1rem;
    border-radius:12px;
    border:2px solid var(--border);
    background:var(--darker);
    color:var(--text);
    font-size:1rem;
    transition:border-color .3s ease
}

input[type="url"]:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(99,102,241,.1)
}

.paste-btn{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;
    border:none;
    padding:8px 16px;
    border-radius:8px;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:4px;
    transition:all .3s ease
}

.paste-btn:hover{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    transform:translateY(-50%) scale(1.05)
}

.btn-group{
    display:flex;
    gap:0.5rem;
    margin-top:1rem
}

/* Hide Share and Report buttons initially */
.share-report-btn {
    display: none !important;
}

/* Mobile responsive button layout */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        flex-direction: row;
    }

    .btn-group .action-btn {
        flex: 1;
        font-size: 0.9rem;
        padding: 0.8rem 0.5rem;
        min-width: 0;
        white-space: nowrap;
    }

    .video-controls {
        display: flex !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 1rem !important;
        flex-wrap: nowrap !important;
    }

    .video-controls .action-btn {
        flex: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.3rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        padding: 0.7rem 0.5rem !important;
        font-size: 0.85rem !important;
        min-height: 44px !important;
        white-space: nowrap !important;
    }

    .video-controls .action-btn i {
        font-size: 0.9rem !important;
    }

    /* Hide Share and Report buttons initially on mobile too */
    .share-report-btn {
        display: none !important;
    }
}

.action-btn{
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Load More Button specific styling to match video gallery container */
#loadMoreBtn {
    display: block;
    margin: 2rem auto;
    text-align: center;
    background: var(--glass) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-light) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#loadMoreBtn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-solid) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-2px) !important;
}

/* Load More Videos Button - matches video gallery container */
.load-more-btn {
    background: var(--glass) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-light) !important;
    color: white !important;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-solid) !important;
    box-shadow: var(--shadow) !important;
    transform: translateY(-2px) !important;
}

/* View All TeraBox Videos Button - eye-catching gradient */
.view-all-terabox-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.view-all-terabox-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.view-all-terabox-btn:hover::before {
    left: 100%;
}

.view-all-terabox-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.view-all-terabox-btn i {
    animation: pulse 2s infinite;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(103, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.action-btn:active {
    transform: translateY(0);
}

/* Play Button Specific Styling */
#playBtn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

#playBtn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

#playBtn:hover i {
    animation: pulse 1s infinite;
}

/* Download Button Specific Styling */
#downloadBtn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

#downloadBtn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
    transform: translateY(-3px);
}

#downloadBtn:hover i {
    animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

.btn-accent{
    background-color:var(--accent)
}

.btn-secondary{
    background-color:#6b7280;
    color:white
}

/* Messages */
.error-message{
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: #ff6b6b;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    margin-bottom: 1.5rem;
    display: none;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: errorPulse 2s ease-in-out infinite;
}

.error-message::before {
    content: '⚠️';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@keyframes errorPulse {
    0%, 100% { border-color: rgba(255, 107, 107, 0.3); }
    50% { border-color: rgba(255, 107, 107, 0.6); }
}

/* Mobile responsive error message */
@media (max-width: 768px) {
    .error-message {
        padding: 1rem;
        font-size: 0.9rem;
        margin: 1rem 0;
        border-radius: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        white-space: normal;
        line-height: 1.5;
    }
}

.success-message{
    background: var(--glass);
    backdrop-filter: blur(20px);
    color: #4ade80;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    margin-bottom: 1.5rem;
    display: none;
    box-shadow: var(--shadow-light);
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: successGlow 2s ease-in-out infinite;
}

.success-message::before {
    content: '✅';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

@keyframes successGlow {
    0%, 100% { border-color: rgba(74, 222, 128, 0.3); }
    50% { border-color: rgba(74, 222, 128, 0.6); }
}

/* Video Player */
.video-wrapper{
    position:relative;
    width:100%;
    border-radius:12px;
    overflow:hidden;
    margin-top:1.5rem;
    display:none;
    background:var(--darker);
    aspect-ratio:16/9;
    box-shadow:var(--shadow)
}

.video-player{
    width:100%;
    height:100%;
    object-fit:contain;
    border:none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Comprehensive video protection styles */
video {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

video::-webkit-media-controls-panel {
    -webkit-user-select: none !important;
}

video::-webkit-media-controls-enclosure {
    -webkit-user-select: none !important;
}

/* Disable drag and drop on videos */
video {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

/* Additional protection for video containers */
.video-wrapper,
.video-container,
.embed-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.loading{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.8);
    z-index:10
}

.loading svg{width:80px;height:80px;animation:spin 1.5s linear infinite}

@keyframes spin{
    0%{transform:rotate(0deg)}
    100%{transform:rotate(360deg)}
}

.video-controls{
    display:flex;
    flex-wrap:wrap;
    gap:.75rem;
    margin-top:1rem;
    justify-content:center
}

.video-controls .action-btn{flex:1;min-width:120px}
.share-report-btn{display:none!important}


/* Info Section - Deferred */
.info-section{padding:3rem 0}
.info-wrapper{display:flex;flex-direction:column;gap:2rem;max-width:1200px;margin:0 auto}
.info-row{display:grid;grid-template-columns:1fr;gap:2rem}

.card{
    background:linear-gradient(135deg,rgba(51,65,85,.8) 0%,rgba(30,41,59,.9) 100%);
    padding:2.5rem;
    border-radius:20px;
    box-shadow:var(--shadow);
    border:1px solid rgba(255,255,255,.1);
    position:relative;
    overflow:hidden;
    transition:transform .4s ease
}

.card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)
}

.card:hover{transform:translateY(-5px)}

.card h2{
    font-size:1.75rem;
    margin-bottom:1.5rem;
    color:var(--primary);
    font-weight:700;
    display:flex;
    align-items:center;
    gap:.75rem
}

.card h3{
    color:var(--accent);
    font-size:1.25rem;
    margin:1.5rem 0 1rem;
    font-weight:600
}

.card p,.card li{color:var(--text);margin:.75rem 0;line-height:1.7}
.card ol,.card ul{padding-left:1.5rem;margin:1rem 0}
.card ol li{margin-bottom:.75rem}

/* FAQ */
.faq{
    margin-bottom:1.5rem;
    border-bottom:1px solid rgba(255,255,255,.1);
    padding-bottom:1.5rem;
    transition:all .3s ease
}

.faq:last-child{border-bottom:none}

.faq h3{
    cursor:pointer;
    padding:1rem 1.5rem;
    margin:0;
    font-size:1.125rem;
    color:var(--primary-solid);
    transition:all .3s ease;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-radius:12px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.faq h3::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    color: var(--primary-solid);
}

.faq h3.active::after {
    transform: rotate(180deg);
}

.faq h3:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.faq-answer {
    display: none;
    margin: 1rem 0;
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: var(--text);
    line-height: 1.7;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Popups - Lazy loaded */
.popup-overlay,.report-popup-overlay,.share-popup-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999
}

.popup-card,.report-popup-card,.share-popup-card{
    background:linear-gradient(135deg,rgba(51,65,85,.8) 0%,rgba(30,41,59,.9) 100%);
    border-radius:20px;
    padding:2rem;
    width:90%;
    max-width:420px;
    color:var(--text);
    box-shadow:var(--shadow);
    position:relative;
    border:1px solid rgba(255,255,255,.1)
}

.close-btn{
    position:absolute;
    top:15px;
    right:20px;
    font-size:1.5rem;
    color:var(--accent);
    cursor:pointer;
    transition:all .3s ease
}

.popup-card input,.popup-card textarea,.report-popup-card input,.report-popup-card textarea,.report-popup-card select{
    width:100%;
    padding:.75rem 1rem;
    margin-bottom:1rem;
    border:2px solid var(--border);
    border-radius:12px;
    background:var(--darker);
    color:var(--text);
    font-size:.95rem;
    transition:border-color .3s ease
}

.popup-card input:focus,.popup-card textarea:focus,.report-popup-card input:focus,.report-popup-card textarea:focus,.report-popup-card select:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(99,102,241,.1)
}

.popup-card button[type="submit"],.report-popup-card button[type="submit"]{
    width:100%;
    padding:.875rem;
    background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
    color:white;
    border:none;
    border-radius:12px;
    font-weight:600;
    cursor:pointer;
    transition:all .3s ease;
    font-size:1rem
}

/* Mobile Telegram */
.mobile-telegram-sticky {
    position: fixed;
    bottom: 20px;
    right: 15px;
    background: linear-gradient(135deg, #0088cc, #229ed9, #0088cc);
    color: white;
    padding: 10px 14px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.7);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: glow 2.5s ease-in-out infinite;
    backdrop-filter: blur(5px);
}

.mobile-telegram-sticky:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5), 0 0 0 0 rgba(0, 136, 204, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.7), 0 0 20px 5px rgba(0, 136, 204, 0.4);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.mobile-telegram-sticky .telegram-icon {
    animation: bounce 2s infinite;
}

/* Footer - Deferred */
footer{
    background:var(--darker);
    border-top:1px solid var(--border);
    padding:2rem 0;
    margin-top:auto
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:1rem
}

.footer-links{display:flex;gap:1.5rem;flex-wrap:wrap}

.footer-links a{
    color:var(--muted);
    text-decoration:none;
    transition:color .3s
}

.footer-links a:hover{color:var(--primary)}

.copyright{
    margin-top:1.5rem;
    text-align:center;
    color:var(--muted);
    font-size:.875rem
}

/* Responsive - Mobile First */
@media (min-width:768px){
    .info-row{grid-template-columns:1fr 1fr}
    .card{padding:3rem}
    .player-container{padding:3rem}
}

@media (max-width:768px){
    .mobile-menu-toggle{display:block}
    .desktop-nav{display:none}
    .mobile-telegram-sticky{display:flex!important}
    .input-container{flex-direction:column}
    .hero h1{font-size:2rem}
    .player-container{padding:1.5rem;margin-bottom:2rem}
    .card{padding:1.5rem}
    .btn-group{grid-template-columns:1fr;gap:.5rem}
    .video-controls{flex-direction:row;justify-content:center;align-items:center;gap:0.5rem}
    .video-controls .action-btn{min-width:unset;flex:1}
    .footer-content{flex-direction:column;text-align:center}
    .footer-links{justify-content:center}

    /* Center Create Free Account button on mobile */
    .create-account-btn {
        width: 90% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

@media (min-width:769px){
    .mobile-telegram-sticky{display:flex!important}
    .video-controls{flex-direction:row;justify-content:center;align-items:center;gap:0.5rem}
    .video-controls .action-btn{flex:1}
}

@media (max-width:480px){
    .container{padding:0 1rem}
    .hero{padding:1rem 0}
    .player-container{padding:1rem}
    .card{padding:1rem}

    /* Center Create Free Account button on mobile */
    .create-account-btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
}







/* Video Gallery Styles */
.video-gallery-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.video-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    position: relative;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-solid);
    background: rgba(255, 255, 255, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: var(--darker);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-placeholder {
    color: var(--muted);
    font-size: 3rem;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.video-card:hover .video-play-overlay {
    background: rgba(99, 102, 241, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-info {
    padding: 1.5rem;
    min-height: 120px;
}

.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 32px;
}

.video-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.video-size {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-solid);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.bookmark-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    min-width: 75px;
    flex-shrink: 0;
}

.bookmark-btn:hover {
    background: var(--primary-solid);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.4);
}

.bookmark-btn.bookmarked {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.bookmark-btn.bookmarked:hover {
    background: #059669;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}

.bookmark-btn.bookmarked i {
    color: white;
    font-weight: 900;
}

/* Video Player Bookmark Button Styling */
#bookmarkBtn {
    background: var(--primary-solid) !important;
    color: white !important;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    min-height: 44px;
}

#bookmarkBtn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

#bookmarkBtn.bookmarked {
    background: var(--success) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

#bookmarkBtn.bookmarked:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#bookmarkBtn i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

#bookmarkBtn.bookmarked i {
    color: white !important;
    font-weight: 900;
}

.gallery-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modern Gallery Tabs Styling */
.gallery-tabs-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem 0;
    padding: 0 1rem;
}

.gallery-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px;
    gap: 8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.gallery-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(168, 85, 247, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

.gallery-tab {
    position: relative;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 16px 24px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.gallery-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.8) 0%, 
        rgba(139, 92, 246, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    z-index: -1;
}

.gallery-tab:hover::before {
    opacity: 0.6;
}

.gallery-tab.active::before {
    opacity: 1;
}

.gallery-tab:hover {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.gallery-tab.active {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.tab-icon i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.gallery-tab:hover .tab-icon i {
    transform: scale(1.1);
}

.gallery-tab.active .tab-icon i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.tab-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tab-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-tab.active .tab-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-tabs-container {
        margin: 1.5rem 0 2rem 0;
        padding: 0 0.5rem;
    }

    .gallery-tabs {
        width: 100%;
        max-width: 400px;
        padding: 6px;
    }

    .gallery-tab {
        padding: 14px 20px;
        flex: 1;
        font-size: 0.95rem;
        gap: 10px;
    }

    .tab-text {
        font-size: 0.95rem;
    }

    .tab-icon i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-tabs {
        padding: 4px;
        gap: 4px;
    }

    .gallery-tab {
        padding: 12px 16px;
        flex: 1;
        font-size: 0.9rem;
        gap: 8px;
    }

    .tab-text {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }

    .tab-icon i {
        font-size: 0.95rem;
    }
}

.gallery-tab i {
    font-size: 1.1rem;
}

/* Desktop Responsive - Ensure proper button visibility */
@media (min-width: 1200px) {
    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .video-card {
        min-height: 360px;
    }

    .video-info {
        padding: 2rem;
        min-height: 140px;
    }

    .video-meta {
        min-height: 40px;
        margin-top: 1rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-tabs {
        gap: 0.3rem;
        margin-bottom: 1.5rem;
    }

    .gallery-tab {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .gallery-tab i {
        font-size: 0.9rem;
    }

    .video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .video-card {
        border-radius: 12px;
    }

    .video-thumbnail {
        height: 160px;
    }

    .video-info {
        padding: 1rem;
        min-height: 100px;
    }

    .video-title {
        font-size: 0.9rem;
    }

    .video-meta {
        font-size: 0.8rem;
        min-height: 28px;
    }

    .video-play-overlay {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .video-thumbnail {
        height: 200px;
    }
}

/* Premium overlay for video thumbnails */
.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 2;
    color: #ffd700;
    font-weight: bold;
    text-align: center;
}

.premium-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse-premium 2s infinite;
}

.premium-overlay span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    animation: pulse-premium 2s infinite;
}

.premium-badge i {
    font-size: 12px;
}

@keyframes pulse-premium {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Premium badge styles for video meta */
.premium-badge-small {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: fit-content;
}

.premium-badge-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.premium-badge-small i {
    font-size: 10px;
}

/* Video cards with premium restrictions */
.video-card .video-thumbnail {
    position: relative;
}

.video-card.premium-only {
    opacity: 0.9;
}

.video-card.premium-only .video-play-overlay {
    background: rgba(255, 215, 0, 0.9);
    color: #000;
}

.video-card.premium-only:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

/* Load More Videos Button Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes loadingPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(103, 126, 234, 0.5);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* Enhanced loading button styles */
#loadMoreVideosBtn {
    transition: all 0.3s ease;
}

#loadMoreVideosBtn:disabled {
    cursor: wait !important;
}

/* Performance optimizations */
*{will-change:auto}
.action-btn:hover,.card:hover{will-change:transform}
img{content-visibility:auto}
.faq-answer{content-visibility:hidden}
.faq-answer[style*="block"]{content-visibility:visible}