/* Details block shared by the Singles, Mixtapes and EPs detail pages (back cover, info, credits, links, embed codes). */
/* Sits inside the same dark container as the player, track list and video, so it shares their edges (no own padding/background). */
.sd-details {
    color: #fff;
    margin-top: 1rem;
}

.sd-details__hero {
    align-items: flex-start;
    display: flex;
    gap: 1.75rem;
}

.sd-details__cover {
    flex: 0 0 auto;
}

.sd-details__cover .songdetailsImages {
    background: #111;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: block;
    height: 190px;
    object-fit: cover;
    width: 190px;
}

.sd-details__info {
    flex: 1 1 0;
    min-width: 0;
}

.sd-details__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.25rem;
    overflow-wrap: anywhere;
}

.sd-details__artist {
    color: #b9bec6;
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
}

.sd-details__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sd-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid #3d4046;
    border-radius: 999px;
    color: #e5e7eb;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
}

.sd-chip .single-meta-link {
    color: #8fd3ff;
}

.sd-chip .single-meta-link:hover {
    color: #b9e6ff;
}

.sd-chip--genre {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.4);
    color: #7ee8fc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sd-stats {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.sd-stat {
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid #3a3d42;
    border-radius: 10px;
    color: #e5e7eb;
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
}

.sd-stat > i.bi {
    color: #0dcaf0;
}

.sd-stat--rating {
    gap: 0.65rem;
}

.sd-stat--rating .card-rating {
    margin: 0;
}

.sd-stat__text {
    align-items: baseline;
    display: flex;
    gap: 0.35rem;
}

.sd-stat__text strong {
    color: #f4c150;
}

.sd-rate {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
}

.sd-rate__label {
    color: #cfd3d9;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sd-rate .rate-song-stars .rating-star-btn {
    font-size: 24px;
}

.sd-rate__message {
    flex-basis: 100%;
}

.sd-credits {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid #34373c;
    border-radius: 10px;
    margin: 1.5rem 0 0;
    padding: 0.35rem 1.1rem;
}

.sd-credits__row {
    border-bottom: 1px solid #34373c;
    display: grid;
    gap: 0.25rem 1.25rem;
    grid-template-columns: 11rem minmax(0, 1fr);
    padding: 0.75rem 0;
}

.sd-credits__row:last-child {
    border-bottom: 0;
}

.sd-credits dt {
    color: #9aa1ab;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sd-credits dd {
    color: #e5e7eb;
    font-size: 0.95rem;
    margin: 0;
}

.sd-credits .DescriptionText {
    font-size: 0.95rem;
}

.sd-section-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.sd-listen {
    margin-top: 1.75rem;
    text-align: center;
}

.sd-listen__logos {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sd-listen__logos a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #3a3d42;
    border-radius: 10px;
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sd-listen__logos a:hover {
    background: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.45);
}

.sd-listen__logos .DigitalLinkLogos {
    height: 34px;
    object-fit: contain;
    width: 100px;
}

.sd-embed {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid #34373c;
    border-radius: 10px;
    margin-top: 1.75rem;
    padding: 1.1rem 1.1rem 1.25rem;
}

.sd-embed .sd-section-title {
    margin-bottom: 0.25rem;
}

.sd-embed__hint {
    color: #9aa1ab;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.sd-embed__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-embed__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.sd-embed__label {
    color: #cfd3d9;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sd-embed__copy {
    background: transparent;
    border: 1px solid rgba(13, 202, 240, 0.5);
    border-radius: 6px;
    color: #0dcaf0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.7rem;
}

.sd-embed__copy:hover {
    background: rgba(13, 202, 240, 0.12);
}

.sd-embed .embed-textarea {
    background: #1b1d20;
    border: 1px solid #3a3d42;
    border-radius: 8px;
    color: #cfd3d9;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    padding: 0.6rem 0.75rem;
    resize: none;
    scrollbar-width: thin;
    width: 100%;
}

@media (max-width: 767.98px) {
    .sd-details__hero {
        align-items: center;
        flex-direction: column;
        gap: 1.1rem;
        text-align: center;
    }

    .sd-details__cover .songdetailsImages {
        height: 200px;
        width: 200px;
    }

    .sd-details__tags,
    .sd-stats,
    .sd-rate {
        justify-content: center;
    }

    .sd-credits__row {
        grid-template-columns: 1fr;
    }

    .sd-embed__grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Layout of the media column: player -> track list -> video -> details, with one consistent gap ---- */
.media-video-wrap {
    margin-top: 1rem;
    width: 100%;
}

/* Track list download icon (same on the Mixtape and EPs pages). */
.dark-theme .media-track-download {
    color: #aaa;
    text-decoration: none;
    line-height: 1;
}

.dark-theme .media-track-download:hover {
    color: #fff;
}

/* Video details: front cover plus an optional smaller back cover underneath. */
.sd-details__cover--stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sd-details__cover .sd-cover--back {
    height: 120px;
    width: 190px;
}

@media (max-width: 767.98px) {
    .sd-details__cover--stack {
        align-items: center;
    }
}

/* Small thumbnail inside a credits row (e.g. the Video page's back cover). */
.sd-credits__thumb {
    background: #111;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: 130px;
    max-width: 100%;
    width: auto;
}

.sd-credits__row dd:has(.sd-credits__thumb) {
    padding: 0.15rem 0;
}

/* 16:9 cover for video links (YouTube / Vimeo thumbnails), instead of a square crop with black bars. */
.sd-details__cover--wide .songdetailsImages {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 250px;
}

@media (max-width: 767.98px) {
    .sd-details__cover--wide .songdetailsImages {
        max-width: 100%;
        width: 320px;
    }
}
