/* === Efika track search/import in upload modal === */
.upload-source-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
}
.track-search-open-button{
  background:linear-gradient(145deg,rgba(0,196,140,.20),rgba(143,211,255,.10))!important;
}
.track-search-modal-card{
  width:min(780px,100%)!important;
}
.track-search-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:stretch!important;
}
.track-search-row input{
  min-width:0!important;
}
.track-search-status{
  margin:0!important;
}
.track-search-status.error{
  color:var(--danger)!important;
}
.track-search-results{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  margin-top:16px!important;
}
.track-search-card{
  display:grid!important;
  grid-template-columns:62px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  padding:12px!important;
  border-radius:18px!important;
  border:1px solid rgba(143,211,255,.14)!important;
  background:rgba(255,255,255,.045)!important;
}
.track-search-cover{
  width:62px!important;
  height:62px!important;
  min-width:62px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:rgba(143,211,255,.10)!important;
  color:var(--accent)!important;
  font-size:24px!important;
  font-weight:900!important;
}
.track-search-cover img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.track-search-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  min-width:0!important;
}
.track-search-copy b,
.track-search-copy span{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.track-search-copy b{
  color:var(--text)!important;
  font-size:15px!important;
  line-height:1.25!important;
}
.track-search-copy span{
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:1.3!important;
}
@media (max-width:560px){
  .upload-source-actions,
  .track-search-row{
    grid-template-columns:1fr!important;
  }
  .track-search-card{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  .track-search-card .btn{
    grid-column:1 / -1!important;
    width:100%!important;
  }
  .track-search-cover{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
  }
}

/* === Efika reactions admin patch === */
.admin-page-note{margin:-4px 0 18px}.reactions-admin-form .reaction-rules-note ul{margin:10px 0 0;padding-left:20px;color:var(--muted);line-height:1.55}.reactions-admin-form .reaction-rules-note li{margin:4px 0}.reactions-settings-group>p{margin:-4px 0 12px;line-height:1.4}

/* === Efika v46: reaction flags moved out of general settings, users page hard no-horizontal-overflow === */
html,
body,
.admin-body{
  max-width:100%!important;
  overflow-x:hidden!important;
}
.admin-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
  width:100%!important;
  max-width:100vw!important;
  overflow-x:hidden!important;
}
.admin-menu,
.admin-main,
.admin-table-panel,
.table-wrap,
.panel{
  min-width:0!important;
}
.admin-users-table{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}
.admin-users-table th,
.admin-users-table td{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:48px!important}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:11%!important}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:10%!important}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:15%!important}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:72px!important}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:82px!important}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:116px!important}
.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8){width:180px!important}
.admin-users-table th:nth-child(9),
.admin-users-table td:nth-child(9){width:104px!important}
.admin-user-password-form{
  min-width:0!important;
  width:100%!important;
  grid-template-columns:1fr!important;
}
.admin-user-password-form input,
.admin-user-password-form button{
  width:100%!important;
  min-width:0!important;
}
.admin-user-actions{
  min-width:0!important;
  width:100%!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
}
.admin-user-actions .btn{
  width:100%!important;
  min-width:0!important;
}
@media (max-width:1320px){
  .admin-users-table,
  .admin-users-table thead,
  .admin-users-table tbody,
  .admin-users-table th,
  .admin-users-table td,
  .admin-users-table tr{
    display:block!important;
  }
  .admin-users-table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
  }
  .admin-users-table tr{
    width:100%!important;
    max-width:100%!important;
    border:1px solid rgba(255,255,255,.07)!important;
    background:rgba(255,255,255,.035)!important;
    border-radius:18px!important;
    padding:10px!important;
    margin-bottom:12px!important;
    overflow:hidden!important;
  }
  .admin-users-table td{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(112px,32%) minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
    border-bottom:1px solid rgba(255,255,255,.06)!important;
    padding:10px!important;
    white-space:normal!important;
  }
  .admin-users-table td:last-child{
    border-bottom:0!important;
  }
  .admin-users-table td::before{
    content:attr(data-label)!important;
    color:var(--muted)!important;
    font-weight:900!important;
  }
}
@media (max-width:640px){
  .admin-users-table td{
    grid-template-columns:1fr!important;
    gap:6px!important;
  }
}

/* === Efika v47: fixed admin shell, scroll only page content === */
@media (min-width:851px){
  body.admin-body{
    height:100vh!important;
    min-height:100vh!important;
    padding-bottom:0!important;
    overflow:hidden!important;
  }
  .admin-body>.topbar{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    height:73px!important;
    min-height:73px!important;
    z-index:120!important;
  }
  .admin-body>.admin-layout{
    margin-top:73px!important;
    height:calc(100vh - 73px)!important;
    max-height:calc(100vh - 73px)!important;
    min-height:0!important;
    grid-template-columns:240px minmax(0,1fr)!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }
  .admin-body .admin-menu{
    position:relative!important;
    top:auto!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  .admin-body .admin-main{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    padding-bottom:48px!important;
  }
}
@media (max-width:850px){
  body.admin-body{
    overflow-x:hidden!important;
  }
}

/* === EFIKA patch: spoiler tabs, compact mobile spacing, scroll top, icon nav, search players === */
.topbar{
  position:sticky;
  top:0;
  z-index:1200;
}

.now-tabs-shell{min-width:0;width:100%;}
.now-tabs{width:100%;min-width:0;}
.now-tab-list{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.now-tab-button{transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;}
.now-tab-button.is-active[aria-expanded="true"]{transform:translateY(-1px);}
.now-tab-panels{
  display:grid;
  grid-template-rows:0fr;
  margin-top:0;
  opacity:0;
  transition:grid-template-rows .22s ease,opacity .18s ease,margin-top .22s ease;
}
.now-tabs.is-open .now-tab-panels{
  grid-template-rows:1fr;
  margin-top:10px;
  opacity:1;
}
.now-tab-panels-inner{overflow:hidden;min-height:0;}
.now-tab-panel{display:none;}
.now-tab-panel.is-active{display:block;}
.now-tab-panel[aria-hidden="true"]{pointer-events:none;}

.bottom-nav{
  min-height:64px;
  height:64px;
  align-items:center;
  gap:6px;
  padding-top:6px;
  padding-bottom:6px;
}
.bottom-nav a,
.bottom-nav button{
  min-height:44px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
}
.bottom-nav-icon{font-size:20px;line-height:1;}
.bottom-nav-text{font-size:11px;line-height:1.1;}

.scroll-top-button{
  position:fixed;
  right:18px;
  bottom:86px;
  z-index:1400;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(143,211,255,.42);
  background:rgba(20,29,34,.92);
  color:var(--accent);
  box-shadow:0 16px 36px rgba(0,0,0,.35);
  opacity:0;
  transform:translateY(14px) scale(.9);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,background .2s ease;
  cursor:pointer;
}
.scroll-top-button.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.scroll-top-button:hover{background:rgba(32,40,44,.98);}
.scroll-top-button-admin{bottom:26px;}

.site-search-modal-card{max-width:760px;width:min(760px,calc(100vw - 24px));}
.site-search-results{display:grid;gap:10px;margin-top:14px;}
.track-search-card,
.site-search-card{
  display:grid;
  grid-template-columns:auto 62px minmax(0,1fr) auto!important;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  min-width:0;
}
.track-card-play{
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(143,211,255,.45);
  background:rgba(143,211,255,.08);
  color:var(--accent);
  cursor:pointer;
}
.track-card-cover{
  width:56px;
  height:56px;
  border-radius:14px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:rgba(143,211,255,.08);
  color:var(--muted);
}
.track-card-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.track-card-copy{min-width:0;display:grid;gap:4px;}
.track-card-copy b,
.track-card-copy small{min-width:0;overflow-wrap:anywhere;word-break:break-word;}
.track-card-copy small{color:var(--muted);font-size:12px;}
.track-search-actions{display:inline-flex!important;align-items:center;gap:6px;justify-self:end;}
.track-menu{position:relative;display:inline-flex;}
.track-menu-button{width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--text);cursor:pointer;}
.track-menu-dropdown{position:absolute;right:0;bottom:calc(100% + 6px);display:none;min-width:180px;padding:6px;border-radius:14px;background:var(--surface-2);border:1px solid rgba(255,255,255,.1);box-shadow:0 16px 36px rgba(0,0,0,.38);z-index:10;}
.track-menu.open .track-menu-dropdown{display:grid;gap:4px;}
.track-menu-dropdown button{border:0;background:transparent;color:var(--text);text-align:left;padding:8px 10px;border-radius:10px;cursor:pointer;}
.track-menu-dropdown button:hover:not(:disabled){background:rgba(143,211,255,.1);}
.track-menu-dropdown button:disabled{opacity:.45;cursor:not-allowed;}
.track-download-progress{grid-column:1/-1;height:4px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.08);opacity:0;transition:opacity .18s ease;}
.track-download-progress.is-visible{opacity:1;}
.track-download-progress span{display:block;width:0;height:100%;border-radius:inherit;background:var(--accent);transition:width .2s ease;}
.track-search-card audio,
.site-search-card audio{display:none;}
.track-list-item-clickable{position:relative;width:100%;text-align:left;}
.track-list-item-clickable:before{
  content:'▶';
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.55;
  color:var(--accent);
}

@media (max-width:850px){
  .page{gap:12px;}
  .section,.panel,.room-panel,.player-panel{margin-block:0;}
  .section + .section,.panel + .panel{margin-top:12px;}
  .split,.room-main-grid,.home-grid,.content-grid{gap:12px;}
  .queue-list,.track-list,.room-list,.comments-list{gap:8px;}
  .track-search-card,.site-search-card{grid-template-columns:40px 52px minmax(0,1fr)!important;gap:8px;}
  .track-search-actions{grid-column:1/-1!important;width:100%!important;justify-content:flex-end;}
  .track-card-cover{width:52px;height:52px;}
  .scroll-top-button{right:14px;bottom:82px;width:42px;height:42px;}
}

@media (max-width:560px){
  .bottom-nav{height:64px;min-height:64px;padding-inline:6px;}
  .bottom-nav a,.bottom-nav button{min-width:48px;flex:1 1 0;}
  .bottom-nav-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
  .bottom-nav-icon{font-size:22px;}
  .site-search-modal-card{width:calc(100vw - 18px);}
}

/* === Efika v58: мобильная доводка шапки, навигации, отступов и карточек === */
body[data-page-kind="home"] .topbar,
body[data-page-kind="room"] .topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:1600!important;
}
body[data-page-kind="home"] .page,
body[data-page-kind="room"] .page{
  padding-top:74px!important;
}

/* В «Недавно играло» убираем визуальную кнопку Play справа, сами карточки остаются рабочими. */
#recent-list .track-list-item-clickable::before,
#room-recent .track-list-item-clickable::before{
  content:none!important;
  display:none!important;
}

/* Вкладки описания трека всегда идут в одну строку с горизонтальной прокруткой. */
.now-tab-list{
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
}
.now-tab-list::-webkit-scrollbar{
  display:none!important;
}
.now-tab-button{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

@media (max-width:850px){
  body{
    padding-bottom:66px!important;
  }
  body[data-page-kind="home"] .page,
  body[data-page-kind="room"] .page{
    padding-top:66px!important;
  }

  .page{
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
  }
  .page > .hero,
  .page > .room-hero,
  .page > .section,
  .page > .room-main-grid{
    padding-top:0!important;
    padding-bottom:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  .page > .hero + .section,
  .page > .room-hero + .room-main-grid,
  .page > .room-main-grid + .section,
  .page > .section + .section{
    margin-top:0!important;
  }
  .split,
  .room-main-grid,
  .room-main-grid-player-only,
  .room-grid,
  .mood-status-grid,
  .top-user-tracks-grid,
  .best-comments-grid{
    gap:12px!important;
  }
  .panel,
  .hero-card,
  .room-card,
  .empty-card{
    margin:0!important;
  }

  .player-panel{
    gap:0px!important;
  }
  .room-now-layout,
  .now-card-player{
    row-gap:8px!important;
  }
  .now-tabs-shell{
    margin-top:0!important;
  }
  .now-tabs{
    gap:4px!important;
  }
  .now-tabs.is-open .now-tab-panels{
    margin-top:6px!important;
  }
  .now-tab-list{
    gap:8px!important;
    padding:2 0 2px!important;
  }
  .now-tab-button{
    padding:7px 11px!important;
    font-size:13px!important;
  }
  .radio-control-row{
    margin-top:0!important;
  }

  .bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    height:52px!important;
    min-height:52px!important;
    padding:3px 8px calc(3px + env(safe-area-inset-bottom,0px))!important;
    gap:2px!important;
    z-index:1500!important;
  }
  .bottom-nav a,
  .bottom-nav button{
    min-width:0!important;
    min-height:42px!important;
    height:42px!important;
    padding:0!important;
    gap:0!important;
  }
  .bottom-nav-icon{
    font-size:22px!important;
    line-height:1!important;
  }
  .bottom-nav-text{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    clip:rect(0 0 0 0)!important;
    white-space:nowrap!important;
  }
  .scroll-top-button{
    bottom:64px!important;
  }
}

@media (max-width:560px){
  body[data-page-kind="home"] .page,
  body[data-page-kind="room"] .page{
    padding-top:60px!important;
  }
  .topbar{
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .brand{
    font-size:25px!important;
  }
  .login-menu-toggle,
  .user-menu-toggle{
    min-height:40px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
  .player-panel{
    padding:10px!important;
  }
  .room-now-layout,
  .now-card-player{
    gap:8px 10px!important;
  }
  .now-tab-button{
    padding:7px 10px!important;
    font-size:12.5px!important;
  }
}

@media (max-width:420px){
  body[data-page-kind="home"] .page,
  body[data-page-kind="room"] .page{
    padding-top:58px!important;
  }
  .page{
    gap:10px!important;
  }
  .split,
  .room-main-grid,
  .room-main-grid-player-only,
  .room-grid,
  .mood-status-grid,
  .top-user-tracks-grid,
  .best-comments-grid{
    gap:10px!important;
  }
}

/* === Efika v59: единая видимая область, фиксированная шапка везде, безопасный мобильный поиск === */
:root{
  --efika-header-height:84px;
  --efika-bottom-nav-height:0px;
}

body:not(.admin-body) .topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  min-height:var(--efika-header-height)!important;
  z-index:2200!important;
}

body:not(.admin-body) .page{
  padding-top:calc(var(--efika-header-height) + 14px)!important;
  padding-bottom:calc(var(--efika-bottom-nav-height) + 14px)!important;
}

body.admin-body > .topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  min-height:var(--efika-header-height)!important;
  z-index:2200!important;
}
body.admin-body > .admin-layout{
  margin-top:var(--efika-header-height)!important;
}

.track-list-item-clickable::before{
  content:none!important;
  display:none!important;
}

@media (max-width:850px){
  :root{
    --efika-header-height:86px;
    --efika-bottom-nav-height:48px;
  }

  body{
    padding-bottom:var(--efika-bottom-nav-height)!important;
    overflow-x:hidden!important;
  }

  body:not(.admin-body) .page{
    width:calc(100% - 24px)!important;
    min-height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height))!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    padding-top:calc(var(--efika-header-height) + 10px)!important;
    padding-bottom:calc(var(--efika-bottom-nav-height) + 12px)!important;
  }

  body:not(.admin-body) .page > .hero,
  body:not(.admin-body) .page > .room-title-strip,
  body:not(.admin-body) .page > .room-main-grid,
  body:not(.admin-body) .page > .section,
  body:not(.admin-body) .page > .profile-section,
  body:not(.admin-body) .page > .user-tracks-section,
  body:not(.admin-body) .page > .standalone-player-section{
    margin-block:0!important;
    padding-block:0!important;
  }

  body:not(.admin-body) .page > * + *{
    margin-top:0!important;
  }

  .split,
  .room-main-grid,
  .room-main-grid-player-only,
  .room-grid,
  .mood-status-grid,
  .top-user-tracks-grid,
  .best-comments-grid,
  .library-track-grid,
  .profile-grid{
    gap:12px!important;
  }

  .topbar{
    height:var(--efika-header-height)!important;
    min-height:var(--efika-header-height)!important;
    padding:10px 18px!important;
  }

  .brand{
    font-size:37px!important;
    line-height:1!important;
  }

  .user-menu-toggle,
  .login-menu-toggle{
    min-height:52px!important;
    padding:7px 12px!important;
  }

  .avatar-sm{
    width:40px!important;
    height:40px!important;
  }

  .bottom-nav{
    height:var(--efika-bottom-nav-height)!important;
    min-height:var(--efika-bottom-nav-height)!important;
    padding:2px 8px calc(2px + env(safe-area-inset-bottom,0px))!important;
    z-index:1600!important;
  }

  .bottom-nav a,
  .bottom-nav button{
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
  }

  .bottom-nav-icon{
    font-size:21px!important;
    line-height:1!important;
  }

  .scroll-top-button{
    bottom:calc(var(--efika-bottom-nav-height) + 12px)!important;
  }

  .efika-modal:not(.hidden){
    top:var(--efika-header-height)!important;
    bottom:var(--efika-bottom-nav-height)!important;
    left:0!important;
    right:0!important;
    inset:var(--efika-header-height) 0 var(--efika-bottom-nav-height) 0!important;
    width:100%!important;
    height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height))!important;
    min-height:0!important;
    padding:8px 10px!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:1800!important;
    overflow:hidden!important;
  }

  .efika-modal-card,
  .site-search-modal-card,
  .track-search-modal-card,
  .track-upload-modal-card{
    width:min(100%,520px)!important;
    max-height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height) - 16px)!important;
    margin:0 auto!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }

  .site-search-modal-card,
  .track-search-modal-card{
    padding:10px!important;
  }

  .site-search-modal-card h2,
  .track-search-modal-card h2{
    font-size:clamp(30px,9vw,46px)!important;
    line-height:1.04!important;
    margin:0 52px 16px 0!important;
  }

  .track-search-results,
  .site-search-results{
    max-height:none!important;
    overflow:visible!important;
  }

  .now-tabs-shell{
    margin-top:0!important;
  }

  .now-tab-list{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2 0 2px!important;
    margin:0!important;
  }

  .now-tab-button{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
}

@media (max-width:560px){
  :root{
    --efika-header-height:84px;
    --efika-bottom-nav-height:46px;
  }

  .topbar{
    padding:9px 18px!important;
  }

  .brand{
    font-size:37px!important;
    line-height:1!important;
  }

  .bottom-nav{
    height:var(--efika-bottom-nav-height)!important;
    min-height:var(--efika-bottom-nav-height)!important;
  }

  .bottom-nav a,
  .bottom-nav button{
    height:38px!important;
    min-height:38px!important;
  }
}

@media (max-width:420px){
  body:not(.admin-body) .page{
    gap:10px!important;
  }

  .split,
  .room-main-grid,
  .room-main-grid-player-only,
  .room-grid,
  .mood-status-grid,
  .top-user-tracks-grid,
  .best-comments-grid,
  .library-track-grid,
  .profile-grid{
    gap:10px!important;
  }
}

/* === Efika v60: tighter fixed header and unified track-card preview timelines === */
:root{
  --efika-header-height:64px!important;
  --efika-bottom-nav-height:0px!important;
}
body:not(.admin-body) .topbar,
body.admin-body > .topbar{
  height:var(--efika-header-height)!important;
  min-height:var(--efika-header-height)!important;
  max-height:var(--efika-header-height)!important;
  padding:6px clamp(16px,4vw,48px)!important;
}
body:not(.admin-body) .page{
  padding-top:calc(var(--efika-header-height) + 12px)!important;
}
body.admin-body > .admin-layout{
  margin-top:var(--efika-header-height)!important;
  height:calc(100vh - var(--efika-header-height))!important;
  max-height:calc(100vh - var(--efika-header-height))!important;
}
body.admin-body .admin-menu,
body.admin-body .admin-main{
  height:100%!important;
  max-height:100%!important;
}
.brand{
  line-height:1!important;
}
.user-menu-toggle,
.login-menu-toggle{
  min-height:44px!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
.avatar-sm{
  width:38px!important;
  height:38px!important;
}

.track-search-results,
.site-search-results{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}
.track-search-group{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
}
.track-search-group h3{
  margin:2px 0 0!important;
  color:#cfe9ff!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:1000!important;
  letter-spacing:.02em!important;
}
.track-search-card,
.site-search-card{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  grid-template-areas:
    "cover copy"
    "progress progress"
    "actions actions"!important;
  gap:9px 11px!important;
  align-items:start!important;
  padding:11px!important;
  border-radius:18px!important;
}
.track-card-cover{
  grid-area:cover!important;
  justify-self:start!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:14px!important;
}
.track-card-copy{
  grid-area:copy!important;
  align-self:center!important;
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
}
.track-card-copy b{
  font-size:15px!important;
  line-height:1.22!important;
}
.track-card-copy small{
  color:var(--muted)!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.track-card-source{
  display:inline-flex!important;
  align-items:center!important;
  max-width:max-content!important;
  margin-right:4px!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:rgba(143,211,255,.10)!important;
  color:#bdeaff!important;
  font-size:11px!important;
  font-weight:1000!important;
  line-height:1.2!important;
  vertical-align:baseline!important;
}
.track-card-source.is-local{
  background:rgba(0,196,140,.14)!important;
  color:#8ff5d0!important;
}
.track-download-progress{
  grid-area:progress!important;
  grid-column:auto!important;
  width:100%!important;
  height:8px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:rgba(255,255,255,.08)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  opacity:0!important;
  transition:opacity .16s ease,background .16s ease,border-color .16s ease!important;
}
.track-download-progress.is-visible{
  opacity:1!important;
}
.track-download-progress.is-timeline{
  cursor:pointer!important;
  background:rgba(143,211,255,.10)!important;
  border-color:rgba(143,211,255,.18)!important;
}
.track-download-progress.is-timeline:hover{
  background:rgba(143,211,255,.16)!important;
}
.track-download-progress span{
  display:block!important;
  width:0;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,var(--accent),#5dd5ff)!important;
  transition:width .12s linear!important;
}
.track-search-actions{
  grid-area:actions!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  gap:8px!important;
  align-items:center!important;
  justify-self:stretch!important;
  width:100%!important;
}
.track-card-play{
  grid-column:1!important;
  justify-self:start!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:50%!important;
  padding:0!important;
}
.track-search-select-button,
.track-search-card [data-track-search-select]{
  grid-column:2!important;
  justify-self:center!important;
  width:auto!important;
  min-width:0!important;
  padding:9px 14px!important;
  border-radius:13px!important;
  white-space:nowrap!important;
}
.track-menu{
  grid-column:3!important;
  justify-self:end!important;
}
.track-menu-button,
.track-search-card .track-menu-button,
.site-search-card .track-menu-button{
  width:36px!important;
  height:38px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--muted)!important;
  font-size:27px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
}
.track-menu-button:hover,
.track-search-card .track-menu-button:hover,
.site-search-card .track-menu-button:hover{
  background:transparent!important;
  color:var(--text)!important;
}
.site-search-card .track-menu{
  grid-column:3!important;
}
.site-search-card .track-search-actions{
  grid-template-columns:auto minmax(0,1fr) auto!important;
}

@media (max-width:850px){
  :root{
    --efika-header-height:66px!important;
    --efika-bottom-nav-height:44px!important;
  }
  body:not(.admin-body) .page{
    min-height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height))!important;
    padding-top:calc(var(--efika-header-height) + 8px)!important;
    padding-bottom:calc(var(--efika-bottom-nav-height) + 10px)!important;
  }
  .topbar{
    height:var(--efika-header-height)!important;
    min-height:var(--efika-header-height)!important;
    max-height:var(--efika-header-height)!important;
    padding:6px 18px!important;
  }
  .brand{
    font-size:37px!important;
    line-height:1!important;
  }
  .user-menu-toggle,
  .login-menu-toggle{
    min-height:44px!important;
    padding:5px 10px!important;
  }
  .avatar-sm{
    width:36px!important;
    height:36px!important;
  }
  .bottom-nav{
    height:var(--efika-bottom-nav-height)!important;
    min-height:var(--efika-bottom-nav-height)!important;
    padding:1px 8px calc(1px + env(safe-area-inset-bottom,0px))!important;
  }
  .bottom-nav a,
  .bottom-nav button{
    height:38px!important;
    min-height:38px!important;
  }
  .bottom-nav-icon{
    font-size:20px!important;
  }
  .efika-modal:not(.hidden){
    inset:var(--efika-header-height) 0 var(--efika-bottom-nav-height) 0!important;
    height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height))!important;
    padding:7px 10px!important;
  }
  .efika-modal-card,
  .site-search-modal-card,
  .track-search-modal-card,
  .track-upload-modal-card{
    max-height:calc(100dvh - var(--efika-header-height) - var(--efika-bottom-nav-height) - 14px)!important;
  }
  .track-search-card,
  .site-search-card{
    grid-template-columns:52px minmax(0,1fr)!important;
    gap:8px 10px!important;
  }
  .track-card-cover{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
  }
  .track-search-card .btn,
  .site-search-card .btn{
    grid-column:auto!important;
    width:auto!important;
  }
}

@media (max-width:560px){
  :root{
    --efika-header-height:64px!important;
    --efika-bottom-nav-height:42px!important;
  }
  .topbar{
    padding:5px 16px!important;
  }
  .brand{
    font-size:37px!important;
  }
  .user-menu-toggle,
  .login-menu-toggle{
    min-height:42px!important;
  }
  .bottom-nav a,
  .bottom-nav button{
    height:36px!important;
    min-height:36px!important;
  }
  .bottom-nav-icon{
    font-size:19px!important;
  }
  .site-search-modal-card h2,
  .track-search-modal-card h2{
    font-size:clamp(28px,8.2vw,40px)!important;
  }
}

/* === Efika v61: near-full preview timeline in track search cards === */
.track-search-card > .track-download-progress,
.site-search-card > .track-download-progress{
  grid-column:1 / -1!important;
  justify-self:stretch!important;
  align-self:stretch!important;
  width:calc(100% - 14px)!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:7px!important;
  margin-right:7px!important;
  box-sizing:border-box!important;
}

/* === Efika v62: emoji popup above upload/search modals === */
.emoji-picker-popup{
  z-index:3200!important;
}

.emoji-picker-popup:not(.hidden){
  display:grid!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* === Efika v63: room mobile content safely below fixed header === */
@media (max-width:850px){
  body[data-page-kind="room"] .page{
    padding-top:calc(var(--efika-header-height) + 22px)!important;
  }

  body[data-page-kind="room"] .page > .room-title-strip{
    padding-top:0px!important;
    overflow:visible!important;
  }

  body[data-page-kind="room"] .room-title-head-with-icon .room-title-icon{
    transform:translateY(-4px)!important;
  }
}

@media (max-width:560px){
  body[data-page-kind="room"] .page{
    padding-top:calc(var(--efika-header-height) + 20px)!important;
  }
}

/* === Efika v66: text tabs, default poster thumbnails, listener counters and letter avatars === */
.avatar{
  background:linear-gradient(135deg,var(--avatar-a,#2479bf),var(--avatar-b,#0b9f80))!important;
  border-color:rgba(255,255,255,.22)!important;
  color:#fff!important;
  text-shadow:0 1px 12px rgba(0,0,0,.28);
}
.avatar img{background:var(--surface)}
.auth-inline-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-4px;font-size:14px;color:var(--muted)}
.auth-inline-links a,.agreement-row a{color:var(--accent);font-weight:900;text-decoration:none}
.agreement-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;line-height:1.35}
.agreement-row input{width:auto!important;margin-top:3px}
.admin-content-tabs{
  display:flex!important;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 18px!important;
  padding:8px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.035)!important;
  border:1px solid rgba(255,255,255,.07)!important;
}
.admin-content-tab{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  color:#d7e7f2!important;
  font-weight:900!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}
.admin-content-tab.active{
  background:linear-gradient(135deg,var(--accent),#5dd5ff)!important;
  color:#061014!important;
  border-color:transparent!important;
}
.admin-content-editor-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:18px;align-items:start}.admin-editor-toolbar,.admin-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-editor-toolbar button{border:0;border-radius:10px;background:rgba(143,211,255,.14);color:var(--accent);font-weight:900;padding:8px 10px;cursor:pointer}.admin-content-preview{min-width:0;overflow:hidden}.content-page-body{line-height:1.65;overflow-wrap:anywhere}.content-page-body h1,.content-page-body h2{line-height:1.12}
.admin-page-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.admin-plus-upload-form{margin:0}.admin-plus-upload{width:48px!important;height:48px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:16px!important;background:linear-gradient(135deg,var(--accent),#5dd5ff)!important;color:#061014!important;font-size:30px!important;font-weight:1000!important;line-height:1!important;cursor:pointer!important;box-shadow:0 12px 28px rgba(93,213,255,.18)}.admin-plus-upload input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.admin-default-posters-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.admin-default-posters-grid{display:grid!important;grid-template-columns:repeat(auto-fill,64px)!important;gap:12px!important;align-items:start!important}.admin-default-poster-thumb{position:relative!important;width:64px!important;height:64px!important;border-radius:14px!important;overflow:hidden!important;background:#0e1417!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 8px 20px rgba(0,0,0,.18)!important}.admin-default-poster-thumb img{width:64px!important;height:64px!important;display:block!important;object-fit:cover!important}.admin-default-poster-thumb form{position:absolute!important;right:3px!important;bottom:3px!important;margin:0!important}.admin-default-poster-thumb button{width:24px!important;height:24px!important;border:0!important;border-radius:9px!important;background:rgba(8,12,14,.82)!important;color:#ffb3ba!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;line-height:1!important;cursor:pointer!important;backdrop-filter:blur(6px)}.admin-room-listener-settings{padding:16px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}.admin-room-listener-settings h2{margin:0 0 6px;font-size:22px}.admin-room-listener-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.checkbox-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important}.checkbox-row input{width:auto!important}.home-player-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}.home-player-room-link{margin-left:auto!important;text-align:right!important;color:#85c0e4!important;font-weight:900!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-player-head .live-dot{flex:0 0 auto!important}.player-panel-head{display:flex!important;align-items:center!important;gap:12px!important}.player-panel-head .live-dot{margin-right:auto!important}
@media (max-width:850px){.admin-content-editor-layout{grid-template-columns:1fr}.admin-room-listener-grid{grid-template-columns:1fr}.admin-page-head-row{align-items:stretch}.home-player-room-link{max-width:52vw}.admin-default-posters-grid{grid-template-columns:repeat(auto-fill,64px)!important}}

/* === Efika v67: compact room player header and stable poster URLs === */
.player-panel .player-panel-head{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:10px!important;
}
.player-panel .player-panel-head .live-dot{
  flex:0 0 auto!important;
  margin-right:auto!important;
  white-space:nowrap!important;
}
.player-panel .open-upload-modal-btn{
  width:auto!important;
  max-width:none!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
  text-align:center!important;
}
.player-panel .player-kebab-menu{
  flex:0 0 auto!important;
}
@media (max-width:560px){
  .player-panel .player-panel-head{
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
  .player-panel .open-upload-modal-btn{
    width:auto!important;
    max-width:none!important;
    padding:7px 7px!important;
    font-size:12.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
}
@media (max-width:370px){
  .player-panel .open-upload-modal-btn{
    padding:8px 10px!important;
    font-size:11.5px!important;
  }
  .player-panel .player-panel-head{
    gap:8px!important;
  }
}


/* === Efika v68: room history filter safety, modal menu position, compact hero actions === */
.hero-actions{
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:10px!important;
}
.hero-actions .btn{
  width:auto!important;
  flex:0 0 auto!important;
  padding-inline:14px!important;
  white-space:nowrap!important;
}
.top-track-modal-menu{
  left:18px!important;
  right:auto!important;
  top:14px!important;
}
.top-track-modal-menu .player-kebab-dropdown{
  left:0!important;
  right:auto!important;
}
.top-track-modal-poster{
  width:184px!important;
  height:184px!important;
}
.top-track-modal-main{
  grid-template-columns:184px minmax(0,1fr)!important;
}
@media (max-width:850px){
  .hero-actions{
    gap:8px!important;
  }
  .hero-actions .btn{
    padding:10px 12px!important;
    border-radius:14px!important;
    font-size:19px!important;
  }
  .top-track-modal-menu{
    left:14px!important;
    right:auto!important;
    top:12px!important;
  }
  .top-track-modal-main{
    grid-template-columns:1fr!important;
  }
  .top-track-modal-poster{
    width:min(204px,60vw)!important;
    height:min(204px,60vw)!important;
    margin:0 auto!important;
  }
}
@media (max-width:390px){
  .hero-actions .btn{
    padding:9px 10px!important;
    font-size:15px!important;
  }
}

/* === Efika v69: admin room sorting, track editing, upload/random settings, guest preview === */
.admin-sortable-list{display:flex;flex-direction:column;gap:10px}.admin-room-sort-row{background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.075);border-radius:18px;padding:12px 14px;cursor:grab}.admin-room-sort-row.is-dragging{opacity:.55;outline:2px solid rgba(143,211,255,.5)}.admin-drag-handle{border:0;background:rgba(255,255,255,.08);color:var(--muted);width:34px;height:34px;border-radius:12px;cursor:grab;font-size:18px}.admin-room-position{min-width:30px;text-align:center;color:var(--accent);font-weight:900}.admin-room-row .admin-row-main{flex:1;min-width:0}.admin-page-note{margin-top:-8px;margin-bottom:18px}.admin-tracks-table td,.admin-tracks-table th{vertical-align:middle}.admin-track-poster-button{border:0;background:transparent;padding:0;cursor:pointer}.admin-track-poster{width:48px;height:48px;border-radius:14px;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);color:var(--muted);font-weight:900}.admin-track-poster-empty{font-size:22px}.admin-track-edit-card{width:min(720px,calc(100vw - 24px));max-height:min(86vh,760px);overflow:auto}.admin-track-edit-meta{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:13px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:12px 14px}.admin-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.guest-preview-card{text-align:center;width:min(520px,calc(100vw - 24px))}.guest-preview-card p{font-size:17px;line-height:1.55;color:#c7d5df;margin:8px 0 22px}.guest-preview-card p a{color:var(--accent);font-weight:900;text-decoration:underline;text-underline-offset:3px}.guest-preview-icon{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:20px;background:rgba(143,211,255,.16);color:var(--accent);font-weight:900;font-size:26px;margin-bottom:10px}.guest-preview-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media (max-width:760px){.admin-room-sort-row{align-items:flex-start}.admin-room-row .btn.small{width:100%}.admin-modal-actions{justify-content:stretch}.admin-modal-actions .btn{flex:1}.guest-preview-actions .btn{width:100%}}

/* === Efika v70: compact admin music table and stable room reorder form === */
.admin-tracks-table{
  table-layout:fixed!important;
}
.admin-tracks-table th,
.admin-tracks-table td{
  padding:10px 8px!important;
  vertical-align:middle!important;
  line-height:1.35!important;
}
.admin-tracks-table th:nth-child(1),
.admin-tracks-table td:nth-child(1){width:52px!important}
.admin-tracks-table th:nth-child(2),
.admin-tracks-table td:nth-child(2){width:70px!important}
.admin-tracks-table th:nth-child(3),
.admin-tracks-table td:nth-child(3){width:23%!important}
.admin-tracks-table th:nth-child(4),
.admin-tracks-table td:nth-child(4){width:22%!important}
.admin-tracks-table th:nth-child(5),
.admin-tracks-table td:nth-child(5){width:13%!important}
.admin-tracks-table th:nth-child(6),
.admin-tracks-table td:nth-child(6){width:92px!important}
.admin-tracks-table th:nth-child(7),
.admin-tracks-table td:nth-child(7){width:104px!important}
.admin-tracks-table th:nth-child(8),
.admin-tracks-table td:nth-child(8){width:82px!important}
.admin-tracks-table th:nth-child(9),
.admin-tracks-table td:nth-child(9){width:142px!important}
.admin-track-poster-cell{
  text-align:center!important;
}
.admin-track-poster-button{
  display:inline-flex!important;
  width:42px!important;
  height:42px!important;
  align-items:center!important;
  justify-content:center!important;
}
.admin-track-poster{
  width:42px!important;
  height:42px!important;
  border-radius:11px!important;
}
.admin-track-title-cell,
.admin-track-file-cell,
.admin-track-room-cell,
.admin-track-user-cell,
.admin-track-status-cell{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.admin-track-title-cell{
  color:#dce8f2!important;
}
.admin-track-file-cell,
.admin-track-room-cell,
.admin-track-user-cell,
.admin-track-status-cell,
.admin-track-duration-cell{
  font-size:13px!important;
}
.admin-track-actions-cell{
  overflow:visible!important;
}
.admin-track-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  width:126px!important;
  max-width:126px!important;
  align-items:stretch!important;
}
.admin-track-actions form{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.admin-track-actions .btn{
  width:100%!important;
  min-height:28px!important;
  padding:5px 6px!important;
  border-radius:10px!important;
  font-size:11px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}
.admin-table-panel .admin-tracks-table tr{
  height:auto!important;
}

@media (max-width:1320px){
  .admin-tracks-table th:nth-child(3),
  .admin-tracks-table td:nth-child(3){width:21%!important}
  .admin-tracks-table th:nth-child(4),
  .admin-tracks-table td:nth-child(4){width:20%!important}
  .admin-tracks-table th:nth-child(9),
  .admin-tracks-table td:nth-child(9){width:134px!important}
  .admin-track-actions{width:120px!important;max-width:120px!important}
}

@media (max-width:1180px){
  .admin-track-poster-cell{
    text-align:left!important;
  }
  .admin-track-actions{
    width:min(260px,100%)!important;
    max-width:260px!important;
  }
}


/* SEO треков в админке музыки */
.admin-track-seo-keywords-card{
  width:min(620px,calc(100vw - 24px));
}
.admin-track-seo-fields{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:4px;
  padding:14px;
  border:1px solid rgba(143,211,255,.18);
  border-radius:18px;
  background:rgba(143,211,255,.06);
}
.admin-track-seo-fields.hidden{
  display:none!important;
}
.admin-track-seo-fields h3{
  margin:0;
  font-size:16px;
  color:var(--accent);
}
.admin-track-seo-fields label{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.admin-track-seo-fields textarea,
.admin-track-seo-keywords-card textarea{
  min-height:96px;
  resize:vertical;
}

/* === Efika genre chips in site and room search results === */
.track-genre-chips{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-top:2px;
  min-width:0;
}
.track-genre-chips em{
  display:inline-flex;
  align-items:center;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:2px 7px;
  border:1px solid rgba(143,211,255,.23);
  border-radius:999px;
  background:rgba(143,211,255,.08);
  color:var(--accent);
  font-style:normal;
  font-size:11px;
  line-height:1.35;
}

/* На ПК показываем жанр/стиль + настроение/энергию; на мобильном оставляем только жанр/стиль. */
.track-genre-chips em.track-analysis-chip{
  border-color:rgba(255,209,102,.22);
  background:rgba(255,209,102,.08);
  color:var(--warning);
}
@media (max-width: 720px){
  .track-genre-chips em.track-analysis-chip{
    display:none;
  }
}
html.efika-native-android-audio .track-genre-chips em.track-analysis-chip,
body.efika-native-android-audio .track-genre-chips em.track-analysis-chip{
  display:none;
}
