/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000;
    overflow: hidden;
}

/* Main container */
.embed-video-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: #000;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Video player */
.embed-video-player {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}

/* Quality controls */
.embed-quality-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.quality-selector {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

.quality-selector:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.quality-selector option {
    background: #000;
    color: white;
}

/* Video info bar */
.embed-video-info {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    font-size: 13px;
}

.video-title {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.video-branding {
    flex-shrink: 0;
}

.watch-full {
    color: #00d4aa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.watch-full:hover {
    color: #00f5c4;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    .embed-video-info {
        padding: 6px 8px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .video-title {
        font-size: 12px;
    }
    
    .watch-full {
        font-size: 11px;
    }
    
    .quality-selector {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .embed-quality-controls {
        top: 5px;
        right: 5px;
    }
}

/* Hide info bar for very small heights */
@media (max-height: 200px) {
    .embed-video-info {
        display: none;
    }
}

/* Focus states for accessibility */
.quality-selector:focus,
.watch-full:focus {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Loading state */
.embed-video-player[poster] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000"/></svg>');
    background-size: cover;
    background-position: center;
} 