/* Пакет «мотивация создателей»: значки уровней, колокольчик, «Тренды дня», кабинет /creator, подпись под роликом.
   Все цвета проверены на контраст от 4.5:1 на тёмном фоне сайта. */

/* значки уровней */
.crlvl { display: inline-flex; align-items: center; font: 600 14px/1 var(--mono, monospace); letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid; vertical-align: 1px; white-space: nowrap; }
.crlvl-newcomer { color: #c9ced8; background: #1e222b; border-color: #3a4150; }
.crlvl-traveler { color: #8fd8ff; background: #10222e; border-color: #2c566d; }
.crlvl-guide { color: #8de0b0; background: #102418; border-color: #2f6b4d; }
.crlvl-legend { color: #ffd98a; background: #2a1e08; border-color: #8a6a22; }
.crlvl-fc { color: var(--accent-ink, #241606); background: var(--accent, #ffb54a); border-color: var(--accent, #ffb54a); }

/* колокольчик подписчика */
.crbellwrap { position: relative; }
.crbell { position: relative; padding-left: 12px; padding-right: 12px; }
.crbell svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.crbell .crdot { position: absolute; top: 3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #c8283a; color: #fff; font: 700 14px/16px var(--mono, monospace); text-align: center; }
.crpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(340px, calc(100vw - 24px)); background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); padding: 12px; }
.crpanel h2 { font: 800 15px/1.2 var(--display); margin: 0 0 8px; }
.crpanel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.crpanel li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: var(--bg3); font-size: 14px; }
.crpanel li.new { border-left: 3px solid var(--accent); }
.crpanel .linkbtn { background: none; border: 0; color: var(--accent); padding: 8px 0 0; text-decoration: underline; }

/* «Тренды дня» и «Глаза недели» */
.crlists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); }
.crlists h2 { font: 800 17px/1.2 var(--display); margin: 0 0 10px; }
.crlists .crnote { grid-column: 1 / -1; margin: 0; }
.crrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: cr; }
.crrow { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg3); color: var(--fg); text-decoration: none; }
.crrow:hover { outline: 1px solid var(--accent); }
.crrank { font: 700 14px/1 var(--mono, monospace); color: var(--accent); }
.crwho { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.crwho b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crmeta { color: var(--muted); font-size: 13px; }
.crlivepill { font: 700 14px/1 var(--mono, monospace); color: #fff; background: #c8283a; border-radius: 999px; padding: 4px 8px; }
@media (max-width: 760px) { .crlists { grid-template-columns: 1fr; } }

/* подпись под роликом /m/<id> и под профилем */
.crcredit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.crcredit .crby { color: var(--muted); font-size: 14px; }
.crcredit a.crname { color: var(--fg); font-weight: 700; text-decoration: none; }
.crcredit .crnum { color: var(--muted); font-size: 14px; }

/* кабинет /creator */
.crpage { max-width: 1080px; padding-bottom: 64px; }
.crpage h1 { font: italic 600 clamp(34px, 5vw, 54px)/1.05 var(--voice); margin: 12px 0 10px; }
.crpage .lead { color: #d9d5ce; max-width: 60ch; margin: 0 0 20px; }
.crpage h2 { font: 800 20px/1.15 var(--display); margin: 0 0 12px; }
.crgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.crtile { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 14px 16px; }
.crtile span { display: block; color: var(--muted); font-size: 13px; }
.crtile b { font: 800 30px/1.1 var(--display); letter-spacing: -.01em; }
.crcard { border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); padding: 20px; margin-top: 18px; }
.crcard.fc { border-color: var(--accent); background: linear-gradient(160deg, #241b0e 0%, var(--bg2) 60%); }
.crbar { height: 10px; border-radius: 999px; background: var(--bg3); overflow: hidden; margin: 6px 0 12px; }
.crbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.crbarlabel { display: flex; justify-content: space-between; font-size: 14px; color: #d9d5ce; }
.crrules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #d9d5ce; }
.crtwo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .crtwo { grid-template-columns: 1fr; } .crbell .crdot { top: 0; } }
.crchart { width: 100%; height: auto; display: block; }
.crchart .axis { stroke: var(--line); stroke-width: 1; }
.crchart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.crchart .area { fill: rgba(255, 181, 74, .14); }
.crchart .bar { fill: #8fd8ff; }
.crchart .bar.h { fill: #ff8a80; }
.crchart text { fill: #c9ced8; font: 12px var(--mono, monospace); }
.crfol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.crfol li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg3); font-size: 14px; }
.crstream { border-top: 1px solid var(--line); padding: 16px 0; }
.crstream:first-of-type { border-top: 0; }
.crstream h3 { font: 700 17px/1.2 var(--display); margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.crstats div { background: var(--bg3); border-radius: 10px; padding: 8px 10px; }
.crstats span { display: block; color: var(--muted); font-size: 14px; }
.crstats b { font: 800 20px/1.1 var(--display); }
.crbest { color: #d9d5ce; font-size: 14px; margin: 6px 0 0; }
.crform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.crform input[type=text] { flex: 1; min-width: 180px; background: var(--bg3); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 10px 16px; }
.crtoggle { display: flex; gap: 10px; align-items: flex-start; }
.crtoggle input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.crok { color: #8de0b0; font-size: 14px; }
.crerr { color: #ff9b94; font-size: 14px; }
.crtotal { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.crlivepill { font: 700 14px/1 var(--mono, monospace); color: #fff; background: #c8283a; border-radius: 999px; padding: 4px 8px; }
