.modal-backdrop{z-index:80}
.media-viewer-visual{display:grid;place-items:center;max-height:68vh;min-height:180px;overflow:hidden;border-radius:14px;background:var(--ink100)}
.media-viewer-visual img,.media-viewer-visual video{display:block;max-width:100%;max-height:68vh;object-fit:contain}
.media-viewer-visual video{width:100%;background:var(--navy950)}
.media-viewer-visual iframe{display:block;width:min(100%,960px);aspect-ratio:16/9;border:0}
.media-viewer-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.media-viewer-controls span{font:600 10px 'JetBrains Mono';color:var(--ink500);white-space:nowrap}
@media(max-width:640px){.media-viewer-controls .btn{padding:7px 9px;font-size:10px}}

/* Community album viewer inspired by Referensi.png */
#modalBackdrop .modal.community-media-modal{display:flex;width:min(1380px,calc(100vw - 48px));height:min(820px,calc(100vh - 48px));max-height:calc(100vh - 48px);overflow:hidden;border-radius:18px}
.community-media-modal .modal-head,.community-media-modal .modal-foot{display:none}
.community-media-modal .modal-body{display:flex;flex:1;min-height:0;padding:0;overflow:hidden}
.community-viewer-layout{display:grid;grid-template-columns:minmax(0,2.08fr) minmax(340px,.92fr);width:100%;min-height:0}
.community-viewer-main{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;border-right:1px solid var(--ink100)}
.community-viewer-main-head,.community-viewer-list-head{display:flex;align-items:center;gap:12px;padding:15px 18px;background:#fff}
.community-viewer-main-head{min-height:82px;border-bottom:1px solid var(--ink100)}
.community-viewer-main-head>div,.community-viewer-list-title>div{display:grid;gap:4px;min-width:0}
.community-viewer-main-head b,.community-viewer-list-title b{font-size:14px;letter-spacing:-.02em}
.community-viewer-main-head small,.community-viewer-list-title small{color:var(--ink500);font-size:11px;line-height:1.45}
.community-viewer-icon{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:50%;background:var(--ink50);color:var(--navy900)}
.community-viewer-icon svg{width:21px;height:21px}
.community-viewer-stage{display:grid;min-height:0;padding:12px;background:#fff}
.community-viewer-visual{position:relative;display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;border-radius:14px;background:var(--ink100)}
.community-viewer-visual>img,.community-viewer-visual>video,.community-viewer-visual>iframe{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.community-viewer-visual>video{background:var(--navy950)}
.community-viewer-visual>iframe{border:0}
.community-viewer-nav{position:absolute;top:50%;z-index:2;display:grid;width:44px;height:44px;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(15,23,42,.68);color:white;box-shadow:0 5px 20px rgba(15,23,42,.2);transition:background .16s,opacity .16s}
.community-viewer-nav:hover:not(:disabled){background:rgba(15,23,42,.88)}
.community-viewer-nav:disabled{opacity:.4;cursor:default}
.community-viewer-nav svg{width:20px;height:20px}
.community-viewer-nav.is-prev{left:16px}.community-viewer-nav.is-next{right:16px}
.community-viewer-count{position:absolute;bottom:16px;left:16px;padding:8px 13px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font:600 11px 'JetBrains Mono';box-shadow:0 4px 14px rgba(15,23,42,.2)}
.community-viewer-loading{display:grid;justify-items:center;gap:10px;width:min(320px,55%);color:var(--ink500);font-size:12px}
.community-viewer-loading .skeleton{width:100%;aspect-ratio:4/3}
.community-viewer-sidebar{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;background:#fff}
.community-viewer-list-head{justify-content:space-between;min-height:82px;border-bottom:1px solid var(--ink100)}
.community-viewer-list-title{display:flex;align-items:center;gap:12px;min-width:0}
.community-viewer-list-head .icon-btn{flex:0 0 42px;width:42px;height:42px}
.community-viewer-list{display:grid;align-content:start;gap:8px;min-height:0;padding:12px;overflow:auto;overscroll-behavior:contain}
.community-viewer-item{display:grid;grid-template-columns:94px minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;min-width:0;padding:9px 10px;border:1px solid var(--ink200);border-radius:13px;background:#fff;color:var(--ink900);text-align:left;transition:border-color .16s,background .16s,box-shadow .16s}
.community-viewer-item:hover{border-color:var(--navy200);background:var(--navy50)}
.community-viewer-item.is-active{border-color:#74adff;background:#eff6ff;box-shadow:0 0 0 1px rgba(59,130,246,.1)}
.community-viewer-item:focus-visible{outline:3px solid rgba(59,130,246,.38);outline-offset:2px}
.community-viewer-thumb-wrap{position:relative;display:grid;width:94px;height:68px;place-items:center;overflow:hidden;border:1px solid var(--ink200);border-radius:9px;background:var(--ink100)}
.community-viewer-thumb{display:block;width:100%;height:100%;object-fit:cover}
.community-viewer-thumb-play{position:absolute;display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:rgba(15,23,42,.66);color:#fff}
.community-viewer-thumb-play svg{width:15px;height:15px}
.community-viewer-item-copy{display:grid;gap:5px;min-width:0}
.community-viewer-item-copy b{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.community-viewer-item-copy small{overflow:hidden;color:var(--ink500);font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.community-viewer-item-state{display:grid;place-items:center;color:var(--ink400)}
.community-viewer-item-state svg{width:17px;height:17px}
.community-viewer-item.is-active .community-viewer-item-state{width:23px;height:23px;border-radius:50%;background:#3087f3;color:#fff}
.community-viewer-item.is-active .community-viewer-item-state svg{width:14px;height:14px}
.community-viewer-footer{display:flex;align-items:center;justify-content:flex-end;min-height:70px;padding:12px 14px;border-top:1px solid var(--ink100);background:#fff}
.community-viewer-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:100%}
.community-viewer-actions .btn-primary{background:#3185f4;border-color:#3185f4;box-shadow:none}
.community-viewer-actions .btn:not(.btn-primary){color:#2679e9;border-color:#8ab8ff}
.community-viewer-actions .btn{flex:1;min-width:44%;padding:10px 12px}
.community-viewer-actions .community-gallery-unavailable{margin-right:auto}
@media(max-width:760px){
  #modalBackdrop .modal.community-media-modal{width:calc(100vw - 20px);height:calc(100vh - 20px);max-height:calc(100vh - 20px);border-radius:15px}
  .community-viewer-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(240px,1fr) minmax(220px,.9fr)}
  .community-viewer-main{grid-template-rows:auto minmax(0,1fr);border-right:0;border-bottom:1px solid var(--ink100)}
  .community-viewer-main-head{min-height:65px;padding:10px 12px}
  .community-viewer-main-head b{font-size:12px}.community-viewer-main-head small{font-size:10px}
  .community-viewer-icon{flex-basis:36px;width:36px;height:36px}.community-viewer-icon svg{width:18px;height:18px}
  .community-viewer-stage{padding:8px}
  .community-viewer-list-head{min-height:60px;padding:8px 12px}
  .community-viewer-list-title{gap:9px}.community-viewer-list-title b{font-size:12px}.community-viewer-list-title small{font-size:10px}
  .community-viewer-list-head .icon-btn{flex-basis:36px;width:36px;height:36px}
  .community-viewer-list{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;padding:8px;gap:7px}
  .community-viewer-item{grid-template-columns:62px minmax(0,1fr) 16px;gap:7px;padding:6px;border-radius:10px}
  .community-viewer-thumb-wrap{width:62px;height:48px;border-radius:7px}
  .community-viewer-item-copy{gap:3px}.community-viewer-item-copy b{font-size:10px}.community-viewer-item-copy small{font-size:9px}
  .community-viewer-footer{min-height:58px;padding:8px 10px}
  .community-viewer-actions .btn{flex:1;padding:8px 9px;font-size:10px}
}
