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

#hls-player-container {
    width: 100%;
    max-width: 100%;
    background: #000;
    position: relative;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#hls-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
}

.quality-selector,
.subtitle-selector,
.audio-track-selector {
    position: relative;
}

.quality-selector select,
.subtitle-selector select,
.audio-track-selector select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.quality-selector select:hover,
.subtitle-selector select:hover,
.audio-track-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 20;
}

.error-message {
    padding: 40px;
    text-align: center;
    color: #fff;
    background: #000;
    font-size: 18px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.error-message::before {
    content: "⚠️";
    font-size: 48px;
    margin-bottom: 20px;
}

