/* Shared with MuzGar redesign v4.1. Does not replace original DLE classes. */
:root{--mgm-card:#101f22;--mgm-soft:#16292c;--mgm-line:rgba(255,255,255,.09);--mgm-teal:#35dcc7;--mgm-muted:#9eb6b2}
/* Keep nav + search usable even with the two additional menu items. */
body.mgm-page .head-block .head-extras{min-width:0!important;gap:10px!important}
body.mgm-page .head-block .top-menu{max-width:100%;min-width:0;flex-wrap:wrap!important;gap:2px!important}
body.mgm-page .head-block .top-menu-link{padding:0 10px!important;white-space:nowrap!important}
body.mgm-page .head-block .search-block{min-width:175px!important;flex:0 1 220px!important}
@media(min-width:751px) and (max-width:1400px){body.mgm-page .head-block{flex-wrap:wrap!important}body.mgm-page .head-block .head-extras{flex:1 1 100%!important;width:100%;justify-content:space-between!important}}
/* Unified layout: media pages take the whole content width. */
body.mgm-page .main-center-block{max-width:1480px}
body.mgm-page .content-block{min-width:0}
body.mgm-page .content-block>.left-col{display:block!important;float:none!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
body.mgm-page .content-block>.right-col{display:none!important}
body.mgm-page .content-block>.left-col>*{max-width:none}
.mgm-section{--muted:var(--mgm-muted);--accent:var(--mgm-teal);max-width:100%;padding:3px 0 18px;color:#eef8f5}
.mgm-section *{box-sizing:border-box}
.mgm-section a{text-decoration:none}
.mgm-section svg,.mgm-search-submit svg{display:block;width:19px;height:19px;flex:0 0 auto}
.mgm-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:5px 0 16px;font-size:13px;color:var(--mgm-muted)}
.mgm-crumbs a{color:#a5bdb8}.mgm-crumbs a:hover{color:var(--mgm-teal)}
.mgm-intro{display:flex;align-items:end;justify-content:space-between;gap:25px;min-height:178px;margin-bottom:22px;padding:26px 30px;border-radius:25px;background:radial-gradient(ellipse at 95% 8%,rgba(55,188,161,.17),transparent 49%),linear-gradient(115deg,#142b2c,#0b1d21);border:1px solid var(--mgm-line)}
.mgm-eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#eac880}
.mgm-intro h1{font-size:clamp(26px,3.4vw,44px)!important;line-height:1.13!important;margin:9px 0 8px!important;color:#f7fbf9!important;letter-spacing:-.025em}
.mgm-intro p{font-size:14px;max-width:650px;color:#b4ceca;margin:0;line-height:1.6}
.mgm-count{flex:0 0 auto;font-size:13px;font-weight:770;color:#d1ebdf;padding:9px 14px;background:rgba(255,255,255,.07);border:1px solid var(--mgm-line);border-radius:99px;white-space:nowrap}
.mgm-search{margin:0 0 18px}.mgm-search label{display:block;margin-bottom:8px;color:#b7d1cb;font-size:13px;font-weight:740}
.mgm-search-field{position:relative;width:min(450px,100%)}
.mgm-search-field input{display:block;width:100%!important;height:48px!important;padding:0 52px 0 16px!important;outline:0;border-radius:14px!important;background:#102427!important;color:#f5fffb!important;border:1px solid var(--mgm-line)!important}
.mgm-search-field input:focus{border-color:#36d4c1!important}
.mgm-search-field button,.mgm-search-submit{display:grid;place-items:center;position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;border-radius:11px;background:#1dd7bd;color:#07231d;cursor:pointer;padding:0}
body.mgm-page .search-block form{position:relative}body.mgm-page .search-block .mgm-search-submit{top:50%;transform:translateY(-50%)}
.mgm-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.mgm-entity{display:flex;flex-direction:column;min-width:0;padding:18px;background:linear-gradient(160deg,#14292c,#0b191c);border:1px solid var(--mgm-line);border-radius:19px;transition:background .2s,border-color .2s,transform .2s}
.mgm-entity:hover{background:#1c3435;border-color:rgba(55,220,199,.5);transform:translateY(-2px)}
.mgm-avatar{display:flex;align-items:center;justify-content:center;width:76px;height:76px;background:linear-gradient(135deg,#257a70,#153635);border-radius:18px;color:#e9cb85;font-size:32px;font-weight:850;margin-bottom:12px}
.mgm-entity strong{line-height:1.3;font-size:15px;color:#f3fbf7;overflow-wrap:anywhere}.mgm-entity small{font-size:12px;color:#a0bbb5;margin:6px 0 8px}.mgm-entity>svg{margin-left:auto;color:var(--mgm-teal)}
.mgm-songs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mgm-section .mgm-song.main-news{display:flex!important;position:relative!important;float:none!important;width:auto!important;min-width:0!important;min-height:82px!important;align-items:center!important;gap:14px!important;padding:10px 14px!important;margin:0!important;border-radius:17px!important;border:1px solid var(--mgm-line)!important;background:#122427!important}
.mgm-section .mgm-song:hover{background:#1a3335!important}
.mgm-song-cover{flex:0 0 62px;width:62px;height:62px;border-radius:12px;overflow:hidden}
.mgm-song-cover img{width:100%;height:100%;object-fit:cover;display:block}
.mgm-song-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;overflow:hidden}
.mgm-song-title{display:block!important;color:#f7fbfa!important;font-size:15px!important;font-weight:760!important;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgm-song-text>span{font-size:12px;color:#a3c0ba;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mgm-section .mgm-song-play.track-card{position:static!important;inset:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;flex:0 0 42px!important;overflow:visible!important}
.mgm-section .mgm-song-play .track-card__play,.mgm-song-fallback{position:static!important;inset:auto!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.12)!important;background:#20373a!important;color:#55e6d1!important;transform:none!important;cursor:pointer}
.mgm-section .mgm-song-play .track-card__play:hover{background:#32dcc6!important;color:#071e1c!important}
.mgm-song.playing .track-card__play{border-color:#35e1c8!important;background:#35dec7!important;color:#092823!important}
.mgm-section .mgm-song-play svg,.mgm-song-fallback svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor}
.mgm-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.mgm-video{min-width:0;overflow:hidden;border-radius:18px;border:1px solid var(--mgm-line);background:#122326;transition:transform .2s,border-color .2s}
.mgm-video:hover{transform:translateY(-2px);border-color:rgba(65,213,196,.35)}
.mgm-video-open{position:relative;display:block;width:100%;padding:0!important;border:0!important;background:#112529;aspect-ratio:16/9;overflow:hidden;cursor:pointer}
.mgm-video-open img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.mgm-video:hover img{transform:scale(1.035)}
.mgm-video-play{position:absolute;inset:0;margin:auto;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#102b2ecb;color:#fff;box-shadow:0 7px 20px #0008}
.mgm-video-play svg{width:26px;height:26px;fill:white;stroke:white}
.mgm-video-copy{display:flex;flex-direction:column;gap:7px;padding:14px 16px 16px;min-width:0}
.mgm-video-copy strong{font-size:15px;line-height:1.4;color:#f1f7f3;overflow-wrap:anywhere}
.mgm-video-copy span{font-size:13px;color:#a6c1ba}
.mgm-video-copy a{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--mgm-teal);font-weight:700}.mgm-video-copy a svg{width:15px;height:15px}
.mgm-empty{padding:20px;color:#b8cbc7;background:#122627;border:1px solid var(--mgm-line);border-radius:15px}
.mgm-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:26px 0}
.mgm-pager a{min-width:37px;text-align:center;padding:8px 13px;background:#183236;color:#e4f2ef;border:1px solid var(--mgm-line);border-radius:11px}.mgm-pager a[aria-current=page]{background:var(--mgm-teal);color:#092523}
.mgm-modal[hidden]{display:none!important}.mgm-modal{position:fixed;inset:0;z-index:2147480001;display:grid;place-items:center;padding:16px;isolation:isolate}
.mgm-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.88);backdrop-filter:blur(10px)}
.mgm-dialog{position:relative;max-height:95dvh;overflow:auto;width:min(1150px,100%);padding:18px;border:1px solid #37665f;background:#0b1c1f;border-radius:20px;box-shadow:0 20px 75px #000a}
.mgm-modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.mgm-modal-header h2{color:#fff;font-size:19px;font-weight:780;margin:0;line-height:1.35}
.mgm-close{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border:0;border-radius:50%;background:#1c3b3c;color:#fff;cursor:pointer}
.mgm-video-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:18px}.mgm-frame{aspect-ratio:16/9;overflow:hidden;background:#000;border-radius:12px}.mgm-frame iframe{display:block;width:100%;height:100%;border:0}
.mgm-recommendations h3{margin:0 0 10px;font-size:15px;color:#fff}.mgm-rec-list{display:flex;flex-direction:column;gap:9px}
.mgm-rec{display:flex;align-items:center;text-align:left;gap:9px;min-width:0;border:1px solid var(--mgm-line);border-radius:10px;padding:7px;background:#142b2e;color:#e8f8f4;cursor:pointer}
.mgm-rec img{width:91px;height:53px;object-fit:cover;flex:0 0 91px;border-radius:7px}.mgm-rec span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35}
body.mgm-locked{overflow:hidden}
@media(max-width:1180px){.mgm-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mgm-videos{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:950px){.mgm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mgm-songs{grid-template-columns:1fr}.mgm-video-layout{grid-template-columns:1fr}.mgm-rec-list{flex-direction:row;overflow-x:auto}.mgm-rec{flex:0 0 180px;flex-direction:column;align-items:stretch}.mgm-rec img{width:100%;height:90px}}
@media(max-width:750px){body.mgm-page .head-block .head-extras{display:contents!important}body.mgm-page .head-block .search-block{min-width:0!important;flex:1 1 100%!important}body.mgm-page .head-block .top-menu{flex-wrap:nowrap!important}.mgm-section{padding:6px 0 17px}.mgm-intro{align-items:start;flex-direction:column;min-height:0;padding:20px 17px;border-radius:18px;gap:14px}.mgm-intro h1{font-size:30px!important}.mgm-intro p{font-size:13px}.mgm-count{font-size:11px}.mgm-crumbs{font-size:11px}.mgm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mgm-entity{padding:13px;border-radius:14px}.mgm-avatar{width:52px;height:52px;border-radius:13px;font-size:24px}.mgm-entity strong{font-size:13px}.mgm-entity small{font-size:11px}.mgm-videos{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.mgm-video-copy{padding:11px}.mgm-video-copy strong{font-size:13px}.mgm-video-copy span{font-size:12px}.mgm-song-title{font-size:14px!important}.mgm-dialog{padding:11px}}
@media(max-width:470px){.mgm-videos{grid-template-columns:1fr}.mgm-section .mgm-song.main-news{gap:9px!important;padding:8px!important}.mgm-song-cover{width:52px;height:52px;flex-basis:52px}.mgm-section .mgm-song-play.track-card,.mgm-section .mgm-song-play .track-card__play{height:38px!important;width:38px!important;min-width:38px!important;min-height:38px!important;flex-basis:38px!important}.mgm-entity{min-height:140px}}

/* Ajax-safe selectors. Avoid allowing old DLE global svg rules to enlarge controls. */
body.mgm-page .mgm-section svg,body.mgm-page .mgm-video-open svg,
body.mgm-page .mgm-song-play svg,body.mgm-page .mgm-search-field button svg,
body.mgm-page .mgm-search-submit svg {
 display:inline-block!important;width:20px!important;height:20px!important;max-width:20px!important;
 max-height:20px!important;min-width:0!important;min-height:0!important;vertical-align:middle!important;
}
body.mgm-page .mgm-video-play svg{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important}
body.mgm-page .mgm-entity > svg{margin-left:auto!important}
body.mgm-page .mgm-search-field button {width:38px!important;height:38px!important}


/* MuzGar 2026-11-01: consistent section sidebar during full and AJAX navigation */
@media(min-width:1001px){
 body.mgm-page .content-block>.left-col:has(.mgm-section){
  width:calc(100% - 310px)!important;max-width:calc(100% - 310px)!important;
  float:left!important;margin:0 18px 0 0!important;min-width:0!important;
 }
 body.mgm-page .content-block>.right-col.mgm-sidebar{
  display:block!important;float:right!important;width:292px!important;max-width:292px!important;margin:0!important;
 }
}
@media(max-width:1000px){
 body.mgm-page .content-block>.left-col:has(.mgm-section),
 body.mgm-page .content-block>.right-col.mgm-sidebar{
  display:block!important;width:100%!important;max-width:100%!important;
  float:none!important;clear:both!important;margin:0!important;
 }
 body.mgm-page .content-block>.right-col.mgm-sidebar{margin:18px 0 0!important}
}
body.mgm-page .mgm-sidebar .mgm-side-links{display:flex;flex-direction:column;gap:6px;padding:12px!important}
body.mgm-page .mgm-sidebar .mgm-side-links a{display:block;padding:11px 13px;border-radius:12px;color:#eaf5f1;text-decoration:none;font-size:14px;font-weight:650;background:#13272b;border:1px solid rgba(255,255,255,.06)}
body.mgm-page .mgm-sidebar .mgm-side-links a:hover,
body.mgm-page .mgm-sidebar .mgm-side-links a.is-active{background:#21463f;color:#69dfc9;border-color:rgba(83,215,194,.25)}
/* No slide-specific control should introduce an extra player on media routes. */
#nav-load a.mg-more-loading{opacity:.68;pointer-events:none}
