:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --container-bg: #ffffff;
    --text-color: #2c3e50;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-container {
    min-height: 100vh;
    padding: 1rem;
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header h1 {
    font-size: 2rem;
    margin: 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--container-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.select-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

select {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: var(--text-color);
    white-space: normal;
    height: auto;
    min-height: 3rem;
}

select option {
    padding: 1rem;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    min-height: 3rem;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary-color);
}

select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#videoContainer {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 2rem;
}

#videoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #e74c3c;
    text-align: center;
    width: 100%;
    padding: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .content-container {
        padding: 0.8rem;
    }

    select, select option {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    select {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        text-overflow: ellipsis;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }

    .header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .content-container {
        padding: 0.5rem;
    }

    select, select option {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
}
