/* Scoped CSS for MP3 Cutter */
.mprm-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}
.mprm-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.mprm-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.mprm-subtitle {
    font-size: 1.1rem;
    color: #555;
}
.mprm-privacy-note {
    display: inline-block;
    background: #e6f7ef;
    color: #1e7e34;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 1rem;
}
.mprm-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.mprm-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mprm-hidden {
    display: none !important;
}
.mprm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.mprm-btn-primary {
    background: #007bff;
    color: #fff;
}
.mprm-btn-primary:hover:not(:disabled) {
    background: #0056b3;
}
.mprm-btn-primary:disabled {
    background: #a0cbfc;
    cursor: not-allowed;
}
.mprm-btn-secondary {
    background: #f1f1f1;
    color: #333;
}
.mprm-btn-secondary:hover {
    background: #e2e2e2;
}
.mprm-btn-text {
    background: transparent;
    color: #007bff;
    text-decoration: underline;
    margin-top: 1rem;
}
.mprm-upload-btn {
    background: #007bff;
    color: #fff;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
.mprm-upload-btn:hover { background: #0056b3; }
.mprm-supported-formats { font-size: 0.85rem; color: #777; margin-top: 1rem; }

/* Editor */
.mprm-file-info { font-size: 0.9rem; color: #555; margin-bottom: 1.5rem; text-align: center; }
.mprm-waveform-container {
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
#mprm-waveform { width: 100%; height: 100%; }
#mprm-selection-overlay {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    background: rgba(0, 123, 255, 0.2);
    border-left: 2px solid #007bff;
    border-right: 2px solid #007bff;
    pointer-events: none;
}
.mprm-handle {
    position: absolute;
    top: 0; bottom: 0;
    width: 20px;
    background: rgba(0, 123, 255, 0.5);
    pointer-events: auto;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mprm-handle::after {
    content: "||";
    color: white;
    font-size: 10px;
    font-weight: bold;
}
.mprm-handle-left { left: -10px; }
.mprm-handle-right { right: -10px; }
#mprm-playhead {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    background: #dc3545;
    left: 0;
    display: none;
    pointer-events: none;
}

/* Controls & Inputs */
.mprm-controls { display: flex; gap: 10px; margin-bottom: 1.5rem; justify-content: center; width: 100%; }
.mprm-timing-inputs { display: flex; gap: 15px; width: 100%; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: center; }
.mprm-input-group { display: flex; flex-direction: column; }
.mprm-input-group label { font-size: 0.85rem; font-weight: bold; margin-bottom: 4px; color: #555; }
.mprm-input-group input { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 100px; text-align: center; font-family: monospace;}

/* Effects Panel */
.mprm-effects-panel { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; justify-content: center; margin-bottom: 1.5rem; background: #f9f9f9; padding: 15px; border-radius: 6px;}
.mprm-effect-group { display: flex; flex-direction: column; align-items: center;}
.mprm-effect-group label { font-size: 0.85rem; font-weight: bold; margin-bottom: 5px; }

/* Misc */
.mprm-ringtone-mode { margin-bottom: 1.5rem; text-align: center; background: #fff3cd; padding: 10px; border-radius: 6px; border: 1px solid #ffeeba;}
.mprm-output-options { margin-bottom: 1.5rem; display: flex; gap: 20px; font-weight: bold; }
.mprm-rights { margin-bottom: 2rem; font-size: 0.9rem; background: #f4f4f4; padding: 15px; border-radius: 6px; border-left: 4px solid #007bff; }
.mprm-actions { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mprm-error { color: #721c24; background: #f8d7da; border: 1px solid #f5c6cb; padding: 15px; border-radius: 6px; width: 100%; margin-top: 15px; text-align: center; }

/* SEO & Layout */
.mprm-seo-content { margin-top: 3rem; }
.mprm-seo-content h2 { font-size: 1.5rem; margin-top: 2rem; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.mprm-seo-content ul, .mprm-seo-content ol { padding-left: 20px; }
.mprm-seo-content li { margin-bottom: 8px; }
.mprm-ad-placeholder { background: #f0f0f0; border: 1px dashed #ccc; text-align: center; padding: 20px; color: #999; margin: 2rem 0; }
.mprm-spinner { border: 4px solid #f3f3f3; border-top: 4px solid #007bff; border-radius: 50%; width: 40px; height: 40px; animation: mprm-spin 1s linear infinite; margin-bottom: 15px; }
@keyframes mprm-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Mobile fixes */
@media (max-width: 600px) {
    .mprm-card { padding: 1rem; }
    .mprm-timing-inputs, .mprm-effects-panel { flex-direction: column; align-items: center; }
    .mprm-input-group input { width: 150px; }
}
/* Advanced Options Styling */
.mprm-advanced-options {
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
}
.mprm-advanced-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
}
.mprm-bitrate-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.mprm-bitrate-group label {
    cursor: pointer;
}