@charset "UTF-8";
/* ============================================================
   base.css — ئاساسىي قۇرۇلما · ناخشا CMS · ئۇچاربۈرە تورى
   ============================================================ */
@font-face {
  font-family: 'UKIJ Tuz Tom';
  src: url('../fonts/UKIJTuzTom.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
:root {
  --font: 'UKIJ Tuz Tom', 'Microsoft Uyghur', 'Alkatip', Tahoma, sans-serif;
  --font-head: var(--font);
  --bg: #f3f6fd; --bg2: #eaf0fb;
  --surface: #ffffff; --surface-2: #f5f8ff;
  --text: #14203c; --dim: #6c7a99; --border: #e2e9f7;
  --accent: #2f6fed; --accent-2: #1c44b8; --accent-soft: #e7efff;
  --danger: #e23b34; --gold: #e0a02c; --ok: #12a36a;
  --shadow: 0 10px 34px rgba(24, 52, 112, .10);
  --shadow-card: 0 6px 18px rgba(24, 52, 112, .10);
  --radius: 16px; --radius-sm: 11px;
  --header-h: 68px;
}
html[data-night="1"], html[data-night-pre="1"] {
  --bg: #0a0d18; --bg2: #0e1426;
  --surface: #141a2c; --surface-2: #1b2338;
  --text: #f2f5ff; --dim: #93a0bd; --border: #28324c;
  --accent: #5b8cff; --accent-2: #3a68e0; --accent-soft: #1e2c4e;
  --shadow: 0 12px 36px rgba(0,0,0,.5); --shadow-card: 0 6px 20px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4, b, strong { font-family: var(--font-head); }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------------- باش بالداق ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h); padding: 8px clamp(12px, 3vw, 34px);
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(20, 40, 90, .05);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 19px; letter-spacing: .2px; }
.brand-text small { font-size: 10.5px; color: var(--dim); }
.top-nav { display: flex; gap: 4px; align-items: center; }
.top-nav a {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; color: var(--dim);
  white-space: nowrap; transition: background .2s, color .2s;
}
.top-nav a:hover, .top-nav a.is-on { background: var(--accent-soft); color: var(--accent); }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 12px; height: 38px; min-width: 190px;
}
.search-box svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.search-box input { border: 0; background: transparent; outline: none; width: 100%; color: var(--text); font-size: 13px; }
.icon-btn {
  width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 12px; padding: 0; transition: border-color .2s, color .2s, transform .15s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(.93); }
.night-btn { border-radius: 50%; position: relative; }
.night-btn .ico-sun, .night-btn .ico-moon {
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  transition: opacity .3s, transform .45s;
}
.night-btn .ico-sun { opacity: 0; transform: rotate(-90deg); }
html[data-night="1"] .night-btn .ico-moon, html[data-night-pre="1"] .night-btn .ico-moon { opacity: 0; transform: rotate(90deg); }
html[data-night="1"] .night-btn .ico-sun, html[data-night-pre="1"] .night-btn .ico-sun { opacity: 1; transform: rotate(0); }
.menu-btn { display: none; }
.btn-login {
  padding: 8px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; white-space: nowrap; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ---------------- تۈر بالدىقى (يانفون) ---------------- */
.cat-strip { display: none; }

/* ---------------- مەزمۇن ---------------- */
.page-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 22px clamp(12px, 3vw, 34px) 40px; }
.panel-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-block { margin: 30px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 15px; }
.section-head h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.section-head h2 small { font-size: 13px; color: var(--dim); font-weight: 400; }
.section-head > a, .head-links a { margin-inline-start: auto; color: var(--accent); font-size: 13px; white-space: nowrap; }
.empty-box { padding: 34px; text-align: center; color: var(--dim); }
.empty-box a { color: var(--accent); }
.muted { color: var(--dim); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }

/* ---------------- كۇنۇپكىلار / فورما ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border: 1px solid transparent; border-radius: 11px;
  font-size: 14px; font-weight: 700; line-height: 1.4; transition: transform .15s, opacity .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-wx { background: #12a36a; color: #fff; width: 100%; }
.btn-wx svg { width: 19px; height: 19px; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; }
.field label { font-size: 12.5px; color: var(--dim); }
input, select, textarea {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 10px; padding: 9px 12px; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }

/* ---------------- Flash ---------------- */
.flash {
  max-width: 1320px; margin: 12px auto 0; padding: 10px 16px; border-radius: 11px;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border);
}
.flash.err { background: #ffeceb; color: #c0342c; }
.flash button { margin-inline-start: auto; border: 0; background: transparent; font-size: 20px; color: inherit; }

/* ---------------- ئاستى ---------------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); padding: 26px clamp(12px, 3vw, 34px); }
.footer-inner { max-width: 1320px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.site-footer p { margin: 8px 0 0; font-size: 13px; color: var(--dim); }
.site-footer small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.footer-links a:hover { color: var(--accent); }
.bottom-nav { display: none; }

/* ---------------- كىچىك قويغۇچ ---------------- */
.mini-player {
  position: fixed; inset-inline: 12px; bottom: 12px; z-index: 80;
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mini-cover { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--surface-2); }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mini-cover.is-spin img { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mini-info b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-info small { font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { flex: none; width: 34px; height: 34px; border: 0; background: transparent; color: var(--text); padding: 0; display: grid; place-items: center; border-radius: 50%; }
.mini-btn svg { width: 20px; height: 20px; }
.mini-btn:hover { color: var(--accent); }
.mini-toggle { background: var(--accent); color: #fff; }
.mini-toggle:hover { color: #fff; opacity: .9; }
.mini-toggle .ic-pause, .is-playing .mini-toggle .ic-play { display: none; }
.is-playing .mini-toggle .ic-pause { display: block; }
.mini-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--border); border-radius: 0 0 16px 16px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------------- تاختىلار ---------------- */
.drawer-mask { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 28, .55); backdrop-filter: blur(2px); }
.playlist-drawer, .style-drawer {
  position: fixed; z-index: 101; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(390px, 92vw); background: var(--surface); border-inline-start: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,.22); display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; font-size: 17px; }
.drawer-head h3 small { font-size: 12px; color: var(--dim); font-weight: 400; }
.drawer-head button { margin-inline-start: auto; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--dim); }
.drawer-tip { margin: 14px 20px 4px; font-size: 12.5px; color: var(--dim); }
.playlist-tools { display: flex; gap: 8px; padding: 12px 20px; }
.playlist-tools button { flex: 1; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 7px; font-size: 12.5px; }
.playlist-items { flex: 1; overflow-y: auto; padding: 4px 12px 24px; }
.pl-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; cursor: pointer; }
.pl-item:hover { background: var(--surface-2); }
.pl-item.is-on { background: var(--accent-soft); color: var(--accent); }
.pl-item img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex: none; }
.pl-item .pl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.pl-item .pl-txt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item .pl-txt small { font-size: 11.5px; color: var(--dim); }
.pl-item .pl-no { width: 20px; text-align: center; color: var(--dim); font-size: 12px; }
.pl-item .pl-lock { color: var(--gold); font-size: 11px; }

.style-cards { display: grid; gap: 10px; padding: 12px 20px; }
.style-cards a { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.style-cards a:hover, .style-cards a.is-on { border-color: var(--accent); }
.style-cards .sw { width: 42px; height: 42px; border-radius: 10px; flex: none; border: 1px solid var(--border); }
.sw-pc { background: linear-gradient(140deg, #2f6fed, #122a6b 60%, #0a1a44); }
.sw-wap { background: linear-gradient(140deg, #e23b34, #7b1f2b 48%, #2f6fed); }
.sw-auto { background: linear-gradient(135deg, #2f6fed 0 50%, #e23b34 50% 100%); }
.style-cards b { display: block; font-size: 14px; }
.style-cards i { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); }
.night-picker { margin: auto 20px 22px; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.np-head { display: flex; align-items: center; margin-bottom: 10px; font-size: 13px; }
.np-head span { margin-inline-start: auto; color: var(--accent); font-size: 12px; }
.night-seg { display: flex; gap: 6px; }
.night-seg button { flex: 1; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; }
.night-seg button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- كومپيۇتېر / يانفون ئورتاق ---------------- */
@media (max-width: 1100px) {
  .top-nav a { padding: 8px 9px; font-size: 13px; }
  .search-box { min-width: 150px; }
}

/* ---------------- قويغۇچ ئۇقتۇرۇشى ---------------- */
.naxsha-toast {
  position: fixed; z-index: 200; left: 50%; bottom: 88px; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 999px; background: rgba(18,20,30,.94); color: #fff;
  font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 1;
  transition: opacity .4s, transform .4s; pointer-events: none; white-space: nowrap; max-width: 90vw;
}
.naxsha-toast.out { opacity: 0; transform: translateX(-50%) translateY(10px); }
