/* Embed Player Styles */

/* Base styles for embed */
body.embed-body {
    background: transparent;
    margin: 0;
    padding: 0;
}

.embed-container {
    --color2: #f0f0f0;
    --color3: #313844;
    --color4: #ffffff;
    --color5: #9f6d41;
    --green: #399547;
    --color7: #e3e6ec;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--color4);
}

.embed-container * {
    box-sizing: border-box;
}

/* Header */
.embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    background: var(--color3);
    color: var(--color4);
    flex-shrink: 0;
}

.embed-header h1 {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.embed-header a {
    color: var(--color4);
    text-decoration: none;
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
    margin-left: 15px;
}

.embed-header a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Content layout */
.embed-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Audio section */
.embed-audio {
    flex-shrink: 0;
    padding: 10px;
    background: var(--color2);
}

.embed-audio .audios {
    margin: 0;
    padding: 0;
}

.embed-audio .mp3_main {
    margin-top: 10px;
}

.embed-audio .mp3_main .help {
    display: none;
}

/* Tabs section */
.embed-tabs {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.embed-tabs .partitura_tabs-links {
    margin: 0;
    padding: 5px 10px 0;
    flex-shrink: 0;
    background: var(--color4);
}

.embed-tabs .partitura_iframe {
    flex: 1;
    height: auto;
    margin: 0;
}

/* Footer */
.embed-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: var(--color3);
    flex-shrink: 0;
}

.embed-powered a {
    color: var(--color4);
    font-size: 10px;
    text-decoration: none;
    opacity: 0.7;
}

.embed-powered a:hover {
    opacity: 1;
}

.embed-powered img {
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Compact audio player for embed */
.embed-audio .audio_player-container {
    border-width: 1px;
}

.embed-audio .audio_icon {
    height: 35px;
}

.embed-audio .audio_player img {
    height: 35%;
}

.embed-audio .audio_percent {
    height: 35px;
    min-height: 35px;
}

.embed-audio .audio_num,
.embed-audio .audio_num2 {
    font-size: 13px;
}

.embed-audio .audio_speed {
    font-size: 10px;
    padding: 3px;
}

.embed-audio .audio_speed button {
    width: 40px;
    height: 30px;
}

.embed-audio .current_speed {
    width: 60px;
}

/* Compact MP3 items for embed */
.embed-audio .mp3_item-content {
    border-width: 1px;
}

.embed-audio .mp3_header {
    padding: 3px 0;
}

.embed-audio .instrument_image {
    width: 40px;
    height: 30px;
}

.embed-audio .mp3_name {
    font-size: 10px;
    padding: 0 8px;
}

.embed-audio .mp3_controls {
    padding: 5px;
}

.embed-audio .toggle_slider {
    width: 30px;
    height: 15px;
}

.embed-audio .toggle_slider:before {
    width: 11px;
    height: 11px;
}

.embed-audio .mp3_enable_checkbox:checked + .toggle_slider:before {
    transform: translateX(15px);
}

.embed-audio .toggle_label {
    font-size: 9px;
}

/* Tabs for embed */
.embed-tabs .partitura_tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.embed-tabs .partitura_tabs-links {
    flex-shrink: 0;
    flex-wrap: wrap;
}

.embed-tabs .partitura_tabs-links a {
    font-size: 11px;
    padding: 8px 15px;
}

.embed-tabs .partitura_iframe {
    flex: 1;
    position: relative;
    min-height: 0;
}

.embed-tabs .partitura_iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments for embed */
@media all and (max-width: 600px) {
    .embed-header h1 {
        font-size: 12px;
    }
    
    .embed-header a {
        font-size: 10px;
    }
    
    .embed-audio .audios {
        display: block;
    }
    
    .embed-audio .audio_player-container {
        width: 100%;
    }
    
    .embed-audio .mp3_main {
        width: 100%;
    }
    
    .embed-tabs .partitura_tabs-links a {
        font-size: 9px;
        padding: 6px 10px;
    }
}

/* Landscape mode for mobile embed */
@media all and (max-height: 500px) {
    .embed-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .embed-header {
        width: 100%;
        padding: 5px 10px;
    }
    
    .embed-header h1 {
        font-size: 12px;
    }
    
    .embed-content {
        flex-direction: row;
        width: 100%;
    }
    
    .embed-audio {
        width: 35%;
        max-width: 300px;
        overflow-y: auto;
        padding: 5px;
    }
    
    .embed-audio .audios {
        display: flex;
        flex-direction: column;
    }
    
    .embed-tabs {
        flex: 1;
        width: 65%;
    }
    
    .embed-powered {
        width: 100%;
    }
}
