/* Mini Player Styles (Dark Chrome-style) */
.mini-player {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #1a1a1a;
    border-radius: 5px;
    /*padding: 5px 5px;*/
    padding: 0 5px;
    max-width: 360px;
    /*margin: 10px auto 10px 0;*/
    margin: -7px auto -5px 0;
    text-align: left;
}

.mini-player * {
    text-align: left;
}

.mini-player-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.mini-player-btn svg {
    width: 32px;
    height: 32px;
    fill: #f5cd00;
}

.mini-player-btn:hover svg {
    fill: ##ffe041;
}

.mini-player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
	margin-top: 17px;
}

.mini-player-bar {
    width: 100%;
    height: 4px;
    background: #4a4a4a;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
}

.mini-player-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #e0e0e0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
}

.mini-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #a0a0a0;
    font-family: Arial, sans-serif;
}

.mini-player-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mini-player-volume svg {
    width: 18px;
    height: 18px;
    fill: #a0a0a0;
    cursor: pointer;
}

.mini-player-volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #4a4a4a;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.mini-player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
}

.mini-player-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

/* Share Button */
.mini-player-share {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.mini-player-share:hover {
    background: transparent;
}

.mini-player-share:active {
    background: transparent;
}

.mini-player-share img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mini-player-share:hover img {
    opacity: 1;
}

/* Download Button */
.mini-player-download {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin-left: 8px;
    transition: background 0.2s, border-color 0.2s;
}

.mini-player-download:hover {
    background: transparent;
}

.mini-player-download:active {
    background: transparent;
}

.mini-player-download img {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mini-player-download:hover img {
    opacity: 1;
}

/* Share Popover Styles */
.share-popover {
    position: fixed;
    z-index: 10000;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
}

.share-popover[aria-hidden="true"] {
    display: none;
}

.share-popover__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.share-popover__title {
    color: #f5cd00;
    font-size: 14px;
    font-weight: bold;
}

.share-popover__close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.share-popover__close:hover {
    color: #fff;
}

.share-popover__song {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #2a2a2a;
    border-radius: 6px;
    text-decoration: none;
    color: #ccc;
    font-size: 11px;
    transition: background 0.2s;
}

.share-option:hover {
    background: #3a3a3a;
    color: #fff;
}

.share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-icon img {
    width: 28px;
    height: 28px;
}

.share-copy {
    width: 100%;
    padding: 10px;
    background: #f5cd00;
    border: none;
    border-radius: 4px;
    color: #000;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.share-copy:hover {
    background: #ffe041;
}

.share-toast {
    text-align: center;
    color: #4ade80;
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}
