/* === SONG DETAIL PAGE === */
.song-detail-container {
    padding: 1rem;
    color: #e0e0e0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.song-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Song thumbnail */
.song-detail-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(217, 168, 50, 0.3);
    flex-shrink: 0;
}

.song-info {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Song title */
.song-title {
    font-size: 2rem;
    color: rgba(217, 168, 50, 1);
    margin-bottom: 0.5rem;
    text-align: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.song-info p {
    font-size: 1rem;
    margin: 0.3rem 0;
    color: #cccccc;
    text-align: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Lyrics box styling */
.lyrics-box {
    background-color: #181818;
    border: 1px solid rgba(217, 168, 50, 0.3);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(217, 168, 50, 0.3);
    margin-top: 1rem;
}

.lyrics-text {
    white-space: pre-wrap;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 400px;
    overflow-y: auto;
    color: rgba(217, 168, 50, 0.8);
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.card-body-song {
    background-color: #121212;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(217, 168, 50, 0.3);
}

/* Each song card/item */
.song-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Music Card */
.music-card {
    background: #181818;
    border: 1px solid rgba(217, 168, 50, 0.35);
    border-radius: 14px;
    padding: 1rem 0.95rem 1.1rem;
    box-shadow: 0 8px 28px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(217, 168, 50, 0.15);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px -6px rgba(217, 168, 50, 0.45), 0 0 0 1px rgba(217, 168, 50, 0.45);
    border-color: rgba(217, 168, 50, 0.75);
}

.music-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f2f2f2;
    margin: 0 0 0.35rem;
}

.music-card .card-text {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #b5b5b5;
    margin: 0 0 0.25rem;
}

.music-card .btn {
    align-self: flex-start;
    margin-top: 0.35rem;
}

/* === TABLET === */
@media (max-width: 768px) {
    .song-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .song-info {
        max-width: 100%;
        align-items: center;
    }

    .song-title {
        font-size: 1.6rem;
        text-align: center;
    }

    .song-info p {
        font-size: 0.95rem;
        text-align: center;
    }

    .song-detail-image {
        width: 160px;
        height: 160px;
    }

    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.9rem;
    }
}

/* === MOBILE === */
@media (max-width: 480px) {
    .song-title {
        font-size: 1.4rem;
    }

    .song-info p {
        font-size: 0.9rem;
    }

    .song-detail-image {
        width: 140px;
        height: 140px;
    }

    .lyrics-text {
        font-size: 0.8rem;
    }
}
