/**
 * Single Playlist Page Styles
 */

/* -------------------------------------------------------
   Playlist & Album Extra Content (2-Column Layout)
------------------------------------------------------- */
.smp-playlist-extra-content,
.smp-album-extra-content {
  
    margin-top: 40px;
}

.smp-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.smp-extra-image-col img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.smp-excerpt-col h3 {
    margin-bottom: 15px;
    color: #1a1a2e;
    font-size: 1.3rem;
}

.smp-playlist-description {
    color: #3894d4;
    line-height: 1.8;
    font-size: 0.95rem;
}
.smp-excerpt-col strong {
    color: #3894D4 !important;
    font-family: 'Poppins';
}
.smp-excerpt-col {
    color: #3894D4;
    font-family: 'Poppins';
}

/* Preserve formatting for copied content - Playlists & Albums */
.smp-playlist-description,
.smp-album-description {
    color: #3894d4;
    line-height: 1.8;
    font-size: 0.95rem;
}

.smp-playlist-description p,
.smp-album-description p {
    margin-bottom: 1em;
    color: inherit;
    line-height: inherit;
    font-size: inherit;
}

.smp-playlist-description strong,
.smp-album-description strong,
.smp-playlist-description b,
.smp-album-description b {
    font-weight: 700;
    color: #1a1a2e;
}

.smp-playlist-description em,
.smp-album-description em,
.smp-playlist-description i,
.smp-album-description i {
    font-style: italic;
}

.smp-playlist-description ul,
.smp-album-description ul,
.smp-playlist-description ol,
.smp-album-description ol {
    margin: 15px 0;
    padding-left: 25px;
    color: inherit;
}

.smp-playlist-description li,
.smp-album-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.smp-playlist-description a,
.smp-album-description a {
    color: #0073aa;
    text-decoration: underline;
}

.smp-playlist-description a:hover,
.smp-album-description a:hover {
    color: #3894d4;
}

.smp-playlist-description blockquote,
.smp-album-description blockquote {
    border-left: 4px solid #3894d4;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.smp-playlist-description code,
.smp-album-description code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.smp-playlist-description h1,
.smp-album-description h1,
.smp-playlist-description h2,
.smp-album-description h2,
.smp-playlist-description h3,
.smp-album-description h3,
.smp-playlist-description h4,
.smp-album-description h4,
.smp-playlist-description h5,
.smp-album-description h5,
.smp-playlist-description h6,
.smp-album-description h6 {
    color: #1a1a2e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

.smp-playlist-description img,
.smp-album-description img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.smp-playlist-description hr,
.smp-album-description hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 25px 0;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .smp-extra-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .smp-playlist-extra-content,
    .smp-album-extra-content {
        padding: 20px;
        margin-top: 30px;
    }
}

/* -------------------------------------------------------
   Track List
------------------------------------------------------- */
.smp-tracklist-container {
    background: #0f1115;
    border-radius: 0px 0px 12px 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.smp-tracklist-heading {
    font-size: 20px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.smp-no-tracks {
    text-align: center;
    color: #666;
    padding: 40px;
}

.smp-tracklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.smp-tracklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding:15px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-top: 1px solid rgba(120, 130, 140, 0.1);
}

.smp-tracklist-item:last-child {
    border-bottom: none;
}

.smp-tracklist-item:hover {
           border-top-color: transparent;
    background-color: rgba(120, 130, 140, 0.1);
    border-radius: 5px;
}
.smp-tracklist-item:hover + .smp-tracklist-item {
    border-top-color: transparent;
}

.smp-tracklist-item.active {
    background: #3894d21c;
}

.smp-tracklist-item.active .smp-tracklist-title {
    color: #3894D2;
}

.smp-tracklist-number {
    width: 24px;
    font-size: 13px;
    color: #999;
    text-align: center;
    flex-shrink: 0;
    font-family: 'Poppins';
}

.smp-tracklist-item.active .smp-tracklist-number {
    color: #3894D2;
}

.smp-tracklist-cover {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.smp-tracklist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smp-tracklist-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
}

.smp-tracklist-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.smp-tracklist-title {
    font-size: 14px;
    font-weight: 500;
    color: #3894D4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smp-tracklist-artist {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* -------------------------------------------------------
   Track duration
------------------------------------------------------- */
.smp-track-duration {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

/* -------------------------------------------------------
   Single toggle play/pause button per row
------------------------------------------------------- */
.smp-tracklist-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    padding: 0;
}

.smp-tracklist-toggle-btn:hover {
    background: #3894d24a;
    color: #3894D2;
    transform: scale(1.1);
}

.smp-tracklist-item.active .smp-tracklist-toggle-btn {
    color: #3894D2;
}

.smp-tracklist-toggle-btn svg {
    fill: currentColor;
    pointer-events: none;
}

/* -------------------------------------------------------
   Download button
------------------------------------------------------- */
.smp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 10px;

    color: #f4cd4e;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.smp-download-btn svg {
    fill: currentColor;
    flex-shrink: 0;
}

.smp-download-btn:hover {
    color: #f4cd4e;
}

/* Hide text on very small screens, show only icon */
@media (max-width: 480px) {
    .smp-download-btn span {
        display: none;
    }
    .smp-download-btn {
        padding: 6px;
        border-radius: 50%;
    }
}

/* -------------------------------------------------------
   Shortcode Player Styles
------------------------------------------------------- */
.smp-shortcode-player {
    max-width: 800px;
    margin: 0 auto;
}

/* -------------------------------------------------------
   Archive Page
------------------------------------------------------- */
.smp-archive-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
.playlist-header-wrap {
    max-width: 560px;
    text-align: center;
    flex: 1 1 420px;
}

.smp-archive-header .playlist-header-img {
    width: min(32%, 360px);
    min-width: 220px;
    height: auto;
    display: block;
    flex: 0 1 320px;
}

.smp-archive-header {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-around;
    margin-bottom: 36px;
}

.smp-archive-title {
    color: #3894D4;
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0 0 8px;
}

.smp-archive-desc {
    color: #3894D4;
    font-family: 'Poppins';
    margin: 0;
    font-size: 18px;
}

@media (max-width: 900px) {
    .smp-archive-header {
        gap: 16px;
    }
    .smp-archive-header .playlist-header-img {
        width: min(38%, 300px);
        min-width: 190px;
    }
}

@media (max-width: 768px) {
    .smp-archive-header {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 16px;
    }
    .playlist-header-wrap {
        max-width: 100%;
        width: 100%;
        text-align: center;
        flex: 1 1 auto;
    }
    .smp-archive-header .playlist-header-img {
        width: min(70vw, 260px);
        min-width: 0;
        flex: 0 1 auto;
    }
    .smp-archive-title {
        font-size: 2rem;
    }
    .smp-archive-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .smp-archive-page {
        padding: 24px 12px;
    }
    .smp-archive-title {
        font-size: 1.6rem;
    }
    .smp-archive-desc {
        font-size: 15px;
    }
}

.smp-playlist-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.smp-playlist-card {
    text-decoration: none;
    color: #3894D4;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
}

.smp-playlist-card:hover {
    transform: translateY(-4px);
    /* box-shadow: 0 8px 28px rgba(0,0,0,0.14); */
}

.smp-playlist-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square */
    background: #1a1a2e;
    overflow: hidden;
}

.smp-playlist-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smp-playlist-card:hover .smp-playlist-card-thumb img {
    transform: scale(1.05);
}

.smp-playlist-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.smp-playlist-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smp-playlist-card:hover .smp-playlist-card-overlay {
    opacity: 1;
}

.smp-playlist-card-info {
    padding: 14px 0px;
}

.smp-playlist-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #3894D4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    font-family: 'poppins';
}

.smp-playlist-card-artists {
    font-size: 14px;
    color: #f4cd4e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
     font-family: 'poppins';
}

.smp-playlist-card-meta {
    font-size: 12px;
    color: #999;
}

.smp-no-playlists {
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 16px;
}

@media (max-width: 600px) {
    .smp-playlist-grid { gap: 16px; }
    .smp-playlist-card {
        flex-basis: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}

.smp-playlist-single-header {
    display: flex;
    align-items: center;
    font-family: 'Poppins';
    justify-content: space-around;
    border-radius: 12px;
}

.smp-album-single-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
    padding: 40px 20px;
    background: #0f1115;
    border-radius: 12px;
}

.smp-album-single-cover-wrap {
    max-width: 300px;
    width: 100%;
    flex: 0 1 300px;
}

.smp-album-single-cover-img {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.smp-album-single-header .album-header-wrap {
    flex: 1 1 320px;
    min-width: 260px;
}

.smp-album-single-title {
    font-family: 'Poppins';
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #3894D4 !important;
    font-weight: 700;
}

.smp-album-single-excerpt {
    max-width: 600px;
    margin: 20px auto;
    color: #3894D4;
    line-height: 1.6;
}

.smp-album-track-count {
    margin-top: 20px;
    font-size: 1rem;
    color: #3894D4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .smp-album-single-header {
        justify-content: center;
        gap: 16px;
        padding: 28px 16px;
    }
    .smp-album-single-cover-wrap {
        max-width: 240px;
        flex-basis: 240px;
    }
    .smp-album-single-header .album-header-wrap {
        min-width: 0;
        width: 100%;
    }
    .smp-album-single-title {
        font-size: 1.9rem;
    }
    .smp-album-track-count {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .smp-album-single-header {
        padding: 20px 12px;
    }
    .smp-album-single-cover-wrap {
        max-width: 200px;
        flex-basis: 200px;
    }
    .smp-album-single-title {
        font-size: 1.5rem;
    }
    .smp-album-track-count {
        font-size: 0.9rem;
    }
}
