/* style.css */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
}

#video-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    min-height: 1.2em; /* Prevent layout shift */
}

#player-wrapper {
    position: relative;
    width: 100%;
    /* Aspect ratio 16:9 */
    padding-top: 56.25%; /* (9 / 16 * 100) */
    background-color: #000; /* Fallback background */
    border-radius: 8px;
    overflow: hidden; /* To clip the iframe's corners if it's not perfectly responsive */
    margin-bottom: 15px;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#status-message {
    font-size: 0.9em;
    color: #7f8c8d;
    min-height: 1.1em; /* Prevent layout shift */
}

/* Basic loader (optional, can be shown via JS if complex) */
#player-wrapper:empty::before {
    content: "Loading Player...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
}
