@font-face{font-family:'InterVar';src:url('/static/fonts/InterVariable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--pw-font:'Microsoft JhengHei UI Light','Microsoft JhengHei UI','InterVar','Inter','SF Pro Text','SF Pro Display',-apple-system,BlinkMacSystemFont,'Segoe UI Variable Text','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--pw-radius:14px;--pw-accent:#ff9f0a}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
body,button,input,select,textarea,.nav-menu,.page-header,.media-list-header,.item-main,.item-meta,.welcome-title,.home-intro,.pv-textarea,.pv-input{font-family:var(--pw-font)!important;font-feature-settings:'ss01' 1,'cv11' 1,'calt' 1;letter-spacing:-.011em}
body{font-size:15px;font-weight:450}
h1,h2,h3,h4,h5,h6,.welcome-title{letter-spacing:-.02em!important;font-weight:600!important}
.media-list-header h2{font-size:19px;font-weight:620!important;letter-spacing:-.018em}
.media-list-header h3 a,.media-list-header h3 button{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.item-main h3,.item-main h3 a{font-weight:600!important;letter-spacing:-.01em}
.item-meta,.item-views,.item-author{font-size:12.5px;font-weight:480}

/* Шапка: остаётся fixed (родное position не трогаем), фон плотнее */
.page-header{background:color-mix(in srgb,var(--body-bg-color) 94%,transparent)!important;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent)}
body.dark_theme .page-header{background:rgba(18,18,18,.96)!important;border-bottom-color:rgba(255,255,255,.07)}
body.dark_theme .page-header .circle-icon-button,body.dark_theme .page-header .toggle-sidebar button,body.dark_theme .page-header .thumbnail,body.dark_theme .page-header .thumbnail>*{background:rgba(255,255,255,.08)!important;color:#fff!important}

/* Карточки */
.item{transition:transform .28s cubic-bezier(.2,.6,.2,1),box-shadow .28s ease}
.item:hover{transform:translateY(-3px) scale(1.012);z-index:2}
.item .item-thumb,.item .item-thumb img{border-radius:var(--pw-radius)!important}
.item .item-thumb{overflow:hidden}
.item:hover .item-thumb{transform:none;box-shadow:0 18px 42px rgba(0,0,0,.18)}
body.dark_theme .item:hover .item-thumb{box-shadow:0 18px 42px rgba(0,0,0,.55)}
.peeks-row .item{border-radius:14px;overflow:hidden}

/* Навигация */
.nav-menu li>*{border-radius:12px;transition:background .2s ease;font-weight:500}
.nav-menu li.link-item.active>*{background:color-mix(in srgb,var(--body-text-color) 8%,transparent)}
button,.button-link,.load-more{letter-spacing:.01em;font-weight:600}

/* Детали */
::selection{background:rgba(255,159,10,.32);color:inherit}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--body-text-color) 22%,transparent);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}

/* Реклама: капсула «реклама» */
.lb-promo .item-views.lb-promo-tag{display:inline-block;padding:2px 9px;border-radius:999px;border:0!important;background:rgba(255,159,10,.16);color:#b46900;font-size:10.5px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;line-height:1.65}
body.dark_theme .lb-promo .item-views.lb-promo-tag{background:rgba(255,159,10,.18);color:#ffc46b}

/* Раскладка: 4 видео в ряд, 6 Peeks в ряд */
.media-list-row:not(.peeks-row) .items-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
.peeks-row .items-list-wrap .items-list .item{flex:0 0 calc((100% - 40px)/6)!important;max-width:calc((100% - 40px)/6)!important}

/* Аудио-заглушки SawOnce */
.item.audio-item .item-thumb{background-size:cover!important;background-position:center!important;position:relative}
.item.audio-item:nth-of-type(4n+1) .item-thumb{background-image:url('/static/images/banners/art-sawonce-logo-dark.png')!important}
.item.audio-item:nth-of-type(4n+2) .item-thumb{background-image:url('/static/images/banners/art-sawonce-banner.jpg')!important}
.item.audio-item:nth-of-type(4n+3) .item-thumb{background-image:url('/static/images/banners/art-sawonce-logo-bw-dark.jpg')!important}
.item.audio-item:nth-of-type(4n) .item-thumb{background-image:url('/static/images/banners/art-sawonce-girl.jpg')!important}

/* Аналитика канала / Студия */
.lb-owner-stats{margin:18px 0 10px;padding:18px 20px;border-radius:20px;background:color-mix(in srgb,var(--body-bg-color) 92%,var(--body-text-color) 4%);border:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent);box-shadow:0 12px 34px rgba(0,0,0,.10)}
.lb-os-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin-bottom:14px}
.lb-os-title{font-size:17px;font-weight:600;letter-spacing:-.02em}
.lb-os-badge{margin-left:8px;padding:2px 9px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;background:rgba(255,159,10,.16);color:#b46900}
body.dark_theme .lb-os-badge{color:#ffc46b}
.lb-os-sub{font-size:12px;opacity:.6}
.lb-os-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.lb-os-card{background:color-mix(in srgb,var(--body-text-color) 4%,transparent);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column}
.lb-os-card b{font-size:18px;font-weight:600;letter-spacing:-.02em}
.lb-os-card span{font-size:11.5px;opacity:.65;margin-top:2px}
.lb-os-main{background:color-mix(in srgb,var(--default-theme-color) 12%,transparent)}
.lb-os-bottom{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;margin-top:16px}
.lb-os-label{font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;opacity:.55;margin-bottom:8px;font-weight:600}
.lb-os-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.lb-os-list li{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.lb-os-list li a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-os-list li span{opacity:.6;white-space:nowrap;font-variant-numeric:tabular-nums}
.lb-os-totals{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
.lb-os-totals>div{background:color-mix(in srgb,var(--body-text-color) 4%,transparent);border-radius:14px;padding:8px 12px;min-width:84px;text-align:center}
.lb-os-totals b{display:block;font-size:15px;font-weight:600}
.lb-os-totals span{font-size:11px;opacity:.6}
.lb-studio-extra{margin-top:26px;padding-top:18px;border-top:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent)}
.lb-studio-extra-title{font-size:18px;margin:0 0 12px}
body.dark_theme .lb-owner-stats{background:rgba(255,255,255,.04)}

@media (max-width:900px){.lb-os-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lb-os-bottom{grid-template-columns:1fr}.profile-info{margin-top:-34px}.profile-name-edit-wrapper h1,.profile-name-edit-wrapper h2,.profile-name-edit-wrapper h3{font-size:21px!important}}
@media (max-width:767px){body{font-size:14.5px}.media-list-header h2{font-size:17px}.media-list-row:not(.peeks-row) .items-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.peeks-row .items-list-wrap .items-list .item{flex:0 0 calc((100% - 16px)/2.6)!important;max-width:calc((100% - 16px)/2.6)!important}.page-header a.register-link,.page-header .register-link{display:none!important}.page-header a.button-link{font-size:12px;padding-left:8px;padding-right:8px}.home-intro,.home-intro *{white-space:normal!important;overflow-wrap:break-word!important}}

/* ---------- Студия (дашборд) ---------- */
.st-page{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start;padding:8px 0 40px}
.st-nav{position:sticky;top:calc(var(--header-height,56px) + 16px);display:flex;flex-direction:column;gap:2px;background:color-mix(in srgb,var(--body-text-color) 4%,transparent);border-radius:16px;padding:8px}
.st-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;color:var(--body-text-color);text-decoration:none;font-size:13.5px;font-weight:500}
.st-nav a .material-icons{font-size:19px;opacity:.75}
.st-nav a:hover{background:color-mix(in srgb,var(--body-text-color) 7%,transparent)}
.st-nav a.active{background:color-mix(in srgb,var(--default-theme-color) 16%,transparent);color:var(--default-theme-color)}
.st-nav a.st-upload{margin-top:8px;background:var(--default-theme-color);color:#fff;justify-content:center}
.st-main{min-width:0}
.st-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.st-head h1{font-size:26px;margin:0;letter-spacing:-.03em;font-weight:650}
.st-period{display:flex;gap:4px;background:color-mix(in srgb,var(--body-text-color) 5%,transparent);border-radius:999px;padding:3px}
.st-period a{padding:6px 12px;border-radius:999px;text-decoration:none;color:var(--body-text-color);font-size:12.5px;font-weight:500;opacity:.8}
.st-period a.active{background:var(--body-bg-color);box-shadow:0 1px 3px rgba(0,0,0,.12);opacity:1}
.st-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.st-card{background:color-mix(in srgb,var(--body-text-color) 4%,transparent);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;min-height:84px}
.st-card span{font-size:12px;opacity:.65}
.st-card b{font-size:22px;font-weight:650;letter-spacing:-.02em;margin-top:2px}
.st-card small{font-size:11px;opacity:.5;margin-top:auto}
.st-row{display:grid;grid-template-columns:1.5fr .9fr;gap:16px;margin-bottom:16px}
.st-panel{background:color-mix(in srgb,var(--body-text-color) 4%,transparent);border-radius:16px;padding:16px 18px;margin-bottom:16px;min-width:0}
.st-panel-wide{min-width:0}
.st-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.st-panel-head h2{font-size:15px;margin:0;font-weight:600}
.st-panel-head span{font-size:13px;opacity:.65;font-variant-numeric:tabular-nums}
.st-chart{width:100%;height:120px;color:var(--default-theme-color);opacity:.9}
.st-chart-big{height:160px}
.st-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.st-list li{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.st-list li a{color:var(--body-text-color);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-list li span{opacity:.6;white-space:nowrap;font-variant-numeric:tabular-nums}
.st-comments{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.st-comments li{font-size:12.5px;line-height:1.45}
.st-comments li a{color:var(--default-theme-color);text-decoration:none;font-weight:600}
.st-comments li span{display:block;opacity:.5;font-size:11px;margin-top:2px}
.st-empty{opacity:.6;font-size:12.5px}
.st-tbl-wrap{overflow:auto;border-radius:16px;background:color-mix(in srgb,var(--body-text-color) 4%,transparent)}
.st-tbl{width:100%;border-collapse:collapse;font-size:13px}
.st-tbl th{text-align:left;font-weight:600;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;opacity:.6;padding:12px 14px;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent);white-space:nowrap}
.st-tbl td{padding:11px 14px;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 6%,transparent);vertical-align:middle}
.st-tbl tr:last-child td{border-bottom:0}
.st-tbl td a{color:var(--body-text-color);text-decoration:none}
.st-tbl td a:hover{text-decoration:underline}
@media (max-width:1000px){.st-page{grid-template-columns:1fr}.st-nav{position:static;flex-direction:row;overflow:auto}.st-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.st-row{grid-template-columns:1fr}}
@media (max-width:600px){.st-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.st-types{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;align-items:center}
.st-types a{padding:6px 12px;border-radius:999px;text-decoration:none;font-size:12.5px;font-weight:500;color:var(--body-text-color);background:color-mix(in srgb,var(--body-text-color) 5%,transparent)}
.st-types a.active{background:var(--body-text-color);color:var(--body-bg-color)}
.st-more{margin-left:auto;font-size:12.5px;font-weight:600;color:var(--default-theme-color);text-decoration:none}
.st-back{display:inline-block;margin-bottom:10px;font-size:13px;font-weight:600;color:var(--default-theme-color);text-decoration:none}
.st-video-row{display:flex;gap:16px;align-items:flex-start}
.st-video-thumb{width:180px;border-radius:12px;display:block;object-fit:cover}
.st-video-meta h2{margin:0 0 6px;font-size:19px}
.st-video-meta p{margin:0 0 10px;opacity:.65;font-size:12.5px}
.st-btn{display:inline-block;padding:7px 14px;border-radius:999px;background:var(--default-theme-color);color:#fff;text-decoration:none;font-size:12.5px;font-weight:600}
@media(max-width:600px){.st-video-row{flex-direction:column}.st-video-thumb{width:100%}}

.st-ret{display:flex;align-items:flex-end;gap:3px;height:120px;margin:6px 0 4px}
.st-ret-bar{flex:1;background:var(--default-theme-color);opacity:.85;border-radius:3px 3px 0 0;min-height:2px}
.st-ret-axis{display:flex;justify-content:space-between;font-size:10.5px;opacity:.5}
.lb-sub{display:inline-block;margin-left:10px;padding:8px 16px;border-radius:999px;border:0;background:var(--default-theme-color);color:#fff;font-size:13px;font-weight:600;cursor:pointer;vertical-align:middle}
.lb-sub.on{background:color-mix(in srgb,var(--body-text-color) 10%,transparent);color:var(--body-text-color)}

.st-18{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:rgba(255,59,48,.15);color:#d70015;font-size:10px;font-weight:700;vertical-align:middle}

/* --- Студия: навигация и вкладки как в YouTube Studio --- */
.st-page{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start;padding:12px 0 48px}
.st-nav{position:sticky;top:calc(var(--header-height,56px) + 18px);display:flex;flex-direction:column;gap:1px;padding:0;background:transparent;border-radius:0}
.st-nav a{display:flex;align-items:center;gap:12px;padding:9px 12px;border-radius:10px;color:var(--body-text-color);text-decoration:none;font-size:13.5px;font-weight:500;line-height:1.2}
.st-nav a .material-icons{font-size:20px;opacity:.75}
.st-nav a:hover{background:color-mix(in srgb,var(--body-text-color) 6%,transparent)}
.st-nav a.active{background:color-mix(in srgb,var(--default-theme-color) 14%,transparent);color:var(--default-theme-color);font-weight:600}
.st-nav a.st-upload{margin:14px 0 0;background:var(--default-theme-color);color:#fff;justify-content:center;border-radius:999px;padding:10px 12px}
.st-nav a.st-upload .material-icons{font-size:18px}
.st-head h1{font-size:28px;font-weight:650;letter-spacing:-.03em}
/* вкладки контента — подчёркивание, как у YouTube */
.st-types{display:flex;flex-wrap:wrap;gap:26px;margin:4px 0 0;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 10%,transparent);padding-bottom:0}
.st-types a{position:relative;padding:10px 0;color:color-mix(in srgb,var(--body-text-color) 62%,transparent);text-decoration:none;font-size:13.5px;font-weight:600;letter-spacing:-.01em;background:none!important;border-radius:0}
.st-types a:hover{color:var(--body-text-color)}
.st-types a.active{color:var(--body-text-color)}
.st-types a.active::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--body-text-color);border-radius:2px}
.st-types .st-more{margin-left:auto;padding:10px 0;color:var(--default-theme-color);font-weight:600;border:0;background:none!important}
.st-types .st-more::after{display:none}
/* карточки 18+ (гостям — блюр) */
.lb-blur18{position:relative}
.lb-blur-thumb{filter:blur(16px) saturate(.9);transform:scale(1.06)}
.lb-blur-label{position:absolute;top:8px;left:8px;z-index:2;background:rgba(255,59,48,.85);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;letter-spacing:.04em}
@media(max-width:1000px){.st-page{grid-template-columns:1fr}.st-nav{position:static;flex-direction:row;overflow:auto;gap:4px}.st-nav a.st-upload{margin:0}.st-types{gap:18px}}

/* Карточки контента в Студии (как в YouTube) */
.st-content-list{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.st-crow{display:flex;gap:14px;align-items:center;padding:10px;border-radius:16px;background:color-mix(in srgb,var(--body-text-color) 3.5%,transparent);transition:background .18s ease, transform .18s ease}
.st-crow:hover{background:color-mix(in srgb,var(--body-text-color) 6.5%,transparent);transform:translateY(-1px)}
.st-crow-thumb{position:relative;flex:0 0 168px;width:168px;height:94px;border-radius:12px;overflow:hidden;display:block;background:color-mix(in srgb,var(--body-text-color) 8%,transparent)}
.st-crow-img{position:absolute;inset:0;background-size:cover;background-position:center;display:block}
.st-crow-img-audio{background:linear-gradient(135deg,#111,#333)}
.st-live-img{display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:800;letter-spacing:.08em;background:linear-gradient(135deg,#b3261e,#ff3b30)}
.st-crow-dur{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.75);color:#fff;font-size:10.5px;padding:1px 5px;border-radius:4px;font-weight:600}
.st-crow-body{min-width:0;flex:1}
.st-crow-title{display:block;font-size:14px;font-weight:600;color:var(--body-text-color);text-decoration:none;letter-spacing:-.01em;line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.st-crow-title:hover{text-decoration:underline}
.st-crow-meta{margin-top:5px;font-size:12px;opacity:.62;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){.st-crow-thumb{flex:0 0 120px;width:120px;height:68px}.st-crow-meta{white-space:normal}.st-crow{gap:10px;padding:8px}}
/* карточки статистики — мягче и премиальнее */
.st-card{border:1px solid color-mix(in srgb,var(--body-text-color) 6%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--body-text-color) 4.5%,transparent),color-mix(in srgb,var(--body-text-color) 2.5%,transparent));box-shadow:0 1px 0 color-mix(in srgb,var(--body-text-color) 4%,transparent)}
.st-card:hover{border-color:color-mix(in srgb,var(--body-text-color) 12%,transparent)}
.st-panel{border:1px solid color-mix(in srgb,var(--body-text-color) 6%,transparent)}

/* Главная Студии — три колонки как в YouTube */
.st-dash{display:grid;grid-template-columns:340px minmax(0,1fr) 340px;gap:16px;align-items:start}
.st-dash .st-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.st-dash .st-panel{margin-bottom:0}
.st-big{display:flex;flex-direction:column;gap:2px;margin:4px 0 12px}
.st-big span{font-size:12px;opacity:.65}
.st-big b{font-size:34px;font-weight:650;letter-spacing:-.03em}
.st-lv{display:block;margin-bottom:10px}
.st-lv-thumb{display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background-size:cover;background-position:center;background-color:color-mix(in srgb,var(--body-text-color) 8%,transparent)}
.st-lv-title{font-size:13.5px;font-weight:600;margin-bottom:10px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.st-note{font-size:12.5px;opacity:.62;margin:0}
.st-chip{font-size:11px;font-weight:600;padding:2px 9px;border-radius:999px;background:rgba(255,159,10,.16);color:#b46900}
.st-nav a{padding-left:12px!important;margin-left:0!important;text-indent:0!important;justify-content:flex-start!important}
.st-nav a .material-icons{flex:0 0 auto}
@media(max-width:1200px){.st-dash{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.st-dash{grid-template-columns:1fr}}

/* --pw-yt */

/* ---- Студия: ближе к YouTube Studio ---- */
.st-page{max-width:1440px;margin:0 auto;grid-template-columns:216px minmax(0,1fr);gap:32px;padding:16px 24px 56px}
.st-head h1{font-size:24px;font-weight:650;letter-spacing:-.02em;margin:0 0 2px}
.st-dash{grid-template-columns:340px minmax(0,1fr) 300px;gap:20px}
.st-panel{background:var(--body-bg-color);border:1px solid color-mix(in srgb,var(--body-text-color) 9%,transparent);border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
body.dark_theme .st-panel{background:rgba(255,255,255,.03)}
.st-panel-head{margin-bottom:10px}
.st-panel-head h2{font-size:15px;font-weight:600}
.st-card{background:var(--body-bg-color);border:1px solid color-mix(in srgb,var(--body-text-color) 9%,transparent);box-shadow:0 1px 2px rgba(0,0,0,.04);min-height:92px}
body.dark_theme .st-card{background:rgba(255,255,255,.03)}
.st-card b{font-size:22px}
.st-big b{font-size:30px}
.st-lv-thumb{border-radius:8px}
.st-btn{border-radius:18px;padding:8px 14px;font-size:12.5px}
.st-more{color:var(--default-theme-color)}
.st-nav{top:calc(var(--header-height,56px) + 12px)}
.st-nav a{border-radius:8px;padding:8px 12px;font-size:13px}
.st-content-list{gap:6px}
.st-crow{border:1px solid transparent}
.st-crow:hover{border-color:color-mix(in srgb,var(--body-text-color) 8%,transparent)}
@media(max-width:1280px){.st-dash{grid-template-columns:minmax(0,1fr) 320px}.st-dash .st-col:last-child{grid-column:1/-1}.st-dash .st-col:last-child{display:grid;grid-template-columns:1fr 1fr;gap:20px}}
@media(max-width:900px){.st-dash{grid-template-columns:1fr}.st-dash .st-col:last-child{display:flex;flex-direction:column}}

/* Студия: акцент — оранжевый цвет логотипа */
.st-page{--default-theme-color:#ff9f0a;--pw-accent:#ff9f0a}
.st-nav a.active{background:rgba(255,159,10,.14);color:#e07d00}
body.dark_theme .st-nav a.active{background:rgba(255,159,10,.18);color:#ffc46b}
.st-nav a.st-upload{background:#ff9f0a;color:#fff}
.st-nav a.st-upload:hover{background:#f39100}
.st-btn{background:#ff9f0a;color:#fff}
.st-btn:hover{background:#f39100}
.st-more,.st-crow-title:hover,.st-comments li a,.st-back{color:#e07d00}
body.dark_theme .st-more,body.dark_theme .st-comments li a{color:#ffc46b}
.st-chip{background:rgba(255,159,10,.16);color:#b46900}
.st-card b,.st-big b{color:inherit}
.st-chart{color:#ff9f0a}
.st-ret-bar{background:#ff9f0a}
.st-nav a .material-icons{color:inherit}
.lb-sub{background:#ff9f0a!important;color:#fff!important;border-radius:999px;padding:9px 18px!important;font-weight:600}
.lb-sub.on{background:color-mix(in srgb,var(--body-text-color) 10%,transparent)!important;color:var(--body-text-color)!important}

.lb-sub{background:#ff9f0a!important;color:#fff!important;border-radius:999px;padding:9px 18px!important;font-weight:600}
.lb-sub.on{background:color-mix(in srgb,var(--body-text-color) 10%,transparent)!important;color:var(--body-text-color)!important}


/* ---- Канал: шапка и навигация как у YouTube ---- */
@media(min-width:1001px){

}
@media(max-width:1000px){





}
@media(max-width:1000px){




}

/* ===== Канал в стиле YouTube ===== */
.page-main{background:var(--body-bg-color)!important}
.profile-page-header{max-width:1320px;margin:0 auto;padding:20px 24px 0!important;background:transparent!important}
.profile-banner-wrap{display:block!important;width:100%!important;height:210px!important;border-radius:14px!important;overflow:hidden!important;margin:0!important;box-shadow:none!important;background:color-mix(in srgb,var(--body-text-color) 8%,transparent)!important}
.profile-banner{display:block!important;width:100%!important;height:210px!important;border-radius:0!important;background-size:cover!important;background-position:center!important}
.profile-info-nav-wrap{position:relative!important;z-index:2!important;margin-top:-64px!important;padding:0 14px!important}
.profile-info{padding:0!important}
.profile-info-inner{display:flex!important;align-items:flex-start!important;gap:22px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
.profile-info-inner > div:first-child img{display:block!important;width:140px!important;height:140px!important;border-radius:50%!important;border:4px solid var(--body-bg-color)!important;object-fit:cover!important;margin-top:-70px!important;background:color-mix(in srgb,var(--body-text-color) 10%,transparent)!important}
.profile-name-edit-wrapper h1,.profile-name-edit-wrapper h3{font-size:32px!important;font-weight:700!important;letter-spacing:-.02em!important;margin:6px 0 6px!important;line-height:1.1!important}
.profile-counts{display:flex!important;align-items:center!important;gap:0!important;margin:0!important}
.profile-counts > *{background:transparent!important;padding:0!important;border-radius:0!important;font-size:13.5px!important;font-weight:500!important;color:color-mix(in srgb,var(--body-text-color) 62%,transparent)!important}
.profile-counts > * + *::before{content:'·';margin:0 8px;opacity:.6}
.lb-sub{margin-left:auto!important;align-self:center!important;margin-top:40px!important;background:#ff9f0a!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:9px 18px!important;font-weight:600!important}
.lb-sub.on{background:color-mix(in srgb,var(--body-text-color) 10%,transparent)!important;color:var(--body-text-color)!important}
.profile-nav{margin:20px 0 0!important;padding:0!important;background:transparent!important;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 10%,transparent)!important;border-radius:0!important}
.profile-nav .items-list-wrap{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;padding:0!important}
.profile-nav .items-list-wrap li{flex:0 0 auto!important}
.profile-nav .items-list-wrap li>a{padding:12px 10px!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:14px!important;font-weight:600!important;color:color-mix(in srgb,var(--body-text-color) 60%,transparent)!important;white-space:nowrap!important}
.profile-nav .items-list-wrap li>a:hover{color:var(--body-text-color)!important}
.profile-nav .items-list-wrap li.active>a{color:var(--body-text-color)!important;box-shadow:inset 0 -2px 0 var(--body-text-color)!important}
.profile-nav .previous-slide,.profile-nav .next-slide{display:none!important}
.profile-nav li.media-search{margin-left:auto!important;display:flex!important;align-items:center!important;padding-left:8px!important}
.profile-page-content{max-width:1320px!important;margin:0 auto!important;padding:26px 24px 56px!important;background:var(--body-bg-color)!important}
.profile-page-content .media-list-header{padding:18px 0 12px!important;border:0!important;margin:0!important}
.profile-page-content .media-list-header h2{font-size:20px!important;font-weight:650!important;letter-spacing:-.02em!important}
.profile-page-content .media-list-row{padding-bottom:20px!important;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 7%,transparent)!important}
.profile-page-content .media-list-row:last-child{border-bottom:0!important}
.profile-page-content .media-list-row:not(.peeks-row) .items-list{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
.profile-page-content .peeks-row .items-list-wrap .items-list .item{flex:0 0 calc((100% - 40px)/6)!important;max-width:calc((100% - 40px)/6)!important}
.profile-page-content .peeks-row .item{border-radius:12px;overflow:hidden}
.ch-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ch-actions a{display:inline-block;padding:8px 14px;border-radius:18px;background:color-mix(in srgb,var(--body-text-color) 8%,transparent);color:var(--body-text-color);font-size:13px;font-weight:600;text-decoration:none}
.ch-actions a:hover{background:color-mix(in srgb,var(--body-text-color) 14%,transparent)}
@media(max-width:1000px){
 .profile-page-header{padding:12px 12px 0!important}
 .profile-banner-wrap,.profile-banner{height:140px!important}
 .profile-info-inner > div:first-child img{width:90px!important;height:90px!important;border-width:3px!important;margin-top:-46px!important}
 .profile-name-edit-wrapper h1{font-size:23px!important}
 .profile-page-content{padding:16px 12px 40px!important}
 .profile-page-content .media-list-row:not(.peeks-row) .items-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}


/* ===== Кошелёк и магазин (бонусные баллы) ===== */
.wl-wrap{max-width:1120px;margin:0 auto;padding:28px 24px 64px}
.wl-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.wl-head h1{font-size:30px;font-weight:700;letter-spacing:-.03em;margin:0}
.wl-link{color:#e07d00;font-weight:600;text-decoration:none;font-size:13.5px}
.wl-link:hover{text-decoration:underline}
.wl-hero{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}
.wl-balance,.wl-progress,.wl-panel{background:var(--body-bg-color);border:1px solid color-mix(in srgb,var(--body-text-color) 9%,transparent);border-radius:18px;padding:22px;box-shadow:0 6px 24px rgba(0,0,0,.05)}
.wl-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;opacity:.55}
.wl-amount{font-size:44px;font-weight:750;letter-spacing:-.03em;margin:6px 0 4px;background:linear-gradient(90deg,#B87333,#C0C0C0,#D4AF37);-webkit-background-clip:text;background-clip:text;color:transparent}
.wl-sub{font-size:12.5px;opacity:.6}
.wl-debt{margin-top:10px;font-size:12.5px;color:#c0392b}
.wl-progress{display:flex;flex-direction:column;justify-content:center;gap:10px}
.wl-progress-top{display:flex;justify-content:space-between;font-size:13px;opacity:.8}
.wl-bar{height:10px;border-radius:999px;background:color-mix(in srgb,var(--body-text-color) 8%,transparent);overflow:hidden}
.wl-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#ff9f0a,#ff6b00)}
.wl-progress-note{font-size:12px;opacity:.55}
.wl-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
.wl-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.wl-panel-head h2{font-size:17px;font-weight:650;margin:0}
.wl-panel-head span{font-size:11.5px;opacity:.5}
.wl-rules{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.wl-rules li{padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--body-text-color) 3.5%,transparent)}
.wl-rule-main{display:flex;justify-content:space-between;font-size:13.5px;font-weight:600}
.wl-rule-amount{color:#e07d00}
.wl-rule-meta{display:flex;justify-content:space-between;font-size:11.5px;opacity:.55;margin-top:4px}
.wl-note{font-size:11.5px;opacity:.5;margin-top:14px;line-height:1.5}
.wl-ledger{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:460px;overflow:auto}
.wl-ledger li{padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--body-text-color) 3.5%,transparent)}
.wl-ledger-main{display:flex;justify-content:space-between;font-size:13px}
.wl-ledger-main b.plus{color:#e07d00}
.wl-ledger-main b.minus{color:#c0392b}
.wl-ledger-meta{font-size:11px;opacity:.5;margin-top:3px}
.wl-empty{font-size:12.5px;opacity:.6}
.wl-foot{margin-top:14px}
.wl-balance-mini{font-size:13px;opacity:.75}
.wl-legal{max-width:820px}
.wl-legal li{margin-bottom:10px;line-height:1.6;font-size:14px}
.wl-muted{opacity:.55;font-size:12.5px}
/* магазин */
.shop-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.shop-tab{padding:8px 16px;border-radius:999px;border:1px solid color-mix(in srgb,var(--body-text-color) 10%,transparent);background:transparent;color:var(--body-text-color);font-size:13px;font-weight:600;cursor:pointer}
.shop-tab.active{background:#ff9f0a;border-color:#ff9f0a;color:#fff}
.shop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.shop-card{border:1px solid color-mix(in srgb,var(--body-text-color) 9%,transparent);border-radius:16px;overflow:hidden;background:var(--body-bg-color);box-shadow:0 4px 18px rgba(0,0,0,.05);display:flex;flex-direction:column}
.shop-card.owned{opacity:.75}
.shop-preview{height:110px;display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;background:linear-gradient(135deg,#B87333,#D4AF37)}
.shop-preview-nick_color{background:linear-gradient(135deg,#B87333,#C0C0C0)}
.shop-preview-channel_cover{background:linear-gradient(135deg,#0a1a3a,#1e3a8a)}
.shop-preview-gift{background:linear-gradient(135deg,#ff6b6b,#ff9f0a)}
.shop-preview-bundle{background:linear-gradient(135deg,#7b2ff7,#f107a3)}
.shop-preview-emoji_pack{background:linear-gradient(135deg,#11998e,#38ef7d)}
.shop-body{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.shop-body h3{font-size:14px;font-weight:650;margin:0}
.shop-body p{font-size:11.5px;opacity:.6;margin:0;line-height:1.45;flex:1}
.shop-price{font-size:14px;font-weight:700;color:#e07d00}
.shop-btn{margin-top:6px;padding:9px 14px;border-radius:999px;border:0;background:#ff9f0a;color:#fff;font-weight:650;font-size:12.5px;cursor:pointer}
.shop-btn.muted{background:color-mix(in srgb,var(--body-text-color) 10%,transparent);color:var(--body-text-color);cursor:default}
.shop-btn.equip{margin-left:10px;padding:4px 12px;font-size:11.5px}
.shop-inv{margin-top:26px}
.shop-modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}
.shop-modal[hidden]{display:none}
.shop-modal-card{width:min(420px,92vw);background:var(--body-bg-color);border-radius:18px;padding:22px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.shop-modal-card h3{margin:0 0 8px;font-size:18px}
.shop-modal-card p{font-size:13px;opacity:.7;margin:0 0 12px}
.shop-modal-card input{width:100%;padding:10px 12px;border-radius:10px;border:1px solid color-mix(in srgb,var(--body-text-color) 14%,transparent);background:transparent;color:var(--body-text-color);font-size:13px}
.shop-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.shop-error{color:#c0392b;font-size:12px;margin-top:8px;min-height:14px}
@media(max-width:900px){.wl-hero,.wl-grid{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Кошелёк: подсказки и предупреждение */
.wl-onboard{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;border-radius:16px;background:linear-gradient(135deg,rgba(255,159,10,.14),rgba(255,159,10,.04));border:1px solid rgba(255,159,10,.3);margin-bottom:22px}
.wl-onboard[hidden]{display:none}
.wl-onboard-ico{width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#ff9f0a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:17px}
.wl-onboard-text{font-size:13px;line-height:1.55;opacity:.85}
.wl-onboard-text b{opacity:1}
.wl-em{color:#b46900;font-weight:600}
.wl-onboard-actions{display:flex;gap:8px;margin-left:auto;align-items:center;flex:0 0 auto}
.wl-onboard-actions a,.wl-onboard-actions button{border:0;border-radius:999px;padding:8px 14px;font-size:12.5px;font-weight:600;cursor:pointer;text-decoration:none}
.wl-onboard-shop{background:#ff9f0a;color:#fff}
#wl-onboard-ok{background:color-mix(in srgb,var(--body-text-color) 8%,transparent);color:var(--body-text-color)}
.wl-tip{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:color-mix(in srgb,var(--body-text-color) 10%,transparent);color:color-mix(in srgb,var(--body-text-color) 70%,transparent);font-size:10px;font-weight:700;cursor:help;position:relative;margin-left:4px;vertical-align:middle}
.wl-tip:hover::after,.wl-tip:focus::after{content:attr(data-tip);position:absolute;left:50%;bottom:130%;transform:translateX(-50%);width:240px;background:#1c1c1e;color:#fff;font-size:11.5px;line-height:1.45;font-weight:400;padding:9px 11px;border-radius:10px;z-index:20;box-shadow:0 10px 30px rgba(0,0,0,.3);white-space:normal}
.shop-warning{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:rgba(255,159,10,.1);border:1px solid rgba(255,159,10,.28);font-size:12.5px;line-height:1.5;opacity:.9}

/* Мобильная раскладка: видео по одному на всю ширину, Peeks 2×2 */
@media (max-width:700px){
  body .page-main-inner{padding-left:0!important;padding-right:0!important}
  .media-list-row:not(.peeks-row) .items-list{grid-template-columns:1fr!important;gap:14px!important;padding:0!important}
  .media-list-row:not(.peeks-row) .item{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
  .media-list-row:not(.peeks-row) .item .item-thumb,
  .media-list-row:not(.peeks-row) .item .item-thumb img,
  .media-list-row:not(.peeks-row) .item img{border-radius:0!important}
  .media-list-row:not(.peeks-row) .item .item-below-thumb{padding:8px 10px 0!important}
  .peeks-row .items-list-wrap{overflow:visible!important;padding:0 8px!important}
  .peeks-row .items-list-wrap .items-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
  .peeks-row .item{width:auto!important;max-width:none!important;flex:none!important;min-width:0!important;margin:0!important}
  .peeks-row .item:nth-child(n+5){display:none!important}
  .peeks-row .item .item-thumb{border-radius:10px!important;overflow:hidden}
  .profile-page-content .media-list-row:not(.peeks-row) .items-list{grid-template-columns:1fr!important}
  .wl-wrap{padding:16px 12px 40px!important}
  .wl-hero,.wl-grid{grid-template-columns:1fr!important}
  .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .wl-onboard{flex-wrap:wrap}
  .wl-onboard-actions{margin-left:34px}
}

.wl-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);width:min(520px,calc(100vw - 24px));display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:#1c1c1e;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.35);z-index:1200;opacity:0;transition:opacity .25s ease,transform .25s ease;font-size:13px;line-height:1.5}
.wl-toast.in{opacity:1;transform:translate(-50%,0)}
.wl-toast-ico{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#ff9f0a;display:flex;align-items:center;justify-content:center}
.wl-toast a{color:#ffc46b}
.wl-toast-sub{opacity:.65;font-size:12px}
.wl-toast button{margin-left:auto;flex:0 0 auto;border:0;border-radius:999px;padding:7px 12px;background:rgba(255,255,255,.14);color:#fff;font-weight:600;font-size:12px;cursor:pointer}
@media(max-width:700px){.wl-toast{bottom:12px;padding:12px}.wl-head{padding-left:12px!important;padding-right:12px!important}.wl-wrap{padding-left:12px!important;padding-right:12px!important}}

/* Плавающая плашка кошелька в шапке */
#wlHeaderChip{position:fixed;top:12px;right:112px;z-index:900;display:flex;align-items:center;gap:8px;padding:7px 12px 7px 8px;border-radius:999px;background:linear-gradient(135deg,rgba(255,159,10,.95),rgba(255,140,0,.95));color:#fff;text-decoration:none;font-size:13px;font-weight:650;box-shadow:0 6px 20px rgba(255,159,10,.35);transition:transform .15s ease,box-shadow .15s ease}
#wlHeaderChip:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(255,159,10,.45)}
.wl-chip-ico{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.25);font-size:12px}
.wl-chip-links{margin-left:2px;padding-left:8px;border-left:1px solid rgba(255,255,255,.4);font-size:11.5px;font-weight:600}
.wl-chip-links a{color:#fff;text-decoration:none;opacity:.9}
.wl-chip-links a:hover{opacity:1;text-decoration:underline}
.wl-side-links{display:flex;flex-direction:column;gap:2px;padding:8px 12px 12px;border-top:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent);margin-top:10px}
.wl-side-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:var(--body-text-color);text-decoration:none;font-size:13px;font-weight:600}
.wl-side-link:hover{background:color-mix(in srgb,var(--body-text-color) 6%,transparent)}
.wl-side-link span{width:18px;text-align:center}
@media(max-width:700px){#wlHeaderChip{top:10px;right:96px;padding:6px 10px;font-size:12px}#wlHeaderChip .wl-chip-links{display:none}}

/* Плашка кошелька видна поверх шапки */
#wlHeaderChip{top:66px!important;right:20px!important;z-index:9999!important;background-color:#ff9f0a!important;background-image:linear-gradient(135deg,#ff9f0a,#ff8c00)!important}
@media(max-width:700px){#wlHeaderChip{top:62px!important;right:12px!important}}

/* ===== Канал: центрирование и размеры карточек как на главной ===== */
[id^="page-profile-"] .page-main{display:block!important}
.profile-page-header,.profile-page-content{width:100%!important;max-width:1640px!important;margin-left:auto!important;margin-right:auto!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box!important}
.profile-page-header{padding-top:16px!important}
.profile-page-content{padding-top:10px!important;padding-bottom:56px!important}
.profile-page-content .media-list-row:not(.peeks-row) .items-list{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
.profile-page-content .media-list-row .item{width:auto!important;max-width:none!important}
.profile-page-content .media-list-header h2{font-size:20px!important}
@media(max-width:700px){
  .profile-page-header,.profile-page-content{padding-left:0!important;padding-right:0!important}
  .profile-page-header{padding-top:8px!important}
  .profile-page-content .media-list-row:not(.peeks-row) .items-list{grid-template-columns:1fr!important;gap:14px!important}
  /* Peeks как Shorts: без полей, прямые углы, тонкая линия между */
  .peeks-row .items-list-wrap{padding:0!important;overflow:visible!important}
  .peeks-row .items-list-wrap .items-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1px!important;width:100%!important;background:color-mix(in srgb,var(--body-text-color) 12%,transparent)!important}
  .peeks-row .item{width:auto!important;max-width:none!important;flex:none!important;min-width:0!important;margin:0!important;border-radius:0!important;background:var(--body-bg-color)!important;overflow:hidden}
  .peeks-row .item .item-thumb{border-radius:0!important}
  .peeks-row .item img{border-radius:0!important}
  .peeks-row .item:nth-child(n+5){display:none!important}
}

/* Центрирование контента канала: flex-колонка по центру */
[id^="page-profile-"] .page-main{display:flex!important;flex-direction:column!important;align-items:center!important}
.profile-page-header,.profile-page-content{flex:0 0 auto!important}

/* Канал: учитываем боковое меню, равные поля по краям */
[id^="page-profile-"] .page-main{margin-left:var(--sidebar-width,240px)!important;width:calc(100% - var(--sidebar-width,240px))!important;max-width:none!important;display:flex!important;flex-direction:column!important;align-items:center!important}
.profile-page-header,.profile-page-content{max-width:none!important;width:100%!important;padding-left:24px!important;padding-right:24px!important}
@media(max-width:1000px){[id^="page-profile-"] .page-main{margin-left:0!important;width:100%!important}}

/* Аватар канала: полный круг, не обрезается баннером */
.profile-info-nav-wrap,.profile-info,.profile-info-inner{overflow:visible!important}
.profile-info-inner > div:first-child{position:relative!important;z-index:3!important;overflow:visible!important}
.profile-info-inner > div:first-child img{clip-path:none!important;display:block!important}
.profile-info-inner > div:nth-child(2){position:relative!important;z-index:2!important}

/* Кнопки баланса и магазина — одинаковые капсулы рядом в шапке */
#wlHeaderChip,.wl-side-links{display:none!important}
#wlCaps{position:fixed;top:9px;right:170px;z-index:10050;display:flex;gap:8px;align-items:center}
.wl-cap{display:inline-flex;align-items:center;gap:7px;padding:8px 14px 8px 10px;border-radius:999px;background:linear-gradient(135deg,#ff9f0a,#ff8c00);color:#fff!important;text-decoration:none!important;font-size:12.5px!important;font-weight:650!important;box-shadow:0 4px 14px rgba(255,159,10,.35);transition:transform .15s ease,box-shadow .15s ease;white-space:nowrap}
.wl-cap:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(255,159,10,.45)}
.wl-cap-ico{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.25);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
@media(max-width:700px){#wlCaps{top:8px;right:88px;gap:6px}.wl-cap{padding:7px 10px}.wl-cap .wl-cap-txt{display:none}#wlCaps .wl-cap:first-child .wl-cap-txt{display:inline;font-size:11px!important}}
/* Канал: равные поля по краям (учитываем меню) */
[id^="page-profile-"] .page-main{display:block!important;margin:0!important;width:100%!important;padding-left:var(--sidebar-width,240px)!important;padding-right:0!important;box-sizing:border-box!important}
[id^="page-profile-"] .profile-page-header,[id^="page-profile-"] .profile-page-content{width:100%!important;max-width:1640px!important;margin-left:auto!important;margin-right:auto!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box!important}
@media(max-width:1000px){[id^="page-profile-"] .page-main{padding-left:0!important}}

/* Канал: аватар не перекрывает имя, подписчиков и кнопку настроек */
.profile-info-inner{display:flex!important;align-items:flex-start!important;gap:22px!important}
.profile-info-inner > div:first-child{flex:0 0 140px!important;width:140px!important;min-width:140px!important;position:relative!important;z-index:3!important;overflow:visible!important}
.profile-info-inner > div:first-child img{position:relative!important;width:140px!important;height:140px!important;margin-top:-70px!important;border-radius:50%!important}
.profile-info-inner > div:nth-child(2){flex:1 1 auto!important;min-width:0!important;margin:0!important;padding-top:10px!important;position:relative!important;z-index:2!important}
.profile-name-edit-wrapper h1{margin-top:0!important}
@media(max-width:1000px){
  .profile-info-inner{gap:14px!important}
  .profile-info-inner > div:first-child{flex:0 0 96px!important;width:96px!important;min-width:96px!important}
  .profile-info-inner > div:first-child img{width:96px!important;height:96px!important;margin-top:-48px!important}
  .profile-info-inner > div:nth-child(2){padding-top:4px!important}
}

.wl-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);width:min(560px,calc(100vw - 24px));display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:16px;background:#1c1c1e;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.35);z-index:1200;opacity:0;transition:opacity .25s ease,transform .25s ease;font-size:13px;line-height:1.5}
.wl-toast.in{opacity:1;transform:translate(-50%,0)}
.wl-toast-ico{width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#ff9f0a;display:flex;align-items:center;justify-content:center}
.wl-toast-body{flex:1;min-width:0}
.wl-toast a{color:#ffc46b}
.wl-toast-sub{opacity:.65;font-size:12px}
.wl-toast-flag{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;opacity:.85;cursor:pointer;user-select:none}
.wl-toast-flag input{width:15px;height:15px;accent-color:#ff9f0a;cursor:pointer}
.wl-toast-close{flex:0 0 auto;width:28px;height:28px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:13px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.wl-toast-close:hover{background:rgba(255,255,255,.25)}
.notif-hint-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;margin-bottom:18px;border-radius:16px;background:var(--body-bg-color);border:1px solid color-mix(in srgb,var(--body-text-color) 9%,transparent);box-shadow:0 4px 18px rgba(0,0,0,.04)}
.notif-hint-settings h3{margin:0 0 4px;font-size:15px;font-weight:650}
.notif-hint-settings p{margin:0;font-size:12.5px;opacity:.6;line-height:1.45}
.notif-switch{position:relative;display:inline-block;width:46px;height:26px;flex:0 0 46px;cursor:pointer}
.notif-switch input{opacity:0;width:0;height:0}
.notif-switch-slider{position:absolute;inset:0;background:color-mix(in srgb,var(--body-text-color) 18%,transparent);border-radius:999px;transition:background .2s ease}
.notif-switch-slider::before{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .2s ease;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.notif-switch input:checked + .notif-switch-slider{background:#ff9f0a}
.notif-switch input:checked + .notif-switch-slider::before{transform:translateX(20px)}
@media(max-width:700px){.wl-toast{bottom:12px;padding:12px}}

@media(max-width:1150px){
  #wlCaps .wl-cap:nth-child(2) .wl-cap-txt{display:none}
}

/* Бронзовые монеты (халко) */
.wl-coin,.wl-coin-big{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:800;color:#fff;background:radial-gradient(circle at 35% 30%,#e0a15a,#B87333 55%,#7a4a1e 100%);box-shadow:inset 0 1px 2px rgba(255,255,255,.5),0 2px 6px rgba(122,74,30,.45);border:1px solid #8B5A2B;letter-spacing:0}
.wl-coin{width:18px;height:18px;font-size:10px;margin-right:6px;vertical-align:middle;flex:0 0 18px}
.wl-coin-big{width:34px;height:34px;font-size:15px;margin-right:12px;flex:0 0 34px}
.wl-amount{display:flex;align-items:center;background:linear-gradient(90deg,#B87333,#8B5A2B);-webkit-background-clip:text;background-clip:text;color:transparent}
.wl-amount .wl-coin-big{background:radial-gradient(circle at 35% 30%,#e0a15a,#B87333 55%,#7a4a1e 100%);-webkit-background-clip:border-box;background-clip:border-box;color:#fff}
.wl-amount-num{background:linear-gradient(90deg,#B87333,#8B5A2B);-webkit-background-clip:text;background-clip:text;color:transparent}
.shop-price{display:flex;align-items:center;color:#8B5A2B!important}
.wl-rule-amount{color:#B87333!important}
.wl-balance-mini b{color:#8B5A2B}

/* Крупнее капсулы и облачко кошелька */
#wlCaps{gap:10px!important}
.wl-cap{padding:10px 18px 10px 12px!important;font-size:14px!important;border-radius:999px!important;min-height:40px!important}
.wl-cap-ico{width:24px!important;height:24px!important;font-size:13px!important}
.wl-cap-txt{font-size:14px!important;font-weight:700!important;letter-spacing:-.01em}
#wlCaps .wl-cap[href="/shop"]{padding:10px 20px!important}
.wl-popover{position:fixed;z-index:10060;width:320px;background:var(--body-bg-color);border:1px solid color-mix(in srgb,var(--body-text-color) 10%,transparent);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.22);padding:16px;font-size:13px}
.wl-pop-head{display:flex;align-items:center;gap:12px;padding-bottom:12px;border-bottom:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent)}
.wl-pop-label{font-size:11px;text-transform:uppercase;letter-spacing:.07em;opacity:.5}
.wl-pop-balance{font-size:22px;font-weight:750;color:#8B5A2B;letter-spacing:-.02em}
.wl-pop-title{font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;opacity:.45;margin:12px 0 6px}
.wl-pop-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:12.5px}
.wl-pop-row span{opacity:.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-pop-row b{flex:0 0 auto}
.wl-pop-row b.plus{color:#B87333}
.wl-pop-row b.minus{color:#c0392b}
.wl-pop-empty{font-size:12px;opacity:.55;padding:6px 0}
.wl-pop-link{display:block;margin-top:12px;padding-top:10px;border-top:1px solid color-mix(in srgb,var(--body-text-color) 8%,transparent);color:#B87333;font-weight:650;text-decoration:none;font-size:12.5px}
.wl-pop-link:hover{text-decoration:underline}

.wl-popover{width:360px;max-height:min(72vh,560px);overflow-y:auto;overscroll-behavior:contain}
.wl-pop-streak{font-size:11.5px;opacity:.55;margin-top:2px}
.wl-pop-bar{height:6px;border-radius:999px;background:color-mix(in srgb,var(--body-text-color) 10%,transparent);margin:12px 0 4px;overflow:hidden}
.wl-pop-bar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#e0a15a,#B87333)}
.wl-pop-note{font-size:11px;opacity:.55}
.wl-pop-row i{font-style:normal;opacity:.5;font-size:11px;margin-left:4px}
.wl-popover::-webkit-scrollbar{width:6px}
.wl-popover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--body-text-color) 20%,transparent);border-radius:999px}

.wl-tasks{margin-bottom:20px}
.wl-task-list{display:flex;flex-direction:column;gap:12px}
.wl-task-top{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:5px}
.wl-task-bar{height:7px;border-radius:999px;background:color-mix(in srgb,var(--body-text-color) 8%,transparent);overflow:hidden}
.wl-task-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#ffb347,#ff8c00)}
.wl-pop-task{margin-bottom:9px}

/* Мобильный кошелёк/магазин: внизу справа, не в шапке */
@media(max-width:900px){
  #wlCaps{top:auto!important;bottom:16px!important;right:12px!important;left:auto!important;gap:6px!important;z-index:10060!important}
  .wl-cap{padding:8px 12px!important;font-size:12px!important;min-height:36px!important}
  .wl-cap-ico{width:20px!important;height:20px!important;font-size:11px!important}
  .wl-cap-txt{font-size:12px!important}
}

/* Надёжный запасной вариант кнопок кошелька (если JS не отработал) */
#wlCapsFallback{position:fixed;bottom:16px;right:12px;z-index:10055;display:flex;gap:8px;align-items:center}
#wlCapsFallback .wl-cap{padding:8px 14px;font-size:12.5px}
@media(min-width:901px){#wlCapsFallback{top:9px;bottom:auto;right:112px}}

/* Fallback кнопки всегда внизу, чтобы не перекрывать шапку */
#wlCapsFallback{top:auto!important;bottom:16px!important;right:12px!important;left:auto!important}
#wlCapsFallback .wl-cap:first-child .wl-cap-txt{display:inline!important}

.market-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--body-text-color) 3.5%,transparent);margin-bottom:8px}
.market-info{display:flex;flex-direction:column;gap:2px;font-size:13px}
.market-info span{font-size:11.5px;opacity:.55}
.market-actions{flex:0 0 auto}
.inv-actions{display:flex;gap:6px;flex-wrap:wrap}
.inv-actions .shop-btn{padding:5px 10px;font-size:11px;margin-top:0}
.wl-rich{margin-top:16px}

.npc-list{display:flex;flex-direction:column;gap:8px}
.npc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--body-text-color) 4%,transparent)}
.npc-row .shop-btn{margin:0;flex:0 0 auto}
﻿/* ПК: подложка мобильного сайдбара не должна перекрывать контент */
@media(min-width:1000px){.page-sidebar-content-overlay{display:none!important}}
