/* Basic Styles for Music Discovery Plugin (Fixed Version) */

/* Container */
.mdp-video-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Grid Layout */
.mdp-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

/* Video Item */
.mdp-video-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mdp-video-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Video Player */
.mdp-video-player {
    position: relative;
    width: 100%;
    background: #000;
}

.mdp-video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Video */
.mdp-responsive .mdp-video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.mdp-responsive .mdp-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Information */
.mdp-video-info {
    padding: 15px;
}

.mdp-video-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.mdp-video-channel {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mdp-video-date {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Error Messages */
.mdp-error-message,
.mdp-no-results {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6c757d;
    margin: 20px 0;
}

.mdp-error-message {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.mdp-error-message p,
.mdp-no-results p {
    margin: 0;
    font-size: 14px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .mdp-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mdp-video-title {
        font-size: 15px;
    }
    
    .mdp-video-info {
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .mdp-video-container {
        margin: 15px 0;
    }
    
    .mdp-video-title {
        font-size: 14px;
    }
    
    .mdp-video-channel {
        font-size: 13px;
    }
    
    .mdp-video-date {
        font-size: 11px;
    }
}

/* Admin Styles */
.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table td {
    padding: 15px 10px;
}

.large-text {
    width: 500px;
}

.regular-text {
    width: 300px;
}

.small-text {
    width: 80px;
}

.postbox {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.postbox .hndle {
    border-bottom: 1px solid #c3c4c7;
    cursor: default;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding: 12px;
}

.postbox .inside {
    padding: 12px;
}

.postbox code {
    display: block;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.postbox h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.postbox ul {
    margin-left: 20px;
}

.postbox li {
    margin-bottom: 5px;
}

/* Mobile Admin */
@media screen and (max-width: 782px) {
    .form-table th,
    .form-table td {
        display: block;
        width: auto;
        padding: 10px 0;
    }
    
    .form-table th {
        padding-bottom: 5px;
    }
    
    .large-text,
    .regular-text {
        width: 100%;
        max-width: 400px;
    }
}

