/* SaraFilm — admin bo'limi (Studio) va obuna sahifasi */

.state {
    display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px;
    background: var(--bg-3); color: var(--ink-2); font-size: 0.8rem; font-weight: 600; white-space: nowrap;
}
.state.is-ok { background: oklch(0.8 0.15 158 / 0.15); color: var(--green); }
.state.is-wait { background: var(--amber-soft); color: var(--amber); }
.state.is-bad { background: oklch(0.63 0.21 20 / 0.18); color: var(--red-ink); }

.bar { display: block; height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--amber-fill); transition: width 0.4s var(--ease); }

.thumb {
    flex: none; width: 44px; height: 62px; border-radius: 8px; overflow: hidden; background: var(--bg-3);
    display: grid; place-items: center; color: var(--ink-3);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- studio: umumiy */
.studio .panel h2, .billing .panel h2 { font-size: 1.35rem; }
.studio-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.studio-stats div { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); }
.studio-stats span { display: block; color: var(--ink-3); font-size: 0.85rem; }
.studio-stats b { display: block; margin-top: 4px; font-size: 1.25rem; font-weight: 700; }
.studio-warn { grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 0.92rem; }
.studio-warn code { font-weight: 700; }
.studio-search { max-width: 460px; margin-bottom: 16px; }
.studio-textarea { min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 99px; background: var(--amber-fill); color: var(--amber-ink) !important; font-size: 0.74rem; font-weight: 700; }

/* ---------------------------------------------------------------- yuklash */
.found, .video-list, .table-list, .ep-upload, .mini-list { display: grid; gap: 4px; }
.video-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.video-main .muted { font-size: 0.86rem; }
.ep-upload li {
    display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
    padding: 8px 10px; border-radius: 10px;
}
.ep-upload li:hover { background: var(--bg-3); }
.ep-n { color: var(--amber); font-weight: 700; }
.ep-t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.upload-row { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: var(--bg-3); margin-top: 10px; }
.upload-row > div:first-child { display: grid; gap: 2px; }
.upload-row .muted { font-size: 0.84rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.upload-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--ink-2); }
.upload-row.is-done .bar i { background: var(--green); }
.upload-row.is-failed .bar i, .upload-row.is-cancelled .bar i { background: var(--crimson); }

/* ---------------------------------------------------------------- videolar ro'yxati */
.video-list li { border-bottom: 1px solid var(--line-soft); }
.video-main b { font-weight: 600; }
.video-main .bar { margin-top: 6px; max-width: 420px; }
.video-flags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: none; max-width: 40%; }
.video-error { color: var(--red-ink); font-size: 0.86rem; }

/* ---------------------------------------------------------------- video oynasi */
.studio-dialog {
    width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); margin: auto;
    border-radius: 20px; background: var(--bg-2); overflow: hidden;
}
.studio-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 0.3s var(--ease); }
.studio-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px 14px 24px; border-bottom: 1px solid var(--line-soft); }
.studio-dialog header h2 { font-size: 1.3rem; }
.studio-dialog-body { display: grid; gap: 14px; padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.studio-dialog-body h3 { margin-top: 10px; font-size: 0.95rem; font-weight: 700; }
.studio-dialog-body h3 .muted { font-weight: 400; }
.studio-dialog-body > .btn { justify-self: start; }
.dialog-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; }
.rule-form, .sub-form, .plan-form { display: flex; flex-wrap: wrap; gap: 10px; }
.rule-form .select, .rule-form .input, .sub-form .input, .sub-form .select { flex: 1 1 180px; width: auto; min-height: 46px; }
.plan-form .input { flex: 1 1 130px; width: auto; min-height: 46px; }
.plan-form { margin-top: 6px; }
.toggles { display: grid; gap: 10px; }
.mini-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; }
.mini-list li .muted { flex: 1; font-size: 0.86rem; }
/* Audio/subtitr qatori: surish | nomi | til | asosiy (yoki manba) | saqlash | o'chirish -- bitta tekis qatorda */
.mini-list li.track-row {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(118px, 150px) auto auto auto;
    align-items: center; gap: 8px 10px;
}
.track-row .input { width: 100%; min-width: 0; min-height: 42px; }
.track-row .select { width: 100%; min-width: 0; min-height: 42px; }
.track-row .check { white-space: nowrap; }
.track-row > .btn { white-space: nowrap; }
@media (max-width: 620px) {
    .mini-list li.track-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .track-row > .track-move { grid-area: 1 / 1; }
    .track-row > .input { grid-area: 1 / 2 / 2 / 4; }
    .track-row > .select { grid-area: 2 / 2; }
    .track-row > .check, .track-row > .muted { grid-area: 2 / 3; }
    .track-row > [data-save-audio], .track-row > [data-save-sub] { grid-area: 3 / 2; justify-self: start; }
    .track-row > [data-del-audio], .track-row > [data-del-sub] { grid-area: 3 / 3; justify-self: end; }
}

.track-move { display: inline-flex; flex: 0 0 auto; gap: 2px; }
.track-move .btn { min-width: 34px; padding-inline: 6px; }
.track-move .btn:disabled { opacity: 0.3; }

/* ---------------------------------------------------------------- jadvalsimon ro'yxatlar */
.table-list li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 16px; align-items: center;
    padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
}
.table-list li > div:first-child { display: grid; gap: 3px; min-width: 0; }
.table-list li > div:first-child .muted { font-size: 0.86rem; }
.table-list li > span { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-actions .input { width: 76px; min-height: 40px; padding: 0 10px; }
.user-row { grid-template-columns: minmax(0, 1fr) auto !important; }
.user-row .row-actions { grid-column: 1 / -1; }
.user-row.is-off { opacity: 0.6; }
.order-note { padding: 6px 10px; border-radius: 8px; background: var(--bg-3); font-size: 0.86rem; color: var(--ink-2); justify-self: start; }

/* ---------------------------------------------------------------- obuna sahifasi */
.order-panel { max-width: 640px; border: 1px solid oklch(0.8 0.165 68 / 0.4); }
.order-facts { display: grid; gap: 0; }
.order-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.order-facts dt { color: var(--ink-3); }
.order-facts dd { font-weight: 600; text-align: right; }
.order-amount { font-size: 1.3rem; color: var(--amber); }
.order-info { padding: 16px; border-radius: 12px; background: var(--bg-3); line-height: 1.7; font-size: 0.98rem; user-select: text; }
.order-form { display: grid; gap: 14px; }
.order-wait { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.plan { display: grid; gap: 6px; padding: 24px; border-radius: 18px; background: var(--bg-2); }
.plan h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.plan-price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-days { color: var(--ink-3); margin-bottom: 12px; }
.order-list { display: grid; }
.order-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.order-list li div { display: grid; gap: 3px; }
.order-list .muted { font-size: 0.86rem; }

@media (max-width: 760px) {
    .table-list li { grid-template-columns: minmax(0, 1fr) auto; }
    .table-list .row-actions { grid-column: 1 / -1; }
    .ep-upload li { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .ep-upload li .state { display: none; }
    .video-flags { max-width: none; }
    .video-list a { flex-wrap: wrap; }
    .found-row { flex-wrap: wrap; }
    .found-row > span:nth-child(2) { flex: 1 1 60%; }
}

/* Panel ichidagi maydonlar panel fonidan ajralib tursin. */
.panel .input, .panel .select, .studio-dialog .input, .studio-dialog .select { background-color: var(--bg-3); }
.panel .input:focus, .panel .select:focus, .studio-dialog .input:focus, .studio-dialog .select:focus { background-color: var(--bg-3); }
.studio-stats b { font-size: 1.15rem; line-height: 1.3; }

/* ---------------------------------------------------------------- film ma'lumotlari va rasmlar */
.meta-form { display: grid; gap: 14px; }
.meta-form .btn { justify-self: start; }
.meta-form .studio-textarea { min-height: 110px; }
.art-grid { display: grid; gap: 14px; }
.art-slot { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.art-preview { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--bg-3); color: var(--ink-3); }
.art-poster .art-preview { aspect-ratio: 2 / 3; width: 100px; }
.art-backdrop .art-preview { aspect-ratio: 16 / 9; }
.art-logo .art-preview { aspect-ratio: 16 / 9; padding: 14px; background: repeating-conic-gradient(var(--bg-3) 0 25%, var(--bg-4) 0 50%) 0 0 / 18px 18px; }
.art-preview img { width: 100%; height: 100%; object-fit: cover; }
.art-logo .art-preview img { object-fit: contain; }
.art-preview.is-fallback img { opacity: 0.45; }
.art-preview em { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / 0.7); color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 600; }
.art-preview .icon { width: 28px; height: 28px; }
.art-info { display: grid; gap: 6px; }
@media (max-width: 760px) { .art-slot { grid-template-columns: 110px minmax(0, 1fr); } }

/* Qoralama: video hali saytda ko'rinmaydi */

/* ---------------------------------------------------------------- kutubxona */
.studio-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.studio-bar .input { flex: 1 1 240px; max-width: 360px; min-height: 46px; }
.video-list a {
    display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px 10px; border-radius: 12px;
    transition: background-color 0.15s;
}
.video-list a:hover { background: var(--bg-3); }
.found-row { display: flex; align-items: center; gap: 14px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
.found-row > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.found-row .muted { font-size: 0.86rem; }
.found-row .btn { flex: none; }

/* ---------------------------------------------------------------- bitta film yoki serial */
.studio-title { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 8px 0 20px; }
.studio-title .thumb { width: 72px; height: 104px; border-radius: 10px; }
.studio-title > div:nth-child(2) { display: grid; gap: 6px; flex: 1 1 280px; min-width: 0; }
.studio-title h1 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); overflow-wrap: anywhere; }
.studio-title .video-flags { justify-content: flex-start; max-width: none; }
.step { margin-top: 14px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; }
.step-head .muted { margin-top: 2px; font-size: 0.9rem; }
.step-n {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
    background: var(--amber-soft); color: var(--amber); font-weight: 800;
}
.step-body { display: grid; gap: 14px; }
.step-body h3 { margin-top: 6px; font-size: 0.95rem; font-weight: 700; }
.step-body > .btn, .step-body > a.btn { justify-self: start; }
.step.is-danger .step-body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; }
.step.is-danger h2 { font-size: 1.1rem; margin-bottom: 4px; }
.video-actions { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ep-upload li { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.ep-upload .ep-t { display: grid; gap: 6px; }
.ep-extra { color: var(--ink-3, #8b9395); font-size: 0.78rem; font-weight: 500; }
.ep-upload .video-flags { max-width: none; }
.trailer-preview { width: min(100%, 560px); aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.bulk-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 12px; }
.bulk-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bulk-list .select { min-height: 42px; }
@media (max-width: 760px) {
    .step.is-danger .step-body { grid-template-columns: 1fr; }
    .ep-upload li { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .ep-upload .video-flags { grid-column: 2 / -1; justify-content: flex-start; }
    .ep-upload li .state { display: inline-flex; }
    .bulk-list li { grid-template-columns: 1fr; }
}

/* Telefon: statistika ixchamroq, qism qatorida tugma o'ngda */
@media (max-width: 760px) {
    .studio-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
    .studio-stats div { padding: 10px 12px; }
    .studio-stats span { font-size: 0.74rem; line-height: 1.25; }
    .studio-stats b { font-size: 0.95rem; }
    .ep-upload li { grid-template-columns: 28px minmax(0, 1fr) auto; row-gap: 6px; }
    .ep-upload .video-flags { grid-column: 2; grid-row: 2; justify-content: flex-start; }
    .ep-upload .row-actions { grid-column: 3; grid-row: 1 / span 2; }
    .studio-bar .btn { flex: 1 1 100%; }
    .studio-bar .input { max-width: none; }
    .step { padding: 18px 16px; }
}
@media (max-width: 760px) {
    /* Kutubxona ro'yxati: holat belgilari nom ostida alohida qatorda */
    .video-list .video-flags { flex: 1 1 100%; justify-content: flex-start; padding-left: 58px; }
}

/* Qo'shilayotgan audio yo'lak va yo'lak qatoridagi o'chirish tugmasi */
.track-pending b { flex: none; }
.track-row .muted { flex: 0 0 auto; }

/* ---------------------------------------------------------------- obuna sahifasi (foydalanuvchi) */
.plans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; padding-top: 12px; }
/* To'rt tarif: kengda bitta qatorda, o'rtacha ekranda 2x2 (3+1 bo'lib qolmasin); telefonda -- mobile.css */
@media (min-width: 1100px) { .billing .plans:has(> .plan:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 620px) and (max-width: 1099px) { .billing .plans:has(> .plan:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { position: relative; gap: 8px; padding: 26px 24px 24px; border: 1px solid transparent; }
.plan h3 { font-size: 1rem; }
.plan-price { font-size: clamp(1.45rem, 2vw, 1.9rem); line-height: 1.1; white-space: nowrap; letter-spacing: -0.02em; }
.plan-days { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 28px; margin-bottom: 14px; color: var(--ink-3); }
.plan-days b { color: var(--ink-2); font-weight: 600; }
.plan-save { padding: 2px 8px; border-radius: 8px; background: oklch(0.8 0.15 158 / 0.15); color: var(--green); font-size: 0.82rem; font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.is-best { border-color: oklch(0.8 0.165 68 / 0.6); background: linear-gradient(oklch(0.8 0.165 68 / 0.08), transparent 55%), var(--bg-2); }
.plan-flag { position: absolute; top: -12px; left: 20px; padding: 3px 10px; border-radius: 8px; background: var(--amber-fill); color: var(--amber-ink); font-size: 0.78rem; font-weight: 700; }
.plan-flag.is-quiet { background: var(--bg-4); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------------------------------------------------------------- Studio: tariflar */
.plan-admin { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
/* minmax(0, 1fr): ichidagi tugmalar karta kengligidan oshib, "Faol" belgisini chetga surib chiqarmasin */
.plan-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px; border-radius: 14px; background: var(--bg-3); border: 1px solid transparent; }
.plan-card.is-off { opacity: 0.6; }
.plan-card.is-editing { border-color: var(--amber); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card h3 { font-weight: 600; overflow-wrap: anywhere; }
.plan-card-price { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.plan-card .muted { font-size: 0.86rem; }
.plan-card .row-actions { margin-top: 8px; flex-wrap: nowrap; gap: 4px; }
.plan-card .row-actions .btn { padding-inline: 12px; }
.plan-card .row-actions [data-delete] { margin-left: auto; }
.plan-editor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; padding-top: 20px; border-top: 1px solid var(--line-soft); align-items: start; }
.plan-editor h3, .plan-editor .row-actions { grid-column: 1 / -1; }
.plan-editor h3 { font-size: 1rem; font-weight: 700; }
.plan-editor .chips { margin-top: 8px; gap: 6px; }
.plan-editor .chip { min-height: 32px; padding: 0 10px; font-size: 0.82rem; }
@media (max-width: 1020px) { .plan-admin { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .plan-editor { grid-template-columns: minmax(0, 1fr); }
    .plans { grid-template-columns: minmax(0, 1fr); }
}
/* Asosiy bo'lmagan tariflarning tugmasi ham tugma bo'lib ko'rinsin. */
.plan .btn:not(.btn-primary) { --btn-bg: var(--bg-4); background: var(--bg-4); }
.plan-editor .chip { background: var(--bg-3); }

/* Studio: muammo xabarlari */
.report-list li { grid-template-columns: minmax(0, 1fr) auto; }
.report-list li.is-off { opacity: 0.55; }
.report-agent { font-size: 0.78rem !important; overflow-wrap: anywhere; }
.studio-bar .chips { margin: 0; }

/* Obuna botda olinadigan rejim */
.bot-steps { display: grid; gap: 8px; padding-left: 20px; list-style: decimal; color: var(--ink-2); }
.plan-admin { margin-top: 0; }
.studio-warn + .plan-admin { margin-top: 16px; }
/* Onlayn to'lov yoqilgan: rekvizitlar paneli yo'q -- tariflar to'liq kenglikda */
.plan-admin.is-single { grid-template-columns: minmax(0, 1fr); }
/* Onlayn to'lov holati (Studio -> Tariflar) */
.pay-status { display: grid; gap: 18px; margin-bottom: 16px; }
.pay-status-head { display: flex; align-items: flex-start; gap: 14px; }
.pay-status-head > div { flex: 1; min-width: 0; }
.pay-status-head .muted { margin-top: 2px; }
.pay-status-icon {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: oklch(0.8 0.15 158 / 0.14); color: var(--green);
}
.pay-status-icon .icon { width: 22px; height: 22px; }
.pay-status .field label .muted { font-weight: 400; }
.copy-field {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 14px;
    border-radius: 12px; background: var(--bg-3);
}
.copy-field code {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--ink-2); font-size: 0.86rem;
}
.copy-field .btn { flex: none; }

/* ---------------------------------------------------------------- studio: statistika */
.stats-bar { justify-content: space-between; }
.live-panel { margin-bottom: 16px; }
.studio .live-panel h2 { font-size: 1.15rem; }
.live-list { display: grid; }
.live-list li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.live-list li:first-child { border-top: 0; padding-top: 0; }
.live-list li:last-child { padding-bottom: 0; }
.live-main { flex: 1; display: grid; gap: 4px; min-width: 0; }
.live-user { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.live-user .muted, .live-side .muted { font-size: 0.84rem; }
.live-main .text-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-time { display: flex; align-items: center; gap: 10px; }
.live-time .bar { flex: 1; max-width: 260px; }
.live-time .muted { font-size: 0.82rem; white-space: nowrap; }
.live-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
@media (max-width: 640px) {
    .live-list li { flex-wrap: wrap; }
    .live-side { flex-basis: 100%; justify-items: start; text-align: left; padding-left: 62px; }
}
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); }
.kpi > span:first-child { color: var(--ink-3); font-size: 0.88rem; }
.kpi > b { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi-delta { color: var(--ink-3); font-size: 0.82rem; }
.kpi-delta b { font-weight: 700; }
.kpi-delta.is-up b { color: var(--green); }
.kpi-delta.is-down b { color: var(--red-ink); }

.chart-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.chart-card { gap: 18px; padding: 22px 24px; }
.chart-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.studio .chart-card h2 { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); }
.chart-card header b { font-size: 1.05rem; font-weight: 700; }
.chart { display: grid; gap: 8px; padding-left: 52px; }
.chart-plot { position: relative; height: 168px; }
.chart-grid { position: absolute; inset-inline: 0; height: 0; border-top: 1px solid var(--line-soft); }
.chart-grid small { position: absolute; right: 100%; top: 0; translate: -8px -50%; color: var(--ink-3); font-size: 0.74rem; white-space: nowrap; }
.chart-cols { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; }
.chart-col { display: flex; align-items: flex-end; justify-content: center; height: 100%; padding-inline: 1px; }
.chart-col i { flex: 1 1 auto; max-width: 24px; min-width: 1px; border-radius: 4px 4px 0 0; background: var(--amber-fill); }
.chart-col.is-on { background: oklch(var(--veil) / 0.05); }
.chart-col.is-on i { background: var(--amber-hi); }
.chart-tip {
    position: absolute; bottom: calc(100% + 6px); z-index: 2; translate: -50% 0; display: grid; gap: 1px; padding: 8px 12px;
    border-radius: 10px; background: var(--bg-4); box-shadow: var(--shadow-1); white-space: nowrap; pointer-events: none;
}
.chart-tip small { color: var(--ink-3); font-size: 0.76rem; }
.chart-tip b { font-size: 0.9rem; font-weight: 600; }
.chart-axis { position: relative; height: 18px; color: var(--ink-3); font-size: 0.74rem; }
.chart-axis span { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.chart-axis span.is-last { left: auto !important; right: 0; translate: none; }

.stats-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.stats-side { display: grid; gap: 12px; }
.studio .stats-split .panel h2 { font-size: 1.15rem; }
.top-list { display: grid; gap: 14px; }
.top-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-list li > div { flex: 1; display: grid; gap: 6px; min-width: 0; }
.top-list .text-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.top-list .muted { font-size: 0.84rem; }
.top-rank { flex: none; width: 20px; color: var(--ink-3); font-weight: 700; text-align: right; }
.fact-list { display: grid; }
.fact-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.fact-list li:first-child { border-top: 0; padding-top: 0; }
.fact-list li:last-child { padding-bottom: 0; }
.fact-list span { color: var(--ink-2); font-size: 0.93rem; }
.fact-list b { font-weight: 600; white-space: nowrap; }
.share-list { display: grid; gap: 12px; }
.share-list li { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 0.93rem; }
.share-list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.share-list b { font-weight: 600; white-space: nowrap; }
.stats-split .panel > .muted { font-size: 0.84rem; }

.stats-table { margin-top: 12px; border-radius: var(--r-lg); background: var(--bg-2); }
.stats-table summary { padding: 16px 24px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.table-scroll { overflow-x: auto; padding: 0 24px 20px; }
.stats-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.9rem; }
.stats-table th, .stats-table td { padding: 8px 12px 8px 0; text-align: right; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.stats-table th { border-top: 0; color: var(--ink-3); font-weight: 500; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-note { margin-top: 16px; font-size: 0.84rem; max-width: 900px; }

@media (max-width: 900px) {
    .chart-grid-2, .stats-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi { padding: 14px; }
    .kpi > b { font-size: 1.25rem; }
    .chart-card { padding: 18px 16px; }
    .chart { padding-left: 44px; }
    .chart-plot { height: 140px; }
    .chart-axis span:nth-child(even) { display: none; }
    .stats-table summary { padding-inline: 16px; }
    .table-scroll { padding-inline: 16px; }
}

/* ---------------------------------------------------------------- onlayn to'lov */
.studio-ok { padding: 12px 16px; border-radius: 12px; background: oklch(0.8 0.15 158 / 0.12); color: var(--green); font-size: 0.92rem; }
.studio-ok + .studio-warn, .studio-ok + .plan-admin { margin-top: 12px; }
.plans-lead { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; color: var(--ink-2); font-size: 0.95rem; }
.plans-lead .icon { flex: none; width: 18px; height: 18px; color: var(--amber); }
.plans-lead { flex-wrap: wrap; }
.plans-lead .pay-marks { margin-left: auto; }
@media (max-width: 760px) { .plans-lead .pay-marks { margin-left: 0; width: 100%; } }
/* Tarif kartasi: tejaladigan summa va har tarifga kiradigan narsalar */
.plan-saved { margin: -8px 0 4px; color: var(--green); font-size: 0.86rem; font-weight: 700; min-height: 1.2em; }
.plan-perks { display: grid; gap: 8px; margin: 2px 0 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.plan-perks li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; }
.plan-perks .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--green); stroke-width: 2.6; }
/* To'lov usullari: rasmiy logotiplar (frontend/img/pay); yupqa chegara -- oq logotip yorug' fonda ham ko'rinsin */
.pay-marks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm { display: block; width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px oklch(var(--veil) / 0.12); }
.order-list li .btn { margin-left: auto; }

.pay-card {
    max-width: 640px; gap: 20px; margin-top: 24px; border: 1px solid oklch(0.8 0.165 68 / 0.45);
    background: linear-gradient(oklch(0.8 0.165 68 / 0.09), transparent 46%), var(--bg-2);
}
.pay-head { display: flex; align-items: center; gap: 16px; }
.pay-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.billing .pay-head h2 { font-size: 1.3rem; }
.pay-head p { color: var(--ink-2); overflow-wrap: anywhere; }
.pay-mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); }
.pay-mark .icon { width: 24px; height: 24px; }
.pay-amount { flex: none; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.pay-check { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--bg-3); color: var(--ink-2); font-size: 0.95rem; }
.pay-check .spinner { margin-top: 0; }
.pay-card .btn-block { justify-self: stretch; }
.pay-notes { display: grid; gap: 10px; }
.pay-notes li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 0.93rem; line-height: 1.4; }
.pay-notes .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.pay-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
.pay-foot b { color: var(--ink-2); font-weight: 600; }

.pay-done {
    max-width: 640px; justify-items: center; gap: 12px; margin-bottom: 24px; padding-block: clamp(28px, 4vw, 40px); text-align: center;
    border: 1px solid oklch(0.8 0.15 158 / 0.4); background: linear-gradient(oklch(0.8 0.15 158 / 0.12), transparent 60%), var(--bg-2);
}
.billing .pay-done h2 { font-size: 1.5rem; }
.pay-done p { max-width: 46ch; color: var(--ink-2); }
.pay-done p b { color: var(--ink); }
.pay-done .muted { font-size: 0.9rem; }
.pay-done .btn { justify-self: center; margin-top: 8px; }
.pay-done-mark {
    display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%;
    background: var(--green); color: oklch(0.22 0.04 158); animation: pay-pop 0.5s var(--ease) both;
    box-shadow: 0 0 0 10px oklch(0.8 0.15 158 / 0.14);
}
.pay-done-mark .icon { width: 34px; height: 34px; stroke-width: 2.6; }
@keyframes pay-pop { from { opacity: 0; scale: 0.6; } }
@media (prefers-reduced-motion: reduce) { .pay-done-mark { animation: none; } }
@media (max-width: 600px) {
    .pay-head { flex-wrap: wrap; }
    .pay-amount { flex-basis: 100%; font-size: 1.7rem; }
    .pay-foot .btn { margin-left: auto; }
}

/* ---------------------------------------------------------------- Telegramdan olish */
.tg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.tg-form { max-width: none; }
.tg-form .btn { justify-self: start; }
.tg-code-input { max-width: 200px; font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }
.tg-account { display: flex; align-items: center; gap: 14px; }
.tg-account > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tg-account b { font-size: 1.1rem; overflow-wrap: anywhere; }
.tg-account-mark, .tg-file-mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: oklch(0.68 0.14 240 / 0.18); color: oklch(0.78 0.12 240); }
.tg-account-mark .icon, .tg-file-mark .icon { width: 24px; height: 24px; }
.tg-guide p { color: var(--ink-2); line-height: 1.55; }
.tg-guide .bot-steps { line-height: 1.5; }
.tg-guide .studio-warn { color: var(--ink-2); }
.tg-guide .studio-warn b { color: var(--amber); }
.tg-dialog { width: min(560px, calc(100vw - 24px)); }
.tg-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-3); }
.tg-file > div { min-width: 0; display: grid; gap: 3px; }
.tg-file b { overflow-wrap: anywhere; }
.tg-file .muted { font-size: 0.88rem; }
.tg-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tg-file-mark { background: var(--amber-soft); color: var(--amber); }
@media (max-width: 900px) { .tg-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- huquq egalari murojaati */
.rights .page-lead { max-width: 72ch; }
.rights-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rights-form { gap: 18px; }
.rights-form .btn { justify-self: start; }
.rights-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rights-form textarea { min-height: 0; }
.rights-kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0; }
.rights-kind legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; }
.rights-choice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-3); border: 1px solid transparent; cursor: pointer; }
.rights-choice:has(input:checked) { border-color: var(--amber); background: linear-gradient(var(--amber-soft), var(--amber-soft)), var(--bg-3); }
.rights-choice input { margin-top: 3px; accent-color: var(--amber); }
.rights-choice span { display: grid; gap: 2px; min-width: 0; }
.rights-choice small { color: var(--ink-3); font-size: 0.84rem; }
.rights-confirm { align-items: flex-start; color: var(--ink-2); font-size: 0.93rem; line-height: 1.45; }
.rights-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rights-side { display: grid; gap: 16px; }
.rights .rights-side h2 { font-size: 1.15rem; }
.rights-side p { color: var(--ink-2); line-height: 1.55; }
.rights-done { max-width: none; }

.rights-card { gap: 18px; margin-bottom: 14px; }
.rights-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rights-card > header > div { display: grid; gap: 2px; }
.studio .rights-card h2 { font-size: 1.15rem; }
.rights-card h3 { font-size: 0.95rem; font-weight: 700; }
.rights-facts { display: grid; }
.rights-facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.rights-facts div:first-child { border-top: 0; padding-top: 0; }
.rights-facts dt { color: var(--ink-3); font-size: 0.9rem; }
.rights-facts dd { overflow-wrap: anywhere; line-height: 1.5; user-select: text; }
.rights-titles { display: grid; gap: 10px; }
.rights-titles .table-list li { padding-inline: 0; }
.rights-note { display: grid; gap: 12px; }
.rights-note textarea { min-height: 0; }
.rights-log { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--ink-2); }
.rights-meta { font-size: 0.8rem; }
@media (max-width: 900px) { .rights-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
    .rights-row, .rights-kind { grid-template-columns: minmax(0, 1fr); }
    .rights-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .rights-form .btn { justify-self: stretch; }
}

/* Studio: sahifa manzili */
.slug-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.slug-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slug-row .input { flex: 1 1 220px; min-height: 44px; }
.slug-row .muted { font-size: 0.9rem; overflow-wrap: anywhere; }

/* Studio: hujjat sahifalari */
.pages-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.page-dialog { width: min(920px, calc(100vw - 24px)); }
.page-text { min-height: min(56vh, 620px); font: 0.93rem/1.6 ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: pre-wrap; }
.page-dialog code { padding: 1px 5px; border-radius: 6px; background: var(--bg-3); font-size: 0.85em; }
@media (max-width: 900px) { .pages-layout { grid-template-columns: minmax(0, 1fr); } }

.report-debug { font-size: 0.8rem; color: var(--ink-3); }
.report-debug summary { cursor: pointer; }
.report-debug pre { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; font: 0.78rem/1.5 ui-monospace, Consolas, monospace; }

.kp-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink-2); font-size: 0.92rem; }
.kp-note.is-error { border-color: var(--red-ink); }
.source-chips { margin-bottom: 10px; }

/* Foydalanuvchining kirish usuli (Telegram yoki Google) */
.user-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.via { display: inline-block; flex: none; padding: 1px 7px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; vertical-align: 1px; background: var(--bg-3); color: var(--ink-2); }
.via-tg { background: #2aabee; color: #fff; }
.via-google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }


/* To'plamlar va "Tez kunda" */
.state.is-soon { background: oklch(0.62 0.15 250 / 0.18); color: oklch(0.78 0.12 250); }
.col-admin li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.col-admin li > div { flex: 1 1 220px; display: grid; gap: 2px; }
.col-covers { display: flex; flex: none; }
.col-covers img { width: 34px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.4); }
.col-covers img + img { margin-left: -14px; }
.col-covers > .icon { width: 30px; height: 30px; color: var(--ink-3); }
.col-editor { display: grid; gap: 16px; margin-bottom: 18px; }
.col-search { position: relative; }
.col-found {
    position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); display: grid; gap: 2px; padding: 6px;
    border-radius: 12px; background: var(--bg-3); box-shadow: var(--shadow-2); max-height: 360px; overflow: auto;
}
.col-found li.muted { padding: 10px; }
.col-found button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 8px; border-radius: 8px; text-align: left; }
.col-found button:hover, .col-found button:focus-visible { background: var(--bg-4); }
.col-found button > span:not(.thumb) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.col-found button > .icon { width: 18px; height: 18px; color: var(--amber); }
.col-items li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.col-items li > div { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.col-n { width: 22px; color: var(--ink-3); font-weight: 700; text-align: right; }
.coming-box { display: grid; gap: 8px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bg-3); }
.coming-box .field-hint { margin: 0; }
.coming-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.coming-row .field { margin: 0; }
.coming-row .input { min-height: 40px; }
.coming-row .muted { display: inline-flex; align-items: center; gap: 6px; }
.coming-row .muted .icon { width: 16px; height: 16px; }
.col-group { display: grid; gap: 10px; margin-bottom: 28px; }
.col-group > h2 { font-size: 1.25rem; }
.col-group > p { max-width: 90ch; }

.old-slugs { display: grid; gap: 6px; margin-top: 12px; }
.old-slugs .field-label { margin: 0; }
.old-slugs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.old-slugs li .num { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }

/* ---------------------------------------------------------------- promo-kod (obuna sahifasi) */
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.promo-result { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; }
.promo-result .icon { width: 16px; height: 16px; }
.promo-result.is-ok { color: var(--green); }
.promo-result.is-ok b { color: var(--ink); }
.promo-result.is-bad { color: var(--red-ink); }
.plan-old { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.95rem; }

/* ---------------------------------------------------------------- studio: filmlar statistikasi, promo-kodlar, yosh */
.stats-titles { margin-top: 12px; }
.studio .stats-titles h2 { font-size: 1.15rem; }
.stats-titles .table-scroll { padding: 0; }
.title-stats { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.title-stats th, .title-stats td { padding: 9px 12px 9px 0; text-align: right; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.title-stats th { border-top: 0; }
.title-stats th button { color: var(--ink-3); font: inherit; font-weight: 500; cursor: pointer; }
.title-stats th button[aria-pressed='true'] { color: var(--ink); font-weight: 700; }
.title-stats th:first-child, .title-stats td:first-child { text-align: left; white-space: normal; }
.title-stats td:first-child { display: grid; gap: 2px; min-width: 200px; }
.title-stats small { font-size: 0.78rem; }
.title-stats-box > summary { list-style: none; cursor: pointer; }
.title-stats-box > summary::-webkit-details-marker { display: none; }
.title-stats-box .step-n .icon { width: 16px; height: 16px; }
.title-stats-box .step-body { display: grid; gap: 12px; }
.title-stats-box .kpi-grid { margin-bottom: 0; }
.title-stats-box .chart-grid-2 { margin-bottom: 0; }
.title-stats-box .panel { background: var(--bg-2); }
.title-stats-box .stats-table { margin-top: 0; }
.drop-list li { grid-template-columns: 84px minmax(0, 1fr) auto; }
.drop-list li > span:first-child { overflow: visible; }
.promo-list li { align-items: center; }
.promo-list li > div:first-child { flex: 1; display: grid; gap: 3px; min-width: 0; }
#lib-chips { scroll-margin-top: calc(var(--header-h) + 16px); }
.lib-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.lib-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.lib-pages .btn { min-width: 38px; padding-inline: 8px; }
.lib-pages .btn.is-current { background: var(--amber-fill); color: oklch(0.2 0.01 200); }
.lib-pages .icon-btn:disabled { opacity: 0.35; cursor: default; }
.promo-list li.is-off { opacity: 0.6; }
.promo-expiry[hidden] { display: none; }
.tv-admin { display: grid; gap: 18px; margin-bottom: 18px; }
.tv-admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: flex-start; }
.tv-admin-head p { max-width: 70ch; margin-top: 6px; }
.tv-admin-list li.is-live { box-shadow: inset 3px 0 0 #e52222; }
.holiday-panel { display: grid; gap: 16px; margin-bottom: 20px; }
.holiday-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.holiday-option {
    display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; text-align: left;
    background: var(--bg-3); border: 2px solid transparent; transition: border-color 0.2s, background-color 0.2s;
}
.holiday-option span { color: var(--ink-3); font-size: 0.85rem; }
.holiday-option:hover { background: var(--bg-4); }
.holiday-option[aria-pressed='true'] { border-color: var(--amber-fill); background: color-mix(in oklab, var(--amber-fill) 12%, var(--bg-3)); }
.comment-mod-body { margin: 4px 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); max-width: 80ch; }
.studio-warn-text { display: inline-flex; align-items: center; gap: 6px; color: oklch(0.75 0.16 60); font-size: 0.88rem; }
.studio-warn-text .icon { width: 15px; height: 15px; }
.studio-note { margin: -4px 0 14px; font-size: 0.9rem; }
.promo-expiry-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; width: 100%; }
.promo-expiry-form .field { flex: 0 1 190px; min-width: 0; }
/* kodni ishlatganlar: qator tagida ochiladi */
.table-list li.promo-uses { display: block; padding: 4px 0 18px; overflow-x: auto; }
.uses-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.uses-table th { padding: 8px 10px; color: var(--ink-3); font-size: 0.8rem; font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.uses-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.uses-table td:first-child { display: grid; gap: 2px; min-width: 220px; }
.uses-table td .muted { font-size: 0.82rem; }
.uses-table td:not(:first-child) { white-space: nowrap; }
.uses-table tr.is-off { opacity: 0.55; }
.uses-table s { margin-left: 4px; font-size: 0.82rem; }
.promo-code { font-size: 1.05rem; letter-spacing: 0.06em; }
.promo-input { text-transform: uppercase; }
.age-form { margin-top: 18px; }
.age-form .select { max-width: 240px; }
.promo-row .input::placeholder, .promo-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.guide-list { display: grid; gap: 4px; max-width: 520px; margin: 8px 0 4px; }
.guide-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: 12px; align-items: baseline; font-size: 0.9rem; }
.guide-list span { color: var(--ink-2); }
.guide-list small { color: var(--ink-3); font-size: 0.8rem; text-align: right; }
.guide-list .lvl-0 b { color: var(--green); }
.guide-list .lvl-2 b { color: var(--amber); }
.guide-list .lvl-3 b { color: var(--red-ink); }
.guide-list .is-weak b { color: var(--ink-3); }
.age-form .field + .field { margin-top: 18px; }
.reel-form { align-items: end; }
.reel-form .field-inline { display: grid; gap: 4px; flex: 1 1 160px; font-size: 0.82rem; }
.reel-form .field-inline .input { width: 100%; }
.reel-form .check { align-self: center; }
.reel-stats { overflow-x: auto; margin-top: 12px; }
.reel-stats .title-stats { min-width: 720px; }
.reel-stats th { color: var(--ink-3); font-weight: 500; }
.reel-stats th:first-child, .reel-stats td:first-child { text-align: left; }
.reel-stats tr.is-lead td { color: var(--amber); font-weight: 700; }
.reel-stats tr.is-lead td .muted { font-weight: 400; }
.plan-admin.promo-admin { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------------- obuna sahifasi */
/* Birinchi ekran: chapda va'da + asosiy tugma, o'ngda obuna bilan ochiladigan filmlar afishalari (yelpig'ich). */
.sub-hero {
    position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center; gap: clamp(24px, 4vw, 64px); min-height: min(520px, 62vh); padding-block: clamp(12px, 3vw, 36px) 8px;
}
.sub-hero:not(:has(.sub-art)) { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: clamp(20px, 4vw, 48px); }
.sub-hero:has(.sub-art)::before {          /* afishalar ortidagi iliq yorug'lik */
    content: ''; position: absolute; z-index: -1; right: 4%; top: 50%; width: min(560px, 60vw); aspect-ratio: 1; translate: 0 -50%;
    background: radial-gradient(closest-side, oklch(0.8 0.165 68 / 0.16), transparent); pointer-events: none;
}
.sub-hero-copy { display: grid; gap: 18px; justify-items: start; max-width: 600px; }
.sub-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.sub-hero.is-active h1 .num { color: var(--amber); white-space: nowrap; }
.sub-lead { max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.55; }
.sub-lead b { color: var(--ink); }
.sub-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sub-cta .btn-primary { box-shadow: 0 14px 30px -14px oklch(0.8 0.165 68 / 0.7); }
.sub-note { max-width: 52ch; margin-top: -6px; color: var(--ink-3); font-size: 0.86rem; }

.sub-art { position: relative; height: clamp(300px, 34vw, 440px); }
.sub-poster {
    --spread: clamp(54px, 6.2vw, 92px);
    position: absolute; left: 50%; top: 50%; width: clamp(140px, 15vw, 210px); aspect-ratio: 2 / 3; object-fit: cover;
    border-radius: 14px; background: var(--bg-3);
    translate: calc(-50% + var(--i) * var(--spread)) calc(-50% + abs(var(--i)) * 18px);
    rotate: calc(var(--i) * 7deg); z-index: calc(10 - abs(var(--i) * 2));
    box-shadow: 0 22px 40px -18px oklch(0.08 0.004 200 / 0.9), 0 2px 6px oklch(0.08 0.004 200 / 0.5);
    transition: translate 0.6s var(--ease), rotate 0.6s var(--ease);
}
.sub-art:hover .sub-poster { --spread: clamp(64px, 7vw, 104px); }
@supports not (width: abs(1px)) {             /* abs() yo'q brauzerlar: yelpig'ich tekisroq */
    .sub-poster { translate: calc(-50% + var(--i) * var(--spread)) -50%; z-index: 5; }
}

/* foydalar: kartalar emas -- bitta chiziqdagi to'rt band */
.perks {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(20px, 3vw, 36px);
    border-block: 1px solid var(--line-soft);
}
.perks li { display: flex; align-items: center; gap: 12px; padding: 18px 16px 18px 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.35; }
.perks li + li { padding-left: 18px; border-left: 1px solid var(--line-soft); }
.perks b { color: var(--ink); font-weight: 600; }
.perks .icon { flex: none; width: 22px; height: 22px; color: var(--amber); }

/* birinchi ekrandagi promo-kod havolasi -- pastdagi bo'limga olib boradi */
.sub-promo-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; font-size: 0.94rem; transition: color 0.2s; }
.sub-promo-link:hover { color: var(--ink); }
.sub-promo-link .icon { width: 16px; height: 16px; color: var(--amber); }

/* promo-kod bo'limi: chapda taklif va maydon, o'ngda qadamlar */
.promo-sec { scroll-margin-top: calc(var(--header-h) + 16px); }
.promo-card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden;
    background: linear-gradient(120deg, color-mix(in oklab, var(--amber-fill) 9%, transparent), transparent 46%), var(--bg-2);
}
.promo-main { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 36px); }
.promo-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.promo-kicker .icon { width: 16px; height: 16px; }
.promo-main h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.promo-main p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.promo-main .muted { color: var(--ink-3); font-size: 0.9rem; }
.promo-form { display: grid; gap: 8px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.promo-form label { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.promo-guide {
    display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 36px); border-left: 1px solid var(--line-soft);
    color: var(--ink-2); font-size: 0.92rem; line-height: 1.5;
}
.promo-guide > b { color: var(--ink); font: 700 1rem var(--font-display); }
.promo-guide ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.promo-guide li { position: relative; padding-left: 36px; counter-increment: step; }
.promo-guide li::before {
    content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    background: var(--amber-soft); color: var(--amber); font: 700 0.78rem/1 var(--font-display);
}
.promo-sec code { padding: 1px 7px; font-family: inherit; border-radius: 6px; background: var(--bg-4); color: var(--ink); font-weight: 700; letter-spacing: 0.04em; user-select: all; }
.promo-guide p { margin: 0; color: var(--ink-3); font-size: 0.86rem; }
.promo-guide p b { color: var(--ink-2); }
@media (max-width: 900px) {
    .promo-card { grid-template-columns: minmax(0, 1fr); }
    .promo-guide { border-left: 0; border-top: 1px solid var(--line-soft); }
}

/* bot orqali olish: uch qadam, chiziq bilan bog'langan */
.sub-steps h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 22px; }
.sub-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: none; }
.sub-steps li { position: relative; display: grid; gap: 6px; align-content: start; }
.sub-steps li b { font: 700 1.08rem var(--font-display); }
.sub-steps li p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; max-width: 34ch; }
.step-n {
    display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%;
    background: var(--amber-soft); color: var(--amber); font: 800 1rem var(--font-display);
}
.sub-steps li:not(:last-child)::after {
    content: ''; position: absolute; top: 19px; left: 50px; right: calc(-1 * clamp(16px, 3vw, 40px) + 12px); height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

@media (max-width: 900px) {
    .sub-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; padding-top: 0; }
    .sub-art {
        order: -1; height: clamp(190px, 52vw, 260px); margin-inline: -16px; overflow: hidden;
        -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
    }
    .sub-poster { width: clamp(104px, 28vw, 150px); --spread: clamp(44px, 12vw, 70px); }
    .sub-hero:has(.sub-art)::before { right: 50%; top: 18%; translate: 50% -50%; width: 90vw; }
    .sub-hero:not(:has(.sub-art)) { padding-top: 16px; }
    .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .perks li:nth-child(3) { padding-left: 0; border-left: 0; }
    .perks li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
    .sub-steps ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .sub-steps li { grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; }
    .sub-steps .step-n { grid-row: span 2; margin: 0; }
    .sub-steps li:not(:last-child)::after { top: 44px; bottom: -14px; left: 19px; right: auto; width: 1px; height: auto; background: var(--line); }
}
@media (max-width: 560px) {
    .sub-cta { display: grid; width: 100%; }
    .sub-cta .btn { width: 100%; }
    .perks li { padding-block: 14px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sub-poster { transition: none; }
}

/* ---------------------------------------------------------------- audio tekshiruv */
.audio-check-lead { max-width: 80ch; margin: 4px 0 18px; font-size: 0.9rem; }
.track-order { display: grid; gap: 12px; margin: 4px 0 18px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--bg-2); }
.track-order h3 { margin: 0 0 4px; }
.track-order .muted { margin: 0; max-width: 80ch; font-size: 0.88rem; }
.track-order-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.track-order-list li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border: 1px solid var(--line-soft); border-radius: 999px; }
.track-order-list li.muted { border: 0; padding: 0; }
.track-order-n { min-width: 1.4em; color: var(--amber); font-weight: 700; }
.track-order-list .btn { min-width: 30px; padding-inline: 4px; }
.track-order-list .btn:disabled { opacity: 0.3; }
.track-order .select { flex: 0 1 220px; width: auto; min-height: 38px; }
.audio-check { display: grid; gap: 14px; }
.audio-owner { padding: 16px 18px; border-radius: var(--r-lg); background: var(--bg-2); }
.audio-owner header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 10px; font-weight: 700; }
.audio-owner header .muted { font-weight: 400; font-size: 0.86rem; }
.audio-owner ul { display: grid; gap: 2px; }
.audio-owner li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.audio-owner li .state { justify-self: start; }
.audio-owner li p { font-size: 0.92rem; line-height: 1.45; }
.audio-tracks { margin-top: 2px; font-size: 0.82rem !important; }
@media (max-width: 760px) {
    .audio-owner li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .audio-owner li .btn { justify-self: start; }
}
.audio-manual { display: flex; gap: 6px; align-items: center; }
.audio-manual .select { width: auto; min-height: 34px; padding-block: 0; font-size: 0.86rem; }

/* ---------------------------------------------------------------- studio: server holati */
.srv {
    --s1: oklch(0.665 0.15 62);     /* grafik: 1-qator (amber) -- palitra tekshiruvidan o'tgan juftlik */
    --s2: oklch(0.63 0.13 250);     /* grafik: 2-qator (ko'k) */
    display: grid; gap: 14px;
}
:root[data-theme='light'] .srv { --s1: oklch(0.58 0.15 58); --s2: oklch(0.52 0.14 250); }
.srv h2 { font-size: 1.12rem; }
.srv h3 { margin-top: 4px; color: var(--ink-3); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.srv code { font-size: 0.82rem; color: var(--ink-2); overflow-wrap: anywhere; }
.srv-small { font-size: 0.82rem; }
.srv-bad { color: var(--red-ink); font-weight: 700; }

.srv-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px 24px; }
.srv-head > div { display: grid; gap: 18px; min-width: 0; }
.srv-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.srv-id h2 { font-size: 1.6rem; overflow-wrap: anywhere; }
.srv-id p { font-size: 0.92rem; }
.srv-host-mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); }
.srv-host-mark .icon { width: 26px; height: 26px; }
.srv-run { white-space: nowrap; }

.srv-facts { display: grid; }
.srv-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.srv-facts div:first-child { border-top: 0; }
.srv-facts dt { color: var(--ink-3); font-size: 0.88rem; }
.srv-facts dd { font-weight: 600; text-align: right; }
.srv-head .srv-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; }
.srv-head .srv-facts div { display: grid; gap: 2px; justify-content: start; padding: 0; border: 0; }
.srv-head .srv-facts dd { text-align: left; }

.srv-checks header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.srv-checks header .muted { margin-left: auto; font-size: 0.84rem; }
.srv-checks ul { display: grid; }
.srv-check { display: grid; grid-template-columns: 28px minmax(140px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.srv-check:first-child { border-top: 0; }
.srv-check-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; padding: 0; }
.srv-check-mark .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.srv-check-detail { color: var(--ink-2); font-size: 0.92rem; }
.srv-check .muted { font-size: 0.8rem; }

.srv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.srv-tile { gap: 4px; padding: 18px 20px 14px; }
.srv-tile header { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.88rem; }
.srv-value { font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.srv-note { color: var(--ink-3); font-size: 0.82rem; min-height: 1.3em; }
.srv-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; }
.srv-legend i { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: var(--s1); }
.srv-legend i.s2 { background: var(--s2); margin-left: 6px; }

.srv-chart { display: grid; gap: 4px; margin-top: 10px; padding-left: 44px; }
.srv-chart.is-empty { place-items: center; height: 120px; padding: 0; font-size: 0.84rem; }
.srv-plot { position: relative; height: 96px; }
.srv-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.srv-line { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.srv-line.s2 { stroke: var(--s2); }
.srv-area { fill: var(--s1); opacity: 0.14; stroke: none; }
.srv-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); pointer-events: none; }
.srv-plot .chart-tip b { font-size: 0.84rem; }
.srv-axis { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.72rem; }

.srv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.srv-wide { grid-column: 1 / -1; }
.srv-grid .panel { gap: 12px; }

.srv-meter { display: grid; gap: 6px; }
.srv-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; }
.srv-meter-head small { margin-left: 6px; font-size: 0.76rem; }
.srv-meter-head b { font-weight: 600; font-size: 0.84rem; white-space: nowrap; }
.srv-meter .bar { height: 8px; }
.srv-meter .bar.is-warn i { background: var(--amber); }
.srv-meter .bar.is-bad i { background: var(--crimson); }
.srv-cores { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 54px; margin-top: 4px; }
.srv-cores span { display: flex; align-items: flex-end; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.srv-cores i { flex: 1; border-radius: 4px 4px 0 0; background: var(--s1); }

.srv-procs, .srv-tables, .srv-slow, .srv-failed { display: grid; }
.srv-procs li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 0.9rem; }
.srv-procs li:first-child { border-top: 0; }
.srv-procs li > .num:last-child { margin-left: auto; color: var(--ink-2); }
.srv-tables li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 72px 90px; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.86rem; }
.srv-tables li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-tables b { font-weight: 600; text-align: right; }
.srv-tables small { text-align: right; }
.srv-slow li, .srv-failed li { display: grid; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.srv-slow li:first-child, .srv-failed li:first-child { border-top: 0; }
.srv-failed li { grid-template-columns: minmax(0, 1fr) auto; }
.srv-failed code { grid-column: 1 / -1; color: var(--red-ink); }
.srv-states { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-access { display: grid; gap: 16px; max-width: 760px; }
.voice-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.voice-list li > .btn { margin-left: auto; }
.voice-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.voice-pick > div:first-child { display: grid; gap: 2px; min-width: 0; }
.voice-select { width: min(100%, 260px); }
@media (max-width: 640px) { .voice-form { grid-template-columns: minmax(0, 1fr); } }
.srv-queue { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.srv-queue p { margin: 0; font-size: 0.88rem; }
.srv-queue label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }

.srv-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; }
.srv-status-item { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); }
.srv-status-item span { color: var(--ink-3); font-size: 0.8rem; }
.srv-status-item b { font-size: 1.15rem; }
.srv-status-item.is-bad b { color: var(--red-ink); }
.srv .table-scroll { padding: 0; }
.srv-routes { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.srv-routes th { color: var(--ink-3); font-weight: 600; font-size: 0.8rem; text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.srv-routes td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.srv-routes th:first-child, .srv-routes td:first-child { text-align: left; padding-left: 0; }
.srv-routes tr:last-child td { border-bottom: 0; }

.srv-log { display: grid; }
.srv-log li { border-top: 1px solid var(--line-soft); }
.srv-log li:first-child { border-top: 0; }
.srv-log summary { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; list-style: none; font-size: 0.88rem; }
.srv-log summary::-webkit-details-marker { display: none; }
.srv-log-src { white-space: nowrap; }
.srv-log-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-log pre { margin: 0 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); color: var(--ink-2); font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }

@media (max-width: 1200px) {
    .srv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .srv-grid { grid-template-columns: minmax(0, 1fr); }
    .srv-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .srv-status-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .srv-head { grid-template-columns: minmax(0, 1fr); }
    .srv-kpis { grid-template-columns: minmax(0, 1fr); }
    .srv-check { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .srv-check-detail { grid-column: 2 / -1; }
    .srv-log summary { grid-template-columns: auto auto minmax(0, 1fr); }
    .srv-log-src { display: none; }
    .srv-tables li { grid-template-columns: minmax(0, 1fr) 70px 64px; }
    .srv-tables small { display: none; }
}
/* Audio tekshiruv: subtitr yo'lagi haqidagi xabar belgisi */
.audio-kind { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--bg-3); color: var(--ink-2); font-size: 0.74rem; font-weight: 700; vertical-align: 1px; }

/* ---------------------------------------------------------------- studio: saqlash joyi (R2) */
/* Turkum ranglari tur bilan bog'langan (video, audio, treyler, rasm, asl fayl) -- palitra tekshiruvidan o'tgan
   (qorong'i va yorug' fon uchun alohida). "Boshqa" -- neytral, "keraksiz" -- holat rangi (yozuv bilan birga). */
.sto {
    --g-video: #d37b0d; --g-audio: #2b7ec9; --g-trailers: #29a895; --g-images: #8048b6; --g-source: #739b33;
    --g-other: var(--ink-3); --g-junk: var(--crimson);
}
:root[data-theme='light'] .sto { --g-video: #c06400; --g-audio: #0465af; --g-trailers: #009083; --g-images: #753ba8; --g-source: #698e2f; }
.sto .g-video { --g: var(--g-video); }
.sto .g-audio { --g: var(--g-audio); }
.sto .g-trailers { --g: var(--g-trailers); }
.sto .g-images { --g: var(--g-images); }
.sto .g-source { --g: var(--g-source); }
.sto .g-other { --g: var(--g-other); }
.sto .g-junk { --g: var(--g-junk); }

.sto-head { gap: 20px; }
.sto-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sto-top .srv-id p { font-size: 0.86rem; }
.sto .sto-top h2.display { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.sto-run { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sto-run .video-error { margin: 0; max-width: 420px; font-size: 0.86rem; }
.sto-progress { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; background: var(--bg-3); }
.sto-progress div { display: grid; gap: 2px; }
.sto-progress small { font-size: 0.8rem; }

/* Bitta to'liq ustun: har bir tur -- ulushiga teng bo'lak, orasida 2px bo'shliq. */
.sto-stack { display: flex; gap: 2px; height: 18px; border-radius: 6px; overflow: hidden; }
.sto-stack span { min-width: 3px; flex-basis: 0; background: var(--g); transition: filter 0.2s; }
.sto-stack span:hover { filter: brightness(1.15); }
.sto-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 24px; }
.sto-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.sto-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--g); }
.sto-legend span { font-size: 0.92rem; }
.sto-legend span .state { margin-left: 6px; padding: 1px 8px; font-size: 0.72rem; vertical-align: 1px; }
.sto-legend span .state .icon { width: 11px; height: 11px; }
.sto-legend b { font-weight: 700; text-align: right; }
.sto-legend small { grid-column: 2 / -1; font-size: 0.78rem; }
.sto-head .srv-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 18px; }
.sto-head .srv-facts div { display: grid; gap: 2px; justify-content: start; padding: 0; border: 0; }
.sto-head .srv-facts dd { text-align: left; }

.sto .srv-tile .srv-value { font-size: 1.6rem; }
.sto .srv-chart { padding-left: 64px; }

.sto-bars { display: grid; gap: 2px; }
.sto-bars li { display: grid; grid-template-columns: minmax(120px, 1.5fr) minmax(60px, 1.5fr) 72px 56px; align-items: center; gap: 12px; padding: 6px 0; font-size: 0.9rem; }
.sto-bars-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sto-bars-track { height: 10px; border-radius: 0 4px 4px 0; background: var(--bg-3); overflow: hidden; }
.sto-bars-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--g-video); transition: width 0.4s var(--ease); }
#sto-audio .sto-bars-track i { background: var(--g-audio); }
#sto-images .sto-bars-track i { background: var(--g-images); }
#sto-images .sto-bars li[class*='g-'] .sto-bars-track i { background: var(--g); }
.sto-bars b { font-weight: 600; text-align: right; }
.sto-bars small { text-align: right; font-size: 0.78rem; }
.sto-widths { display: flex; flex-wrap: wrap; gap: 6px; }
.sto-widths span { padding: 4px 10px; border-radius: 8px; background: var(--bg-3); color: var(--ink-2); font-size: 0.82rem; }
.sto-widths b { color: var(--ink); font-weight: 600; margin-right: 4px; }

.sto-owners-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.sto-owners-head .input { width: min(100%, 280px); min-height: 38px; }
.sto-owners { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sto-owners th { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); font-size: 0.8rem; font-weight: 600; text-align: left; white-space: nowrap; }
.sto-owners td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.sto-owners th:first-child, .sto-owners td:first-child { padding-left: 0; }
.sto-owners tr:last-child td { border-bottom: 0; }
.sto-owners th.num, .sto-total-cell { text-align: right; }
.sto-total-cell { font-weight: 700; white-space: nowrap; }
.sto-owner { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.sto-owner:hover b { color: var(--amber); }
.sto-owner > span:last-child { display: grid; gap: 2px; min-width: 0; }
.sto-owner b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sto-owner small { font-size: 0.78rem; }
.sto-owner .thumb { flex: none; }
.sto-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sto-chip { padding: 2px 8px; border-radius: 6px; background: var(--bg-3); color: var(--ink-2); font-size: 0.78rem; white-space: nowrap; }
.sto-chip b { color: var(--ink); font-weight: 600; }
.sto-chip.is-uhd { background: var(--amber-soft); color: var(--amber); }
.sto-chip.is-uhd b { color: var(--amber); }
.sto-chip.is-audio { background: oklch(0.63 0.13 250 / 0.14); }
.sto-share-col { width: 150px; }
.sto-share-col .bar { display: inline-block; width: 90px; margin-right: 8px; vertical-align: middle; }
.sto-share-col .bar i { background: var(--g-video); }
.sto-share-col small { font-size: 0.78rem; }

.sto-warn-panel { border: 1px solid oklch(0.8 0.165 68 / 0.35); }
.sto-warn-panel h2 { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.sto-warn-panel h2 .icon { width: 18px; height: 18px; }
.sto-doubles { display: grid; gap: 12px; }
.sto-doubles > li { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.sto-doubles > li:first-child { padding-top: 0; border-top: 0; }
.sto-doubles ul { display: grid; gap: 6px; padding-left: 60px; }
.sto-doubles ul li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.88rem; }
.sto-doubles ul li b { margin-left: auto; }
.sto-doubles ul li small { flex-basis: 100%; font-size: 0.78rem; }

.sto-files { display: grid; }
.sto-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 0.88rem; }
.sto-files li:first-child { border-top: 0; }
.sto-files li > span { display: grid; gap: 2px; min-width: 0; }
.sto-files li > span b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sto-files code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; color: var(--ink-3); }
.sto-files small { font-size: 0.78rem; }
.sto-files li > b { text-align: right; }

.sto-junk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sto-junk { display: grid; }
.sto-junk li { border-top: 1px solid var(--line-soft); }
.sto-junk li:first-child { border-top: 0; }
.sto-junk summary, .sto-junk-plain { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.9rem; }
.sto-junk summary { cursor: pointer; list-style: none; }
.sto-junk summary::-webkit-details-marker { display: none; }
.sto-junk summary span::before { content: "\203A"; display: inline-block; width: 14px; color: var(--ink-3); transition: rotate 0.2s; }
.sto-junk details[open] summary span::before { rotate: 90deg; }
.sto-junk b { text-align: right; }
.sto-junk details code { display: block; margin: 0 0 6px 14px; color: var(--ink-3); font-size: 0.76rem; overflow-wrap: anywhere; }
.sto-junk.is-compact { padding: 4px 14px; border-radius: 12px; background: var(--bg-3); }
.sto-unknown { display: grid; gap: 4px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); }
.sto-unknown code { font-size: 0.76rem; color: var(--ink-3); overflow-wrap: anywhere; }

.sto-done { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid oklch(0.8 0.15 158 / 0.35); }
.sto-done > .icon { width: 22px; height: 22px; color: var(--green); }
.sto-done div { display: grid; gap: 2px; }
.sto-dialog { width: min(520px, calc(100vw - 32px)); }
.sto-dialog .studio-dialog-body { display: grid; gap: 14px; }
.sto-confirm { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }

@media (max-width: 760px) {
    .sto-run { align-items: stretch; width: 100%; }
    .sto-share-col { display: none; }
    .sto-doubles ul { padding-left: 0; }
    /* Ustun: nomi va qiymati tepada, chiziq ostida -- uzun nomlar kesilmaydi. */
    .sto-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
    .sto-bars-label { white-space: normal; }
    .sto-bars-track { grid-column: 1 / -1; grid-row: 2; }
    .sto-bars small { display: none; }
    /* Filmlar jadvali kartochkalarga aylanadi: nomi va jami tepada, sifatlar ostida. */
    .sto-owners thead { display: none; }
    .sto-owners, .sto-owners tbody { display: block; }
    .sto-owners tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
    .sto-owners tr:last-child { border-bottom: 0; }
    .sto-owners td { padding: 0; border: 0; }
    .sto-owners td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .sto-files li { grid-template-columns: minmax(0, 1fr) auto; }
    .sto-files li > small { display: none; }
}

/* ================================================================ studio: ilova qobig'i
   Chap panel (guruhlangan bo'limlar, nishonlar, qidiruv) + to'liq kenglikdagi ish maydoni. Sayt futeri yashiriladi.
   1100px dan tor ekranda panel chapdan chiqadigan menyuga aylanadi. */
body.is-studio .site-footer { display: none; }
body.is-studio main { padding-bottom: 56px; }

.studio-app {
    --sn-w: 252px;
    display: grid; grid-template-columns: var(--sn-w) minmax(0, 1fr); gap: 0 36px; align-items: start;
    width: 100%; max-width: 1840px; margin-inline: auto; padding: 20px var(--gutter) 0;
}
.studio-main { min-width: 0; }


/* ---- chap panel */
.studio-nav {
    position: sticky; top: calc(var(--header-h) + 16px);
    display: flex; flex-direction: column; gap: 16px;
    max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 4px 12px 0; scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}
.sn-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sn-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.sn-brand > span:last-child { display: grid; line-height: 1.2; }
.sn-brand b { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.sn-brand small { color: var(--ink-3); font-size: 0.76rem; }
.sn-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--amber-soft); color: var(--amber); }
.sn-mark .icon { width: 20px; height: 20px; }
.sn-close { display: none; }

.sn-find {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 8px 0 12px;
    border: 1px solid var(--line-soft); border-radius: 11px; background: var(--bg-2); color: var(--ink-3);
    font: inherit; font-size: 0.9rem; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.sn-find:hover { border-color: var(--line); color: var(--ink-2); }
.sn-find .icon { width: 17px; height: 17px; }
.sn-find span { flex: 1; text-align: left; }
.studio-app kbd, .finder kbd {
    padding: 2px 7px; border-radius: 6px; background: var(--bg-3); color: var(--ink-3);
    font: 600 0.7rem/1.4 var(--font-body); letter-spacing: 0.02em; white-space: nowrap;
}

.sn-groups { display: grid; gap: 18px; }
.sn-label { margin: 0 0 4px 10px; color: var(--ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sn-group ul { display: grid; gap: 1px; }
.sn-link {
    display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 0 10px; border-radius: 9px;
    color: var(--ink-2); font-size: 0.92rem; font-weight: 500; transition: background-color 0.15s, color 0.15s;
}
.sn-link .icon { width: 18px; height: 18px; color: var(--ink-3); transition: color 0.15s; }
.sn-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-link:hover { background: oklch(var(--veil) / 0.05); color: var(--ink); }
.sn-link:hover .icon { color: var(--ink-2); }
.sn-link[aria-current] { background: var(--bg-3); color: var(--ink); font-weight: 600; }
.sn-link[aria-current] .icon { color: var(--amber); }
.sn-link:focus-visible, .sn-find:focus-visible, .studio-switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sn-badge {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
    background: var(--amber-fill); color: var(--amber-ink); font-size: 0.72rem; font-weight: 700;
}

/* ---- sahifa sarlavhasi */
.studio-head { display: flex; align-items: center; gap: 14px; margin: 2px 0 24px; }
.studio-head-ic {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: var(--bg-2); color: var(--amber); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.studio-head-ic .icon { width: 22px; height: 22px; }
.studio-head h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.studio-head p { margin-top: 2px; color: var(--ink-3); font-size: 0.92rem; }
.studio-mbar { display: none; }

/* Bo'lim ichidagi panellar: bir xil ichki ritm. */
.studio-main .tab-panel { padding-top: 0; }
.studio-main .tab-panel > .panel + .panel, .studio-main .tab-panel > section + section { margin-top: 14px; }

/* ---- tezkor qidiruv (Ctrl+K) */
.finder {
    width: min(640px, calc(100vw - 24px)); max-height: min(560px, 76dvh); margin: 12dvh auto auto; padding: 0;
    border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-2); color: var(--ink);
    box-shadow: var(--shadow-2); overflow: hidden;
}
.finder[open] { display: flex; flex-direction: column; animation: finder-in 0.18s var(--ease); }
.finder::backdrop { background: oklch(0.1 0.004 200 / 0.55); }
@keyframes finder-in { from { opacity: 0; transform: translateY(-6px) scale(0.985); } }
.finder-field { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-3); }
.finder-field .icon { width: 20px; height: 20px; }
.finder-field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; outline: none; }
.finder-field input::placeholder { color: var(--ink-3); }
.finder-field input::-webkit-search-cancel-button { display: none; }
.finder-list { overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.finder-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; color: var(--ink-3); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.finder-head .spinner { width: 12px; height: 12px; }
.finder-empty { padding: 18px 12px; color: var(--ink-3); font-size: 0.9rem; text-align: center; }
.finder-list [role=option] { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.finder-list [role=option][aria-selected="true"] { background: var(--bg-3); }
.finder-list [role=option] > span:last-child { display: grid; gap: 1px; min-width: 0; }
.finder-list b { font-size: 0.94rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-list small { color: var(--ink-3); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-3); color: var(--amber); }
.finder-list [aria-selected="true"] .finder-ic { background: var(--bg-4); }
.finder-ic .icon { width: 18px; height: 18px; }
.finder-list .thumb { width: 34px; height: 48px; border-radius: 6px; }

/* ---- tor ekran: panel -> chapdan chiqadigan menyu */
@media (max-width: 1100px) {
    .studio-app { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
    .studio-nav {
        position: fixed; inset: 0 auto 0 0; z-index: 140; width: min(300px, 86vw); max-height: none;
        padding: 16px 14px 24px; background: var(--bg-2); box-shadow: var(--shadow-2);
        transform: translateX(-104%); visibility: hidden; transition: transform 0.24s var(--ease), visibility 0s 0.24s;
    }
    .studio-app.is-menu .studio-nav { transform: none; visibility: visible; transition: transform 0.24s var(--ease); }
    .sn-close { display: inline-grid; }
    .studio-scrim { position: fixed; inset: 0; z-index: 135; background: oklch(0.1 0.004 200 / 0.5); animation: scrim-in 0.2s ease; }
    @keyframes scrim-in { from { opacity: 0; } }
    .studio-mbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
    .studio-switch {
        flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 14px;
        border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-2); color: var(--ink);
        font: inherit; font-weight: 600; cursor: pointer;
    }
    .studio-switch .icon { width: 19px; height: 19px; color: var(--ink-3); }
    .studio-switch span { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .studio-head { margin-bottom: 18px; }
    .studio-head h1 { font-size: 1.3rem; }
}
@media (max-width: 640px) {
    .studio-head-ic { display: none; }
    .finder { margin-top: 8dvh; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-nav, .finder[open], .studio-scrim { transition: none; animation: none; }
}

/* ---- yon menyuni yig'ish (kompyuter): faqat ikonkalardan iborat tor ustun; nomi -- sichqoncha ustida (title) */
.studio-app { transition: grid-template-columns 0.24s var(--ease); }
.sn-fold { flex: none; width: 32px; height: 32px; color: var(--ink-3); }
.sn-fold .icon { width: 18px; height: 18px; transition: rotate 0.24s var(--ease); }
.sn-fold:hover { color: var(--ink); }
@media (min-width: 1101px) {
    .studio-app.is-folded { --sn-w: 56px; column-gap: 28px; }
    .is-folded .studio-nav { padding-right: 0; align-items: center; }
    .is-folded .sn-top { flex-direction: column; gap: 10px; }
    .is-folded .sn-brand > span:last-child,
    .is-folded .sn-find span, .is-folded .sn-find kbd,
    .is-folded .sn-link span { display: none; }
    .is-folded .sn-fold .icon { rotate: 180deg; }
    .is-folded .sn-find { width: 44px; justify-content: center; padding: 0; }
    .is-folded .sn-groups { gap: 10px; justify-items: center; }
    /* Guruh nomi o'rnida ingichka ajratgich -- guruhlar baribir ko'rinib turadi. */
    .is-folded .sn-label { width: 24px; height: 1px; margin: 4px auto 8px; overflow: hidden; background: var(--line-soft); color: transparent; }
    .is-folded .sn-group:first-child .sn-label { display: none; }
    .is-folded .sn-link { position: relative; justify-content: center; width: 44px; min-height: 40px; padding: 0; }
    .is-folded .sn-link .icon { width: 19px; height: 19px; }
    /* Nishon -- ikonkaning burchagida kichik nuqta (soni sichqoncha ustida, title'da). */
    .is-folded .sn-badge { position: absolute; top: 6px; right: 7px; min-width: 9px; height: 9px; padding: 0; overflow: hidden; color: transparent; box-shadow: 0 0 0 2px var(--bg); }
}
@media (max-width: 1100px) {
    .sn-fold { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .studio-app, .sn-fold .icon { transition: none; }
}

/* Film ochish oynasi: qidiruv natijalari va ochilgan filmlar */
.grant-dialog { width: min(620px, calc(100vw - 24px)); }
.grant-list { display: grid; gap: 2px; }
.grant-list:empty { display: none; }
.grant-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; }
.grant-list li:hover { background: var(--bg-3); }
.grant-list .thumb { width: 34px; height: 48px; border-radius: 6px; }
.grant-main { display: grid; gap: 2px; min-width: 0; }
.grant-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.grant-main small { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grant-empty { display: block !important; padding: 12px 6px; font-size: 0.9rem; }

/* Treyler topishga yordamchi */
.trailer-finder { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 12px; }
.trailer-finder summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.trailer-finder summary::-webkit-details-marker { display: none; }
.trailer-finder summary .icon { width: 17px; height: 17px; color: var(--amber); }
.trailer-finder-body { display: grid; gap: 12px; padding: 4px 14px 14px; }
.trailer-results { display: grid; gap: 6px; }
.trailer-results li { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; }
.trailer-results li:hover { background: var(--bg-3); }
.trailer-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-3); color: var(--ink-3); }
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trailer-meta { display: grid; gap: 6px; min-width: 0; }
.trailer-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.trailer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.82rem; }
.trailer-tags .state { min-height: 22px; font-size: 0.74rem; }
.trailer-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.88rem; }
.trailer-tmdb { font-size: 0.86rem; }
@media (max-width: 760px) { .trailer-results li { grid-template-columns: 96px minmax(0, 1fr); } .trailer-results .row-actions { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- foydalanuvchilar: ro'yxat */
.users-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 16px; }
.users-top .studio-search { flex: 1 1 280px; max-width: none; margin: 0; }
.users-top .studio-search, .users-top .select { min-height: 48px; }
.users-top .select { flex: 0 0 220px; width: auto; }
#user-status { margin-bottom: 10px; }
/* Kirish usuli -- ikkinchi darajali filtr: kichik, tanlangani oq emas, yumshoq */
.users-via { align-items: center; gap: 6px; margin: 0 0 6px; }
.users-via-label { margin-right: 4px; color: var(--ink-3); font-size: 0.82rem; white-space: nowrap; }
.users-via .chip[aria-pressed='true'] { background: var(--bg-4); color: var(--ink); box-shadow: inset 0 0 0 1px oklch(var(--veil) / 0.18); }
.chip.chip-sm { min-height: 30px; padding-inline: 10px; font-size: 0.8rem; }
.dot-live { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 oklch(0.8 0.15 158 / 0.6); animation: live-pulse 2s infinite; vertical-align: 1px; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 6px oklch(0.8 0.15 158 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.8 0.15 158 / 0); } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.users-count { margin: 14px 0 8px; font-size: 0.86rem; }
.users-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* Belgilar (obuna, admin...) va tomosha vaqti -- qat'iy kenglikdagi ustunlar: har qatorda bir xil joyda turadi */
.urow {
    display: grid; grid-template-columns: auto minmax(0, 1fr) 236px 96px 20px; align-items: center; gap: 14px;
    width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-md); background: var(--bg-2); color: inherit;
    text-align: left; font: inherit; cursor: pointer; transition: background 0.15s;
}
.urow:hover { background: var(--bg-3); }
.urow:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.urow.is-off { opacity: 0.55; }
.urow-ava { position: relative; }
.urow-main { display: grid; gap: 3px; min-width: 0; }
.urow-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.urow-name b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Joy yetmasa avval @username qisqaradi, keyin ism */
.urow-name .muted { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 0.86rem; white-space: nowrap; }
.urow-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; }
.urow-tags { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.urow-watch { display: inline-flex; align-items: center; gap: 6px; min-width: 92px; justify-content: flex-end; color: var(--ink-2); font-size: 0.86rem; white-space: nowrap; }
.urow-watch .icon { width: 14px; height: 14px; color: var(--amber); }
.urow-go { color: var(--ink-3); display: grid; place-items: center; }
.urow-go .icon { width: 18px; height: 18px; }
.uavatar {
    position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--amber-soft); color: var(--amber); font-weight: 700; font-size: 0.95rem; flex: none;
}
.uavatar img { width: 100%; height: 100%; object-fit: cover; }
.uavatar.is-lg { width: 76px; height: 76px; font-size: 1.5rem; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--bg-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.via-telegram { background: #2aabee; color: #fff; }
@media (max-width: 760px) {
    /* Telefonda filtrlar bitta qatorda, yonga suriladi */
    #user-status, #user-via { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
    #user-status::-webkit-scrollbar, #user-via::-webkit-scrollbar { display: none; }
    #user-status .chip, #user-via .chip { flex: none; }
    .users-top .select { flex: 1 1 100%; }
    #user-via .users-via-label { flex: none; }
    .urow { grid-template-columns: auto minmax(0, 1fr) 20px; gap: 8px 12px; }
    .urow-tags, .urow-watch { grid-column: 2; justify-content: flex-start; }
    .urow-go { grid-column: 3; grid-row: 1; }
    .urow-watch { min-width: 0; }
    .urow-tags:empty, .urow-watch:empty { display: none; }
}

/* ---------------------------------------------------------------- foydalanuvchi profili */
.studio-dialog.uprof { width: min(1040px, calc(100vw - 24px)); height: min(860px, calc(100dvh - 32px)); }
.uprof-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 240px; color: var(--ink-3); }
/* .studio-dialog header (flex, space-between) bu sarlavhani buzmasin: grid va o'z oraliqlari */
.studio-dialog .uprof-head {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; justify-content: normal; gap: 18px; align-items: start;
    padding: 22px 16px 18px 24px;
}
.uprof-head .icon-btn { margin-top: -4px; }
.uprof-ava { position: relative; }
.uprof-ava .online-dot { width: 16px; height: 16px; right: 2px; bottom: 2px; }
.uprof-id { display: grid; gap: 6px; min-width: 0; }
.uprof-id h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; overflow-wrap: anywhere; }
.uprof-id > p { margin: 0; overflow-wrap: anywhere; }
.uprof-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.uprof-tags .via { padding: 4px 9px; font-size: 0.78rem; }
.uprof-now { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-sm); background: oklch(0.8 0.15 158 / 0.12); color: var(--ink); font-size: 0.9rem; width: fit-content; }
.uprof-now .icon { width: 14px; height: 14px; color: var(--green); }
.kpi-grid.uprof-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 18px 24px 8px; flex: none; }
.uprof-kpis .kpi { padding: 14px 16px; background: var(--bg-3); }
.uprof-kpis .kpi > b { font-size: 1.25rem; }
.uprof .uprof-tabs { margin: 0; padding: 0 24px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; flex: none; }
.studio-dialog.uprof:focus, .studio-dialog.uprof:focus-visible { outline: none; }
.uprof-tabs .tab { white-space: nowrap; }
.uprof-body { flex: 1; align-content: start; gap: 22px; padding-top: 20px; }
.uprof-body h3 { margin: 0 0 10px; font-size: 1rem; }
.uprof-body section { min-width: 0; }
.uprof-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.uprof-bar p, .uprof-bar h3 { margin: 0; }
.uprof-bar .muted { max-width: 70ch; font-size: 0.88rem; }
.uprof-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.kpi-grid.uprof-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.uprof-mini .kpi { padding: 12px 14px; background: var(--bg-3); }
.uprof-mini .kpi > b { font-size: 1.2rem; }

/* 30 kunlik ustunli grafik: filmlar (amber) + TV (ko'k) ustma-ust */
.uchart { padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-3); }
.uchart.is-empty { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.uchart.is-empty .muted { font-size: 0.9rem; }
.uchart-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.uchart-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 0.8rem; }
.uchart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.uchart .s1 { background: var(--amber); }
.uchart .s2 { background: oklch(0.7 0.13 245); }
.uchart-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; }
.uchart-col { position: relative; display: flex; flex-direction: column-reverse; height: 100%; border-radius: 4px; background: oklch(1 0 0 / 0.03); outline: none; overflow: visible; }
.uchart-col i { display: block; width: 100%; }
.uchart-col i:last-child { border-radius: 4px 4px 0 0; }
.uchart-col:hover, .uchart-col:focus-visible { background: oklch(1 0 0 / 0.08); }
.uchart-col:hover::after, .uchart-col:focus-visible::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 2;
    padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 600; white-space: nowrap; pointer-events: none;
}
.uchart-col:nth-child(-n+5):hover::after, .uchart-col:nth-child(-n+5):focus-visible::after { left: 0; transform: none; }
.uchart-col:nth-last-child(-n+5):hover::after, .uchart-col:nth-last-child(-n+5):focus-visible::after { left: auto; right: 0; transform: none; }

.ulist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.uitem { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--r-sm); }
.uitem-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.uitem-side:empty { display: none; }
.uitem:hover { background: var(--bg-3); }
.uitem > .uitem-main:first-child { grid-column: 1 / 3; }
.uitem .thumb { width: 38px; height: 54px; }
.uitem-main { display: grid; gap: 3px; min-width: 0; }
.uitem-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.93rem; }
.uitem-main small { font-size: 0.8rem; overflow-wrap: anywhere; }
.ubar { display: block; height: 4px; margin-top: 4px; border-radius: 99px; background: var(--bg-4); overflow: hidden; max-width: 320px; }
.ubar i { display: block; height: 100%; background: var(--amber-fill); }
.uitem .thumb.udevice { width: 38px; height: 38px; border-radius: 10px; }
.udevice .icon { width: 18px; height: 18px; }
.ufacts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 0.9rem; }
.ufacts dt { color: var(--ink-3); }
.ufacts dd { margin: 0; }
/* Ommaviy yuklash belgilari -- profil tepasida, ko'zga tashlanadigan */
.uflags { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-md);
    background: oklch(0.63 0.21 20 / 0.08); box-shadow: inset 0 0 0 1px oklch(0.63 0.21 20 / 0.25); }
.uflags h3 { margin: 0; }
.uflags > .muted { margin: 0; font-size: 0.88rem; }
.uprof-sub { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-3); }
.uprof-sub h3 { margin-bottom: 4px; }
.uprof-sub p { margin: 0; font-size: 0.92rem; }
.uprof-sub .input { width: 90px; min-height: 40px; background-color: var(--bg-2); }
.uprof-sub .row-actions { align-items: center; gap: 8px; }
/* Oyna foni bilan bir xil bo'lib qolgan oddiy tugmalar ko'rinib tursin */
.uprof .btn:not(.btn-primary):not(.btn-ghost):not(.btn-danger) { --btn-bg: var(--bg-4); }
.utable { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.utable th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.utable td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); }
.uprof-body .table-scroll { padding: 0; }
.ucomments { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ucomments li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-3); }
.ucomments li.is-off { opacity: 0.55; }
.ucomments p { margin: 0; overflow-wrap: anywhere; }
.ucomments .ucomment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.86rem; }
.uact { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg-3); }
.uact h3 { margin: 0; }
.uact-form { display: grid; gap: 10px; justify-items: start; }
.uact-form .check { align-items: flex-start; font-size: 0.92rem; }
.uact-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.uact-row .input { flex: 1 1 240px; min-height: 42px; }
.uact-danger { background: oklch(0.63 0.21 20 / 0.08); box-shadow: inset 0 0 0 1px oklch(0.63 0.21 20 / 0.25); }
.uact .field-hint { margin: 0; }
@media (max-width: 760px) {
    .studio-dialog.uprof { height: calc(100dvh - 16px); }
    .studio-dialog .uprof-head { padding: 16px 12px 14px 16px; gap: 12px; }
    .uprof-id > p { overflow-wrap: anywhere; }
    .kpi-grid.uprof-kpis { padding-top: 14px; }
    .uavatar.is-lg { width: 56px; height: 56px; font-size: 1.15rem; }
    .uprof-id h2 { font-size: 1.2rem; }
    .kpi-grid.uprof-kpis, .kpi-grid.uprof-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-grid.uprof-kpis { padding-inline: 16px; }
    .uprof .uprof-tabs { padding: 0 16px; position: sticky; top: 0; z-index: 3; background: var(--bg-2); }
    /* Telefonda butun oyna aylanadi (sarlavha ham), bo'limlar qatori tepada yopishib turadi. */
    .studio-dialog.uprof[open] { display: block; overflow-y: auto; overscroll-behavior: contain; }
    .uprof .uprof-body { overflow: visible; }
    .uprof-kpis .kpi { padding: 12px 14px; }
    .uprof-kpis .kpi > b { font-size: 1.05rem; }
    .uprof-head .icon-btn { margin: -6px -6px 0 0; }
    .uprof-cols { grid-template-columns: 1fr; }
    .uchart-bars { gap: 2px; height: 96px; }
}

/* ---------------------------------------------------------------- Studio: o'sish vositalari */
.growth-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.growth-head > div:first-child { max-width: 760px; }
.growth-head .chips { flex: none; }
.growth-form { display: grid; gap: 14px; align-content: start; }
.growth-form .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.growth-table td { vertical-align: top; }
.growth-table tr.is-off { opacity: 0.55; }
.growth-table td:first-child { min-width: 200px; }
.q-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.q-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; gap: 4px; }
.q-bar i { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: var(--amber); opacity: 0.85; }
.q-bar small { color: var(--ink-3); font-size: 0.68rem; }
@media (max-width: 560px) { .growth-form .field-row { grid-template-columns: minmax(0, 1fr); } }
.growth-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.growth-table th { padding: 8px 12px; text-align: left; color: var(--ink-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.growth-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.growth-table tbody tr:last-child td { border-bottom: 0; }
.growth-table .row-actions { flex-wrap: nowrap; justify-content: flex-end; }
.tmdb-refresh { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* Litsenziyalar */
.lic-source { padding: 20px 24px; margin-bottom: 20px; }
.lic-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lic-source h2 { font-size: 1.15rem; }
.lic-sources { display: grid; gap: 8px; margin-top: 16px; }
.lic-sources li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); }
.lic-src-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-4); color: var(--ink-2); }
.lic-src-icon .icon { width: 17px; height: 17px; }
.lic-src-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lic-src-text a, .lic-src-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lic-src-text small { font-size: 0.8rem; }
.lic-import { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.lic-import .input { flex: 1 1 360px; min-height: 42px; }
.lic-import label.btn { cursor: pointer; }
.lic-hint { margin-top: 12px; font-size: 0.85rem; max-width: 100ch; }
.lic-scroll { padding: 4px 0; overflow: hidden; }
.lic-scroll .table-scroll { padding: 0 8px 8px; }
.lic-table td { vertical-align: top; }
.lic-table td small { display: block; margin-top: 2px; font-size: 0.8rem; }
.lic-table td b { font-weight: 600; }
.lic-film { display: flex; gap: 10px; align-items: flex-start; min-width: 200px; }
.lic-film .thumb { flex: none; }
.lic-table .state { white-space: nowrap; }
.lic-period { white-space: nowrap; }
.lic-table small.lic-warn { color: var(--amber); font-weight: 600; }

/* Keng ekran: to'liq ekranli ilova -- chap panel ekran chetiga yopishgan, yuqoridan pastgacha; ish maydoni qolgan
   butun kenglikda (cheklovsiz). */
@media (min-width: 1101px) {
    #app:has(.studio-app) { padding-top: var(--header-h); }
    .studio-app {
        --sn-w: calc(256px + var(--gutter));
        max-width: none; min-height: calc(100dvh - var(--header-h)); padding: 0 var(--gutter) 0 0;
        column-gap: clamp(28px, 2.6vw, 48px);
    }
    .studio-nav {
        top: var(--header-h); height: calc(100dvh - var(--header-h)); max-height: none;
        padding: 20px 14px 20px var(--gutter); background: var(--bg-2); border-right: 1px solid var(--line-soft);
    }
    .studio-main { padding-top: 24px; }
    .studio-app.is-folded { --sn-w: 76px; }
    .is-folded .studio-nav { padding-inline: 10px; }
    .sn-link[aria-current] { background: var(--bg-4); }
    .sn-find { background: var(--bg-3); }
}

/* Litsenziyalar: telefonda manba qatori ikki qavat -- nomi to'liq, tugmalar ostida. */
@media (max-width: 760px) {
    .lic-sources li { flex-wrap: wrap; }
    .lic-src-text { flex: 1 1 calc(100% - 50px); }
    .lic-sources li .btn { margin-left: auto; }
    .lic-sources li .btn + .btn { margin-left: 0; }
    .lic-source { padding: 16px; }
    .lic-head .btn { padding-inline: 0; }
    .lic-import .input { flex-basis: 100%; }
    .lic-import .btn { flex: 1; }
}

/* Film qo'shish: litsenziyalangan film ogohlantirishi */
.lic-alert {
    display: flex; gap: 12px; margin: 2px 0 8px; padding: 14px 16px; border-radius: 12px;
    background: var(--amber-soft); border: 1px solid oklch(0.8 0.165 68 / 0.4); color: var(--ink);
}
.lic-alert > .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--amber); }
.lic-alert b { display: block; color: var(--amber); }
.lic-alert p { margin-top: 4px; font-size: 0.88rem; color: var(--ink-2); }
.lic-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------------------------------------------------------------- qo'lda film qo'shish (IMDb/Kinopoiskda yo'q filmlar) */
.manual-form { display: grid; gap: 14px; }
.manual-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.manual-form textarea { min-height: 96px; resize: vertical; }
.manual-form .chips { flex-wrap: wrap; }
.manual-form .chip[aria-pressed='true'] { background: var(--amber-fill); color: var(--amber-ink); }
.manual-form > .btn { justify-self: start; }
.source-chips .chip .icon { width: 15px; height: 15px; }
@media (max-width: 560px) { .manual-row { grid-template-columns: minmax(0, 1fr); } }
