/**
 * Custom YouTube Player Styles
 */

.cyt-container {
    margin: 30px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cyt-header {
    margin-bottom: 20px;
    color: white;
}

.cyt-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cyt-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.cyt-stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.cyt-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cyt-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.cyt-border-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.cyt-description {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(5px);
}

.cyt-description p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cyt-container {
        padding: 15px;
    }
    
    .cyt-title {
        font-size: 18px;
    }
    
    .cyt-stats {
        flex-direction: column;
        gap: 8px;
    }
}

/* Loading state */
.cyt-loading {
    text-align: center;
    padding: 40px;
    color: white;
}

/* Error state */
.cyt-error {
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid rgba(220, 38, 38, 0.5);
    border-radius: 10px;
    padding: 15px;
    color: white;
    margin: 20px 0;
}

/* Alternative minimal theme - add class "cyt-minimal" to container */
.cyt-container.cyt-minimal {
    background: #ffffff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cyt-container.cyt-minimal .cyt-header {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.cyt-container.cyt-minimal .cyt-title {
    color: #1a1a1a;
    text-shadow: none;
}

.cyt-container.cyt-minimal .cyt-stats {
    color: #666;
}

.cyt-container.cyt-minimal .cyt-stat-item {
    background: #e9ecef;
    color: #495057;
}

.cyt-container.cyt-minimal .cyt-video-wrapper {
    border-radius: 0;
}

.cyt-container.cyt-minimal .cyt-description {
    background: #f8f9fa;
    color: #333;
    border-radius: 0 0 20px 20px;
}