/* Reset styles */
        /* 1. Updated Reset: Using * ensures EVERY element respects padding */
*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    width: 100%;
    /* Prevents the "wiggle" or horizontal scroll on mobile */
    overflow-x: hidden; 
}

/* Main container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

/* Top Section - Fixed the width issue here */
.top-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #343a40;
    color: #ffffff;
}

.top-section h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
    /* Added this to prevent long titles from pushing the screen wide */
    word-wrap: break-word;
    text-align: center;
}

/* Middle Section */
.middle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px;
    padding: 20px;
    background: gray;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

.middle-section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Button Styling */
.middle-section .watch-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff !important;
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

.middle-section .watch-button:hover, 
.middle-section .watch-button:focus {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #8f94fb, #4e54c8);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Text Area Section */
.text-area-section {
    width: 90%;
    max-width: 600px;
    margin: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.text-area-section p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    text-align: center;
}

/* Footer Section - Fixed width here too */
.footer-section {
    width: 100%;
    text-align: center;
    padding: 20px;
    background: #343a40;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .middle-section .watch-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .top-section h1 {
        font-size: 1.5rem;
    }

    .top-section {
        flex-direction: column;
    }
}