:root {
    --primary: #00f2fe;
    --accent: #4facef;
    --success: #00ff88;
}

body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.top-nav {
    position: fixed;
    top: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10000;
}

.music-btn.big-btn {
    padding: 18px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-btn.active { background: var(--success); }

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    width: 100%;
}

.glow-text {
    font-size: 2.2rem;
    margin: 10px 0;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ক্যামেরা ডিসপ্লে বড় করার মূল কোড */
.camera-wrapper {
    position: relative;
    width: 100vw;          /* পুরো স্ক্রিন উইডথ */
    height: 65vh;         /* স্ক্রিনের ৬৫% হাইট */
    background: #000;
    margin-top: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#output_canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;    /* ক্যামেরা ইমেজকে পুরো এরিয়াতে ছড়িয়ে দিবে */
    transform: rotateY(180deg);
}

#video-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 400px;
    background: #000;
    border-radius: 15px;
    border: 3px solid var(--primary);
    z-index: 999;
}

#video-popup.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }

#video-popup video { width: 100%; border-radius: 0 0 12px 12px; display: block; }

.popup-header { background: rgba(255,255,255,0.1); padding: 8px 15px; display: flex; justify-content: space-between; font-size: 10px; }

.dot { width: 8px; height: 8px; background: red; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

footer { padding: 20px; color: #64748b; }
