/* YT Downloader Plugin Styles */
.ytd-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.ytd-header {
    text-align: center;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 35px 20px;
    border-radius: 16px 16px 0 0;
}

.ytd-logo {
    font-size: 50px;
    margin-bottom: 10px;
}

.ytd-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    color: white !important;
}

.ytd-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    color: white !important;
}

.ytd-form {
    background: #fff;
    padding: 25px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.ytd-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ytd-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.ytd-input-group input:focus {
    border-color: #ff0000;
}

.ytd-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ytd-btn-primary {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
}

.ytd-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
}

.ytd-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ytd-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    color: #c53030;
    font-size: 14px;
}

.ytd-result {
    background: #fff;
    padding: 0 25px 25px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.ytd-video-info {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.ytd-video-info img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ytd-meta h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111;
}

.ytd-meta p {
    margin: 0 0 4px 0;
    font-size: 13px;
    color: #666;
}

.ytd-quality-section h4 {
    margin: 0 0 14px 0;
    font-size: 16px;
    color: #333;
}

.ytd-formats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ytd-format-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
}

.ytd-format-card:hover {
    border-color: #ff0000;
    box-shadow: 0 3px 10px rgba(255,0,0,0.1);
}

.ytd-format-card .quality {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.ytd-format-card .format-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.format-mp4 { background: #e3f2fd; color: #1565c0; }
.format-mp3 { background: #f3e5f5; color: #6a1b9a; }

.ytd-format-card .note {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.ytd-download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.ytd-download-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    text-decoration: none;
}

.ytd-info-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 0 0 16px 16px;
    padding: 20px 25px;
    font-size: 14px;
}

.ytd-info-box ol {
    margin: 8px 0 12px 20px;
    padding: 0;
}

.ytd-info-box li {
    margin-bottom: 5px;
    color: #555;
}

.ytd-disclaimer {
    font-size: 12px;
    color: #888;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

@media (max-width: 480px) {
    .ytd-input-group {
        flex-direction: column;
    }
    .ytd-btn-primary {
        width: 100%;
    }
    .ytd-video-info {
        flex-direction: column;
    }
    .ytd-video-info img {
        width: 100%;
        height: auto;
    }
    .ytd-formats {
        grid-template-columns: 1fr 1fr;
    }
}
