/* OBG STREAM V51 – compact tile layout, aligned black/gold UI; no changes to player or subscriptions */
#obg51Editor{margin:20px auto 14px;max-width:100%;padding:18px;background:linear-gradient(145deg,#131313,#090909);border:1px solid rgba(218,179,84,.48);border-radius:16px;box-sizing:border-box;color:#f4eddd}
#obg51Editor h3{margin:0 0 10px;color:#ebc76e;font-size:1.13rem;line-height:1.4}
#obg51Editor .obg51-help{font-size:.82rem;color:#bdb3a2;line-height:1.5;margin:9px 0 14px}
#obg51Editor .obg51-count{display:grid;gap:8px;max-width:320px;font-weight:650;margin:18px 0}
#obg51Editor .obg51-count select{width:100%;max-width:100%;height:44px;background:#171717;color:#f8efd9;border:1px solid #776039;border-radius:9px;padding:0 10px}
.obg51-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(140px,100%),1fr));gap:12px;align-items:stretch;margin:15px 0}
.obg51-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;min-height:104px;padding:12px;border:1px solid #665330;background:linear-gradient(150deg,#1b1b1b,#101010);color:#f4ead6;border-radius:13px;cursor:pointer;box-sizing:border-box;max-width:100%;min-width:0;box-shadow:inset 0 1px rgba(255,224,156,.08)}
.obg51-tile:hover,.obg51-tile:focus-visible{border-color:#e7bc59;outline:2px solid rgba(229,186,92,.24);outline-offset:1px}
.obg51-tile strong{display:block;font-size:.88rem;max-width:100%;overflow-wrap:anywhere;line-height:1.35}
.obg51-tile small{font-size:.76rem;color:#e8bd70}
.obg51-tile-number{display:grid;place-items:center;font-weight:800;color:#0b0b0b;background:#d6b15a;width:28px;height:28px;border-radius:50%;font-size:.75rem}
.obg51-track-editor{padding:15px;margin:12px 0;border:1px solid #8e713e;background:#181611;border-radius:13px}
.obg51-track-editor[hidden]{display:none}
.obg51-track-edit-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.obg51-track-editor label{display:grid;gap:8px;font-size:.85rem}.obg51-track-editor input{width:100%;box-sizing:border-box;min-height:43px;padding:10px;background:#101010;color:#fff;border:1px solid #6a5836;border-radius:9px}
.obg51-close-tile{font-size:24px;background:transparent;color:#ebc76e;border:0;cursor:pointer}
.obg51-dropzone,.obg51-zip-tile{padding:22px 12px;border:1px dashed #af8744;background:#15130f;color:#edd29a;text-align:center;border-radius:12px;cursor:pointer;outline-offset:2px}
.obg51-dropzone.obg51-hover,.obg51-zip-tile.obg51-hover,.obg51-cover-drop.obg51-hover{outline:2px dashed #ebc76e;background:#282113}
.obg51-zip-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:97px;gap:10px;font-weight:750;box-sizing:border-box}
.obg51-zip-tile small{font-weight:400;color:#e5cc9f}
.obg51-status{min-height:22px;margin:14px 0;color:#ebcf85;line-height:1.45;overflow-wrap:anywhere}
#obg51Save{display:block;width:100%;max-width:460px;margin:18px auto 2px;min-height:46px}
.obg51-click-cover{cursor:pointer;position:relative;outline-offset:3px}
.obg51-click-cover img{transition:filter .2s ease}
.obg51-click-cover:hover img{filter:brightness(.87)}
.obg51-tap{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:rgba(7,7,7,.88);color:#f5d582;border:1px solid rgba(246,210,124,.6);border-radius:30px;font-size:.72rem;font-weight:700;padding:6px 10px;white-space:nowrap;max-width:calc(100% - 20px);pointer-events:none;box-sizing:border-box}
.obg51-open{width:100%;margin-bottom:10px}
.obg51-shade{position:fixed;inset:0;z-index:2147483635;background:rgba(0,0,0,.88);display:grid;place-items:center;padding:14px;box-sizing:border-box;overflow:auto}
.obg51-modal{width:min(720px,100%);max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#1b1915,#080808);border:1px solid #a88748;border-radius:18px;padding:18px;box-sizing:border-box;color:#f6edde;box-shadow:0 22px 80px rgba(0,0,0,.7)}
.obg51-modal-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.obg51-back,.obg51-close{border:1px solid rgba(215,179,99,.5);border-radius:10px;background:#17140f;color:#edce83;padding:9px 12px;cursor:pointer;font-weight:650}.obg51-close{font-size:22px;line-height:1}
.obg51-album-hero{display:grid;grid-template-columns:minmax(96px,170px) 1fr;align-items:center;gap:18px;border-bottom:1px solid #5e5035;padding-bottom:18px}
.obg51-album-hero img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:1px solid #665536}
.obg51-album-hero small{color:#e5bf75}.obg51-album-hero h2{font-size:clamp(1.1rem,4vw,1.7rem);margin:8px 0;overflow-wrap:anywhere}.obg51-album-hero p{margin:6px 0}.obg51-album-hero span{font-size:.8rem;color:#b8a993}
.obg51-tracks{display:grid;gap:7px;margin:16px 0}.obg51-song{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #3d372e;border-radius:10px;padding:10px;min-width:0;background:rgba(255,255,255,.025)}.obg51-song strong{font-size:.91rem;overflow-wrap:anywhere}.obg51-song-no{color:#edc677;font-size:.8rem}.obg51-play{background:#18150f;border:1px solid #b88f4c;color:#f1d18b;border-radius:9px;padding:9px;white-space:nowrap;font-size:.8rem;cursor:pointer}
.obg51-modal-bottom{text-align:center;margin-top:20px}.obg51-buy{min-width:190px}
.obg51-download-choice{margin:12px 0;padding:12px;border:1px solid #826b41;background:#141210;border-radius:12px}.obg51-download-choice[hidden]{display:none}.obg51-choice-list{display:grid;gap:7px;margin-top:11px}.obg51-download{display:block;color:#f2d183;padding:10px;border:1px solid #5e5138;border-radius:9px;overflow-wrap:anywhere;text-decoration:none}.obg51-download:hover{background:#242013}.obg51-download-status{font-size:.82rem;color:#ebbc83}
.obgs-product .obgs-product-bottom{min-width:0}
@media(max-width:480px){.obg51-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.obg51-tile{min-height:94px}.obg51-album-hero{grid-template-columns:105px 1fr;gap:12px}.obg51-modal{padding:12px}.obg51-song{grid-template-columns:23px minmax(0,1fr);gap:7px}.obg51-play{grid-column:2;justify-self:start}.obg51-tap{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.obg51-click-cover img{transition:none}}

.obg51-tile-wrap{display:flex;flex-direction:column;min-width:0;max-width:100%;border-radius:13px}
.obg51-tile-wrap .obg51-tile{width:100%;flex:1;min-height:98px;border-radius:13px 13px 5px 5px}
.obg51-tile-actions{display:flex;justify-content:space-between;align-items:center;border:1px solid #665330;border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:#16120d}
.obg51-tile-actions button{border:0;background:transparent;color:#edcc84;min-height:34px;flex:1;cursor:pointer}
.obg51-draghandle{touch-action:none;cursor:grab}

/* Integrates with OBG's single global Back controller: one Back closes this one sheet. */
.obg51-shade.sheet.open{display:grid!important;position:fixed!important;inset:0!important;z-index:2147483635!important;place-items:center!important;padding:14px!important;overflow:auto!important;background:rgba(0,0,0,.88)!important}

/* V51 Upload status – per open track tile and album ZIP, native accessible progress */
.obg51-progress{width:100%;margin:11px 0 0;text-align:left;max-width:100%;font-size:.79rem;color:#f0d49c;box-sizing:border-box}
.obg51-progress-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px;align-items:center}
.obg51-progress progress{display:block;appearance:auto;width:100%;height:12px;accent-color:#d9ae55;border-radius:9px;overflow:hidden}
.obg51-zip-tile .obg51-progress{padding:0 12px}
