:root {
    --bg: #101012;
    --surface: #1a1a1e;
    --surface-2: #26262c;
    --line: #34343c;
    --text: #f4f3ee;
    --muted: #a3a2a8;
    --accent: #e6ff4d;
    --accent-ink: #15170a;
    --danger: #ff7a6b;
    --ok: #7ee2a0;
    --radius: 10px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: 20px; }
.page { flex: 1; padding-top: 28px; padding-bottom: 56px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(16, 16, 18, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font: 400 28px/1 Impact, "Arial Narrow Bold", "Arial Black", sans-serif; letter-spacing: .5px; text-decoration: none; text-transform: uppercase; }
.logo span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; white-space: nowrap; }
.site-nav a:not(.button) { text-decoration: none; }
.site-nav form { display: flex; margin: 0; }

/* Поиск */
.search { position: relative; display: flex; flex: 1; max-width: 640px; }
.search__input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font: inherit; }
.search__input:focus { outline: none; border-color: var(--accent); }
.search__button { height: 44px; padding: 0 18px; color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 0 var(--radius) var(--radius) 0; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.suggest[hidden] { display: none; }
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; }
.suggest__item:hover, .suggest__item.is-active { color: var(--text); background: var(--surface-2); }
.suggest__item img { flex: none; width: 72px; height: 42px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.suggest__title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__duration { color: var(--muted); font-size: 13px; }

/* Кнопки */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { color: var(--accent-ink); background: #f1ff8a; }
.button--small { min-height: 36px; padding: 0 14px; }
.button--large { min-height: 54px; padding: 0 30px; font-size: 17px; }
.button--ghost { color: var(--text); background: transparent; border-color: var(--line); }
.button--ghost:hover { color: var(--text); background: var(--surface-2); }
.link-button { padding: 0; color: inherit; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.site-nav .link-button { text-decoration: none; }
.site-nav .link-button:hover { color: var(--accent); }
.badge--blocked { color: var(--danger); }
.table__actions--stack { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.table__actions--stack form { margin: 0; }
tr.is-blocked td:first-child { color: var(--muted); }
.link-button:hover { color: var(--accent); }
.link-button--danger, .link-button--danger:hover { color: var(--danger); }

/* Каталог */
.catalog-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.catalog-head__title { font-size: 30px; overflow-wrap: anywhere; }
.catalog-head__count { color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 6px 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 24px; }
.segmented { display: inline-flex; overflow-x: auto; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.segmented a { padding: 8px 14px; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--text); }
.segmented a.is-active { color: var(--text); background: var(--surface-2); }
.notice { margin: 0 0 20px; padding: 10px 14px; color: var(--muted); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.card-wrap { position: relative; min-width: 0; }
.card-wrap__favorite { position: absolute; top: 8px; right: 8px; margin: 0; }
.heart { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.favorite { display: inline-flex; align-items: center; gap: 8px; color: var(--text); border: 0; font: inherit; text-decoration: none; cursor: pointer; }
.favorite:hover { color: var(--accent); }
.favorite[aria-pressed="true"] { color: var(--accent); }
.favorite[aria-pressed="true"] .heart { fill: currentColor; }
.favorite--icon { justify-content: center; width: 36px; height: 36px; background: rgba(0, 0, 0, .68); border-radius: 50%; }
.favorite--labeled { min-height: 36px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.watch__favorite { display: inline-flex; margin: 10px 0 0; }
.site-nav__icon { display: inline-flex; align-items: center; gap: 6px; }
.card { display: block; min-width: 0; text-decoration: none; }
.card:hover { color: inherit; }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); border-radius: var(--radius); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__title { color: var(--accent); }
.card__duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; color: #fff; background: rgba(0, 0, 0, .78); border-radius: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
.card__title { display: -webkit-box; margin: 10px 0 2px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 16px; font-weight: 600; }
.card__snippet { display: -webkit-box; margin: 0 0 4px; overflow: hidden; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; font-style: italic; }
.card__meta { margin: 0; color: var(--muted); font-size: 14px; }
.empty { max-width: 480px; margin: 60px auto; text-align: center; }
.empty h1, .empty h2 { font-size: 26px; }
.empty p { color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination__item { min-width: 40px; padding: 8px 12px; text-align: center; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pagination__item.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.pagination__item.is-disabled { color: var(--muted); opacity: .6; }

/* Страница видео */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.player { overflow: hidden; background: #000; border-radius: var(--radius); }
.player video { display: block; width: 100%; max-height: 76vh; background: #000; }
.watch__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 18px 0; }
.watch__title { font-size: 26px; overflow-wrap: anywhere; }
.watch__meta { margin: 6px 0 0; color: var(--muted); }
.download { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.download__info { color: var(--muted); font-size: 13px; }
.dropdown { position: relative; }
.dropdown__toggle { gap: 10px; list-style: none; user-select: none; }
.dropdown__toggle::-webkit-details-marker { display: none; }
.dropdown__toggle::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.dropdown[open] .dropdown__toggle::after { margin-top: 3px; transform: rotate(-135deg); }
.dropdown__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; min-width: 240px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.dropdown__item { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; }
.dropdown__item:hover, .dropdown__item:focus-visible { color: var(--text); background: var(--line); }
.dropdown button.dropdown__item { width: 100%; color: inherit; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.dropdown button.dropdown__item[hidden] { display: none; }
.dropdown button.dropdown__item:disabled, .dropdown a.dropdown__item.is-busy { opacity: .6; cursor: progress; }
.share__status { margin: 4px 12px 6px; color: var(--muted); font-size: 13px; }
.share__status[hidden] { display: none; }
.share__status.is-error { color: var(--danger); }
.dropdown__item strong { display: block; font-weight: 600; }
.dropdown__item span { color: var(--muted); font-size: 13px; }
.audio { margin-bottom: 18px; }
.audio__player { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius); }
.audio__toggle { position: relative; flex: none; width: 46px; height: 46px; background: var(--accent); border: 0; border-radius: 50%; cursor: pointer; }
.audio__toggle:hover { background: #f1ff8a; }
.audio__toggle::before { content: ""; position: absolute; top: 15px; left: 18px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--accent-ink); }
.audio__toggle.is-playing::before { top: 15px; left: 16px; width: 14px; height: 16px; border-width: 0 5px; border-color: var(--accent-ink); }
.audio__toggle.is-loading { opacity: .6; cursor: progress; }
.audio__track { flex: 1; min-width: 0; }
.audio__seek { display: block; width: 100%; margin: 0 0 6px; accent-color: var(--accent); cursor: pointer; }
.audio__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; }
.audio__time { font-variant-numeric: tabular-nums; }
.audio__info { color: var(--muted); }
.audio__info.is-error { color: var(--danger); }
.transcript { margin-bottom: 18px; }
.transcript__list { max-height: 360px; margin: 0; padding: 8px; overflow-y: auto; list-style: none; background: var(--surface); border-radius: var(--radius); }
.transcript__line { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 6px; }
.transcript__line:hover { background: var(--surface-2); }
.transcript__time { justify-self: start; padding: 2px 8px; color: var(--accent); background: none; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.transcript__time:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.transcript__text { grid-column: 2; overflow-wrap: anywhere; }
.specs { margin-bottom: 18px; }
.specs__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; margin: 0; padding: 6px 18px; background: var(--surface); border-radius: var(--radius); }
.specs__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs__list > div:last-child { border-bottom: 0; }
.specs__list dt { color: var(--muted); }
.specs__list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.description { margin-bottom: 18px; padding: 16px 18px; white-space: pre-line; overflow-wrap: anywhere; background: var(--surface); border-radius: var(--radius); }
.section-title { margin-bottom: 14px; font-size: 19px; }
.side-list { display: grid; gap: 22px; }

/* Подписка */
.plan { max-width: 620px; margin: 24px auto; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.plan__title { font-size: 32px; }
.plan__lead { color: var(--muted); }
.plan__price { margin: 22px 0; color: var(--muted); font-size: 18px; }
.plan__price strong { color: var(--accent); font: 400 56px/1 Impact, "Arial Narrow Bold", "Arial Black", sans-serif; }
.plan__list { margin: 0 0 26px; padding-left: 20px; }
.plan__list li { margin-bottom: 6px; }
.plan__active { padding: 10px 14px; color: var(--ok); background: rgba(126, 226, 160, .1); border-radius: 8px; }
.plan__hint { margin-bottom: 0; color: var(--muted); }

/* Формы */
.form { display: flex; flex-direction: column; gap: 16px; }
.form > .button { align-self: flex-start; }
.auth-form > .button { align-self: stretch; }
.form h1 { font-size: 28px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form small { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="file"], textarea, select { width: 100%; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font: 400 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
textarea { resize: vertical; }
.form label.checkbox { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; }
.form--wide { max-width: 760px; }
.form__poster { width: 320px; max-width: 100%; border-radius: var(--radius); }
.form__meta { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.form__actions { display: flex; gap: 10px; }
.form small.form__error { color: var(--danger); }
.tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs[hidden] { display: none; }
.tabs__tab { flex: none; padding: 8px 0; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; cursor: pointer; }
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tabs__panel { display: flex; flex-direction: column; gap: 16px; }
.tabs__panel[hidden] { display: none; }
.transcribe-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.transcribe-bar__status { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.transcribe-bar .button:disabled { opacity: .6; cursor: progress; }
.auth-page { max-width: 400px; margin: 32px auto; }
.auth-page .flash { margin: 12px 0 0; }
.auth-form { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.auth-form input:not([type="checkbox"]) { background: var(--bg); }
.auth-form__links { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; }
.auth-form__links--center { justify-content: center; }
.auth-form__links--center a:hover { background: none; }
.flash { margin-bottom: 20px; padding: 12px 16px; color: var(--ok); background: rgba(126, 226, 160, .1); border: 1px solid rgba(126, 226, 160, .3); border-radius: 8px; }
.flash[hidden] { display: none; }
.flash--error { color: var(--danger); background: rgba(255, 122, 107, .1); border-color: rgba(255, 122, 107, .35); }
.progress { position: relative; overflow: hidden; height: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.progress[hidden] { display: none; }
.progress__bar { width: 0; height: 100%; background: var(--accent); transition: width .15s linear; }
.progress__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; mix-blend-mode: difference; }

/* Админка */
.admin-nav { display: flex; gap: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 8px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.admin-nav a.is-active { color: var(--text); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { padding: 14px 16px; color: var(--muted); background: var(--surface); border-radius: var(--radius); font-size: 14px; }
.stat strong { display: block; color: var(--text); font-size: 24px; }
.stat--alert strong { color: var(--danger); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.toolbar__search { display: flex; flex: 1; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.toolbar__search input { flex: 1; min-width: 180px; }
.toolbar__search select { width: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table__poster { width: 88px; }
.table__poster img { width: 72px; height: 42px; object-fit: cover; border-radius: 4px; }
.table__error { max-width: 360px; margin-top: 4px; color: var(--danger); font-size: 12px; }
.table__actions { white-space: nowrap; }
.table__actions form { display: inline; margin-right: 10px; }
.table__empty { padding: 32px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 2px 8px; background: var(--surface-2); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.badge--ready { color: var(--ok); }
.badge--failed { color: var(--danger); }
.badge--processing, .badge--pending { color: var(--accent); }
.inline-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.inline-form input { width: 76px; padding: 5px 8px; font-size: 14px; }
.danger-zone { max-width: 760px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Админка: массовые действия */
.toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar__actions form { margin: 0; }
.poster-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.poster-picker input { width: 120px; }
.bulk-list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.bulk-list[hidden], [data-bulk-done][hidden], .table__error[hidden], .empty[hidden] { display: none; }
.bulk-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.bulk-list .is-error { color: var(--danger); }
.bulk-list .is-done { color: var(--ok); }

/* Права и документы */
.specs__report { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.specs__report a { color: var(--muted); }
.rights__title { margin: 8px 0 0; font-size: 15px; }
.rights__message { white-space: pre-line; overflow-wrap: anywhere; min-width: 200px; }
.takedown-form input { width: 100%; max-width: 420px; }
.form label.consent { align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 3px; }
.complaint-page, .feedback-page { max-width: 560px; }
.topic-choice { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; border: 0; }
.topic-choice legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form .topic-choice__item { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 15px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal .flash { margin: 12px 0 16px; }
.legal .about__card p + p { margin-top: 8px; }
.profile__delete { align-self: flex-start; }

/* О проекте */
.about { max-width: 760px; }
.about__title { font-size: 32px; }
.about__lead { margin: 12px 0 24px; color: var(--muted); font-size: 18px; }
.about__card { margin-bottom: 16px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); }
.about__card .section-title { margin-bottom: 12px; }
.about__card p { margin: 0; overflow-wrap: anywhere; }
.about__list { margin: 0; padding-left: 20px; }
.about__list li { margin-bottom: 8px; }
.about__list li:last-child { margin-bottom: 0; }
.about__card p + .about__list, .about__card .about__list + p { margin-top: 8px; }
.about__author { font-weight: 600; }
.about__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 0; list-style: none; }

/* Профиль */
.profile__title { margin-bottom: 20px; font-size: 28px; }
.profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.profile__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.profile__card.form { align-items: stretch; }
.profile__card .section-title { margin: 0; }
.profile__card input { background: var(--bg); }
.profile__card input:disabled { color: var(--muted); }
.profile__card .plan__active { margin: 0; }
.profile__muted { margin: 0; color: var(--muted); }
.profile__wide { grid-column: 1 / -1; align-items: stretch; }

/* SEO */
.seo-phrases { color: var(--muted); font-size: 14px; }
.seo-phrases summary { cursor: pointer; }
.seo-phrases .table-wrap { margin-top: 8px; }
.seo-phrases .table { color: var(--text); }

/* Аналитика */
.analytics-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.analytics-head h1 { font-size: 28px; }
.stat__delta { display: block; margin-top: 4px; font-size: 12px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.chart { min-width: 0; padding: 16px 18px; background: var(--surface); border-radius: var(--radius); }
.chart__title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.chart__title span { color: var(--muted); font-weight: 400; }
.chart__body { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 8px; }
.chart__ticks { display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.chart__plot { display: block; width: 100%; height: 170px; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__bar { fill: var(--accent); pointer-events: none; }
.chart__hit { fill: transparent; pointer-events: all; }
.chart__hit:hover { fill: rgba(244, 243, 238, .08); }
.chart__dates { display: flex; grid-column: 2; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.chart__empty { margin: 0; padding: 36px 0; color: var(--muted); text-align: center; }
.chart-tooltip { position: fixed; z-index: 30; padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font-size: 13px; pointer-events: none; white-space: nowrap; }
.chart-tooltip[hidden] { display: none; }
.tops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.tops__wide { grid-column: 1 / -1; }
.tops .table a { overflow-wrap: anywhere; }

.site-footer { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; }

@media (max-width: 1000px) {
    .watch { grid-template-columns: minmax(0, 1fr); }
    .side-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 720px) {
    .container { padding-inline: 14px; }
    .page { padding-top: 18px; }
    .site-header__inner { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
    .site-nav { gap: 12px; }
    .site-nav__icon span { display: none; }
    .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding-inline: 14px; scrollbar-width: none; }
    .chip { flex: none; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .catalog-head__title { font-size: 24px; }
    .filters { flex-direction: column; align-items: flex-start; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 12px; }
    .card__title { font-size: 15px; }
    .download { align-items: stretch; width: 100%; }
    .dropdown__toggle { display: flex; }
    .charts { grid-template-columns: minmax(0, 1fr); }
    .profile { grid-template-columns: minmax(0, 1fr); }
    .tops { grid-template-columns: minmax(0, 1fr); }
    .dropdown__menu { left: 0; }
    .share { width: 100%; }
    .share .dropdown__toggle { display: flex; }
    .audio__player { padding: 14px; }
    .plan { padding: 22px; }
    .plan__title { font-size: 26px; }
}
