/* IPTV Stream Player - Custom Styles */

/* Glass Effect */
.glass {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

/* Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 6px rgba(59,130,246,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(59,130,246,0.6);
}
input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 6px rgba(59,130,246,0.4);
}

/* Video Container */
.video-container { cursor: default; }
.video-container:fullscreen { background: #000; }
.video-container:fullscreen #playerControls { padding: 1.5rem 2rem; }

/* Channel Card */
.channel-card { transition: all 0.15s ease; }
.channel-card:hover { transform: translateX(3px); }
.channel-card:active { transform: translateX(1px); }

/* Category Button */
.category-btn { transition: all 0.2s ease; }
.category-btn:hover { transform: scale(1.05); }
.category-btn:active { transform: scale(0.97); }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 100;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-success { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.toast-error { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.toast-info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }

/* Pulse dot for live */
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    margin-right: 4px;
    animation: live-pulse 1.5s ease-in-out infinite;
}

/* Smooth page load */
body { opacity: 0; animation: fadeIn 0.3s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Focus visible */
button:focus-visible, input:focus-visible {
    outline: 2px solid rgba(59,130,246,0.5);
    outline-offset: 2px;
}

/* Zap Overlay Animation */
.zap-overlay {
    animation: zapIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes zapIn {
    from { opacity: 0; transform: scale(0.85) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
