/* WPBeatPlayer Styles */

.wpbeat-player-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpbeat-player-container[data-theme="dark"] {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Search Bar */
.wpbeat-search-bar {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wpbeat-search-bar input {
    width: 100%;
    height: 50px;
    padding: 8px 45px 8px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
}

.wpbeat-search-bar input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.wpbeat-search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Table Structure */
.wpbeat-player-table {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-width: 0;
}

@media (min-width: 769px) and (max-width: 1200px) {
    .wpbeat-player-table {
        overflow-x: auto;
    }
    
    .wpbeat-header,
    .wpbeat-row {
        min-width: 1000px;
    }
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-player-table {
    background: #2d2d2d;
}

.wpbeat-header {
    display: grid;
    grid-template-columns: 70px minmax(200px, 300px) 80px 70px 60px 220px 220px;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    align-items: center;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-header {
    background: #3d3d3d;
    color: #cccccc;
    border-bottom-color: #555555;
}

.wpbeat-row {
    display: grid;
    grid-template-columns: 70px minmax(200px, 300px) 80px 70px 60px 220px 220px;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: all 0.2s ease;
    padding-right: 10px;
    padding-left: 10px;
}

.wpbeat-row:hover {
    background: #f8f9fa;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-row {
    border-bottom-color: #555555;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-row:hover {
    background: #3d3d3d;
}

.wpbeat-header .wpbeat-col-actions {
    justify-content: space-between;
    align-items: center;
}

.wpbeat-col-actions {
    display: flex;
    justify-content: flex-start;
}

.wpbeat-row:last-child {
    border-bottom: none;
}

/* Play Button */
.wpbeat-play-button {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.wpbeat-play-button:hover {
    transform: scale(1.05);
}

.wpbeat-play-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpbeat-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wpbeat-play-button:hover .wpbeat-play-overlay {
    opacity: 1;
}

.wpbeat-play-overlay i {
    color: #ffffff;
    font-size: 20px;
}

.wpbeat-play-button.playing .wpbeat-play-overlay {
    opacity: 1;
    background: var(--wpbeat-playing-color);
}

.wpbeat-play-button.playing .wpbeat-play-overlay i:before {
    content: "\f04c";
}

/* Title Column */
.wpbeat-col-title,
.wpbeat-title-cell {
    overflow: hidden;
    min-width: 0;
}

.wpbeat-col-title .beat-title,
.wpbeat-title-cell .wpbeat-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-col-title .beat-title,
.wpbeat-player-container[data-theme="dark"] .wpbeat-title-cell .wpbeat-title {
    color: #ffffff;
}

.wpbeat-col-title h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-col-title h3 {
    color: #ffffff;
}

.wpbeat-artist {
    font-size: 14px;
    color: #6c757d;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-artist {
    color: #aaaaaa;
}

/* Duration, BPM, Key */
.wpbeat-col-duration,
.wpbeat-col-bpm,
.wpbeat-col-key {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    display: inline-block;
    min-width: 50px;
    text-align: center;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0;
    line-height: 1.4;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-col-duration,
.wpbeat-player-container[data-theme="dark"] .wpbeat-col-bpm,
.wpbeat-player-container[data-theme="dark"] .wpbeat-col-key {
    color: #cccccc;
}

/* Time Display */
.wpbeat-time {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.4;
    z-index: 1;
    position: relative;
}

.wpbeat-time span {
    display: inline-block;
    min-width: 45px;
    text-align: center;
    background: transparent;
    padding: 2px 4px;
    border-radius: 3px;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-time {
    color: #cccccc;
}

/* Tags */
.wpbeat-col-tags span {
    display: inline-flex;
    margin-right: 6px;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    text-transform: capitalize;
    text-decoration: none;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-col-tags span {
    background-color: #3d3d3d;
    color: #cccccc;
}

.wpbeat-col-tags a:hover {
    background-color: #f9f9f9;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-col-tags a:hover {
    background-color: #4d4d4d;
}

/* Outline Button Styles */
.wpbeat-player-container[data-button-style="outline"] .wpbeat-cart-btn {
    background: transparent;
    border: 2px solid var(--wpbeat-cart-color, #007cba);
    color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-player-container[data-button-style="outline"] .wpbeat-cart-btn:hover {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
}

.wpbeat-player-container[data-button-style="outline"] .wpbeat-cart-btn.in-cart {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
    border-color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-player-container[data-button-style="outline"] .wpbeat-action-btn {
    background: transparent;
    border: 1px solid #e9ecef;
}

.wpbeat-player-container[data-theme="dark"][data-button-style="outline"] .wpbeat-action-btn {
    border-color: #555555;
}

/* Actions */
.wpbeat-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wpbeat-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.wpbeat-action-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-action-btn {
    background: #555555;
    color: #cccccc;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-action-btn:hover {
    background: #666666;
}

.wpbeat-action-btn.wpbeat-share-btn {
    color: #495057;
}

.wpbeat-cart-btn {
    background: var(--wpbeat-cart-color, #007bff);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wpbeat-cart-btn:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
}

.wpbeat-cart-btn.in-cart {
    background: var(--wpbeat-in-cart-color, #28a745) !important;
}

.wpbeat-cart-btn.in-cart:hover {
    background: var(--wpbeat-in-cart-color-hover, #218838) !important;
}

#wpbeat-footer-cart-toggle {
    background: none;
    border: none;
    margin-left: 10px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 0 10px;
}

.wpbeat-player-container[data-theme="dark"] #wpbeat-footer-cart-toggle {
    color: #ffffff;
}

#wpbeat-footer-cart-toggle:hover {
    color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-player-container[data-theme="dark"] #wpbeat-footer-cart-toggle:hover {
    color: var(--wpbeat-cart-color-hover, #0056b3);
}

#wpbeat-footer-add {
    background: var(--wpbeat-cart-color, #007bff);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#wpbeat-footer-add:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
}

#wpbeat-footer-add.in-cart {
    background: var(--wpbeat-in-cart-color, #28a745) !important;
}

#wpbeat-footer-add.in-cart:hover {
    background: var(--wpbeat-in-cart-color-hover, #218838) !important;
}

/* Load More */
.wpbeat-pagination {
    padding: 30px;
    text-align: center;
}

.wpbeat-load-more {
    padding: 12px 30px;
    border: 2px solid #007cba;
    border-radius: 25px;
    background: transparent;
    color: #007cba;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpbeat-load-more:hover {
    background: #007cba;
    color: #ffffff;
}

/* No Results */
.wpbeat-no-results {
    padding: 60px 20px;
    text-align: center;
    color: #6c757d;
}

/* Cart Widget (Removed - no longer needed) */

.wpbeat-cart-total {
    font-weight: 600;
    font-size: 16px;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-cart-total {
    color: #ffffff;
}

/* Modal Styles */
.wpbeat-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.wpbeat-modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-modal-content {
    background-color: #2d2d2d;
    color: #ffffff;
}

.wpbeat-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.wpbeat-modal-close:hover {
    color: #000;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-modal-close:hover {
    color: #fff;
}

.wpbeat-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
}

.wpbeat-modal-content h2 strong {
    font-weight: 700;
}

#wpbeat-share-title {
    font-weight: 700;
}

.wpbeat-share-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.wpbeat-share-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #ffffff;
}

.wpbeat-share-btn:hover {
    transform: scale(1.1);
}

.wpbeat-share-btn[data-platform="facebook"]:hover {
    background: #1877f2;
}

.wpbeat-share-btn[data-platform="twitter"]:hover {
    background: #1da1f2;
}

.wpbeat-share-link-container {
    display: flex;
    gap: 0;
    margin-top: 15px;
    width: 100%;
}

#wpbeat-share-url-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    border-right: none;
    background: #fff;
    color: #333;
}

.wpbeat-share-link-container .wpbeat-share-btn {
    width: auto;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #ddd;
}

#wpbeat-email-form {
    margin-top: 20px;
}

.wpbeat-email-form-inner {
    display: flex;
    gap: 10px;
}

#wpbeat-email-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0;
    font-size: 14px;
}

.wpbeat-submit-btn {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
    border: 1px solid transparent;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.wpbeat-submit-btn:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
}

.wpbeat-modal-notice {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

.wpbeat-modal-notice.success {
    background: #d4edda;
    color: #155724;
}

.wpbeat-modal-notice.error {
    background: #f8d7da;
    color: #dc3545;
}

/* Price Options Modal */
.wpbeat-price-options {
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-price-options {
    border-top-color: #555555;
}

.wpbeat-price-option {
    margin-bottom: 10px;
}

.wpbeat-price-option label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpbeat-price-option label:hover {
    background-color: #f8f9fa;
    border-color: #007cba;
}

.wpbeat-price-option input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-price-option-name {
    flex-grow: 1;
    font-weight: 500;
}

.wpbeat-price-option-amount {
    font-weight: 600;
    font-size: 16px;
}

.wpbeat-price-option input[type="radio"]:checked + .wpbeat-price-option-name {
    color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-price-option label {
    border-color: #555555;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-price-option label:hover {
    background-color: #3d3d3d;
    border-color: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-modal-footer {
    text-align: right;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.wpbeat-player-container[data-theme="dark"] .wpbeat-modal-footer {
    border-top-color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wpbeat-header,
    .wpbeat-row {
        grid-template-columns: 80px 1fr 80px 200px 180px;
    }
    
    .wpbeat-col-duration,
    .wpbeat-col-key {
        display: none;
    }
    
    .wpbeat-play-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .wpbeat-player-container {
        padding: 10px;
    }
    
    .wpbeat-header,
    .wpbeat-row {
        grid-template-columns: 60px 1fr 150px;
        gap: 15px;
        padding: 15px 10px 15px 15px;
    }
    
    .wpbeat-col-tags {
        display: none;
    }
    
    .wpbeat-play-button {
        width: 35px;
        height: 35px;
    }
    
    .wpbeat-actions {
        gap: 5px;
        justify-content: flex-end;
    }
    
    .wpbeat-action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .wpbeat-cart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wpbeat-share-options {
        flex-wrap: wrap;
    }

    .wpbeat-share-link-container {
        flex-direction: column;
        gap: 10px;
    }

    #wpbeat-share-url-input {
        border-radius: 4px;
        border-right: 1px solid #ddd;
        text-align: center;
    }

    .wpbeat-share-link-container .wpbeat-share-btn {
        width: 100%;
        border-radius: 4px;
        background-color: var(--wpbeat-cart-color, #007cba);
        color: #ffffff;
        justify-content: center;
    }

    .wpbeat-footer-center-controls {
        display: none;
    }
    
    .wpbeat-volume-slider-container {
        width: 60px;
    }

    .wpbeat-search-bar {
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .wpbeat-search-bar input {
        height: 45px;
        padding: 8px 40px 8px 15px;
        font-size: 14px;
    }

    .wpbeat-search-bar i {
        right: 22px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wpbeat-footer-player {
        padding: 10px;
    }
    
    .wpbeat-footer-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    .wpbeat-footer-center-controls {
        display: none;
    }
    
    .wpbeat-footer-left,
    .wpbeat-footer-right {
        width: auto;
    }
    
    .wpbeat-footer-left {
        order: initial;
    }
    
    .wpbeat-footer-right {
        order: initial;
    }
    
    .wpbeat-footer-title {
        font-size: 14px;
    }
    
    .wpbeat-header,
    .wpbeat-row {
        grid-template-columns: 50px 1fr 120px;
        gap: 10px;
        padding: 10px 5px 10px 10px;
    }
    
    .wpbeat-col-play {
        width: 50px;
    }
    
    .wpbeat-play-button {
        width: 30px;
        height: 30px;
        margin: 2px;
    }
    
    .wpbeat-col-title {
        min-width: 0;
    }
    
    .wpbeat-col-duration,
    .wpbeat-col-bpm,
    .wpbeat-col-key,
    .wpbeat-col-tags {
        display: none;
    }
    
    .wpbeat-col-actions {
        width: 120px;
        display: flex;
        justify-content: flex-end;
        padding-right: 5px;
    }
    
    .wpbeat-actions {
        gap: 3px;
        justify-content: flex-end;
    }
    
    .wpbeat-cart-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-left: auto;
    }
    
    .wpbeat-share-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .actions-text {
        display: none;
    }
    
    .wpbeat-volume-slider-container {
        display: none;
    }
    
    .wpbeat-volume-control {
        gap: 0;
    }

    .wpbeat-search-bar {
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .wpbeat-search-bar input {
        height: 40px;
        padding: 8px 35px 8px 12px;
        font-size: 13px;
    }

    .wpbeat-search-bar i {
        right: 17px;
        font-size: 14px;
    }
}

/* Loading State */
.wpbeat-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpbeat-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--wpbeat-cart-color, #007cba);
    border-radius: 50%;
    animation: wpbeat-spin 1s linear infinite;
}

.wpbeat-player-table.loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes wpbeat-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.wpbeat-player-container::-webkit-scrollbar {
    width: 8px;
}

.wpbeat-player-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wpbeat-player-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.wpbeat-player-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Footer Player */
.wpbeat-footer-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e1e5e9;
    padding: 15px 20px;
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.wpbeat-footer-player.footer-visible {
    display: block;
}

.wpbeat-footer-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.wpbeat-footer-progress {
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: #e1e5e9;
    cursor: pointer;
}

.wpbeat-progress-bar {
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wpbeat-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.wpbeat-progress-current {
    height: 100%;
    background: var(--wpbeat-cart-color, #007cba);
    position: relative;
    transition: width 0.1s ease;
}

.wpbeat-progress-handle {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 3px solid var(--wpbeat-cart-color, #007cba);
    border-radius: 50%;
    cursor: pointer;
    opacity: 1;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wpbeat-progress-handle:active {
    transform: translateY(-50%) scale(1.1);
}

.wpbeat-progress-bar:hover .wpbeat-progress-current .wpbeat-progress-handle:hover,
.wpbeat-progress-bar:hover .wpbeat-progress-handle {
    opacity: 1;
}

.wpbeat-progress-bar:hover .wpbeat-progress-current,
.wpbeat-progress-bar:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
}

.wpbeat-time {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
}

.wpbeat-footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.wpbeat-footer-center-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
}

.wpbeat-footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

#wpbeat-footer-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.wpbeat-footer-meta {
    min-width: 0;
    flex: 1;
}

.wpbeat-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpbeat-footer-artist {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.wpbeat-footer-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.wpbeat-footer-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.wpbeat-footer-btn.play {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.wpbeat-footer-btn.play:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
    transform: scale(1.05);
}

#wpbeat-footer-repeat.active {
    background: var(--wpbeat-cart-color, #007cba);
    color: #fff;
}

/* Volume Control */
.wpbeat-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#wpbeat-volume-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.wpbeat-volume-slider-container {
    width: 100px;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.wpbeat-volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.wpbeat-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--wpbeat-cart-color, #007cba);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.wpbeat-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.wpbeat-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--wpbeat-cart-color, #007cba);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.wpbeat-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.3);
}

/* Update slider background based on value */
.wpbeat-volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, 
        var(--wpbeat-cart-color, #007cba) 0%, 
        var(--wpbeat-cart-color, #007cba) var(--volume-percentage, 100%), 
        #e1e5e9 var(--volume-percentage, 100%), 
        #e1e5e9 100%);
    border-radius: 2px;
    cursor: pointer;
}

.wpbeat-volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    cursor: pointer;
}

.wpbeat-volume-slider::-moz-range-progress {
    background: var(--wpbeat-cart-color, #007cba);
    height: 4px;
    border-radius: 2px;
}

/* Featured Track Container */
.wpbeat-featured-track-container {
    box-sizing: border-box;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin-bottom: 0;
}

.wpbeat-featured-player-wrapper.has-visualizer .wpbeat-featured-track-container {
    padding-bottom: 20px;
}

/* Theme Variations */
.wpbeat-featured-track-container[data-theme="dark"] {
    background-color: #111;
    color: #fff;
}

.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-featured-header .beat-title,
.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-featured-meta .meta-item.price .edd_price {
    color: #fff;
    text-align: left;
}

.wpbeat-featured-track-container[data-theme="dark"] .featured-label,
.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-featured-meta .meta-item span,
.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-share-button {
    color: #9ca3af;
}

.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-featured-meta,
.wpbeat-featured-track-container[data-theme="dark"] .related-tags {
    border-color: #374151;
}

.wpbeat-featured-track-container[data-theme="dark"] .related-tags .tag-item {
    border-color: #4b5563;
    color: #d1d5db;
}

.wpbeat-featured-track-container[data-theme="dark"] .related-tags .tag-item:hover {
    background-color: #4b5563;
    color: #fff;
}

.wpbeat-featured-track-container[data-theme="dark"] .wpbeat-featured-meta .meta-item .tags .tag-item {
    background-color: #374151;
    color: #e5e7eb;
}

.wpbeat-featured-track-container[data-theme="light"] {
    background-color: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.wpbeat-featured-track-container[data-theme="light"] .wpbeat-featured-header .beat-title,
.wpbeat-featured-track-container[data-theme="light"] .wpbeat-featured-meta .meta-item.price .edd_price {
    color: #111827;
    text-align: left
}

.wpbeat-featured-track-container[data-theme="light"] .featured-label,
.wpbeat-featured-track-container[data-theme="light"] .wpbeat-featured-meta .meta-item span,
.wpbeat-featured-track-container[data-theme="light"] .wpbeat-share-button {
    color: #6b7280;
}

.wpbeat-featured-track-container[data-theme="light"] .wpbeat-featured-meta,
.wpbeat-featured-track-container[data-theme="light"] .related-tags {
    border-color: #e5e7eb;
}

.wpbeat-featured-track-container[data-theme="light"] .related-tags .tag-item {
    border-color: #d1d5db;
    color: #4b5563;
}

.wpbeat-featured-track-container[data-theme="light"] .related-tags .tag-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.wpbeat-featured-track-container[data-theme="light"] .wpbeat-featured-meta .meta-item .tags .tag-item {
    background-color: #f3f4f6;
    color: #374151;
}

/* Transparent Themes */
.wpbeat-featured-track-container[data-theme='transparent-dark-text'],
.wpbeat-featured-track-container[data-theme='transparent-light-text'] {
    background: transparent;
}

.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .beat-title,
.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .wpbeat-featured-header .beat-title {
    color: #000000;
}

.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .related-tags .tag-item {
    border-color: #4b5563;
    color: #d1d5db;
}

.wpbeat-featured-track-container[data-theme='transparent-light-text'] .beat-title,
.wpbeat-featured-track-container[data-theme='transparent-light-text'] .wpbeat-featured-header .beat-title {
    color: #ffffff;
}

.wpbeat-featured-track-container[data-theme='transparent-light-text'] .related-tags .tag-item {
    border-color: #d1d5db;
    color: #4b5563;
}

.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .wpbeat-featured-meta,
.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .wpbeat-featured-header .beat-title {
    border-color: #374151;
}

.wpbeat-featured-track-container[data-theme='transparent-dark-text'] .related-tags .tag-item,
.wpbeat-featured-track-container[data-theme='transparent-light-text'] .related-tags .tag-item {
    background-color: rgba(255, 255, 255, 0.1);
}

.wpbeat-featured-track-container[data-theme='transparent-light'] {
    background: transparent;
}

.wpbeat-featured-track-container[data-theme='transparent-light'] .wpbeat-featured-header .beat-title,
.wpbeat-featured-track-container[data-theme='transparent-light'] .wpbeat-featured-header .featured-label,
.wpbeat-featured-track-container[data-theme='transparent-light'] .related-tags .tag-item {
    color: #ffffff;
    text-align: left;
}

.wpbeat-featured-track-container[data-theme='transparent-light'] .wpbeat-featured-meta {
    border-color: rgba(255, 255, 255, 0.2);
}

.wpbeat-featured-track-container[data-theme='transparent-dark'] {
    background: transparent;
}

.wpbeat-featured-track-container[data-theme='transparent-dark'] .wpbeat-featured-header .beat-title,
.wpbeat-featured-track-container[data-theme='transparent-dark'] .wpbeat-featured-header .featured-label,
.wpbeat-featured-track-container[data-theme='transparent-dark'] .related-tags .tag-item {
    color: #000000;
    text-align: left;
}

.wpbeat-featured-track-container[data-theme='transparent-dark'] .wpbeat-featured-meta {
    border-color: rgba(0, 0, 0, 0.2);
}

/* Featured Track Artwork */
.wpbeat-featured-track-artwork {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    margin-right: 20px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wpbeat-featured-track-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpbeat-featured-track-artwork .wpbeat-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--wpbeat-cart-color, #007cba);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.wpbeat-featured-track-artwork:hover .wpbeat-play-overlay {
    background: var(--wpbeat-cart-color-hover, #0056b3);
    transform: translate(-50%, -50%) scale(1.1);
}

.wpbeat-featured-track-container.is-playing .wpbeat-play-overlay {
    opacity: 1;
}

.wpbeat-featured-track-container.is-playing .wpbeat-play-overlay i::before {
    content: "\f04c";
}

.wpbeat-featured-track-details {
    width: 100%;
}

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

.wpbeat-featured-header .featured-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.wpbeat-featured-header .beat-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.featured-label-wrapper {
    text-align: center;
}

@media (min-width: 768px) {
    .featured-label-wrapper {
        text-align: left;
    }
}

.wpbeat-featured-header .wpbeat-share-button {
    background: none;
    border: none;
    padding: 0;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    margin-top: 8px;
}

.wpbeat-featured-header .wpbeat-share-button:hover {
    color: #fff;
}

.wpbeat-featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
}

.wpbeat-featured-meta .meta-item {
    text-align: left;
}

.wpbeat-featured-meta .meta-item span {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.wpbeat-featured-meta .meta-item .tags .tag-item {
    display: inline-block;
    background-color: #374151;
    color: #e5e7eb;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.wpbeat-featured-meta .meta-item.bpm,
.wpbeat-featured-meta .meta-item.price {
    font-size: 18px;
    font-weight: 600;
}

.wpbeat-featured-meta .meta-item.price .edd_price {
    color: #fff;
}

.wpbeat-featured-meta .meta-item.cart-button {
    margin-left: auto;
}

.wpbeat-featured-meta .meta-item.cart-button .wpbeat-featured-purchase-button {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.wpbeat-featured-meta .meta-item.cart-button .wpbeat-featured-purchase-button:hover,
.wpbeat-featured-meta .meta-item.cart-button .wpbeat-featured-purchase-button:focus {
    background: var(--wpbeat-cart-color-hover, #0056b3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.related-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-tags .tag-item {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #4b5563;
    border-radius: 20px;
    font-size: 12px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-tags .tag-item:hover {
    background-color: #4b5563;
    color: #fff;
    transform: translateY(-1px);
}

/* Visualizer */
.wpbeat-visualizer-wrapper {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
    height: 80px;
    background: none;
    border-radius: 0;
    overflow: hidden;
}

.wpbeat-featured-player-wrapper.playing .wpbeat-visualizer-wrapper {
    background: none;
}

.wpbeat-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    height: 100%;
    gap: 2px;
    padding: 0 10px;
}

.wpbeat-visualizer-bar {
    width: 5px;
    background: var(--wpbeat-cart-color, #007cba);
    border-radius: 1px;
    animation: wpbeat-visualizer-dance 1.2s ease-in-out infinite;
}

.wpbeat-visualizer-bar-amp,
.wpbeat-visualizer-bar-amp-reflected {
    height: 100%;
    background: var(--wpbeat-cart-color, #007cba);
}

.wpbeat-visualizer-bar-amp-reflected {
    transform: scaleY(-1);
    opacity: 0.6;
}

.wpbeat-visualizer-bar:nth-child(5n) { animation-delay: 0.2s; }
.wpbeat-visualizer-bar:nth-child(5n + 1) { animation-delay: 0.5s; }
.wpbeat-visualizer-bar:nth-child(5n + 2) { animation-delay: 0.1s; }
.wpbeat-visualizer-bar:nth-child(5n + 3) { animation-delay: 0.8s; }
.wpbeat-visualizer-bar:nth-child(5n + 4) { animation-delay: 0.4s; }

@keyframes wpbeat-visualizer-dance {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.wpbeat-footer-player .wpbeat-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    gap: 1px;
    padding: 0 5px;
}

.wpbeat-footer-player .wpbeat-visualizer-bar {
    width: 2px;
    background: var(--wpbeat-cart-color, #007cba);
    border-radius: 1px;
    animation: wpbeat-visualizer-dance-footer 1.2s ease-in-out infinite;
}

.wpbeat-footer-player.playing .wpbeat-visualizer-bar {
    animation: wpbeat-visualizer-dance-footer 1.2s ease-in-out infinite;
}

@keyframes wpbeat-visualizer-dance-footer {
    0%, 100% { transform: scaleY(0.2); }
    50% { transform: scaleY(0.8); }
}

/* Mobile Responsive for Featured Track */
@media (max-width: 768px) {
    .wpbeat-featured-track-container {
        flex-direction: column;
        text-align: center;
        padding: 0;
        overflow: hidden;
    }
    
    .wpbeat-featured-track-artwork {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

    .wpbeat-featured-track-details {
        padding: 20px;
    }
    
    .wpbeat-featured-header .beat-title {
        font-size: 24px;
        text-align: center;
    }
    
    .wpbeat-featured-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .wpbeat-featured-meta .meta-item {
        text-align: center;
    }
    
    .wpbeat-featured-meta .meta-item.cart-button {
        grid-column: 1 / -1;
        margin-top: 10px;
        margin-left: 0;
    }
    
    .wpbeat-featured-meta .meta-item.cart-button .wpbeat-featured-purchase-button,
    .wpbeat-featured-purchase-button {
        width: 100%;
        max-width: none;
    }

    .wpbeat-footer-center-controls {
        display: none;
    }
}

.wpbeat-featured-header > div:first-child {
    flex: 1;
}

.wpbeat-featured-header .beat-title {
    line-height: 1.2;
}

.wpbeat-featured-player-wrapper.has-visualizer .wpbeat-visualizer-wrapper {
    display: block;
}

.wpbeat-edit-beat-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 8px;
    vertical-align: middle;
}
.wpbeat-edit-beat-icon:hover {
    opacity: 1;
}
.wpbeat-row:hover .wpbeat-edit-beat-icon {
    opacity: 1;
}

/* Navigation Cart Button */
.wpbeat-nav-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.wpbeat-nav-cart-btn:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
    color: #ffffff;
}

.wpbeat-nav-cart-btn i {
    font-size: 16px;
}

.wpbeat-nav-cart-btn .wpbeat-cart-total {
    font-weight: 600;
}

/* Dark theme support */
[data-theme="dark"] .wpbeat-nav-cart-btn {
    background: var(--wpbeat-cart-color, #007cba);
    color: #ffffff;
}

[data-theme="dark"] .wpbeat-nav-cart-btn:hover {
    background: var(--wpbeat-cart-color-hover, #0056b3);
    color: #ffffff;
}
