/* Episode Video Player Styles */

.episode-video-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Video Player Wrapper */
.video-player-wrapper {
    margin-bottom: 20px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-video-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 18px;
}

/* Server Buttons */
.server-buttons-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.server-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.server-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.server-button.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.server-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc;
}

.server-icon {
    font-size: 14px;
}

.server-label {
    font-size: 14px;
}

/* Loading State */
.server-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.server-button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Episode Description */
.episode-description-wrapper {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.description-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.episode-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
}

.episode-description-content h1,
.episode-description-content h2,
.episode-description-content h3,
.episode-description-content h4,
.episode-description-content h5,
.episode-description-content h6 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 600;
}

.episode-description-content h1 {
    font-size: 28px;
}

.episode-description-content h2 {
    font-size: 24px;
}

.episode-description-content h3 {
    font-size: 20px;
}

.episode-description-content p {
    margin-bottom: 15px;
}

.episode-description-content ul,
.episode-description-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.episode-description-content li {
    margin-bottom: 8px;
}

.episode-description-content strong {
    font-weight: 700;
    color: #2c3e50;
}

.episode-description-content em {
    font-style: italic;
}

.episode-description-content a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.episode-description-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.episode-description-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background: #fff;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .episode-video-player-container {
        padding: 15px;
    }
    
    .server-buttons-wrapper {
        padding: 10px;
        gap: 8px;
    }
    
    .server-button {
        min-width: calc(50% - 4px);
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .description-title {
        font-size: 20px;
    }
    
    .episode-description-content {
        font-size: 15px;
    }
    
    .episode-description-wrapper {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .server-button {
        min-width: 100%;
    }
    
    .episode-description-content h1 {
        font-size: 22px;
    }
    
    .episode-description-content h2 {
        font-size: 20px;
    }
    
    .episode-description-content h3 {
        font-size: 18px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .episode-video-player-container {
        background: #1a1a1a;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
    }
    
    .episode-description-wrapper {
        background: #2a2a2a;
    }
    
    .description-title {
        color: #fff;
        border-bottom-color: #444;
    }
    
    .episode-description-content {
        color: #e0e0e0;
    }
    
    .episode-description-content h1,
    .episode-description-content h2,
    .episode-description-content h3,
    .episode-description-content h4,
    .episode-description-content h5,
    .episode-description-content h6,
    .episode-description-content strong {
        color: #fff;
    }
    
    .episode-description-content blockquote {
        background: #1a1a1a;
        color: #ccc;
    }
    
    .server-buttons-wrapper {
        background: #2a2a2a;
    }
}