/* Music Box - Playlists Frontend Styles */

.mb-playlists-management-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mb-playlists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.mb-playlists-header h2 {
    margin: 0;
    color: #39CCA8;
    font-size: 2em;
}

.mb-playlists-create-btn {
    padding: 12px 24px;
    background: #39CCA8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mb-playlists-create-btn:hover {
    background: #2a9d7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

.mb-playlists-lists-container {
    margin-bottom: 30px;
}

.mb-playlists-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.mb-playlists-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}

.mb-playlists-playlist-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.mb-playlists-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mb-playlists-playlist-title {
    margin: 0 0 10px 0;
    color: #39CCA8;
    font-size: 1.4em;
    font-weight: 600;
}

.mb-playlists-playlist-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    padding: 2px 0;
    border-radius: 4px;
}

.mb-playlists-playlist-link:hover {
    color: #2a9d7f;
    text-decoration: underline;
    background-color: rgba(57, 204, 168, 0.1);
}

.mb-playlists-playlist-title:hover .mb-playlists-playlist-link {
    color: #2a9d7f;
}

.mb-playlists-playlist-title span {
    color: inherit;
    cursor: default;
}

/* List Title Block Styles */
.list-title-block-container {
    margin-bottom: 0px;
}

.list-title-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.list-title-editable {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.list-title-text {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    cursor: pointer;
}

.list-title-edit-btn {
    display: none;
}

.list-title-edit-btn:hover { display: none; }

.list-title-edit-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.list-title-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #39CCA8;
    border-radius: 6px;
    font-size: 1.2em;
    font-weight: 600;
}

.list-title-save-btn,
.list-title-cancel-btn {
    padding: 8px 16px;
    border: 2px solid #39CCA8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.list-title-save-btn {
    background: #39CCA8;
    color: #fff;
    border-color: #39CCA8;
}

.list-title-save-btn:hover {
    background: #2a9d7f;
    border-color: #2a9d7f;
}

.list-title-cancel-btn {
    background: #fff;
    color: #39CCA8;
}

.list-title-cancel-btn:hover {
    background: #f5f5f5;
}

.list-title-privacy {
    flex-shrink: 0;
}

.list-title-privacy-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.list-title-privacy-badge.private {
    background: #f44336;
    color: #fff;
}

.list-title-privacy-badge.public {
    background: #39CCA8;
    color: #fff;
}

.list-title-info {
    margin-top: 5px;
}

.list-song-count {
    color: #54595F;
    font-weight: 700;
    font-size: 14px;
    font-family: "Roboto Mono", monospace;
    line-height: 14px;
}

.list-creator-link {
    color: #39CCA8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.list-creator-link:hover {
    color: #2a9d7f;
    text-decoration: underline;
}

/* Privacy toggle */
.list-privacy-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 6px 12px;
    border-radius: 20px;
    border: 2px solid #39CCA8;
    background: #fff;
    color: #39CCA8;
    cursor: pointer;
    transition: all 0.2s ease;
}
.list-privacy-toggle .toggle-label {
    font-size: 0.9em;
    font-weight: 600;
}
.list-privacy-toggle.is-public {
    border-color: #4caf50;
    color: #4caf50;
}
.list-privacy-toggle.is-public .toggle-knob {
    background: #4caf50;
}
.list-privacy-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 204, 168, 0.25);
}

/* List Songs Block Styles */
.list-songs-block-container {
    margin-bottom: 0px;
}

.list-songs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.list-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 50px;
    position: relative;
    cursor: pointer;
    width: 100%;
}

.list-song-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Staged removal style */
.list-song-item.pending-remove {
    background: rgba(209, 73, 91, 0.08);
    border: 1px dashed #D1495B;
    opacity: 0.8;
}

.list-song-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    height: 100%;
    text-decoration: none;
}

.list-edit-mode .list-song-link-row {
    pointer-events: none;
}

.list-song-drag-handle {
    display: none;
}

.list-song-drag-handle:hover {
    background-color: #2a9d7f;
    transform: scale(1.1);
}

/* Sortable Styles */
.list-songs-list.ui-sortable .list-song-item {
    cursor: default;
}

.list-songs-list.ui-sortable .list-song-item.ui-sortable-helper {
    background: #fff;
    color: inherit;
    box-shadow: 0 8px 25px rgba(57, 204, 168, 0.3);
    border: 2px solid #39CCA8;
    z-index: 1000;
    transform: scale(1.02);
    border-radius: 10px;
}

.list-songs-list.ui-sortable .list-song-item.ui-sortable-placeholder {
    background: rgba(57, 204, 168, 0.1);
    border: 2px dashed #39CCA8;
    opacity: 1;
    height: 50px;
    margin: 5px 0;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(57, 204, 168, 0.2);
}

.list-songs-list.sortable-active .list-song-drag-handle { display: none; }

.list-song-icon {
    width: 40px;
    height: 40px;
    background-color: #39CCA8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.list-song-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.list-song-link {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: "Roboto Mono", monospace;
    line-height: 14px;
    transition: color 0.3s ease;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-songs-block-container .list-songs-list .list-song-link,
.list-songs-block-container .list-songs-list .list-song-link:visited {
    color: #000;
}

.list-song-link:hover {
    color: #39CCA8;
}

.list-song-artist {
    color: #54595F;
    font-weight: 700;
    font-size: 12px;
    font-family: "Roboto Mono", monospace;
    line-height: 12px;
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-song-remove-btn {
    background: none;
    border: none;
    color: #D1495B;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    display: none;
}

.list-song-remove-btn:hover {
    background: #D1495B;
    color: #fff;
    transform: scale(1.1);
}

/* Edit mode visibility */
.list-edit-mode .list-song-remove-btn {
    display: flex;
}

/* Always allow remove button visibility in favorites when in edit mode */
.list-edit-mode .list-song-remove-btn {
    display: flex;
}

/* Edit controls wrapper - matching akorlar advanced buttons styling */
.list-edit-controls-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    overflow: visible;
    white-space: nowrap;
    width: 100%;
}

.list-edit-controls-wrapper .list-edit-start {
    flex: 0 0 auto;
}

.list-edit-controls-wrapper .list-edit-commit {
    flex: 1 1 auto;
    display: none;
    gap: 8px;
}

.list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn,
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-cancel-btn {
    margin-right: 0;
}

/* More specific selectors for edit controls to override any conflicting styles */
.list-edit-controls-wrapper .list-edit-start.mb-playlists-action-btn,
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn {
    padding: 8px 16px !important;
    border: 2px solid #39CCA8 !important;
    background: #fff !important;
    color: #39CCA8 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Ensure danger variant is red inside edit controls (override green defaults) */
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn.danger {
    border-color: #f44336 !important;
    color: #f44336 !important;
    background: #fff !important;
}

.list-edit-controls-wrapper .list-edit-start.mb-playlists-action-btn:hover,
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn:hover {
    background: #39CCA8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

/* Override hover for danger variant to stay red */
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn.danger:hover {
    background: #f44336 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3) !important;
}

/* Cancel button styling to match akorlar advanced buttons */
.list-edit-controls-wrapper .list-edit-commit .mb-playlists-cancel-btn {
    padding: 8px 16px !important;
    border: 2px solid #e0e0e0 !important;
    background: #f5f5f5 !important;
    color: #666 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-edit-controls-wrapper .list-edit-commit .mb-playlists-cancel-btn:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Vertical separator between cancel and privacy buttons */
.list-edit-separator {
    width: 1px;
    height: 32px;
    background: #e0e0e0;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Privacy toggle styling within edit controls */
.list-edit-controls-wrapper .list-privacy-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    border: 2px solid #39CCA8 !important;
    background: #fff !important;
    color: #39CCA8 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}


.list-edit-controls-wrapper .list-privacy-toggle .toggle-label {
    font-size: 0.9em;
    font-weight: 500;
}

.list-edit-controls-wrapper .list-privacy-toggle.is-private {
    border-color: #f44336 !important;
    color: #f44336 !important;
}

.list-edit-controls-wrapper .list-privacy-toggle.is-public {
    border-color: #4caf50 !important;
    color: #4caf50 !important;
}

.list-edit-controls-wrapper .list-privacy-toggle.is-private:hover {
    background: #f44336 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3) !important;
}

.list-edit-controls-wrapper .list-privacy-toggle.is-public:hover {
    background: #4caf50 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

@media (max-width: 768px) {
    .list-edit-controls-wrapper {
        gap: 6px;
        padding: 3px 0 4px 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    .list-edit-controls-wrapper .list-edit-start,
    .list-edit-controls-wrapper .list-edit-commit .mb-playlists-action-btn,
    .list-edit-controls-wrapper .list-edit-commit .mb-playlists-cancel-btn,
    .list-edit-controls-wrapper .list-edit-commit .list-privacy-toggle {
        padding: 6px 12px !important;
    }
    
    .list-edit-separator {
        height: 28px;
        margin: 0 6px;
    }
    
    .list-edit-controls-wrapper .list-edit-commit {
        gap: 6px;
    }
}

.list-edit-mode .list-song-drag-handle {
    display: none;
}

/* In edit mode, present songs in a single column for clear top-to-bottom ordering */
.list-edit-mode .list-songs-list {
    grid-template-columns: 1fr;
}

.list-songs-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
}

/* Block Error States */
.list-title-block-error,
.list-songs-block-error,
.list-title-block-private {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 20px 0;
}

.list-title-block-error,
.list-songs-block-error {
    color: #d32f2f;
    background: #ffebee;
    border-color: #ffcdd2;
}

.list-title-block-private {
    color: #f57c00;
    background: #fff3e0;
    border-color: #ffcc02;
}

/* Notifications Container */
.mb-playlists-notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    overflow: visible;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mb-playlists-notifications-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .mb-playlists-notifications-container .mb-playlists-message {
        max-width: none;
        margin-bottom: 8px;
    }
}

.mb-playlists-notifications-container .mb-playlists-message {
    pointer-events: auto;
    margin-bottom: 10px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Message System */
.mb-playlists-message {
    position: relative;
    padding: 15px 20px;
    padding-right: 40px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
}



.mb-playlists-message.success {
    background: #4caf50;
    border-left: 4px solid #2e7d32;
}

.mb-playlists-message.error {
    background: #f44336;
    border-left: 4px solid #c62828;
}

.mb-playlists-message.info {
    background: #2196f3;
    border-left: 4px solid #1565c0;
}

.mb-playlists-message-text {
    flex: 1;
    margin-right: 10px;
}

.mb-playlists-message-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.mb-playlists-message-close:hover {
    color: #fff;
}

.mb-playlists-playlist-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.mb-playlists-playlist-meta span {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.mb-playlists-playlist-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.mb-playlists-playlist-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mb-playlists-action-btn {
    padding: 8px 16px !important;
    border: 2px solid #39CCA8 !important;
    background: #fff !important;
    color: #39CCA8 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.mb-playlists-action-btn:hover {
    background: #39CCA8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

.mb-playlists-action-btn.danger {
    border-color: #f44336;
    color: #f44336;
}

.mb-playlists-action-btn.danger:hover {
    background: #f44336;
    color: #fff;
}

/* Create Form Styles */
.mb-playlists-create-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.mb-playlists-create-form h3 {
    margin: 0 0 20px 0;
    color: #39CCA8;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #39CCA8;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.mb-playlists-submit-btn {
    padding: 12px 24px;
    background: #39CCA8;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mb-playlists-submit-btn:hover {
    background: #2a9d7f;
    transform: translateY(-1px);
}

.mb-playlists-cancel-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mb-playlists-cancel-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Song Buttons Styles */
.mb-playlists-song-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 2px solid #39CCA8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 250px;
}

.mb-playlists-song-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mb-playlists-add-to-favorites {
    padding: 10px 16px;
    background: #39CCA8;
    color: #fff;
    border: 2px solid #39CCA8;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mb-playlists-add-to-favorites:hover {
    background: #2a9d7f;
    border-color: #2a9d7f;
    transform: translateY(-1px);
}

.mb-playlists-add-to-favorites.added {
    background: #4caf50;
    border-color: #4caf50;
    cursor: pointer;
}

.mb-playlists-add-to-favorites.added::before {
    content: "✓ ";
    margin-right: 5px;
}

.mb-playlists-add-to-favorites.added:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.mb-playlists-add-to-favorites.added:hover::before {
    content: "";
    margin-right: 0;
}

.mb-playlists-add-to-playlist {
    display: flex;
    gap: 8px;
}

.mb-playlists-playlist-select {
    flex: 1;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9em;
}

.mb-playlists-add-to-playlist button {
    padding: 8px 16px;
    background: #39CCA8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mb-playlists-add-to-playlist button:hover {
    background: #2a9d7f;
}

.mb-playlists-add-to-playlist button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.mb-playlists-add-to-playlist button:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

.mb-playlists-no-playlists {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border: 1px dashed #e0e0e0;
    border-radius: 6px;
}

.mb-playlists-no-playlists p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
}

.mb-playlists-create-link {
    display: inline-block;
    padding: 8px 16px;
    background: #39CCA8;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mb-playlists-create-link:hover {
    background: #2a9d7f;
    color: #fff;
    transform: translateY(-1px);
}

/* Bookmark Styles */
.mb-playlists-bookmark-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.mb-playlists-bookmark-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mb-playlists-bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    border: 2px solid #39CCA8 !important;
    background: #fff !important;
    color: #39CCA8 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.mb-playlists-bookmark-btn:hover {
    background: #39CCA8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

.mb-playlists-bookmark-btn.bookmarked {
    background: #39CCA8 !important;
    border-color: #39CCA8 !important;
    color: #fff !important;
}

.mb-playlists-bookmark-btn.bookmarked:hover {
    background: #2a9d7f !important;
    border-color: #2a9d7f !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 127, 0.3);
}

.mb-playlists-bookmark-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mb-playlists-share-button-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mb-playlists-share-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px !important;
    border: 2px solid #39CCA8 !important;
    background: #fff !important;
    color: #39CCA8 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.mb-playlists-share-btn:hover {
    background: #39CCA8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 204, 168, 0.3);
}

.mb-playlists-bookmark-count {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.mb-playlists-bookmark-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bookmarks Management Page */
.mb-playlists-bookmarks-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mb-playlists-bookmarks-container h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.mb-playlists-no-bookmarks {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.mb-playlists-no-bookmarks p {
    margin: 10px 0;
    font-size: 16px;
}

.mb-playlists-bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mb-playlists-bookmark-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.mb-playlists-bookmark-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #adb5bd;
}

.mb-playlists-bookmark-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mb-playlists-bookmark-header h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.mb-playlists-bookmark-header h4 a {
    color: #007cba;
    text-decoration: none;
}

.mb-playlists-bookmark-header h4 a:hover {
    color: #005a87;
    text-decoration: underline;
}

.mb-playlists-remove-bookmark {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mb-playlists-remove-bookmark:hover {
    background: #c82333;
    transform: scale(1.1);
}

.mb-playlists-remove-bookmark .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.mb-playlists-bookmark-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.mb-playlists-bookmark-meta {
    font-size: 12px;
    color: #adb5bd;
}

.mb-playlists-bookmark-date {
    font-style: italic;
}

/* Modal Styles */
.mb-playlists-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mb-playlists-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mb-playlists-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.mb-playlists-modal-header h3 {
    margin: 0;
    color: #39CCA8;
    font-size: 1.3em;
}

.mb-playlists-modal-close {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.mb-playlists-modal-close:hover {
    color: #333;
}

.mb-playlists-modal form {
    padding: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .list-songs-list {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .list-songs-list {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .list-song-item {
        height: 45px;
        padding: 3px;
        gap: 8px;
    }
    
    .list-song-icon {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }
    
    .mb-playlists-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mb-playlists-playlist-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .mb-playlists-playlist-actions {
        justify-content: center;
    }
    
    .mb-playlists-song-buttons {
        position: fixed;
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .list-songs-list {
        gap: 3px;
    }
    
    .list-song-item {
        height: 40px;
        padding: 2px;
        gap: 6px;
    }
    
    .list-song-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .list-song-link {
        font-size: 13px;
        line-height: 13px;
    }
    
    .list-song-artist {
        font-size: 11px;
        line-height: 11px;
    }
}


