/* ===== VideoAI — asosiy uslublar ===== */
@import url('/fonts/fonts.css');

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141417;
  --surface-2: #1b1b20;
  --surface-3: #24242b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f4f6;
  --text-2: #c2c2cb;
  --muted: #80808c;
  --accent: #d4ff3f;
  --accent-2: #c2f02a;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(212, 255, 63, .12);
  --pink: #ff3d8b;
  --violet: #8b5cff;
  --danger: #ff5a5a;
  --ok: #3ddc84;
  --warn: #ffb84d;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 24px 70px -24px rgba(0, 0, 0, .8);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', 'Inter', 'Arial Narrow', sans-serif;
  --hdr: 64px;
  --gutter: 20px;
  --maxw: 1440px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.display {
  font-family: var(--display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .88;
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ===== tugmalar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 12px; font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); }
.btn-primary:hover { background: #dfff66; box-shadow: 0 8px 30px -8px rgba(212, 255, 63, .55); }
.btn-dark { background: var(--surface-2); border: 1px solid var(--line); }
.btn-dark:hover { background: var(--surface-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-danger { background: rgba(255, 90, 90, .12); color: #ff8b8b; border: 1px solid rgba(255, 90, 90, .25); }
.btn-danger:hover { background: rgba(255, 90, 90, .2); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-xl { height: 60px; padding: 0 30px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-cost { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .12); font-weight: 750; }

.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ===== chip / badge / pill ===== */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 13.5px; font-weight: 600;
  color: var(--text-2); white-space: nowrap; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-display { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: 15px; height: 38px; padding: 0 16px; }
.chip-display sup { color: var(--accent); font-size: 9px; font-weight: 700; text-transform: lowercase; margin-left: 2px; font-family: var(--font); font-stretch: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.badge-hot { background: var(--pink); color: #fff; }
.badge-new { background: var(--accent); color: var(--accent-ink); }
.badge-top { background: var(--pink); color: #fff; font-style: italic; }
.badge-soft { background: rgba(255, 255, 255, .1); color: var(--text); backdrop-filter: blur(8px); }
.badge-ok { background: rgba(61, 220, 132, .15); color: var(--ok); }
.badge-bad { background: rgba(255, 90, 90, .15); color: #ff8b8b; }
.badge-wait { background: rgba(255, 184, 77, .15); color: var(--warn); }
.badge-demo { background: var(--violet); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text-2);
}
.pill:hover { color: var(--text); }
.pill-accent { background: var(--accent-soft); border-color: rgba(212, 255, 63, .3); color: var(--accent); }

/* ===== e'lon va sinov qatori ===== */
.announce {
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 14px; text-align: center;
  padding: 10px 44px; position: relative;
}
.announce a { text-decoration: underline; }
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px;
  background: linear-gradient(90deg, #2a1760, #3a1142); color: #e9dcff; text-align: center; border-bottom: 1px solid var(--line);
}
.demo-bar b { color: #fff; }

/* ===== sarlavha (header) ===== */
#hdr { display: contents; }
.hdr {
  position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 22px;
  padding: 0 var(--gutter); background: rgba(10, 10, 11, .78); backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .01em; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.on { color: var(--accent); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.credits-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-weight: 750; font-variant-numeric: tabular-nums;
}
.credits-pill .i { color: var(--accent); fill: var(--accent); stroke: none; }
.credits-pill:hover { border-color: rgba(212, 255, 63, .4); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #8cff9a); color: var(--accent-ink); font-size: 15px;
}
.menu-pop {
  position: absolute; right: var(--gutter); top: calc(var(--hdr) - 4px); min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); z-index: 60;
  animation: pop .16s ease;
}
.menu-pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; text-align: left; }
.menu-pop .mi:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.menu-pop .mh { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-pop .mh b { display: block; }
.menu-pop .mh small { color: var(--muted); }

/* mobil pastki panel */
.tabbar { display: none; }

/* ===== hero ===== */
.hero { position: relative; text-align: center; padding: 72px var(--gutter) 40px; overflow: hidden; }
.hero-glow {
  position: absolute; left: 50%; top: -120px; width: 1100px; height: 620px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 255, 63, .16), transparent 70%), radial-gradient(40% 50% at 20% 60%, rgba(139, 92, 255, .12), transparent 70%),
    radial-gradient(40% 50% at 80% 60%, rgba(255, 61, 139, .10), transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.hero > *:not(.hero-glow):not(.hero-grid) { position: relative; }
.hero-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-title { font-size: clamp(58px, 11.5vw, 176px); margin: 0; }
.hero-title .l2 { color: var(--text); }
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--text-2); font-size: clamp(15px, 1.6vw, 18px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 38px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-stats b { display: block; color: var(--text); font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 30px; line-height: 1; margin-bottom: 4px; }

.cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1180px; margin: 10px auto 0; padding: 0 var(--gutter); }

/* ===== bo'limlar ===== */
.section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-title { font-size: clamp(38px, 5.2vw, 72px); margin: 0; }
.sec-sub { color: var(--text-2); margin: 10px 0 0; max-width: 560px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }

.tabs-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; position: sticky; top: var(--hdr); z-index: 20;
  background: linear-gradient(var(--bg) 70%, rgba(10, 10, 11, 0));
}
.tabs-row::-webkit-scrollbar { display: none; }

/* ===== masonry to'r ===== */
.masonry { display: flex; gap: 12px; align-items: flex-start; }
.masonry .col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* ===== trend kartasi ===== */
.tcard { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); isolation: isolate; }
.tcard-media { position: relative; width: 100%; overflow: hidden; }
.tcard-media > video, .tcard-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tcard:hover .tcard-media > video, .tcard:hover .tcard-media > img { transform: scale(1.04); }
.tcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .25) 38%, transparent 60%); pointer-events: none; z-index: 1; }
.tcard-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.tcard-bottom { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.tcard-title { font-size: clamp(26px, 2.5vw, 34px); margin: 0; overflow-wrap: anywhere; }
.tcard-sub { margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .72); }
.tcard-cost { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 8px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; }
.tcard-cost .i { color: var(--accent); fill: var(--accent); stroke: none; width: 12px; height: 12px; }
.tcard-go { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transform: scale(.6); opacity: 0; transition: all .25s cubic-bezier(.2, .7, .2, 1); }
.tcard:hover .tcard-go { transform: none; opacity: 1; }
.tcard:hover { box-shadow: 0 0 0 1px rgba(212, 255, 63, .35); }

/* namuna yo'q trend uchun jonli muqova */
.art { position: absolute; inset: 0; overflow: hidden; background: var(--c3, #151518); }
.art::before {
  content: ''; position: absolute; inset: -45%;
  background: radial-gradient(32% 32% at 30% 32%, var(--c1), transparent 70%), radial-gradient(38% 38% at 72% 58%, var(--c2), transparent 72%),
    radial-gradient(28% 28% at 38% 78%, var(--c1), transparent 70%), radial-gradient(30% 30% at 75% 20%, var(--c2), transparent 70%);
  filter: blur(24px) saturate(1.25); animation: artspin 22s linear infinite; opacity: .95;
}
.art::after {
  content: ''; position: absolute; inset: 0; opacity: .32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.art .art-icon { position: absolute; left: 50%; top: 42%; width: 34%; max-width: 150px; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .9); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); z-index: 1; animation: floaty 6s ease-in-out infinite; }
.art .art-icon svg { width: 100%; height: auto; stroke-width: 1.4; }
.art .art-ring { position: absolute; left: 50%; top: 42%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); z-index: 1; }
.art .art-ring::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .18); animation: artspin 30s linear infinite reverse; }
@keyframes artspin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translate(-50%, -56%); } }

/* ===== qanday ishlaydi ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.step-n { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 88px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px rgba(212, 255, 63, .7); }
.step h3 { margin: 18px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ===== studiya promo va modellar ===== */
.promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.promo-l { padding: 44px; }
.promo-r { position: relative; min-height: 360px; background: radial-gradient(60% 60% at 70% 40%, rgba(139, 92, 255, .35), transparent 70%), radial-gradient(50% 50% at 30% 80%, rgba(212, 255, 63, .22), transparent 70%), #101014; padding: 34px; display: flex; align-items: center; }
.fake-prompt { width: 100%; background: rgba(10, 10, 11, .75); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.fake-prompt p { margin: 0 0 16px; color: var(--text-2); min-height: 72px; }
.fake-prompt p .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -.2em; animation: blink 1s steps(2) infinite; }
.fake-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@keyframes blink { 50% { opacity: 0; } }

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; transition: border-color .2s, transform .2s; display: block; }
.mcard:hover { border-color: rgba(212, 255, 63, .35); transform: translateY(-2px); }
.mcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.mcard-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.mcard h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.mcard p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ===== narxlar ===== */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pack { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.pack.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -40px rgba(212, 255, 63, .5); }
.pack .badge { position: absolute; top: -11px; left: 24px; }
.pack-name { color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.pack-credits { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 64px; line-height: .9; display: flex; align-items: baseline; gap: 8px; }
.pack-credits small { font-family: var(--font); font-stretch: 100%; font-size: 15px; font-weight: 600; color: var(--muted); text-transform: none; }
.pack-price { font-size: 20px; font-weight: 750; }
.pack-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.pack .btn { margin-top: auto; }

/* ===== FAQ ===== */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 650; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* ===== footer ===== */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 110px; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot-big { font-size: clamp(64px, 16vw, 230px); color: rgba(255, 255, 255, .04); margin: 30px 0 0; text-align: center; user-select: none; }

/* ===== modal ===== */
.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease; }
.modal {
  position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow);
  max-height: calc(100vh - 40px); overflow: auto; animation: pop .22s cubic-bezier(.2, .8, .2, 1); width: min(460px, 100%);
}
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: var(--text); backdrop-filter: blur(8px); }
.modal-x:hover { background: rgba(255, 255, 255, .12); }
.modal-pad { padding: 30px; }
.modal h2 { margin: 0 0 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

/* trend modali */
.modal-trend { width: min(1120px, 100%); height: min(780px, calc(100vh - 40px)); display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; padding: 0; }
.mt-media { position: relative; background: #000; min-height: 0; overflow: hidden; }
.mt-media > video, .mt-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mt-media .mt-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); }
.mt-media .art .art-icon { width: 26%; }
.mt-media-label { position: absolute; left: 16px; bottom: 16px; z-index: 3; }
.mt-panel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 30px 30px 24px; }
.mt-head { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; padding-right: 40px; }
.mt-title { font-size: clamp(40px, 5vw, 64px); margin: 0 0 12px; overflow-wrap: anywhere; }
.mt-desc { color: var(--text-2); margin: 0 0 20px; }
.mt-foot { margin-top: auto; padding-top: 18px; }
.cost-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-2); font-size: 14px; }
.cost-line b { color: var(--text); }
.cost-line .i { color: var(--accent); fill: var(--accent); stroke: none; }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; margin: 10px 0 0; }

/* rasm yuklash joylari */
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.slots.one { grid-template-columns: 1fr; }
.slot {
  position: relative; display: grid; place-items: center; min-height: 150px; border-radius: 16px; border: 1.5px dashed var(--line-2);
  background: rgba(255, 255, 255, .02); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; text-align: center;
}
.slots.one .slot { min-height: 190px; }
.slot:hover, .slot.drag { border-color: var(--accent); background: var(--accent-soft); }
.slot input { display: none; }
.slot-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; }
.slot-empty .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); margin-bottom: 4px; }
.slot-empty b { font-size: 14px; }
.slot-empty small { color: var(--muted); font-size: 12px; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.filled { border-style: solid; border-color: var(--line-2); }
.slot-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .65); color: #fff; }
.slot-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.slot-prog { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); z-index: 2; font-weight: 700; }
.slot.small { min-height: 120px; }

.tips { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 14px; }
.tips summary { cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 14px; color: var(--text-2); list-style: none; display: flex; gap: 8px; align-items: center; }
.tips summary::-webkit-details-marker { display: none; }
.tips ul { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.tips li { margin: 4px 0; }

/* holat va jarayon */
.gen-status { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.gen-status b { display: block; font-size: 16px; }
.gen-status small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.ring { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 3px solid rgba(212, 255, 63, .18); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8cff9a); transition: width .8s ease; }
@keyframes spin { to { transform: rotate(360deg); } }

.gen-wait {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; text-align: center;
  background: radial-gradient(50% 50% at 50% 50%, rgba(212, 255, 63, .14), transparent 70%), rgba(0, 0, 0, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gen-wait .big-ring { width: 88px; height: 88px; border-radius: 50%; border: 4px solid rgba(212, 255, 63, .15); border-top-color: var(--accent); animation: spin 1.1s linear infinite; margin: 0 auto 16px; }
.gen-wait b { font-family: var(--display); font-stretch: 70%; font-weight: 900; text-transform: uppercase; font-size: 28px; letter-spacing: .01em; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ===== forma elementlari ===== */
.field { display: block; margin-bottom: 14px; }
.field > span, .flabel { display: block; font-size: 13px; font-weight: 650; color: var(--text-2); margin-bottom: 7px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2);
  outline: none; transition: border-color .15s, box-shadow .15s; font-size: 15px;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 100px; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 255, 63, .15); }
.input::placeholder { color: #5f5f6b; }
.input-row { display: flex; gap: 10px; }
.input-row > * { flex: 1; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 46px; }
.pass-wrap button { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; }
.form-err { color: #ff8b8b; font-size: 13.5px; margin: -4px 0 12px; min-height: 0; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.seg button { flex: 1; height: 36px; border-radius: 9px; font-weight: 650; font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button { height: 34px; min-width: 46px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--text-2); }
.choices button:hover { color: var(--text); border-color: var(--line-2); }
.choices button.on { background: var(--accent-soft); border-color: rgba(212, 255, 63, .55); color: var(--accent); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.toggle input { display: none; }
.toggle .sw { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); background: var(--accent-ink); }
.toggle span:first-child { font-weight: 600; font-size: 14px; }
.tabs-in-modal { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 13px; margin-bottom: 20px; }
.tabs-in-modal button { flex: 1; height: 40px; border-radius: 10px; font-weight: 700; color: var(--text-2); }
.tabs-in-modal button.on { background: var(--accent); color: var(--accent-ink); }

/* ===== studiya ===== */
.studio { display: grid; grid-template-columns: 400px 1fr; gap: 20px; padding: 20px var(--gutter) 40px; max-width: 1600px; margin: 0 auto; align-items: start; }
.st-panel { position: sticky; top: calc(var(--hdr) + 12px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 18px; max-height: calc(100vh - var(--hdr) - 24px); overflow-y: auto; scrollbar-width: thin; }
.st-panel h1 { font-size: 40px; margin: 4px 0 16px; }
.st-sec { margin-bottom: 16px; }
.model-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); text-align: left; }
.model-pick:hover { border-color: rgba(212, 255, 63, .4); }
.model-pick .mp-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(212, 255, 63, .25), rgba(139, 92, 255, .25)); color: var(--accent); flex: none; }
.model-pick b { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.model-pick small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.model-pick .chev { margin-left: auto; color: var(--muted); }
.model-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; animation: pop .15s ease; }
.model-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-align: left; }
.model-list button:hover, .model-list button.on { background: rgba(255, 255, 255, .06); }
.model-list b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.model-list small { display: block; color: var(--muted); font-size: 12.5px; }
.st-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-images.one { grid-template-columns: 1fr; }
.prompt-wrap { position: relative; }
.prompt-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-go { position: sticky; bottom: -18px; z-index: 6; margin: 18px -18px -18px; padding: 14px 18px 18px; background: linear-gradient(transparent, var(--bg-2) 28%); }
.st-feed { min-width: 0; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; gap: 12px; }
.feed-head h2 { font-size: 44px; margin: 0; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-xl); color: var(--muted); }
.empty .display { font-size: 42px; color: var(--text); margin: 0 0 8px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }

/* ===== natija kartasi (kutubxona/studiya) ===== */
.gcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; display: block; width: 100%; text-align: left; }
.gcard-media { position: relative; width: 100%; background: #000; overflow: hidden; }
.gcard-media > video, .gcard-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; }
.gcard-meta b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard-meta small { color: var(--muted); white-space: nowrap; }
.gcard-state { position: absolute; top: 10px; left: 10px; z-index: 3; }
.gcard-play { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); }
.gcard-fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; color: var(--text-2); font-size: 13px; background: repeating-linear-gradient(135deg, #16161a 0 12px, #121215 12px 24px); }
.gcard-wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13px; color: var(--text-2); background: radial-gradient(60% 60% at 50% 50%, rgba(212, 255, 63, .12), transparent 70%), #0e0e11; }
.gcard-wait .ring { margin: 0 auto 10px; }

/* ===== ko'ruvchi (lightbox) ===== */
.modal-view { width: min(1180px, 100%); height: min(820px, calc(100vh - 40px)); display: grid; grid-template-columns: 1fr 360px; overflow: hidden; padding: 0; }
.mv-media { position: relative; background: #000; display: grid; place-items: center; min-height: 0; }
.mv-media video, .mv-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.mv-side { padding: 28px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
.mv-side h2 { font-size: 38px; margin: 0; padding-right: 40px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.prompt-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--text-2); white-space: pre-wrap; max-height: 180px; overflow: auto; }
.mv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.mv-actions .full { grid-column: 1 / -1; }
.share-box { display: flex; gap: 8px; }
.share-box .input { height: 40px; font-size: 13px; }

/* ===== oddiy sahifalar ===== */
.page { max-width: 1100px; margin: 0 auto; padding: 36px var(--gutter) 60px; }
.page-title { font-size: clamp(48px, 7vw, 96px); margin: 0 0 12px; }
.page-sub { color: var(--text-2); margin: 0 0 28px; max-width: 620px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card h3 { margin: 0 0 14px; font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.balance-big { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 84px; line-height: .85; display: flex; align-items: center; gap: 10px; }
.balance-big .i { color: var(--accent); fill: var(--accent); stroke: none; width: 54px; height: 54px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.plus { color: var(--ok); font-weight: 700; }
.minus { color: #ff8b8b; font-weight: 700; }
.prose { color: var(--text-2); max-width: 760px; }
.prose h2 { color: var(--text); margin: 28px 0 8px; font-size: 20px; }
.prose li { margin: 6px 0; }
.center { text-align: center; }
.share-page { max-width: 560px; margin: 0 auto; padding: 36px var(--gutter) 60px; text-align: center; }
.share-page .player { border-radius: var(--r-xl); overflow: hidden; background: #000; margin-bottom: 22px; border: 1px solid var(--line); }
.share-page video, .share-page img { width: 100%; max-height: 72vh; object-fit: contain; }

/* ===== toast ===== */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 550; font-size: 14px; animation: pop .2s ease; max-width: min(92vw, 520px); }
.toast.ok .i { color: var(--ok); }
.toast.err .i { color: var(--danger); }
.toast a { color: var(--accent); font-weight: 700; margin-left: 6px; }

.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-lg); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
.boot { display: grid; place-items: center; min-height: 70vh; }
.boot .ring { width: 48px; height: 48px; }

/* ===== moslashuvchan ===== */
@media (max-width: 1100px) {
  .studio { grid-template-columns: 360px 1fr; }
  .modal-view { grid-template-columns: 1fr 320px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --hdr: 58px; }
  .nav { display: none; }
  .hdr { gap: 12px; }
  .hdr .auth-btns .btn-ghost { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(10, 10, 11, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent); }
  .tabbar a.mid .tb-plus { width: 44px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .studio { grid-template-columns: 1fr; padding-top: 12px; }
  .st-panel { position: static; max-height: none; }
  .st-go { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); }
  .steps { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo-l { padding: 28px; }
  .promo-r { min-height: 260px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .modal-root { padding: 0; place-items: end center; }
  .modal { border-radius: 24px 24px 0 0; max-height: 94vh; width: 100%; animation: sheet .28s cubic-bezier(.2, .8, .2, 1); }
  .modal-trend, .modal-view { display: block; height: auto; max-height: 100vh; border-radius: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
  .mt-media, .mv-media { height: 56vh; }
  .mt-panel { overflow: visible; padding: 22px 18px 28px; }
  .mv-side { border-left: 0; padding: 20px 18px 30px; }
  .foot { padding-bottom: 120px; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 560px) {
  .hero { padding-top: 44px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .logo span { font-size: 19px; }
  .credits-pill { padding: 0 10px 0 8px; height: 34px; }
  .avatar { width: 34px; height: 34px; }
  .tcard-title { font-size: 22px; }
  .tcard-sub { display: none; }
  .tcard-top { top: 8px; left: 8px; right: 8px; }
  .tcard-bottom { left: 10px; right: 10px; bottom: 10px; }
  .masonry, .masonry .col { gap: 8px; }
  .section { padding: 40px 0; }
  .pack-credits { font-size: 54px; }
  .balance-big { font-size: 64px; }
  .chip-display { font-size: 13px; height: 32px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== admin panel ===== */
.adm { display: grid; grid-template-columns: 232px 1fr; gap: 22px; max-width: 1600px; margin: 0 auto; padding: 18px var(--gutter) 60px; align-items: start; }
.adm-side { position: sticky; top: calc(var(--hdr) + 14px); display: flex; flex-direction: column; gap: 2px; }
.adm-side .ttl { font-family: var(--display); font-stretch: 62%; font-weight: 900; font-size: 34px; text-transform: uppercase; margin: 0 0 10px 10px; }
.adm-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.adm-side a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.adm-side a.on { background: var(--accent-soft); color: var(--accent); }
.adm-main { min-width: 0; }
.adm-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-h h1 { font-size: 46px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 36px; line-height: 1; margin-top: 8px; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; height: 100%; position: relative; }
.bars .b i { display: block; border-radius: 4px 4px 0 0; background: var(--accent); min-height: 1px; }
.bars .b i.bad { background: var(--pink); border-radius: 0; }
.bars .b em { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: var(--muted); }
.adm-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-banner.warn { background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .35); color: #ffd699; }
.adm-banner.bad { background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .35); color: #ffb3b3; }
.adm-banner.ok { background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .3); color: #a6f0c6; }
.adm-banner.info { background: rgba(139, 92, 255, .1); border: 1px solid rgba(139, 92, 255, .35); color: #d8c9ff; }
.adm-banner .spacer { flex: 1; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: rgba(255, 255, 255, .025); }
.thumb { width: 44px; height: 56px; border-radius: 8px; overflow: hidden; position: relative; background: var(--surface-3); flex: none; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .art .art-icon { width: 60%; }
.thumb .art-ring { display: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tedit { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.tedit-side { position: sticky; top: calc(var(--hdr) + 14px); display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.params-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.params-grid .field { margin: 0; }
.params-grid .field > span { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.mgroup { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.mgroup-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.mgroup-h b { font-size: 15.5px; }
.mrow { display: grid; grid-template-columns: 110px 1fr 120px 110px 60px; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.mrow .input { height: 36px; font-size: 13.5px; padding: 0 10px; }
.sw-inline { display: inline-flex; align-items: center; cursor: pointer; }
.sw-inline input { display: none; }
.sw-inline .sw { width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; }
.sw-inline .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw-inline input:checked + .sw { background: var(--accent); }
.sw-inline input:checked + .sw::after { transform: translateX(16px); background: var(--accent-ink); }
.sw-inline input:disabled + .sw { opacity: .35; }
.pk-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.pk-row .input { height: 40px; }
.inputs-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.inputs-thumbs img { width: 90px; height: 110px; object-fit: cover; border-radius: 10px; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 14px; }
@media (max-width: 1100px) {
  .tedit { grid-template-columns: 1fr; }
  .tedit-side { position: static; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; flex-direction: row; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .adm-side .ttl { display: none; }
  .adm-side a { white-space: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 1fr 1fr; }
  .pk-row { grid-template-columns: 1fr 1fr; }
}

/* ===== videoni o'zgartirish (studiya) ===== */
.slot-video { min-height: 170px; }
.slot-dur { position: absolute; top: 8px; left: 8px; z-index: 2; text-transform: none; }
.st-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text-2);
  background: var(--accent-soft); border: 1px solid rgba(212, 255, 63, .22); }
.st-note .i { color: var(--accent); margin-top: 2px; }
.consent span:first-child { font-size: 13px; font-weight: 550; line-height: 1.35; }
.st-tabs button { font-size: 13px; }
select.input { cursor: pointer; }
.trim { background: var(--surface); border: 1px solid rgba(255, 184, 77, .35); border-radius: 14px; padding: 12px; }
.trim-note { display: flex; gap: 8px; margin: 0 0 10px; font-size: 13px; color: #ffd699; line-height: 1.4; }
.trim-note .i { flex: none; margin-top: 2px; }
.trim-video { width: 100%; max-height: 220px; border-radius: 10px; background: #000; object-fit: contain; margin-bottom: 10px; }
.trim-range { width: 100%; accent-color: var(--accent); }
.trim-lbl { display: flex; justify-content: space-between; font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tpls .choices button { height: 30px; font-size: 12.5px; }
