/* Счётчик реакции не занимает место, пока число реально не появилось. */
.reaction-row button span{
  display:inline-block;
  min-width:0;
  margin-left:.15em;
  text-align:left;
}
.reaction-row button span:empty{
  display:none;
}



/* === Efika v89: mobile fullscreen toggle and dark system chrome === */
:root{
  color-scheme:dark;
}
html,
body{
  background-color:#0d1214;
}
.bottom-nav-fullscreen{
  color:var(--accent)!important;
}
.bottom-nav-fullscreen .bottom-nav-icon{
  font-weight:900!important;
}
body.efika-fullscreen-active .bottom-nav-fullscreen{
  color:var(--warning)!important;
}
body.efika-system-bars-visible .bottom-nav{
  opacity:0!important;
  transform:translateY(calc(100% + env(safe-area-inset-bottom,0px)))!important;
  pointer-events:none!important;
}
@media (max-width:850px){
  .bottom-nav{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    transition:opacity .16s ease,transform .18s ease!important;
    will-change:opacity,transform;
  }
  .bottom-nav a,
  .bottom-nav button{
    -webkit-tap-highlight-color:transparent!important;
  }
}
@media (max-width:360px){
  .bottom-nav-icon{
    font-size:18px!important;
  }
}

/* === Efika admin word editor and user name limit === */
.word-editor-storage[hidden]{display:none!important}
.settings-control-word-editor{align-items:flex-start}
.settings-control-word-editor em{margin-top:5px}
.word-editor-control{display:inline-flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.word-editor-open{white-space:nowrap}
.word-editor-summary{display:block!important;min-width:0;color:var(--muted)!important;font-size:12px!important;font-weight:800!important;line-height:1.3}
.word-editor-summary.has-duplicates{color:var(--danger)!important}
.word-editor-modal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:20px}
.word-editor-modal.is-open{display:flex}
.word-editor-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.word-editor-dialog{position:relative;z-index:1;width:min(860px,calc(100vw - 32px));height:min(720px,calc(100vh - 32px));min-width:min(360px,calc(100vw - 32px));min-height:360px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);resize:both;overflow:auto;border:1px solid rgba(143,211,255,.2);border-radius:28px;background:linear-gradient(145deg,rgba(32,40,44,.98),rgba(13,18,20,.98));box-shadow:0 28px 90px rgba(0,0,0,.72);padding:22px;display:flex;flex-direction:column;gap:14px}
.word-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.word-editor-head h2{margin:0 0 6px;font-size:26px}
.word-editor-head p{margin:0;line-height:1.4}
.word-editor-close{width:42px;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.08);color:var(--text);font-size:30px;line-height:1;cursor:pointer;flex:0 0 auto}
.word-editor-close:hover{background:rgba(255,255,255,.14)}
.word-editor-textarea{width:100%;min-height:190px;flex:1 1 260px;border:1px solid rgba(255,255,255,.1);background:#0e1417;color:var(--text);border-radius:18px;padding:14px;outline:none;resize:none;font-size:16px;line-height:1.5;white-space:pre-wrap}
.word-editor-textarea:focus{border-color:var(--accent)}
.word-editor-textarea.has-duplicates{border-color:var(--danger);box-shadow:0 0 0 1px rgba(255,95,109,.16)}
.word-editor-filebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.word-editor-file-button{position:relative;overflow:hidden;cursor:pointer}
.word-editor-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}
.word-editor-file-status{color:var(--muted);font-size:12px;font-weight:800;line-height:1.35}
.word-editor-file-status.has-error{color:var(--danger)}
.word-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.word-editor-status{color:var(--muted);font-weight:900;font-size:13px}
.word-editor-status.has-duplicates{color:var(--danger)}
.word-editor-preview{min-height:72px;max-height:180px;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;padding:12px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07)}
.word-editor-chip{display:inline-flex;align-items:center;max-width:100%;padding:7px 10px;border-radius:999px;background:rgba(143,211,255,.11);color:#d9f1ff;font-size:13px;font-weight:900;overflow-wrap:anywhere;word-break:break-word}
.word-editor-chip.duplicate{background:rgba(255,95,109,.2);color:#ffc5cb;border:1px solid rgba(255,95,109,.45);box-shadow:0 0 0 1px rgba(255,95,109,.12)}
@media (max-width:680px){.word-editor-modal{align-items:flex-end;padding:10px}.word-editor-dialog{width:100%;height:min(82vh,720px);min-width:0;min-height:320px;border-radius:24px;resize:vertical;padding:18px}.word-editor-filebar,.word-editor-toolbar{align-items:stretch;flex-direction:column}.word-editor-filebar .btn,.word-editor-toolbar .btn{width:100%}.settings-control-word-editor{justify-content:flex-start}.settings-control-word-editor .word-editor-control{width:100%}.settings-control .word-editor-summary{width:100%;justify-content:flex-start}}
.login-bruteforce-log-open{margin-left:auto;white-space:nowrap}
.login-bruteforce-log-modal{position:fixed;inset:0;z-index:210;display:none;align-items:center;justify-content:center;padding:20px}
.login-bruteforce-log-modal.is-open{display:flex}
.login-bruteforce-log-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.login-bruteforce-log-dialog{position:relative;z-index:1;width:min(1040px,calc(100vw - 32px));height:min(760px,calc(100vh - 32px));min-width:min(420px,calc(100vw - 32px));min-height:380px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);resize:both;overflow:auto;border:1px solid rgba(143,211,255,.2);border-radius:28px;background:linear-gradient(145deg,rgba(32,40,44,.98),rgba(13,18,20,.98));box-shadow:0 28px 90px rgba(0,0,0,.72);padding:22px;display:flex;flex-direction:column;gap:16px}
.login-bruteforce-log-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.login-bruteforce-log-head h2{margin:0 0 6px;font-size:26px}
.login-bruteforce-log-head p{margin:0;line-height:1.4}
.login-bruteforce-log-close{width:42px;height:42px;border:0;border-radius:14px;background:rgba(255,255,255,.08);color:var(--text);font-size:30px;line-height:1;cursor:pointer;flex:0 0 auto}
.login-bruteforce-log-close:hover{background:rgba(255,255,255,.14)}
.login-bruteforce-log-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.login-bruteforce-log-status{color:var(--muted);font-size:13px;font-weight:900}
.login-bruteforce-log-status.has-error{color:var(--danger)}
.login-bruteforce-log-section{display:flex;flex-direction:column;gap:10px;min-height:0}
.login-bruteforce-log-section h3{margin:4px 0 0;font-size:18px}
.login-bruteforce-log-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.07);border-radius:18px;background:rgba(255,255,255,.035)}
.login-bruteforce-log-table{width:100%;border-collapse:collapse;min-width:680px;font-size:13px}
.login-bruteforce-log-table th,.login-bruteforce-log-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.06);text-align:left;vertical-align:top;white-space:nowrap}
.login-bruteforce-log-table th{position:sticky;top:0;z-index:1;background:#11181b;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.login-bruteforce-log-table tr:last-child td{border-bottom:0}
.login-bruteforce-log-table td:nth-child(4),.login-bruteforce-log-table td:nth-child(5){white-space:normal;overflow-wrap:anywhere}
.login-bruteforce-log-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:rgba(255,255,255,.08);color:var(--muted);font-size:12px;font-weight:900}
.login-bruteforce-log-badge.active{background:rgba(255,95,109,.18);color:#ffc5cb;border:1px solid rgba(255,95,109,.38)}
@media (max-width:680px){.login-bruteforce-log-open{margin-left:0}.login-bruteforce-log-modal{align-items:flex-end;padding:10px}.login-bruteforce-log-dialog{width:100%;height:min(82vh,760px);min-width:0;min-height:320px;border-radius:24px;resize:vertical;padding:18px}.login-bruteforce-log-toolbar{align-items:stretch;flex-direction:column}.login-bruteforce-log-toolbar .btn{width:100%}}
/* Плавное автоскрытие flash-сообщений удачного входа. */
.flash.flash-login-success,.flash.flash-auto-hide{overflow:hidden;will-change:opacity,transform,max-height,margin,padding,border-width;animation:efikaFlashAutoHide .42s cubic-bezier(.4,0,.2,1) 3.5s forwards}
@keyframes efikaFlashLoginSuccessHide{0%{opacity:1;transform:translateY(0);max-height:220px;margin-top:10px;margin-bottom:10px;padding-top:12px;padding-bottom:12px;border-width:1px}65%{opacity:0;transform:translateY(-7px)}100%{opacity:0;transform:translateY(-10px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0}}
@keyframes efikaFlashAutoHide{0%{opacity:1;transform:translateY(0);max-height:220px;margin-top:10px;margin-bottom:10px;padding-top:12px;padding-bottom:12px;border-width:1px}65%{opacity:0;transform:translateY(-7px)}100%{opacity:0;transform:translateY(-10px);max-height:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;border-width:0}}

/* === Efika v97: registration and e-mail template editors in auth settings === */
.email-template-storage[hidden]{display:none!important}
.settings-row-wide{align-items:stretch!important;flex-direction:column!important}
.settings-row-wide .settings-control{width:100%!important;align-items:flex-start!important;justify-content:flex-start!important}
.settings-row-wide .word-editor-control{width:100%!important}
.settings-row-wide .email-template-open{width:max-content;max-width:100%}
.settings-control code,.settings-group code{background:rgba(255,255,255,.07);border-radius:8px;padding:2px 6px;color:#d7edf8}

/* === Efika v98: Telegram auth and bot admin === */
.telegram-auth-wrap{display:flex;justify-content:center;margin:8px 0 4px;min-height:48px}
.telegram-auth-wrap iframe{border-radius:14px!important;max-width:100%!important}
.bot-admin-tabs{margin:18px 0 22px}
.telegram-bot-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.telegram-bot-settings-group .settings-row-wide{align-items:stretch;flex-direction:column}
.telegram-bot-settings-group .settings-row-wide .settings-control{width:100%;align-items:stretch}
.telegram-webhook-note{margin-top:18px}
.bot-placeholder-panel{margin-top:18px;min-height:220px;justify-content:center}
@media (max-width:980px){.telegram-bot-settings-grid{grid-template-columns:1fr}}
.auth-provider-telegram{color:#54a9eb!important}

/* Админка / Пользователи: после добавления IP сохраняем прежнюю компактную сетку таблицы. */
.admin-users-table{
  min-width:1420px!important;
  table-layout:fixed!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:10%!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:14%!important}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:124px!important}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:74px!important}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:96px!important}
.admin-users-table th:nth-child(8),
.admin-users-table td:nth-child(8){width:150px!important}
.admin-users-table th:nth-child(9),
.admin-users-table td:nth-child(9){width:220px!important}
.admin-users-table th:nth-child(10),
.admin-users-table td:nth-child(10){width:130px!important}
.admin-user-password-form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
.admin-user-password-form input,
.admin-user-password-form button{
  width:100%!important;
  min-width:0!important;
}
.admin-user-password-form button,
.admin-user-actions .btn{
  white-space:nowrap!important;
}
.admin-user-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
}
.admin-user-actions .btn{
  width:100%!important;
  min-width:0!important;
}
@media (min-width:1500px){
  .admin-users-table{min-width:0!important}
}

/* === Efika v100: admin user edit modal === */
.admin-user-edit-card{
  width:min(760px,calc(100vw - 28px))!important;
  max-height:min(88vh,820px)!important;
  overflow:auto!important;
}
.admin-user-edit-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin-top:12px!important;
}
.admin-user-edit-grid label{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
}
.admin-user-edit-grid input,
.admin-user-edit-grid select{
  width:100%!important;
  min-width:0!important;
}
.admin-user-check-status{
  min-height:18px!important;
  font-size:12px!important;
  line-height:1.25!important;
  color:var(--muted)!important;
  font-weight:800!important;
}
.admin-user-check-status.is-free{color:#79e6ad!important}
.admin-user-check-status.is-busy,
.admin-user-check-status.is-error{color:#ff9aa5!important}
.admin-user-check-status.is-loading{color:#ffd166!important}
.admin-user-check-status.is-current{color:var(--muted)!important}
.admin-user-edit-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-top:18px!important;
}
.admin-user-actions form{margin:0!important}
.admin-user-actions > .btn{margin:0!important}
@media (max-width:680px){
  .admin-user-edit-card{width:calc(100vw - 18px)!important;border-radius:24px!important;padding:18px!important}
  .admin-user-edit-grid{grid-template-columns:1fr!important}
  .admin-user-edit-actions{align-items:stretch!important;flex-direction:column!important}
  .admin-user-edit-actions .btn{width:100%!important}
}

/* === Efika v101: admin flash messages as centered toast, without layout jump === */
.admin-toast-stack{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:6000!important;
  width:min(560px,calc(100vw - 32px))!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:12px!important;
  pointer-events:none!important;
}
.admin-toast{
  pointer-events:auto!important;
  width:max-content!important;
  max-width:100%!important;
  padding:16px 22px!important;
  border-radius:22px!important;
  background:rgba(18,26,30,.96)!important;
  border:1px solid rgba(143,211,255,.26)!important;
  color:var(--text)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.58),0 0 0 1px rgba(255,255,255,.04) inset!important;
  backdrop-filter:blur(18px)!important;
  text-align:center!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1.38!important;
  overflow-wrap:anywhere!important;
  animation:efikaAdminToastLife 3.95s cubic-bezier(.22,1,.36,1) forwards!important;
  will-change:opacity,transform!important;
}
.admin-toast.success{
  background:rgba(5,48,40,.96)!important;
  border-color:rgba(0,196,140,.48)!important;
  color:#e8fff7!important;
}
.admin-toast.error,.admin-toast.danger{
  background:rgba(58,18,25,.96)!important;
  border-color:rgba(255,95,109,.5)!important;
  color:#ffe9ec!important;
}
.admin-toast.warning{
  background:rgba(58,45,18,.96)!important;
  border-color:rgba(255,209,102,.5)!important;
  color:#fff5d6!important;
}
@keyframes efikaAdminToastLife{
  0%{opacity:0;transform:translateY(12px) scale(.94)}
  10%{opacity:1;transform:translateY(0) scale(1)}
  88%{opacity:1;transform:translateY(0) scale(1)}
  100%{opacity:0;transform:translateY(-10px) scale(.96)}
}
@media (prefers-reduced-motion:reduce){
  .admin-toast{animation:efikaAdminToastFade 3.5s linear forwards!important}
  @keyframes efikaAdminToastFade{0%,88%{opacity:1}100%{opacity:0}}
}
@media (max-width:560px){
  .admin-toast-stack{
    top:auto!important;
    bottom:92px!important;
    transform:translateX(-50%)!important;
  }
  .admin-toast{
    width:100%!important;
    padding:14px 16px!important;
    border-radius:18px!important;
    font-size:15px!important;
  }
}

/* === Efika public profile and profile sharing === */
.profile-section-head{align-items:flex-start;gap:18px}.profile-head-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.public-profile-section{display:flex;flex-direction:column;gap:18px}.public-profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:center;overflow:hidden}.public-profile-avatar{width:118px;height:118px;font-size:42px;flex:0 0 auto}.public-profile-copy h1{margin:2px 0 6px;font-size:clamp(32px,5vw,56px);line-height:1.02;overflow-wrap:anywhere}.public-profile-meta{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:14px 0;color:#a9c4d8}.public-profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.public-profile-preview-note{margin:12px 0 0}.public-profile-tracks-panel{margin-top:0}.profile-share-card{max-width:560px}.profile-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.profile-share-actions .btn{justify-content:center;text-align:center}.profile-share-actions .btn.primary{grid-column:1/-1}.guest-player-note{margin:10px 0 0;color:#ffd166!important}.form-status.success{color:#7dffbf!important}.form-status.error{color:#ff9aa5!important}
@media (max-width:720px){.profile-section-head{flex-direction:column}.profile-head-actions{width:100%;justify-content:flex-start}.public-profile-hero{grid-template-columns:1fr;text-align:left}.public-profile-avatar{width:96px;height:96px}.profile-share-actions{grid-template-columns:1fr}}


/* === Efika Telegram community footer button and QR modal === */
.telegram-community-button{
  display:inline;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-weight:inherit;
  line-height:inherit;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
}
.telegram-community-button:hover,
.telegram-community-button:focus-visible{
  color:var(--accent);
}
.telegram-community-card{
  width:min(460px,calc(100vw - 24px));
  text-align:center;
  overflow:hidden;
}
.telegram-community-head{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:2px 0 10px;
  text-align:left;
}
.telegram-community-head h2{margin:0;font-size:clamp(28px,5vw,40px);letter-spacing:-.045em;line-height:1.05;}
.telegram-community-head .eyebrow{margin:0 0 5px;}
.telegram-community-logo{
  width:58px;
  height:58px;
  border-radius:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#8fd3ff,#00c48c);
  color:#061014;
  font-size:28px;
  font-weight:900;
  flex:0 0 auto;
  box-shadow:0 18px 42px rgba(0,196,140,.18);
}
.telegram-community-text{margin:0 auto 16px;max-width:340px;line-height:1.45;}
.telegram-community-qr-wrap{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  border-radius:26px;
  background:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.34);
  margin:4px auto 18px;
}
.telegram-community-qr{
  width:min(260px,68vw);
  height:min(260px,68vw);
  display:block;
  border-radius:14px;
}
.telegram-community-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.telegram-community-actions .btn{min-width:132px;}
@media (max-width:760px){
  .site-footer-inner{align-items:stretch;}
  .telegram-community-head{justify-content:flex-start;}
  .telegram-community-actions .btn{flex:1 1 100%;}
}

/* === Efika Android WebView fix 0017 ===
   Внутри нативного Android WebView звук обслуживает ExoPlayer через мост.
   PWA-установка скрыта, а кнопка fullscreen управляет только нижней Android-панелью. */
html.efika-native-android-audio [data-pwa-install-button],
body.efika-native-android-audio [data-pwa-install-button],
html.efika-native-android-audio .pwa-install-modal,
body.efika-native-android-audio .pwa-install-modal{
  display:none!important;
}
html.efika-native-android-audio .stream-load-indicator,
body.efika-native-android-audio .stream-load-indicator{
  display:none!important;
  pointer-events:none;
}

html.efika-native-android-audio .google-auth-wrap,
body.efika-native-android-audio .google-auth-wrap,
html.efika-native-android-audio .telegram-auth-wrap,
body.efika-native-android-audio .telegram-auth-wrap,
html.efika-native-android-audio .auth-divider,
body.efika-native-android-audio .auth-divider,
html.efika-native-android-audio .captcha-box,
body.efika-native-android-audio .captcha-box{
  display:none!important;
}
@media (max-width:850px){
  html.efika-native-android-audio .bottom-nav,
  body.efika-native-android-audio .bottom-nav{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    justify-items:center!important;
  }
  html.efika-native-android-audio .bottom-nav a,
  body.efika-native-android-audio .bottom-nav a,
  html.efika-native-android-audio .bottom-nav button,
  body.efika-native-android-audio .bottom-nav button{
    width:100%!important;
    justify-content:center!important;
  }
}

/* === Efika Android quick login 0017 === */
.android-quick-login-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 16px;
}
.android-quick-login-text-button{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:4px;
  padding:6px 4px;
  cursor:pointer;
}
.android-quick-login-help-button{
  width:26px;
  height:26px;
  display:inline-grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(143,211,255,.45);
  background:rgba(143,211,255,.08);
  color:var(--accent);
  font-weight:900;
  cursor:pointer;
}
.android-quick-login-card,
.android-quick-login-help-card,
.android-quick-key-card{max-width:440px;}
.android-quick-login-code-label input{
  margin-top:8px;
  text-align:center;
  letter-spacing:.22em;
  font-size:24px;
  font-weight:900;
  text-transform:uppercase;
}
.android-quick-login-actions,
.android-quick-key-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.android-quick-login-actions .btn.primary,
.android-quick-key-actions .btn.primary{grid-column:1/-1;}
.android-quick-key-box{
  display:grid;
  gap:14px;
  justify-items:center;
  margin:16px 0;
}
.android-quick-key-qr{
  width:min(260px,70vw);
  min-height:min(260px,70vw);
  display:grid;
  place-items:center;
  padding:12px;
  border-radius:20px;
  background:#fff;
  color:#111;
  text-align:center;
  font-weight:800;
}
.android-quick-key-qr img{width:100%;height:auto;display:block;}
.android-quick-key-code{
  font-size:clamp(30px,9vw,48px);
  line-height:1;
  font-weight:950;
  letter-spacing:.16em;
  color:var(--text);
  text-align:center;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.06);
}
.form-status.error{color:var(--danger);}
.form-status.success{color:var(--accent-2);}
@media (max-width:560px){
  .android-quick-login-actions,
  .android-quick-key-actions{grid-template-columns:1fr;}
  .android-quick-login-actions .btn.primary,
  .android-quick-key-actions .btn.primary{grid-column:auto;}
}

/* === Efika Android WebView fix 0018 === */
html.efika-native-android-audio .bottom-nav-fullscreen,
body.efika-native-android-audio .bottom-nav-fullscreen{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.android-quick-key-qr{
  padding:14px!important;
}
.android-quick-key-qr img{
  width:min(100%,360px)!important;
  max-width:360px!important;
  min-width:240px!important;
  image-rendering:auto;
}
html.efika-native-android-audio [data-top-modal-status]:empty,
body.efika-native-android-audio [data-top-modal-status]:empty,
html.efika-native-android-audio [data-standalone-status]:empty,
body.efika-native-android-audio [data-standalone-status]:empty{
  display:none!important;
}


/* === Efika Android APP v119: hide site bottom nav while Android nav bar is transiently visible === */
@media (max-width:850px){
  html.efika-native-android-audio .bottom-nav,
  body.efika-native-android-audio .bottom-nav{
    transition:opacity .14s ease, transform .16s ease!important;
    will-change:opacity,transform;
  }
  body.efika-native-android-audio.efika-system-bars-visible .bottom-nav{
    opacity:0!important;
    transform:translateY(calc(100% + env(safe-area-inset-bottom,0px) + 8px))!important;
    pointer-events:none!important;
  }
}

/* === Efika Android modal player v0024: playback mode buttons inside player === */
.file-audio-player .file-player-controls{
  grid-column:1/-1!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
.file-player-control-divider{
  width:1px!important;
  height:22px!important;
  margin:0 2px!important;
  background:rgba(255,255,255,.14)!important;
  border-radius:999px!important;
  flex:0 0 auto!important;
}
.file-player-mode-btn{
  width:30px!important;
  height:28px!important;
  border:0!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.045)!important;
  color:#dce8f2!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  transition:background .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease!important;
}
.file-player-mode-btn svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.05!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.file-player-mode-btn:hover{
  background:rgba(143,211,255,.14)!important;
  color:var(--accent)!important;
}
.file-player-mode-btn.active{
  background:linear-gradient(135deg,rgba(143,211,255,.95),rgba(93,213,255,.86))!important;
  color:#061014!important;
  box-shadow:0 0 14px rgba(143,211,255,.24)!important;
}
.file-player-seek{
  grid-column:1/-1!important;
}
.playlist-panel .library-panel-head{
  align-items:flex-start!important;
}
@media (max-width:420px){
  .file-audio-player{
    padding:10px 8px!important;
  }
  .file-player-btn,
  .file-player-mode-btn{
    min-width:27px!important;
    width:27px!important;
  }
  .file-player-control-divider{
    margin:0!important;
  }
}

/* === Efika Android fix 0025: мягкий баннер смены трека === */
.efika-live-track-toast{
  position:fixed;
  z-index:9999;
  left:50%;
  top:max(14px,env(safe-area-inset-top));
  width:min(92vw,430px);
  transform:translate(-50%,-18px) scale(.98);
  opacity:0;
  pointer-events:none;
  padding:12px 16px;
  border-radius:20px;
  color:var(--text);
  background:linear-gradient(135deg,rgba(18,28,34,.82),rgba(8,14,18,.7));
  border:1px solid rgba(143,211,255,.32);
  box-shadow:0 0 0 1px rgba(0,196,140,.12) inset,0 18px 55px rgba(0,0,0,.42),0 0 34px rgba(143,211,255,.22);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  backdrop-filter:blur(18px) saturate(140%);
  transition:opacity .28s ease,transform .28s ease;
}
.efika-live-track-toast::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(135deg,rgba(143,211,255,.8),rgba(0,196,140,.36),rgba(255,255,255,.08));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  opacity:.72;
}
.efika-live-track-toast.show{
  opacity:1;
  transform:translate(-50%,0) scale(1);
}
.efika-live-track-toast__label{
  display:block;
  margin-bottom:3px;
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.efika-live-track-toast strong{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:14px;
  line-height:1.35;
}


/* === Efika Android app settings v0026 === */
.android-app-settings-button{
  width:42px;
  height:42px;
  border:1px solid rgba(143,211,255,.24);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(143,211,255,.16),rgba(255,255,255,.045));
  color:var(--accent);
  display:none;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.24);
}
.android-app-settings-button:hover{filter:brightness(1.08);}
html.efika-native-android-audio .android-app-settings-button,
body.efika-native-android-audio .android-app-settings-button{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.android-app-settings-card{
  max-width:430px!important;
  padding:18px!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 18% 0,rgba(143,211,255,.16),transparent 34%),
    linear-gradient(145deg,rgba(23,29,32,.98),rgba(10,15,18,.98))!important;
}
.android-app-settings-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 14px;
}
.android-app-settings-head h2{margin:2px 0 0;font-size:24px;line-height:1.05;}
.android-app-settings-icon{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#061014;
  background:linear-gradient(135deg,var(--accent),#5dd5ff);
  box-shadow:0 0 22px rgba(143,211,255,.22);
  font-size:20px;
}
.android-app-settings-list{display:grid;gap:9px;}
.android-app-setting-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 48px!important;
  align-items:center!important;
  gap:12px!important;
  padding:12px 12px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.045)!important;
  border:1px solid rgba(255,255,255,.075)!important;
  cursor:pointer;
}
.android-app-setting-copy{display:grid;gap:3px;min-width:0;}
.android-app-setting-copy strong{font-size:14px;line-height:1.18;color:var(--text);}
.android-app-setting-copy small{font-size:12px;line-height:1.35;color:var(--muted);font-weight:500;}
.android-app-setting-row input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.android-app-setting-switch{
  width:48px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.10);
  position:relative;
  transition:background .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.android-app-setting-switch:before{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#dce8f2;
  transition:transform .16s ease,background .16s ease;
}
.android-app-setting-row input:checked + .android-app-setting-switch{
  background:linear-gradient(135deg,rgba(143,211,255,.95),rgba(0,196,140,.82));
  border-color:rgba(143,211,255,.55);
  box-shadow:0 0 18px rgba(143,211,255,.18);
}
.android-app-setting-row input:checked + .android-app-setting-switch:before{
  transform:translateX(20px);
  background:#061014;
}
.android-app-settings-note{margin:12px 2px 0!important;font-size:12px!important;line-height:1.35!important;}
@media (max-width:520px){
  .android-app-settings-button{width:38px;height:38px;border-radius:13px;font-size:18px;}
  .android-app-settings-card{width:calc(100vw - 24px)!important;padding:16px!important;}
  .android-app-setting-row{padding:11px 10px!important;}
}
@media (max-width:850px){
  html.efika-native-android-audio.efika-system-bars-visible .bottom-nav,
  body.efika-native-android-audio.efika-system-bars-visible .bottom-nav{
    opacity:0!important;
    transform:translateY(calc(100% + env(safe-area-inset-bottom,0px) + 8px))!important;
    pointer-events:none!important;
  }
}

/* === Efika Android APK updates v0028 === */
.android-app-settings-version{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
  padding:10px 12px;
  border:1px solid rgba(143,211,255,.16);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(143,211,255,.10),rgba(0,196,140,.055));
}
.android-app-settings-version span{font-size:12px;color:var(--muted);font-weight:700;}
.android-app-settings-version strong{font-size:13px;color:var(--text);text-align:right;}
.android-app-settings-version small{color:var(--muted);font-weight:700;}
.android-update-card{width:min(430px,calc(100vw - 26px));padding:20px!important;border-radius:24px!important;overflow:hidden;}
.android-update-card:before{content:"";position:absolute;inset:-80px -80px auto auto;width:180px;height:180px;border-radius:999px;background:radial-gradient(circle,rgba(143,211,255,.28),rgba(143,211,255,0) 68%);pointer-events:none;}
.android-update-head{display:flex;gap:12px;align-items:center;margin-bottom:14px;}
.android-update-icon{width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#061014;font-weight:900;font-size:22px;box-shadow:0 14px 36px rgba(0,196,140,.16);}
.android-update-head h2{margin:2px 0 0;font-size:24px;line-height:1.05;}
.android-update-versions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0;}
.android-update-versions div{padding:12px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);min-width:0;}
.android-update-versions span{display:block;color:var(--muted);font-size:12px;font-weight:800;margin-bottom:4px;}
.android-update-versions strong{display:block;font-size:13px;line-height:1.25;word-break:break-word;}
.android-update-notes{margin:10px 0 0!important;font-size:13px!important;line-height:1.45!important;}
.android-update-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:16px;flex-wrap:wrap;}
.android-update-force .android-update-icon{background:linear-gradient(135deg,#ffd166,#ff7a7a);}
.android-update-force .android-update-card,.android-update-force.android-update-modal .android-update-card{border-color:rgba(255,209,102,.35)!important;}
@media (max-width:520px){.android-update-actions .btn{flex:1 1 auto}.android-update-versions{grid-template-columns:1fr}.android-update-card{padding:18px!important}}

/* === Efika admin Android APK v0028 === */
.android-apk-upload-panel,.android-apk-list-panel{margin-top:18px;}
.android-apk-upload-form{display:grid;gap:14px;}
.android-apk-dropzone{display:grid;place-items:center;gap:6px;min-height:104px;padding:18px;border:2px dashed rgba(143,211,255,.22);border-radius:20px;background:rgba(143,211,255,.045);text-align:center;cursor:pointer;transition:.16s ease;}
.android-apk-dropzone:hover,.android-apk-dropzone.dragover{border-color:rgba(143,211,255,.55);background:rgba(143,211,255,.10);transform:translateY(-1px);}
.android-apk-dropzone input{display:none;}
.android-apk-meta-note{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 12px;border:1px solid rgba(143,211,255,.16);border-radius:16px;background:rgba(143,211,255,.055);color:var(--muted);font-size:13px;}
.android-apk-meta-note b{color:var(--text);}
.android-apk-upload-grid{display:grid;grid-template-columns:minmax(190px,max-content) minmax(190px,max-content);gap:12px;align-items:end;}
.android-apk-check{height:48px;display:flex;align-items:center;gap:8px;padding:0 12px;border-radius:15px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);white-space:nowrap;font-weight:800;}
.android-apk-force-check{background:rgba(255,209,102,.08);border-color:rgba(255,209,102,.20);}
.android-apk-notes-field textarea{min-height:76px;}
.android-apk-upload-actions{justify-content:flex-start!important;margin-top:0!important;}
.android-apk-table td{vertical-align:middle;}
.android-apk-ok{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:5px;background:#18c50f;color:#fff;font-weight:900;}
.android-apk-warn{color:#ffd166;font-size:20px;line-height:1;}
.android-apk-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;}
.android-apk-actions form{margin:0;}
.android-apk-notes{margin:6px 0 0!important;font-size:12px!important;max-width:520px;}

@media (max-width:980px){.android-apk-upload-grid{grid-template-columns:1fr 1fr}.android-apk-check{height:auto;min-height:46px}.android-apk-actions{min-width:220px}}
@media (max-width:640px){.android-apk-upload-grid{grid-template-columns:1fr}.android-apk-actions{display:grid;grid-template-columns:1fr 1fr}.android-apk-actions form:last-child{grid-column:1/-1}.android-apk-actions .btn{width:100%}}

/* Android APK: компактные чекбоксы загрузки без растягивания и наложения текста. */
.android-apk-upload-grid.compact-mode{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
}
.android-apk-upload-grid.compact-mode .android-apk-check{
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 1 auto!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  padding:0 14px!important;
  line-height:1.1!important;
  overflow:hidden!important;
}
.android-apk-upload-grid.compact-mode .android-apk-check input{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
}
.android-apk-upload-grid.compact-mode .android-apk-check span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:15px!important;
}
@media (max-width:640px){
  .android-apk-upload-grid.compact-mode .android-apk-check{
    width:100%!important;
    justify-content:flex-start!important;
  }
}

.android-update-progress{margin:14px 0 0;padding:12px;border-radius:16px;background:rgba(143,211,255,.07);border:1px solid rgba(143,211,255,.16);}
.android-update-progress-line{height:9px;border-radius:999px;background:rgba(255,255,255,.10);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);}
.android-update-progress-line span{display:block;width:0%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width .18s ease;}
.android-update-progress p{margin:7px 0 0!important;font-size:12px!important;font-weight:800;text-align:right;}

/* === Efika v84: естественное перетягивание комнатного плеера на главной === */
.home-carousel-window{
  touch-action:pan-y!important;
  cursor:grab;
}
.home-carousel-window:active{
  cursor:grabbing;
}
.home-carousel-stage.is-dragging,
.home-carousel-stage.is-drag-settling{
  overflow:hidden!important;
  contain:paint;
}
.home-carousel-stage.is-dragging::after,
.home-carousel-stage.is-drag-settling::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
  opacity:var(--home-carousel-magic-opacity,0);
  background:
    radial-gradient(circle at var(--home-carousel-magic-x,50%) 44%, rgba(143,211,255,.34), rgba(143,211,255,0) 34%),
    radial-gradient(circle at 50% 106%, rgba(0,196,140,.18), rgba(0,196,140,0) 38%),
    linear-gradient(90deg, rgba(143,211,255,.10), rgba(255,255,255,.04), rgba(0,196,140,.08));
  mix-blend-mode:screen;
  transition:opacity .22s ease;
}
.home-carousel-stage.is-dragging .home-carousel-slide-current,
.home-carousel-stage.is-dragging .home-carousel-slide-drag-preview,
.home-carousel-stage.is-drag-settling .home-carousel-slide-current,
.home-carousel-stage.is-drag-settling .home-carousel-slide-drag-preview{
  will-change:transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.home-carousel-slide-drag-preview{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none!important;
  opacity:1;
  transform:translate3d(0,0,0);
}
.home-carousel-stage.is-dragging .home-carousel-slide-current,
.home-carousel-stage.is-drag-settling .home-carousel-slide-current{
  z-index:3;
}
.home-carousel-stage.is-dragging .home-carousel-slide-drag-preview,
.home-carousel-stage.is-drag-settling .home-carousel-slide-drag-preview{
  z-index:2;
}
.home-carousel-slide-drag-preview .home-carousel-window,
.home-carousel-slide-drag-preview [data-audio-toggle-surface],
.home-carousel-slide-drag-preview [data-audio-toggle-button]{
  pointer-events:none!important;
}
@media (prefers-reduced-motion:reduce){
  .home-carousel-stage.is-dragging::after,
  .home-carousel-stage.is-drag-settling::after{
    display:none!important;
  }
  .home-carousel-stage.is-dragging .home-carousel-slide-current,
  .home-carousel-stage.is-dragging .home-carousel-slide-drag-preview,
  .home-carousel-stage.is-drag-settling .home-carousel-slide-current,
  .home-carousel-stage.is-drag-settling .home-carousel-slide-drag-preview{
    transition:none!important;
    filter:none!important;
  }
}

/* === Efika Android fix 0033: важное окно гостевого предпросмотра всегда выше всех слоёв WebView === */
.guest-preview-modal:not(.hidden){
  position:fixed!important;
  inset:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  pointer-events:auto!important;
  overflow:auto!important;
}
.guest-preview-modal .efika-modal-backdrop{
  z-index:0!important;
}
.guest-preview-modal .guest-preview-card{
  position:relative!important;
  z-index:1!important;
  width:min(680px,calc(100vw - 28px))!important;
  margin:auto!important;
}

/* === Efika install chooser: APK / Web / iPhone === */
.install-choice-card{width:min(560px,calc(100vw - 24px));max-width:560px;}
.install-choice-head{display:flex;align-items:center;gap:14px;margin-bottom:10px;}
.install-choice-head .pwa-install-icon{margin-bottom:0;flex:0 0 auto;}
.install-choice-head h2{margin:0;font-size:clamp(30px,5vw,44px);line-height:1.02;}
.install-choice-intro{margin:0 0 16px;color:#b8c9d6;}
.install-choice-list{display:grid;gap:10px;margin:16px 0 12px;}
.install-choice{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;
  text-align:left;
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  background:rgba(255,255,255,.045);
  color:var(--text);
  padding:12px;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
}
.install-choice:hover,
.install-choice:focus-visible{border-color:rgba(143,211,255,.36);background:rgba(143,211,255,.09);transform:translateY(-1px);}
.install-choice-mark{
  width:48px;height:48px;border-radius:16px;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(143,211,255,.13);
  color:var(--accent);
  font-size:13px;font-weight:1000;letter-spacing:.02em;
  box-shadow:inset 0 0 0 1px rgba(143,211,255,.14);
}
.install-choice-copy{display:grid;gap:4px;min-width:0;}
.install-choice-copy strong{font-size:16px;line-height:1.2;}
.install-choice-copy small{font-size:13px;line-height:1.35;color:var(--muted);}
.install-choice-apk{border-color:rgba(0,196,140,.2);background:linear-gradient(135deg,rgba(0,196,140,.13),rgba(143,211,255,.055));}
.install-choice-apk .install-choice-mark{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#061014;}
.install-choice-ios{grid-template-columns:auto minmax(0,1fr) auto;cursor:default;}
.install-choice-ios:hover{transform:none;}
.install-choice-ios .btn{white-space:nowrap;}
.pwa-install-modal.is-android .install-choice-apk,
.pwa-install-modal.is-desktop .install-choice-web,
.pwa-install-modal.is-ios .install-choice-ios{box-shadow:0 0 0 1px rgba(143,211,255,.26),0 18px 52px rgba(0,0,0,.2);}
.pwa-install-modal.is-ios .install-choice-apk{opacity:.72;}
@media (max-width:560px){
  .install-choice-head{align-items:flex-start;}
  .install-choice{grid-template-columns:auto minmax(0,1fr);}
  .install-choice-ios{grid-template-columns:auto minmax(0,1fr);}
  .install-choice-ios .btn{grid-column:1/-1;width:100%;}
  .pwa-install-actions .btn{width:100%;}
}


/* Text pages, anchors and share/install text UI */
.content-page-body h1[id],.content-page-body h2[id],.content-page-body h3[id],.content-page-toc[id]{scroll-margin-top:96px}
.content-page-body h3{font-size:clamp(21px,3vw,27px);margin:24px 0 10px;line-height:1.18;color:#dce8f2}
.content-page-body a,.content-page-toc a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(143,211,255,.35)}
.content-page-body a:hover,.content-page-toc a:hover{border-bottom-color:var(--accent)}
.content-anchor{display:block;position:relative;top:-96px;visibility:hidden}
.content-page-toc{margin:0 0 24px;padding:18px 20px;border:1px solid rgba(143,211,255,.14);border-radius:22px;background:linear-gradient(135deg,rgba(143,211,255,.075),rgba(0,196,140,.045));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.content-page-toc h2{margin:0 0 12px;font-size:clamp(20px,3vw,28px);line-height:1.15;color:#dce8f2}
.content-page-toc ul{display:grid;gap:7px;margin:0;padding:0;list-style:none}
.content-page-toc li{margin:0;padding:0;line-height:1.35}.content-page-toc a{display:inline-block;padding:2px 0}.content-page-toc .content-toc-level-3{padding-left:18px;font-size:.96em}.content-page-toc .content-toc-level-3 a{color:#b8d5e8}
.admin-content-preview{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.admin-content-preview .content-page-toc{margin-bottom:18px;padding:14px 16px;border-radius:18px}.admin-content-preview .content-page-toc h2{font-size:20px}.admin-content-preview .content-page-body h1{font-size:28px}.admin-content-preview .content-page-body h2{font-size:22px}.admin-content-preview .content-page-body h3{font-size:19px}
.admin-content-modal-note{display:inline-flex;align-items:center;min-height:40px}.admin-content-help{font-size:13px;line-height:1.45}.admin-content-help code{background:rgba(255,255,255,.07);border-radius:8px;padding:2px 6px;color:#dce8f2}
.iphone-install-instruction{margin:12px 0;padding:14px;border:1px solid rgba(143,211,255,.14);border-radius:18px;background:rgba(143,211,255,.055);max-height:280px;overflow:auto}.iphone-install-instruction .content-page-body h1{font-size:24px;margin-top:0}.iphone-install-instruction .content-page-body h2{font-size:18px}.iphone-install-instruction .content-page-body p,.iphone-install-instruction .content-page-body li{font-size:14px;line-height:1.5}
.site-share-wrap{position:relative;z-index:3200;display:inline-flex;align-items:center}.site-share-popover{position:absolute;left:50%;bottom:calc(100% + 12px);z-index:3300;display:grid;gap:8px;min-width:170px;transform:translateX(-50%);padding:12px;border:1px solid rgba(143,211,255,.18);border-radius:16px;background:rgba(13,18,20,.96);box-shadow:0 18px 50px rgba(0,0,0,.36);color:var(--muted);text-align:left}.site-share-popover:after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;transform:translateX(-50%) rotate(45deg);background:rgba(13,18,20,.96);border-right:1px solid rgba(143,211,255,.18);border-bottom:1px solid rgba(143,211,255,.18)}.site-share-title{font-size:12px;font-weight:900;color:#5aa0a9;letter-spacing:.04em}.site-footer-links .site-share-popover a{display:block!important;color:var(--muted)!important;white-space:nowrap!important}.site-footer-links .site-share-popover a:hover{color:var(--accent)!important}.site-share-status{min-height:16px;font-size:12px;color:var(--accent-2)}@media (max-width:850px){.admin-content-preview{position:static;max-height:none}}

@media (max-width:760px){
  .site-share-popover{
    left:auto;
    right:0;
    transform:none;
    justify-items:center;
  }

  .site-share-popover:after{
    left:auto;
    right:28px;
    transform:rotate(45deg);
  }
}

.site-share-popover{max-width:calc(100vw - 24px)}
.site-share-popover[data-share-positioned="1"]{left:var(--site-share-left,50%);right:auto;transform:var(--site-share-transform,translateX(-50%));justify-items:start}
.site-share-popover[data-share-positioned="1"]:after{left:var(--site-share-caret-x,50%);right:auto;transform:translateX(-50%) rotate(45deg)}

/* === Efika offline / cache mode === */
.efika-offline-overlay{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 18% 10%,rgba(143,211,255,.18),transparent 34%),radial-gradient(circle at 82% 90%,rgba(0,196,140,.12),transparent 36%),rgba(4,8,10,.88);backdrop-filter:blur(18px)}
.efika-offline-overlay.hidden{display:none!important}
.efika-offline-card{width:min(440px,100%);padding:26px 22px 22px;border-radius:30px;background:linear-gradient(145deg,rgba(32,40,44,.96),rgba(13,18,20,.98));border:1px solid rgba(143,211,255,.22);box-shadow:0 24px 70px rgba(0,0,0,.45);text-align:center}
.efika-offline-card h2{margin:0 0 12px;font-size:34px;line-height:.98;letter-spacing:-.055em}
.efika-offline-card p{line-height:1.45}
.efika-offline-actions{display:grid;gap:10px;margin-top:18px}
body.efika-network-offline .status-chip.live,body.efika-network-offline .player-status{filter:saturate(.45);opacity:.78}



/* === Android app settings groups === */
.android-app-setting-group-title{margin:8px 0 -2px;padding:8px 4px 0;color:var(--accent);font-size:12px;font-weight:1000;letter-spacing:.045em;text-transform:uppercase}
.android-app-setting-info-row{grid-template-columns:1fr!important;cursor:default}.android-app-setting-info-row:hover{transform:none!important;border-color:rgba(255,255,255,.08)!important;background:rgba(255,255,255,.035)!important}
@media (max-width:560px){.android-app-setting-group-title{font-size:11px;line-height:1.25}}
