@import url('https://fonts.googleapis.com/css2?family=Quattrocento+Sans:wght@400;700&display=swap');

.cap-player-wrapper {
    max-width: 85vw;
    margin: 0vw auto;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    color: #000000;
    border: none;
    border-radius: 0;
}

/* Password Gate Removed
.cap-password-gate {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: transparent;
}

.cap-password-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.cap-password-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cap-password-form input[type="password"] {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    border-radius: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cap-password-form input[type="password"]:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.cap-password-form button {
    width: 100%;
    padding: 12px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cap-password-form button:hover {
    background: #333;
    transform: translateY(-1px);
}

.cap-error-message {
    margin-top: 15px;
    font-size: 13px;
    min-height: 20px;
} */

/* Player Interface */
.cap-player-interface {
    display: flex;
    flex-direction: column;
}

.cap-now-playing {
    padding: 30px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.cap-track-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.cap-track-info span {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* Controls */
.cap-controls {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #F9F9F9;
    background: #F3EDE9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cap-controls button {
    background: none;
    border: none;
    cursor: pointer;
    color: #000 !important;
    padding: 0;
    transition: transform 0.2s ease, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    opacity: 1 !important;
}

.cap-controls button:hover {
    color: #555 !important;
    transform: scale(1.1);
}

/* Speed Control */
.cap-speed-control {
    margin-left: auto;
}

.cap-speed-select {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.cap-speed-select:hover {
    border-color: #999;
}

.cap-speed-select:focus {
    border-color: #000;
}

/* Search */
.cap-search-container {
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.cap-track-search {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-size: 15px;
    background: #fcfcfc;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    height: auto !important;
    line-height: normal;
}


.cap-track-search:focus {
    background: #fff;
    border-color: #ddd;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.cap-search-container>input[type="text"] {
    padding: 1vw 2vw !important;
}

/* Download Button */
.cap-download-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    transition: all 0.2s;
    margin-right: 10px;
}

.cap-download-track:hover {
    background: #f0f0f0;
    color: #333;
}

.cap-download-track .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Range Sliders */
.cap-seek-bar,
.cap-volume-bar {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
}

.cap-seek-bar::-webkit-slider-thumb,
.cap-volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.cap-seek-bar::-webkit-slider-thumb:hover,
.cap-volume-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.cap-seek-bar {
    flex-grow: 1;
}

.cap-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 120px;
}

.cap-volume-bar {
    width: 100%;
}

/* Playlist */
.cap-playlist {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    background: #fff;
    max-height: 550px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    /* Modern Sans Stack */
}

.cap-track {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    /* Improved Padding */
    border-bottom: 1px solid #f5f5f5;
    /* Subtle border */
    cursor: pointer;
    transition: background 0.2s;
}

.cap-track:last-child {
    border-bottom: none;
}

.cap-track:hover {
    background: #fafafa;
}

.cap-track.active {
    background: #F3EDE9;
}

.cap-track-number {
    width: 30px;
    color: #999;
    font-size: 13px;
    margin-right: 15px;
    font-variant-numeric: tabular-nums;
}

.cap-track-name {
    flex-grow: 1;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Active Track Styling */
.cap-track.active .cap-track-name {
    color: #000;
    font-weight: 700;
    /* Bold title */
}

/* Equalizer Animation */
.cap-equalizer {
    display: none;
    /* Hidden by default */
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-left: 8px;
}

.cap-track.active .cap-equalizer {
    display: inline-flex;
}

.cap-equalizer .bar {
    width: 3px;
    background-color: #000;
    height: 4px;
    /* Base static height */
}

.cap-track.active.cap-playing .cap-equalizer .bar {
    animation-name: bounce;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.cap-equalizer .bar-1 {
    animation-delay: 0s;
    height: 6px;
    /* Static height when paused */
}

.cap-equalizer .bar-2 {
    animation-delay: 0.2s;
    height: 12px;
    /* Static height when paused */
}

.cap-equalizer .bar-3 {
    animation-delay: 0.4s;
    height: 8px;
    /* Static height when paused */
}

@keyframes bounce {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 12px;
    }
}

/* Pagination */
.cap-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 8px;
}

.cap-page-link {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    background: transparent;
}

.cap-page-link.active {
    background: #000 !important;
    color: #fff !important;
}

.cap-page-link:hover:not(.active) {
    background: #f0f0f0;
}

.cap-track.hidden-page {
    display: none;
}

.cap-prev-page,
.cap-next-page {
    width: auto !important;
    padding: 0 10px;
    font-weight: 600;
}

.cap-page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cap-page-ellipsis {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    color: #999;
}

@media (max-width: 768px) {
    .cap-player-wrapper {
        margin: 0 auto !important;
    }
}