/* MOO «ЕДИНСТВО» — fixed portal header and compact audio controls.
 * Author/copyright: Ланцет Семён Борисович
 * License: proprietary / all rights reserved
 */

:root{--ep-fixed-header-height:118px}
.ep-header{position:fixed!important;inset:0 0 auto 0!important;width:100%!important;z-index:1300!important;background:#fff!important;box-shadow:0 4px 16px rgba(13,39,66,.10)!important}
body.edinstvo-portal{padding-top:var(--ep-fixed-header-height)!important}
html{scroll-padding-top:calc(var(--ep-fixed-header-height) + 12px)!important}
.ep-account:empty{display:none!important}

/* Range controls must not inherit the generic KOVCHEG form field capsule. */
.ep-audio-progress-wrap input[type="range"],
.ep-audio-tools>input[type="range"],
.edmusic-timeline input[type="range"],
.edmusic-volume input[type="range"]{
 -webkit-appearance:none!important;
 appearance:none!important;
 display:block!important;
 width:100%!important;
 min-width:0!important;
 min-height:0!important;
 height:14px!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 outline:0!important;
 background:transparent!important;
 box-shadow:none!important;
 color:inherit!important;
 cursor:pointer!important;
}

.ep-audio-progress-wrap input[type="range"]::-webkit-slider-runnable-track,
.ep-audio-tools>input[type="range"]::-webkit-slider-runnable-track{height:2px!important;border:0!important;border-radius:2px!important;background:linear-gradient(90deg,#2f6fa9 0 var(--range-progress,0%),#d6e0e8 var(--range-progress,0%) 100%)!important}
.ep-audio-progress-wrap input[type="range"]::-moz-range-track,
.ep-audio-tools>input[type="range"]::-moz-range-track{height:2px!important;border:0!important;border-radius:2px!important;background:#d6e0e8!important}
.ep-audio-progress-wrap input[type="range"]::-moz-range-progress,
.ep-audio-tools>input[type="range"]::-moz-range-progress{height:2px!important;border-radius:2px!important;background:#2f6fa9!important}
.ep-audio-progress-wrap input[type="range"]::-webkit-slider-thumb,
.ep-audio-tools>input[type="range"]::-webkit-slider-thumb{width:9px!important;height:9px!important;margin-top:-3.5px!important;border:0!important;border-radius:50%!important;-webkit-appearance:none!important;appearance:none!important;background:#2f6fa9!important;box-shadow:0 1px 3px rgba(19,62,99,.25)!important}
.ep-audio-progress-wrap input[type="range"]::-moz-range-thumb,
.ep-audio-tools>input[type="range"]::-moz-range-thumb{width:9px!important;height:9px!important;border:0!important;border-radius:50%!important;background:#2f6fa9!important;box-shadow:0 1px 3px rgba(19,62,99,.25)!important}

.edmusic-timeline input[type="range"]::-webkit-slider-runnable-track,
.edmusic-volume input[type="range"]::-webkit-slider-runnable-track{height:2px!important;border:0!important;border-radius:2px!important;background:linear-gradient(90deg,#f4f9fc 0 var(--range-progress,0%),rgba(255,255,255,.20) var(--range-progress,0%) 100%)!important}
.edmusic-timeline input[type="range"]::-moz-range-track,
.edmusic-volume input[type="range"]::-moz-range-track{height:2px!important;border:0!important;border-radius:2px!important;background:rgba(255,255,255,.20)!important}
.edmusic-timeline input[type="range"]::-moz-range-progress,
.edmusic-volume input[type="range"]::-moz-range-progress{height:2px!important;border-radius:2px!important;background:#f4f9fc!important}
.edmusic-timeline input[type="range"]::-webkit-slider-thumb,
.edmusic-volume input[type="range"]::-webkit-slider-thumb{width:9px!important;height:9px!important;margin-top:-3.5px!important;border:0!important;border-radius:50%!important;-webkit-appearance:none!important;appearance:none!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.28)!important}
.edmusic-timeline input[type="range"]::-moz-range-thumb,
.edmusic-volume input[type="range"]::-moz-range-thumb{width:9px!important;height:9px!important;border:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.28)!important}

/* Header player: compact transport, no oversized circular controls. */
.ep-audio-bar{height:38px!important;gap:4px!important;padding:2px 4px!important}
.ep-audio-btn{width:27px!important;height:27px!important}
.ep-audio-btn svg{width:14px!important;height:14px!important}
.ep-audio-btn--play{width:31px!important;height:31px!important;box-shadow:0 2px 7px rgba(31,79,130,.18)!important}
.ep-audio-popover{width:min(430px,calc(100vw - 24px))!important}
.ep-audio-popover__card{padding:14px!important;border-radius:12px!important}
.ep-audio-popover__close{width:27px!important;height:27px!important;font-size:18px!important}
.ep-audio-popover__now{grid-template-columns:96px minmax(0,1fr)!important;gap:13px!important}
.ep-audio-popover__cover{width:96px!important;border-radius:9px!important}
.ep-audio-progress-wrap{grid-template-columns:31px minmax(0,1fr) 31px!important;gap:6px!important;margin:12px 0 7px!important}
.ep-audio-tools>input[type="range"]{width:78px!important}
.ep-audio-popover__library{min-height:28px!important;padding:0 9px!important}

/* Public Music player: smaller buttons and lighter spacing. */
.edmusic-timeline{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:7px!important}
.edmusic-controls{gap:6px!important;margin-top:14px!important}
.edmusic-control{width:32px!important;height:32px!important}
.edmusic-control svg{width:15px!important;height:15px!important}
.edmusic-control--play{width:40px!important;height:40px!important;box-shadow:0 5px 16px rgba(0,0,0,.22)!important}
.edmusic-control--volume{width:30px!important;height:30px!important}
.edmusic-volume{min-width:120px!important;gap:5px!important}
.edmusic-volume input[type="range"]{max-width:86px!important}
.edmusic-player-status:empty{display:none!important}

@media(max-width:760px){
 :root{--ep-fixed-header-height:64px}
 .ep-audio-popover__now{grid-template-columns:76px minmax(0,1fr)!important}
 .ep-audio-popover__cover{width:76px!important}
 .edmusic-control{width:30px!important;height:30px!important}
 .edmusic-control--play{width:38px!important;height:38px!important}
}
