/* OBG Song Galerie v3.3.0 */
.obg-sg { --sg-accent: #b8860b; --sg-green: #2e7d32; --sg-yellow: #a66a00; --sg-border: #ddd; --sg-bg: #fff; --sg-muted: #666; margin: 20px 0; }

.obg-sg-preview-note { background: #fff8e1; border: 1px solid #f0c36d; padding: 10px 14px; border-radius: 6px; margin: 10px 0; font-size: 14px; }

.obg-sg-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--sg-border); border-radius: 8px; background: #fafafa; }
.obg-sg-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin: 0; }
.obg-sg-field select, .obg-sg-field input { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; background: #fff; font-weight: 400; }
.obg-sg-search { grid-column: span 2; }
.obg-sg-reset { padding: 9px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.obg-sg-reset:hover { background: #f0f0f0; }

.obg-sg-crosslinks { margin: 12px 0 0; padding: 10px 14px; background: #fff8e1; border-left: 4px solid var(--sg-accent); border-radius: 4px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.obg-sg-crosslinks[hidden] { display: none !important; }
.obg-sg-crosslinks a { font-weight: 600; text-decoration: none; }
.obg-sg-count { margin: 12px 0 0; color: var(--sg-muted); font-size: 14px; }

.obg-sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 16px 0; }
.obg-sg-tile { display: flex; flex-direction: column; text-decoration: none !important; color: inherit !important; background: var(--sg-bg); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: transform .2s, box-shadow .2s; }
.obg-sg-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.obg-sg-thumb { position: relative; display: block; padding-top: 56.25%; background: #000; }
.obg-sg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.obg-sg-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-sizing: border-box; }
.obg-sg-tile:hover .obg-sg-play { background: #c00; }
.obg-sg-new { position: absolute; top: 8px; left: 8px; background: var(--sg-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.obg-sg-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.obg-sg-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.obg-sg-artist { font-size: 13px; }
.obg-sg-meta { font-size: 12px; color: var(--sg-muted); }
.obg-sg-stock { font-size: 12px; font-weight: 600; margin-top: 2px; }
.obg-sg-stock.is-g { color: var(--sg-green); }
.obg-sg-stock.is-y { color: var(--sg-yellow); }
.obg-sg-none, .obg-sg-empty { padding: 20px; text-align: center; color: var(--sg-muted); }

.obg-sg-pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0 20px; }
.obg-sg-pages button { min-width: 36px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; }
.obg-sg-pages button.is-cur { background: #333; color: #fff; border-color: #333; }
.obg-sg-pages span { padding: 6px 4px; }

html.obg-sg-lock { overflow: hidden; }
.obg-sg-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.8); display: flex; align-items: center; justify-content: center; padding: 16px; }
.obg-sg-modal[hidden] { display: none; }
.obg-sg-modal-box { position: relative; width: 100%; max-width: 860px; max-height: 100%; overflow-y: auto; background: #fff; border-radius: 10px; }
.obg-sg-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }
.obg-sg-player { position: relative; padding-top: 56.25%; background: #000; }
.obg-sg-player iframe, .obg-sg-player > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.obg-sg-modal-body { padding: 14px 18px 4px; }
.obg-sg-modal-body h3 { margin: 0 0 6px; font-size: 18px; }
.obg-sg-m-meta, .obg-sg-m-pl { margin: 0 0 6px; font-size: 14px; color: var(--sg-muted); }
.obg-sg-m-shop { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0 6px; font-size: 14px; }
.obg-sg-m-shop a { text-decoration: none; font-weight: 600; }
.obg-sg-modal-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding: 10px 18px 16px; }
.obg-sg-modal-nav button { flex: 1 1 auto; padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.obg-sg-modal-nav button:hover { background: #f0f0f0; }
.obg-sg-modal-nav .obg-sg-radio.is-on { background: var(--sg-accent); border-color: var(--sg-accent); color: #fff; }

@media (max-width: 600px) {
	.obg-sg-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
	.obg-sg-search { grid-column: 1 / -1; }
	.obg-sg-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.obg-sg-modal { padding: 0; }
	.obg-sg-modal-box { border-radius: 0; height: 100%; }
}

/* v2.0.1: Theme-/Elementor-Buttonstile neutralisieren */
.obg-sg button, .obg-sg-modal button { color: #333 !important; background-color: #fff; text-transform: none; letter-spacing: normal; line-height: 1.3; box-shadow: none; }
.obg-sg .obg-sg-reset:hover, .obg-sg .obg-sg-pages button:hover, .obg-sg .obg-sg-modal-nav button:hover { background-color: #f0f0f0 !important; color: #333 !important; }
.obg-sg .obg-sg-pages button.is-cur { background-color: #333 !important; color: #fff !important; }
.obg-sg .obg-sg-modal-nav .obg-sg-radio.is-on { background-color: var(--sg-accent) !important; color: #fff !important; }
.obg-sg .obg-sg-close { background-color: rgba(0,0,0,.6) !important; color: #fff !important; padding: 0; }

/* v2.6.0: LP/CD-Hinweise */
.obg-sg-m-albums { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0 6px; font-size: 13px; color: var(--sg-muted); }
.obg-sg-m-albums a { text-decoration: none; font-weight: 600; }

/* v2.6.1: Hinweis ohne Gewähr */
.obg-sg-m-note { margin: 6px 0 4px; font-size: 12px; line-height: 1.4; color: var(--sg-muted); font-style: italic; }

/* ===== v3.0.0: bessere Lesbarkeit ===== */
.obg-sg { --sg-muted: #4a4a4a; --sg-field: #555; }
.obg-sg-filters { border: 2px solid #c8c8c8; background: #f7f7f7; gap: 14px 16px; padding: 18px; }
.obg-sg-field { font-size: 14px; font-weight: 700; color: #222; gap: 6px; }
.obg-sg-field select, .obg-sg-field input { border: 2px solid var(--sg-field) !important; border-radius: 6px; font-size: 16px !important; padding: 10px 12px !important; color: #111; min-height: 46px; }
.obg-sg-field select:focus, .obg-sg-field input:focus { outline: 3px solid var(--sg-accent) !important; outline-offset: 1px; border-color: #222 !important; }
.obg-sg-field input::placeholder { color: #666; }
.obg-sg-title { font-size: 15px; }
.obg-sg-artist { font-size: 14px; color: #222; }
.obg-sg-meta { font-size: 13px; }
.obg-sg-stock { font-size: 13px; }
.obg-sg-count { font-size: 15px; color: #333; }
.obg-sg-pages button { font-size: 16px !important; min-width: 42px; padding: 8px 12px; border: 2px solid #999; }

/* ===== Toolbar: Radio links, Zurücksetzen rechts ===== */
.obg-sg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
.obg-sg .obg-sg-reset { padding: 11px 18px; border: 2px solid #555 !important; border-radius: 8px; background: #fff; color: #222 !important; font-size: 15px !important; font-weight: 700; cursor: pointer; }
.obg-sg .obg-sg-reset.is-active { background-color: #fff3cd !important; border-color: var(--sg-accent) !important; color: #5c4300 !important; }
.obg-sg .obg-sg-reset:hover { background-color: #f0f0f0 !important; }

/* ===== Song-Radio-Button + Grafik ===== */
.obg-sg .obg-sg-radio-btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 8px; border: 2px solid #555 !important; border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.obg-sg .obg-sg-radio-btn:hover { background-color: #faf6ec !important; }
.obg-sg .obg-sg-radio-btn.is-on { border-color: var(--sg-accent) !important; background-color: #fff8e6 !important; box-shadow: 0 0 0 3px rgba(184,134,11,.25); }
.obg-sg-radio-txt { display: flex; flex-direction: column; font-size: 15px; color: #222; line-height: 1.3; }
.obg-sg-radio-state { font-size: 13px; color: #555; font-weight: 400; }
.obg-sg-radio-svg .obg-sg-r-body { fill: #8b5a2b; stroke: #4a2f16; stroke-width: 2; }
.obg-sg-radio-svg .obg-sg-r-top { fill: #a8733f; }
.obg-sg-radio-svg .obg-sg-r-grill { fill: #e9dcc3; stroke: #4a2f16; stroke-width: 1.5; }
.obg-sg-radio-svg .obg-sg-r-lines line { stroke: #b49a72; stroke-width: 2; }
.obg-sg-radio-svg .obg-sg-r-dial { fill: #3a3a3a; stroke: #222; stroke-width: 1.5; transition: fill .3s; }
.obg-sg-radio-svg .obg-sg-r-needle { stroke: #c33; stroke-width: 2; }
.obg-sg-radio-svg .obg-sg-r-knob { fill: #d9c49a; stroke: #4a2f16; stroke-width: 1.5; }
.obg-sg-radio-svg .obg-sg-r-foot { fill: #4a2f16; }
.obg-sg-radio-svg .obg-sg-waves path { fill: none; stroke: var(--sg-accent); stroke-width: 3; stroke-linecap: round; opacity: 0; }
.obg-sg-radio-btn.is-on .obg-sg-r-dial { fill: #ffd27a; filter: drop-shadow(0 0 4px #ffb300); }
.obg-sg-radio-btn.is-on .obg-sg-r-needle { animation: obg-sg-needle 3s ease-in-out infinite alternate; }
.obg-sg-radio-btn.is-on .obg-sg-waves path { animation: obg-sg-wave 1.4s ease-out infinite; }
.obg-sg-radio-btn.is-on .obg-sg-waves path:nth-child(2) { animation-delay: .35s; }
@keyframes obg-sg-wave { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
@keyframes obg-sg-needle { from { transform: translateX(0); } to { transform: translateX(14px); } }
@media (prefers-reduced-motion: reduce) { .obg-sg-radio-btn.is-on .obg-sg-waves path, .obg-sg-radio-btn.is-on .obg-sg-r-needle { animation: none; opacity: 1; } }

/* ===== Mini-Player (Radio) unten rechts ===== */
.obg-sg-mini { position: fixed; right: 16px; bottom: 16px; z-index: 99990; width: 300px; background: #fff; border: 2px solid var(--sg-accent); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.3); overflow: hidden; }
.obg-sg-mini[hidden] { display: none; }
.obg-sg-mini-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: #fff8e6; font-weight: 700; font-size: 14px; color: #5c4300; }
.obg-sg-mini-onair { flex: 1; }
.obg-sg .obg-sg-mini-head button { width: 34px; height: 34px; border: 2px solid #999 !important; border-radius: 8px; background: #fff; cursor: pointer; font-size: 16px !important; padding: 0; }
.obg-sg-mini-player { position: relative; width: 100%; height: 200px; background: #000; }
.obg-sg-mini-player iframe, .obg-sg-mini-player > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.obg-sg-mini-now { padding: 8px 12px 10px; font-size: 14px; line-height: 1.35; color: #222; }
.obg-sg-mini-now span { color: #555; }
.obg-sg-mini-now a { font-weight: 700; text-decoration: none; }

/* ===== Video-Fenster: passt sich der Bildschirmhöhe an ===== */
.obg-sg-modal-box { max-width: min(760px, calc((100vh - 300px) * 1.7778)); min-width: min(100%, 340px); }
.obg-sg-modal-body h3 { font-size: 19px; }
.obg-sg-m-meta, .obg-sg-m-pl, .obg-sg-m-shop { font-size: 15px; }
.obg-sg-modal-nav button { font-size: 15px !important; border: 2px solid #999 !important; padding: 9px 12px; }

@media (max-width: 600px) {
	.obg-sg-toolbar { flex-direction: column; align-items: stretch; }
	.obg-sg .obg-sg-reset { text-align: center; }
	.obg-sg-mini { left: 8px; right: 8px; bottom: 8px; width: auto; }
	.obg-sg-modal-box { max-width: 100%; min-width: 0; }
}

/* v3.3.0: Ausweg-Link auf YouTube */
.obg-sg-m-yt { margin: 4px 0 6px; font-size: 14px; }
.obg-sg-m-yt a, .obg-sg-mini-yt { font-weight: 700; text-decoration: none; color: #c00 !important; }
.obg-sg-m-yt span { color: var(--sg-muted); font-size: 13px; }
.obg-sg-mini-yt { font-size: 13px; }
