/* Prototype local : aucun style existant ni crédit n’est modifié. */
#discographie .list.has-cover { position: relative; }
#discographie .cover-trigger {
    appearance: none;
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    cursor: zoom-in;
    touch-action: manipulation;
}
#discographie .cover-trigger:focus-visible {
    outline: 2px solid var(--snd, #fccf25);
    outline-offset: 4px;
}
.cover-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.cover-preview {
    position: fixed;
    z-index: 1100;
    box-sizing: border-box;
    width: min(240px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: 1px solid #555;
    background: #080808;
    color: #ccc;
    box-shadow: 0 8px 28px #0009;
    font-family: var(--ff), sans-serif;
    font-size: 13px;
    line-height: 1.4;
}
.cover-preview .cover-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    background: #111;
}
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover-preview .cover-image-status { padding: 15px; font-size: 12px; text-align: center; }
.cover-preview .cover-close {
    appearance: none;
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #777;
    border-radius: 0;
    background: #080808;
    color: #fff;
    font: 24px/1 sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
.cover-preview .cover-caption { margin: 10px 0 0; padding: 0; text-transform: uppercase; }
.cover-preview .cover-artist { display: block; color: var(--snd, #fccf25); }
.cover-preview .cover-title { display: block; font-size: 11px; }
.cover-preview .cover-source { display: inline-block; margin-top: 8px; color: #bbb; font-size: 10px; }
.cover-preview .cover-close:focus-visible,
.cover-preview .cover-source:focus-visible { outline: 2px solid var(--snd, #fccf25); outline-offset: 2px; }
.cover-preview[hidden], .cover-preview [hidden], #discographie .cover-trigger[hidden] { display: none !important; }
@media (max-width: 640px), (hover: none) {
    .cover-preview { width: min(280px, calc(100vw - 24px)); }
    .cover-preview .cover-close { width: 44px; height: 44px; }
    .cover-preview .cover-source { padding: 8px 0; }
}
