/* Modal styles */
.modal-lg {
    max-width: 900px;
}

.track-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.track-image-gallery img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.provider-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.provider-links a {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    transition: background-color 0.2s;
}

.provider-links a:hover {
    background: #e9ecef;
}

.accordion-body table {
    margin-bottom: 0;
}

.accordion-body th {
    width: 150px;
}

/* Main content */
.main-content {
    margin-top: 84px;  /* Match the player height */
}

.main-content.player-hidden {
    margin-top: 0;
}

/* Table styles */
.clickable { 
    cursor: pointer; 
}

.filter-row input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sort-icon { 
    margin-left: 5px; 
}

/* Track artwork */
.track-artwork {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

/* Voting styles */
.vote-button {
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.vote-button:hover { 
    color: #0056b3; 
}

.vote-button.active { 
    color: #007bff; 
}

.vote-count {
    font-size: 0.9em;
    color: #666;
}

/* Info button styles */
.info-button {
    transition: transform 0.2s, color 0.2s;
}

.info-button:hover {
    transform: scale(1.2);
    color: #0056b3;
}

/* Play button */
.play-button {
    cursor: pointer;
    color: #1db954;
    transition: transform 0.2s;
}

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

.play-button.playing { 
    color: #ff5555; 
}

/* Audio Player Base */
.audio-player {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1e1e1e;
    height: 84px;  /* Much taller now */
    color: white;
    z-index: 1000;
    display: none;
}

.audio-player.visible {
    display: block;
}

/* Player Layout */
.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Section */
.player-left {
    display: flex;
    align-items: center;
    width: 180px;
}

.player-artwork {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    margin-right: 10px;
}

.track-info {
    overflow: hidden;
    min-width: 0;
}

.track-title {
    font-size: 0.85em;
    color: #fff;
    margin-bottom: 1px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

/* Center Section */
.player-center {
    flex-grow: 1;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 12px;
}

/* Controls */
.main-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.extended-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.ctrl-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 22px;
    min-height: 22px;
    font-size: 0.8em;
}

.ctrl-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ctrl-button.active {
    color: #1db954;
    background: rgba(29, 185, 84, 0.2);
}

#playPause {
    width: 28px;
    height: 28px;
    font-size: 1em;
    background: #1db954;
    color: #fff;
}

#playPause:hover {
    transform: scale(1.05);
    background: #1ed760;
}

/* Seek Controls */
.seek-controls {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-container {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
    position: relative;
    margin: 0 6px;
}

.progress-bar {
    height: 100%;
    background: #1db954;
    border-radius: 2px;
    width: 0%;
}

.progress-handle {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.progress-container:hover .progress-handle {
    display: block;
}

/* Right Section */
.player-right {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-right: 8px;
}

/* Volume Controls */
.volume-slider {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 2px;
    position: relative;
}

.volume-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s ease-in-out;
}

.volume-handle {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-slider:hover .volume-handle {
    display: block;
}

/* Time Display */
.time {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.7);
    width: 32px;
    text-align: center;
    font-family: monospace;
}

/* Cast Button Styles */
#castButton, #airplayButton {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

#castButton:hover, #airplayButton:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#castButton.active, #airplayButton.active {
    color: #1db954;
}

#castButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#castButton:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
}
