/* Базовые переменные, шрифты, ресет, шапка, фильтры каталога, карточки каналов. */
/* Порядок подключения важен: файл идёт первым, дальше каскад переопределяет его. */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070D;
  --black: #05050D;
  --surface: #1B1B23;
  --surface-2: #27272F;
  --line: #2F2F37;
  --blue: #1E55F9;
  --cyan: #00A5E9;
  --orange: #FF7C02;
  --yellow: #FFC700;
  --red: #E62929;
  --text: #FFFFFF;
  --text-75: rgba(255,255,255,.75);
  --text-40: rgba(255,255,255,.4);
  --font: 'Inter', Arial, sans-serif;
}
body.light-theme {
  --bg: #F4F6FB;
  --black: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --line: #DDE3EE;
  --text: #090B13;
  --text-75: rgba(9,11,19,.75);
  --text-40: rgba(9,11,19,.4);
}
* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body { margin: 0; min-width: 1180px; color: var(--text); background: var(--bg); font-family: var(--font); }
body:has(.modal:not([hidden])), body.modal-open { overflow: hidden; scrollbar-gutter: stable; }
button, input { font: inherit; }
button { padding: 0; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button:disabled,
input:disabled,
select:disabled,
textarea:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }
.site { position: relative; min-height: 100vh; display: flex; flex-direction: column; isolation: isolate; background: var(--bg); }
.site::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern) top center / 672px 672px repeat; opacity: .1; }
.header { position: sticky; top: 0; z-index: 50; width: 100%; height: 72px; padding: 0 max(24px, calc((100% - 1400px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--surface); backdrop-filter: blur(20px); }
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 72px; height: 12px; pointer-events: none; background: linear-gradient(to bottom, rgba(5,7,13,.72), rgba(5,7,13,0)); backdrop-filter: blur(12px); }
body.light-theme .header::after { background: linear-gradient(to bottom, rgba(9,11,19,.16), rgba(9,11,19,0)); }
.brand { width: 54px; height: 54px; margin-left: 0; display: grid; place-items: center; }
.brand img { width: 40px; height: 40px; }
.catalog-menu { position: relative; height: 72px; display: flex; justify-content: center; overflow: visible; }
.catalog-menu::after { content: ""; position: absolute; left: 0; bottom: 0; width: 158px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; box-shadow: 0 -2px 24px rgba(30,85,249,.8); transition: transform .35s ease, background-color .25s ease, box-shadow .25s ease; }
body.hot .catalog-menu::after,
html.route-hot .catalog-menu::after { transform: translateX(158px); background: var(--orange); box-shadow: 0 -2px 24px rgba(255,124,2,.8); }
.nav-item { width: 158px; color: var(--text-75); font: 400 16px/20px var(--font); }
.nav-item.active { color: #fff; font-weight: 600; }
body.light-theme .nav-item.active { color: var(--text); }
body.hot .nav-item[data-route="/channels"],
html.route-hot .nav-item[data-route="/channels"] { color: var(--text-75); font-weight: 400; }
body.hot .nav-item[data-route="/hot"],
html.route-hot .nav-item[data-route="/hot"] { color: #fff; font-weight: 600; }
body.profile-view .nav-item,
body.channel-view .nav-item,
html.route-profile .nav-item,
html.route-channel .nav-item { color: var(--text-75); font-weight: 400; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 32px; }
.language-wrap { position: relative; z-index: 80; }
.language { width: 74px; height: 28px; display: flex; align-items: center; gap: 9px; color: var(--text-75); font: 400 16px/20px var(--font); }
.language img { content: url('../assets/global.png'); width: 28px; height: 28px; object-fit: contain; image-rendering: auto; }
.language i { position: relative; top: -1px; width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transition: transform .2s ease; }
.language-wrap.open .language i { transform: rotate(180deg); }
.language-menu { position: absolute; right: 0; top: 30px; z-index: 90; width: 56px; padding: 4px; display: grid; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; filter: none; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.language-wrap.open .language-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.language-menu button { height: 30px; padding: 0 8px; color: var(--text-75); border-radius: 7px; text-align: center; font: 400 14px/18px var(--font); }
.language-menu button:hover, .language-menu button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.theme { position: relative; width: 53px; height: 28px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 14px; }
.theme::before, .theme::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background-color: #fff; background-position: center; background-repeat: no-repeat; background-size: 14px 14px; border-radius: 50%; transition: transform .35s ease, opacity .2s ease; }
.theme::before { background-image: url('../assets/theme-moon.svg'); opacity: 1; }
.theme::after { background-image: url('../assets/theme-sun.svg'); opacity: 0; }
.theme[data-theme="light"]::before { opacity: 0; transform: translateX(25px) rotate(90deg); }
.theme[data-theme="light"]::after { opacity: 1; transform: translateX(25px) rotate(180deg); }
.login { width: 138px; height: 52px; padding: 0 20px 0 24px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; color: #fff; background: var(--blue); border-radius: 26px; font: 500 16px/20px var(--font); overflow: hidden; }
.login:hover { background: #2864ff; }
.login .avatar { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.login .avatar img { width: 20px; height: 20px; object-fit: contain; }
.login.is-profile,
.login.is-profile:hover { width: 138px; height: 52px; padding: 4px 20px 4px 4px; gap: 12px; justify-content: flex-start; background: var(--black); }
body.light-theme .login.is-profile,
body.light-theme .login.is-profile:hover { color: var(--text); }
.login.is-profile .avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; background: linear-gradient(145deg,#7A1FDB,#240B45); border-radius: 50%; }
.login.is-profile .avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.login .login-text { width: 66px; height: 19px; display: block; line-height: 19px; }
.login .profile-name { position: relative; width: 58px; min-width: 0; overflow: hidden; white-space: nowrap; font: 500 16px/20px var(--font); mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 16px),transparent); }
.page-shell { width: 1400px; min-height: 760px; margin: 40px auto 0; display: grid; grid-template-columns: 314px minmax(0,1fr); gap: 40px; align-items: start; }
.sidebar { width: 314px; }
.add-channel { position: relative; width: 314px; height: 52px; margin-bottom: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blue); background: transparent; border: 1px solid var(--blue); border-radius: 9px; font: 600 16px/20px var(--font); transition: color .2s ease, background-color .2s ease; overflow: hidden; }
.add-channel:hover { color: #fff; background: var(--blue); }
.add-icon { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; font-size: 26px; line-height: 1; transition: opacity .2s ease, transform .5s ease; }
.add-label { transition: opacity .2s ease, transform .2s ease; }
.add-channel:hover .add-label { opacity: 0; transform: translateY(-6px); }
.add-channel:hover .add-icon { opacity: 1; transform: rotate(360deg); }
.filters { width: 314px; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.filter-section, .range-filter, .extras { position: relative; z-index: 1; margin: 0; padding: 20px; overflow: visible; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-section.selector-open, .range-filter.selector-open, .extras.selector-open, .filter-section:has(.category-selector.open), .range-filter:has(.category-selector.open), .extras:has(.category-selector.open) { z-index: 500; }
.section-title { width: 100%; height: 20px; display: flex; align-items: center; justify-content: space-between; color: var(--text); font: 300 16px/20px var(--font); text-align: left; }
.section-chevron { width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; transform: rotate(180deg); transition: transform .2s ease; }
.collapsed .section-chevron { transform: rotate(0); }
.filter-content { position: relative; z-index: 2; max-height: 520px; margin-top: 12px; overflow: visible; transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease, margin .22s ease, transform .22s ease; }
.collapsed .filter-content { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); pointer-events: none; }
.collapsed .extra-content { margin-top: 0; }
.filters .collapsed { height: 61px; padding-top: 20px; padding-bottom: 20px; overflow: hidden; }
.category-selector { position: relative; z-index: 20; width: 274px; }
.chips { position: relative; z-index: 32; width: 274px; height: 42px; padding: 6px; display: flex; align-items: center; gap: 6px; background: var(--black); border-radius: 10px; transition: border-radius .22s ease, box-shadow .22s ease; }
.chips:hover,
.chips:active,
.chips:focus,
.chips:focus-visible {
  color: inherit;
  background: var(--black);
  outline: 0;
}
.selected-categories { position: relative; min-width: 0; flex: 1; display: flex; align-items: center; gap: 6px; overflow: hidden; }
.selected-categories::after { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 100%; pointer-events: none; background: linear-gradient(90deg, rgba(5,5,13,0), var(--black) 88%); }
.selected-categories:has(.empty-selection)::after { display: none; }
.empty-selection { padding-left: 6px; color: var(--text-40); font: 500 14px/18px var(--font); }
.chip { height: 30px; padding: 0 10px; color: #1E55F9; background: rgba(30,85,249,.16); border-radius: 5px; font: 400 14px/18px var(--font); transition: opacity .18s ease, transform .18s ease, background-color .18s ease; }
.chip:hover,
.chip:active,
.chip:focus,
.chip:focus-visible,
.chip.selected,
.chips:active .chip.selected,
.chips:focus .chip.selected {
  color: #1E55F9;
  background: rgba(30,85,249,.16);
  outline: 0;
}
.chip.selected {
  transition-property: opacity, transform;
}
.chip.just-added { animation: chipIn .18s ease both; }
.chip.removing { opacity: 0; transform: scale(.86); }
.chip.more { width: 20px; padding: 0; flex: 0 0 20px; background: url('../assets/chevron-down.svg') center/9px 5px no-repeat; color: transparent; transform: rotate(0); }
.category-selector.open .chips { border-radius: 10px 10px 0 0; }
.category-selector.open .chip.more { transform: rotate(180deg); }
.dropdown-panel { position: absolute; z-index: 1000; top: 42px; left: 0; width: 274px; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--black); border-radius: 0 0 10px 10px; transition: opacity .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.category-selector.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.category-options { height: 385px; padding: 54px 12px 12px; overflow: hidden; }
.dropdown-search { position: absolute; top: 6px; left: 12px; width: 250px; height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; }
.dropdown-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s ease; }
.dropdown-search.has-value img, .catalog-search.has-value img, .moderation-search.has-value img { opacity: 1; filter: brightness(0) invert(1); }
.dropdown-search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; font: 400 14px/18px var(--font); }
.search-clear { display: none; }
.option-list { width: 250px; height: 319px; padding-right: 10px; overflow-y: auto; scrollbar-width: none; }
.option-list::-webkit-scrollbar { display: none; }
.option-list button { width: 100%; height: 29px; padding: 0 8px; display: block; color: var(--text-75); text-align: left; font: 400 14px/18px var(--font); }
.option-list button:hover, .option-list button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.custom-scrollbar { position: absolute; top: 54px; right: 8px; width: 10px; height: 319px; cursor: pointer; }
.custom-scrollbar::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: #2D2D34; }
.custom-scrollbar i { position: absolute; left: 4px; top: 0; width: 2px; height: 42px; background: #fff; transition: top .08s linear; }
.title-left { display: inline-flex; align-items: center; gap: 8px; }
.currency-icon { width: 18px; height: 18px; }
.currency-switch { position: relative; width: 38px; height: 20px; display: inline-block; background: rgba(255,255,255,.08); border-radius: 10px; }
.currency-switch::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; background: #3F763B; border-radius: 50%; transform: translateX(2px); transition: transform .2s ease, background-color .2s ease; }
.currency-switch[aria-checked="true"]::before { background: #30A0F4; transform: translateX(20px); }
.range-values { width: 274px; display: grid; grid-template-columns: 133px 133px; gap: 8px; }
.range-values label { height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; background: var(--black); border-radius: 10px; }
.range-values small { color: var(--text-40); font: 400 12px/15px var(--font); }
.range-values input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; font: 500 16px/20px var(--font); }
.dual-range { position: relative; width: 274px; height: 18px; margin-top: 12px; }
.dual-range::before, .range-fill { content: ""; position: absolute; top: 7px; height: 4px; border-radius: 2px; }
.dual-range::before { left: 0; right: 0; background: rgba(30,85,249,.24); }
.range-fill { left: var(--range-start); right: calc(100% - var(--range-end)); background: var(--blue); }
.dual-range input { position: absolute; inset: 0; width: 100%; height: 18px; margin: 0; pointer-events: none; appearance: none; background: transparent; }
.dual-range input::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: 0; pointer-events: auto; appearance: none; background: var(--blue); border: 2px solid #F0F2FA; border-radius: 50%; }
.extra-content { display: grid; gap: 12px; margin-top: 24px; }
.extras label { min-height: 20px; display: flex; align-items: center; gap: 8px; color: var(--text-75); font: 400 16px/20px var(--font); }
.payment-extra-filter b,
.payment-extra-filter .payment-currency-word {
  font-weight: 700;
}
.payment-extra-filter .currency-word-rub,
.currency-word-rub { color: #3F763B; font-weight: 700; }
.payment-extra-filter .currency-word-gram,
.currency-word-gram { color: #30A0F4; font-weight: 700; }
.extras input[type="checkbox"] { width: 20px; height: 20px; margin: 0; appearance: none; border: 1px solid #343640; border-radius: 4px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.extras input[type="checkbox"]:checked { background: url('../assets/check-box.svg') center/20px 20px no-repeat; border-color: transparent; animation: checkboxPop .22s ease; }
.filter-option-icon { width: 16px; height: 16px; margin-left: 0; object-fit: contain; }
.catalog-favorite-filter .filter-favorite-icon { width: 16px; height: 16px; flex: 0 0 16px; background: #FF7C02; mask: url('../assets/heart-on.svg') center/contain no-repeat; -webkit-mask: url('../assets/heart-on.svg') center/contain no-repeat; }
.channel-type { margin-top: 12px; }
.channel-type strong { display: block; margin-bottom: 12px; color: var(--text); font: 300 16px/20px var(--font); }
.channel-type > div { position: relative; width: max-content; height: 38px; padding: 4px; display: flex; align-items: center; gap: 2px; background: var(--black); border-radius: 10px; overflow: hidden; }
.channel-type > div::before { content: ""; position: absolute; left: var(--type-x, 4px); top: 4px; width: var(--type-w, 46px); height: 30px; background: var(--surface); border-radius: 6px; transition: left .24s ease, width .24s ease; }
.channel-type button { position: relative; z-index: 1; height: 30px; padding: 0 10px; color: var(--text-75); border-radius: 6px; font: 400 14px/18px var(--font); transition: color .2s ease; }
.channel-type button.selected { color: var(--text); background: transparent; }
.filter-actions { padding: 18px 20px; display: grid; gap: 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.filter-actions button, .clear-filters { display: flex; align-items: center; gap: 10px; color: var(--text-75); font: 400 15px/20px var(--font); text-align: left; }
.filter-actions img, .clear-filters img { width: 16px; height: 16px; object-fit: contain; }
.clear-filters { width: 100%; height: 64px; padding: 0 20px; color: #FF4050; }
.catalog-empty { position: relative; min-height: 760px; padding-bottom: 80px; }
.catalog-state-indicator { position: absolute; top: 64px; right: 0; z-index: 2; min-height: 20px; color: var(--text-75); font: 400 13px/20px var(--font); text-align: right; }
.catalog-state-indicator.is-error { color: #FF8B8B; }
.catalog-state-indicator .catalog-state-retry { margin-left: 8px; color: var(--blue); text-decoration: underline; }
.catalog-is-updating .channel-grid { opacity: .66; transition: opacity .2s ease; }
.catalog-toolbar { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; }
.catalog-search { width: 371px; height: 52px; padding: 0 18px; display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; }
.catalog-search img { width: 16px; height: 16px; flex: 0 0 16px; align-self: center; opacity: .4; filter: none; transition: opacity .28s ease, filter .28s ease; }
.catalog-search input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; appearance: none; font: 300 16px/20px var(--font); }
.catalog-search input::placeholder { color: var(--text-40); }
.catalog-controls { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.reach-periods { display: flex; align-items: center; gap: 10px; }
.reach-periods[hidden] { display: none !important; }
.reach-periods button { width: var(--period-width); height: 52px; color: var(--text-75); background: transparent; border: 1px solid var(--line); border-radius: 10px; font: 500 16px/20px var(--font); }
.reach-periods button.selected { color: var(--black); background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); }
body.light-theme .reach-periods button.selected { color: var(--text); }
.catalog-sort { position: relative; width: 220px; height: 52px; padding: 0 17px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 10px; transition: border-radius .18s ease; }
.sort-direction { width: 18px; height: 52px; display: grid; place-items: center; align-self: center; }
.sort-direction img { width: 16px; height: 16px; transition: transform .25s ease; }
.sort-direction[aria-pressed="true"] img { transform: scaleY(-1); }
.sort-dropdown { position: static; flex: 1; }
.dropdown-trigger { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-40); font: 300 16px/20px var(--font); }
.dropdown-trigger i { width: 9px; height: 5px; background: url('../assets/chevron-down.svg') center/contain no-repeat; }
.sort-dropdown .dropdown-panel { position: absolute; z-index: 1000; left: 0; top: 52px; width: 220px; box-sizing: border-box; padding: 0; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-8px) scaleY(.96); transform-origin: top center; background: var(--surface); border-radius: 0 0 10px 10px; transition: opacity .22s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .22s; }
.catalog-sort:has(.sort-dropdown.open) { border-radius: 10px 10px 0 0; }
.sort-dropdown.open .dropdown-panel { visibility: visible; opacity: 1; transform: translateY(0) scaleY(1); }
.sort-dropdown .dropdown-panel button { width: 100%; height: 36px; box-sizing: border-box; padding: 0 17px; display: flex; align-items: center; color: var(--text-75); text-align: left; font: 300 16px/20px var(--font); }
.sort-dropdown .dropdown-panel button:hover, .sort-dropdown .dropdown-panel button.selected { color: var(--blue); background: rgba(30,85,249,.12); }
.channel-grid { width: 1046px; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 338px); gap: 16px; }
.catalog-state-panel { min-height: 486px; grid-column: 1 / -1; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--text-75); background: var(--surface); border-radius: 16px; font: 400 16px/22px var(--font); text-align: center; }
.catalog-state-panel p { margin: 0; }
.catalog-state-retry { min-width: 120px; height: 40px; padding: 0 18px; color: #fff; background: var(--blue); border-radius: 8px; font: 500 14px/18px var(--font); }
.catalog-state-retry:hover { background: #2864ff; }
.catalog-skeleton-card { pointer-events: none; }
.catalog-skeleton-card > * { position: absolute; overflow: hidden; background: linear-gradient(90deg, var(--surface-2) 0%, rgba(255,255,255,.16) 50%, var(--surface-2) 100%); background-size: 220% 100%; animation: catalogSkeletonShimmer 1.4s ease-in-out infinite; }
.catalog-skeleton-cover { top: 0; left: 44px; width: 294px; height: 88px; border-radius: 0 16px 0 0; }
.catalog-skeleton-avatar { top: 0; left: 0; width: 88px; height: 88px; box-sizing: border-box; border: 12px solid var(--surface); border-radius: 50%; }
.catalog-skeleton-title { top: 96px; left: 24px; width: 290px; height: 22px; border-radius: 5px; text-align: left; }
.catalog-skeleton-description { top: 126px; left: 24px; width: 290px; height: 36px; border-radius: 5px; text-align: left; }
.catalog-skeleton-metric { width: 151px; height: 45px; display: block; border-radius: 8px; }
.catalog-skeleton-metric.metric-1 { top: 186px; left: 16px; }
.catalog-skeleton-metric.metric-2 { top: 186px; left: 171px; }
.catalog-skeleton-metric.metric-3 { top: 235px; left: 16px; }
.catalog-skeleton-metric.metric-4 { top: 235px; left: 171px; }
.catalog-skeleton-price { top: 335px; left: 100px; width: 138px; height: 29px; border-radius: 6px; }
.catalog-skeleton-slots { top: 372px; left: 50%; width: 169px; height: 38px; border-radius: 9px; transform: translateX(-50%); }
.catalog-skeleton-hot-deal, .catalog-skeleton-countdown { display: none; }
.catalog-skeleton-action { right: 12px; bottom: 12px; left: 12px; height: 48px; border-radius: 10px; }
body.hot .catalog-skeleton-card { height: 512px; }
body.hot .catalog-skeleton-slots { display: none; }
body.hot .catalog-skeleton-hot-deal { top: 372px; left: 50%; width: 169px; height: 38px; display: block; border-radius: 9px; transform: translateX(-50%); }
body.hot .catalog-skeleton-action { bottom: 38px; }
body.hot .catalog-skeleton-countdown { right: 12px; bottom: 12px; left: 12px; height: 26px; display: block; border-radius: 10px; }
@keyframes catalogSkeletonShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.channel-card { position: relative; width: 338px; height: 486px; overflow: hidden; color: var(--text); background: var(--surface); border-radius: 16px; cursor: default; transition: box-shadow .2s ease; }
.channel-card:hover { box-shadow: 0 0 0 2px rgba(30,85,249,.35); }
body.hot .channel-card:hover { box-shadow: 0 0 0 2px rgba(255,124,2,.35); }
.card-page-link { position: absolute; inset: 0; z-index: 7; display: block; color: inherit; text-decoration: none; border-radius: inherit; pointer-events: none; }
.card-cover { position: relative; width: 294px; height: 88px; margin-left: 44px; overflow: visible; border-radius: 0 16px 0 0; cursor: pointer; }
.card-cover::before { content: ""; position: absolute; inset: 0; width: 294px; background: var(--cover-bg); border-radius: 0 16px 0 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.card-avatar { position: absolute; z-index: 4; left: -44px; top: 0; width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; background: var(--avatar-bg); border: 12px solid var(--surface); border-radius: 50%; }
.avatar-letter { width: 64px; height: 64px; display: grid; place-items: center; color: #fff; font: 700 26px/1 var(--font); }
.card-pro { position: absolute; z-index: 6; left: -36px; top: 8px; width: 41px; height: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(90deg,var(--orange),var(--yellow)); border: 2px solid var(--surface); border-radius: 11px; font: 700 12px/18px var(--font); }
.card-favorite { position: absolute; z-index: 10; top: 14px; right: 15px; width: 20px; height: 20px; }
.card-favorite img { width: 18px; height: 18px; transition: transform .2s ease, filter .2s ease; }
.card-favorite.is-favorite-animating img { animation: favoritePop .28s ease; }
.card-tags { position: absolute; z-index: 6; right: 12px; bottom: 12px; display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; }
.card-tag { height: 24px; padding: 0 8px; display: grid; place-items: center; color: var(--cyan); background: rgba(0,165,233,.18); border-radius: 5px; font: 400 11px/14px var(--font); }
.card-tags .card-tag,
.channel-view .detail-cover-tags .card-tag { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.card-tag.icon { width: 24px; padding: 5px; }
.card-tag.icon.ad { background: rgba(255,124,2,.18); }
.card-tag.icon img { width: 14px; height: 14px; }
.card-title-line { position: absolute; left: 24px; top: 96px; width: 290px; height: 22px; display: flex; align-items: center; gap: 9px; overflow: hidden; text-align: left; mask-image: linear-gradient(to right,#000 0,#000 calc(100% - 28px),transparent); }
.card-title { margin: 0; color: var(--text); white-space: nowrap; font: 600 18px/22px var(--font); }
.card-verified { width: 16px; height: 16px; flex: 0 0 16px; }
.card-description { position: absolute; left: 24px; top: 126px; width: 290px; height: 36px; margin: 0; padding-left: 11px; overflow: hidden; color: var(--text-75); border-left: 3px solid #058FF9; text-align: left; font: 400 12px/18px var(--font); }
.card-metrics { position: absolute; left: 12px; top: 182px; width: 314px; height: 137px; padding: 4px; display: grid; grid-template-columns: 151px 151px; grid-template-rows: 45px 45px 31px; gap: 4px; background: var(--surface-2); border-radius: 12px; }
.metric { width: 151px; height: 45px; padding: 6px 10px 0; background: transparent; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.metric small { display: block; color: var(--text-40); font: 400 10px/12px var(--font); }
.metric strong { margin-top: 2px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 500 16px/19px var(--font); }
.metric strong::after { content: ""; width: 12px; height: 12px; background: url('../assets/metric-line-up.svg') center/contain no-repeat; }
.metric:nth-child(2) strong::after { background: url('../assets/metric-emotion-puzzled.svg') center/contain no-repeat; transform: none; }
.metric:nth-child(3) strong::after { background: url('../assets/metric-emotion-happy.svg') center/contain no-repeat; display: inline-block; }
.metric:nth-child(4) strong::after { background: url('../assets/metric-emotion-sad.svg') center/contain no-repeat; display: inline-block; }
.metric-orders strong::after, .metric-score strong::after { display: none; }
.metric-orders, .metric-score { height: 31px; padding: 0 10px 0 12px; display: flex; align-items: center; background: var(--surface); border: 0; }
.metric-orders strong, .metric-score strong { margin: 0; color: var(--blue); }
.metric-score strong { color: #F7C02A; }
.metric-orders small, .metric-score small { margin-left: auto; }
.metric-icon { position: relative; top: 1.5px; margin-right: 5.5px; }
.card-price { position: absolute; left: 0; right: 0; top: 335px; display: flex; align-items: center; justify-content: center; color: var(--text); font: 600 24px/29px var(--font); }
.price-ruble { margin-left: 6px; }
.price-gram { width: .9em; height: .9em; margin-left: 0; display: inline-block; flex: 0 0 auto; color: currentColor; background: currentColor; vertical-align: -0.08em; mask: url('../assets/gram-price.svg') center/contain no-repeat; -webkit-mask: url('../assets/gram-price.svg') center/contain no-repeat; }
.card-price .price-gram { width: .78em; height: .78em; margin-left: .25em; vertical-align: -0.04em; }
.card-slots { position: absolute; z-index: 10; left: 50%; top: 372px; width: 169px; height: 38px; padding: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-75); background: var(--black); border-radius: 9px; transform: translateX(-50%); font: 400 14px/18px var(--font); }
.card-slots::before { content: ""; position: absolute; left: var(--slot-x, 4px); top: 4px; width: var(--slot-w, 45px); height: 30px; background: var(--surface); border-radius: 6px; transition: left .24s ease, width .24s ease; }
.card-slots.no-slot-transition::before { transition: none; }
.card-slots button { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: 30px; padding: 6px 0; display: grid; place-items: center; color: var(--text-75); border-radius: 6px; transition: color .2s ease; }
.card-slots .selected { color: var(--text); background: transparent; }
.card-buy { position: absolute; z-index: 10; left: 12px; bottom: 12px; width: 314px; height: 48px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 10px; font: 600 16px/20px var(--font); transition: left .32s cubic-bezier(.22,1,.36,1), width .32s cubic-bezier(.22,1,.36,1), background-color .2s ease, border-color .2s ease; }
.card-buy:hover, .card-buy:active { color: #fff; background: var(--blue); }
.hot-buy-label, .card-countdown { display: none; }
.hot-deal { display: none; }
body.hot .channel-card { height: 540px; }
body.hot .card-slots { display: none; }
body.hot .hot-deal { position: absolute; left: 50%; top: 372px; display: flex; align-items: center; justify-content: center; gap: 4px; transform: translateX(-50%); white-space: nowrap; font: 400 14px/18px var(--font); }
body.hot .hot-deal span, body.hot .hot-deal b { min-height: 30px; padding: 6px 10px; display: grid; place-items: center; color: #fff; border-radius: 6px; background: var(--surface-2); }
body.hot .hot-deal b { background: linear-gradient(90deg, #FF9496 0%, #FF0000 100%); font-weight: 400; }
body.hot .card-buy { bottom: 38px; color: #fff; border-color: var(--orange); background: var(--orange); }
body.hot .card-buy:hover, body.hot .card-buy:active { color: #fff; background: var(--orange); }
body.hot .catalog-buy-label { display: none; }
body.hot .hot-buy-label { display: inline; }
body.hot .card-countdown { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--orange); background: rgba(255,124,2,.12); border-radius: 10px; font: 500 14px/18px var(--font); }
.clock-icon { width: 18px; height: 18px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.timer-clock-icon { width: 18px; min-width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 18px; line-height: 18px; }
.timer-clock-icon > .timer-clock-image { width: 13.5px; min-width: 13.5px; height: 13.5px; min-height: 13.5px; flex: 0 0 13.5px; aspect-ratio: 1 / 1; display: block; object-fit: contain; }
