/* Block „Musik & Video“ – Deezer-Kachel (Spotify/YouTube nutzen die Kacheln des Themes) */
.hb-media { margin-block: var(--wp--preset--spacing--50, 1.5rem); }
.hb-media .hb-spotify { margin-top: 0; }
/* Spotify im Block ebenfalls quadratisch (Artist-Seiten bleiben wie gehabt). Ab ~350 px Höhe zeigt Spotify das große Cover. */
.hb-media--spotify .hb-spotify { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; min-height: 0; margin-inline: auto; }
.hb-media--spotify .hb-spotify__consent { height: 100%; min-height: 0; }
.hb-media--spotify .hb-spotify iframe { width: 100% !important; height: 100% !important; }
/* Quadratisch, höchstens 400 × 400 px, mittig */
.hb-deezer { width: 100%; max-width: 400px; aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #191922, #3b1f5c); color: #fff; }
.hb-deezer.is-loaded { background: none; }
.hb-deezer iframe { display: block; width: 100% !important; height: 100% !important; border: 0; border-radius: 12px; }
.hb-deezer__consent { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 1.5rem; text-align: center; }
.hb-deezer__consent p { margin: 0; font-size: .9rem; line-height: 1.4; color: rgba(255,255,255,.8); }
.hb-deezer__consent strong { color: #fff; }
.hb-deezer__load { border: 0; border-radius: 999px; padding: .55rem 1.2rem; font: inherit; font-weight: 700; background: #a238ff; color: #fff; cursor: pointer; }
.hb-deezer__load:hover, .hb-deezer__load:focus-visible { background: #8a1fe6; }
.hb-deezer__always { text-align: center; font-size: .8rem; color: rgba(255,255,255,.75); }

/* Editor */
.hb-media-edit { border: 1px solid #dcdcde; border-radius: 8px; padding: 14px; background: #fff; color: #1e1e1e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hb-media-edit__head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.hb-media-edit__row { display: flex; gap: 8px; }
.hb-media-edit__row .components-base-control { flex: 1; margin: 0; }
.hb-media-edit__row .components-base-control__field { margin: 0; }
.hb-media-edit__hint { font-size: 12px; color: #757575; margin: 6px 0 0; }
.hb-media-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hb-media-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.hb-media-item:hover, .hb-media-item:focus-visible { border-color: #d10062; background: #fff5fa; }
.hb-media-item img, .hb-media-item__ph { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; flex: none; background: #f0f0f0; }
.hb-media-item__t { flex: 1; min-width: 0; }
.hb-media-item__t b, .hb-media-item__t span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-media-item__t span { font-size: 12px; color: #757575; }
.hb-media-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff; flex: none; }
.hb-media-badge--deezer { background: #a238ff; } .hb-media-badge--spotify { background: #1db954; } .hb-media-badge--youtube { background: #ff0033; }
.hb-media-sel { display: flex; align-items: center; gap: 12px; }
.hb-media-sel img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.hb-media-sel__t { flex: 1; min-width: 0; }
.hb-media-sel__t b { display: block; font-size: 15px; }
.hb-media-sel__t span { color: #757575; font-size: 13px; }
.hb-media-ac { display: flex; align-items: center; gap: 8px; }
.hb-media-ac img { width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
.hb-media-ac small { color: #757575; }
