/* Cinematic Container */
#netflix-ai {
    max-width: 900px;
    margin: 40px auto;
    background: #000;
    border-radius: 12px;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    position: relative;
    width: 95%; /* Responsive width for mobile */
}

/* Premium Top Bar */
.top-bar {
    padding: 15px 25px;
    background: linear-gradient(to bottom, #1f1f1f, #000);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222;
}

.top-bar h2 {
    margin: 0;
    font-size: clamp(1rem, 4vw, 1.4rem); /* Responsive font sizing */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E50914; 
    font-weight: 900;
}

/* The "Masterclass" Screen - Now Responsive */
#video-screen {
    min-height: 400px;
    height: auto; 
    padding: clamp(20px, 5vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
}

#writing-area {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    height: 100%;
    width: 100%;
    transition: all 0.5s ease;
}

.word-pop {
    font-weight: 900;
    /* Bold, bigger, and modern */
    font-size: clamp(2rem, 8vw, 4rem); 
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Professional Progress Bar */
.progress-bar {
    height: 4px;
    background: #222;
    width: 100%;
}

#progress {
    height: 100%;
    background: #E50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.8);
    width: 0%;
    transition: width 0.4s ease;
}

/* THE NEW BOLD WORD STYLE */
.word-pop {
    display: inline-block;
    font-size: clamp(1.8rem, 6vw, 3.5rem); /* Massive, responsive bold text */
    font-weight: 800;
    margin: 0.2rem 0.4rem;
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.word-pop.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Dynamic Active Highlight */
.word-pop.visible:last-child {
    color: #E50914; /* The word currently being spoken glows red */
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
}

/* Control Area */
.input-box {
    padding: 20px;
    background: #111;
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-top: 1px solid #222;
}

input#topic {
    flex: 1;
    padding: 12px;
    background: #222;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

button#start {
    padding: 12px 20px;
    background: #E50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* CTA & Finales */
#cta {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    display: none;
}

#join {
    padding: 12px 30px;
    background: #fff;
    color: #000;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    animation: pulse 2s infinite;
}

/* Removed the #hand styles as requested */

/* Responsive Mobile Fixes */
@media (max-width: 600px) {
    .input-box {
        flex-direction: column;
    }
    #video-screen {
        min-height: 300px;
    }
    .top-bar {
        padding: 10px 15px;
    }
}

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