/* ======================
   TgpNGpro Audio Player
   ====================== */

/* Main player container */
.tgpngpro-player {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px; /* Reduced height */
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    box-sizing: border-box;
    min-height: 90px;
}

/* Album artwork */
.tgpngpro-artwork {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tgpngpro-artwork.spinning {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content wrapper */
.tgpngpro-content {
    margin-top: 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Align vertically inside reduced height */
    gap: 2px;
}

/* Info section (title + artist + meta) */
.tgpngpro-info {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Fix vertical alignment */
    width: 100%;
}

.tgpngpro-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.tgpngpro-artist {
    font-size: 11px;
    margin: 0;
    line-height: 1.2;
}

.tgpngpro-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tgpngpro-year,
.tgpngpro-genre {
    font-size: 11px;
    margin: 0;
    line-height: 1.2;
}

/* Progress bar */
.tgpngpro-progress {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tgpngpro-time-current,
.tgpngpro-time-duration {
    font-size: 14px; /* slightly smaller to fit reduced height */
    color: #000;
    width: 35px; /* fixed width for spacing */
    text-align: center;
}

/* Slider styling */
.tgpngpro-progress-bar {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    appearance: none;
    background: #ddd;
    background-image: linear-gradient(#000, #000);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.tgpngpro-progress-bar::-webkit-slider-thumb,
.tgpngpro-progress-bar::-moz-range-thumb,
.tgpngpro-progress-bar::-ms-thumb {
    width: 0;
    height: 0;
}

/* Controls buttons */
.tgpngpro-controls {
    display: flex;
    justify-content: flex-start; /* keep buttons left aligned */
    align-items: center;
    gap: 12px;
    margin-top: 2px; /* small spacing under progress bar */
}

.tgpngpro-controls button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
}

.tgpngpro-controls button:hover {
    color: #333 !important;
    transform: scale(1.1);
}

/* Download button */
.tgpngpro-download-container {
    text-align: center;
    margin-top: 8px;
}

.tgpngpro-download-banner {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    padding: 8px 28px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.tgpngpro-download-banner:hover {
    background-color: #00cc00 !important; /* hover color from admin */
}

/* ======================
   Responsive Styles
   ====================== */
@media (max-width: 768px) {
    .tgpngpro-player {
        max-width: 100%;
        gap: 8px !important;
        padding: 6px 6px !important;
    }

    .tgpngpro-artwork {
        width: 70px !important;
        height: 70px !important;
    }

    .tgpngpro-title {
        font-size: 14px !important;
    }

    .tgpngpro-artist,
    .tgpngpro-year,
    .tgpngpro-genre {
        font-size: 10px !important;
    }

    .tgpngpro-time-current,
    .tgpngpro-time-duration {
        font-size: 13px !important;
    }

    .tgpngpro-controls button {
        font-size: 18px !important;
    }
}
