/* Figma main page (desktop-first, matches design tokens from spec) */

/* CSS Variables from Figma */
:root {
    /* Colors */
    --almost-black: #0E0E0E;
    --white: #FFFFFF;
    --gray-1: #333333;
    --gray-2: #828282;
    --gray-3: #DDDDDD;
    --prim: #2A8EE7;
    --hover: #167AD3;
    --background: #BCDFFF;
    
    /* Typography */
    --font-comfortaa: 'Comfortaa';
    --font-inter: 'Inter';
    
    /* Font Sizes */
    --text-14: 14px;
    --text-20: 20px;
    --text-24: 24px;
    --text-32: 32px;
    
    /* Line Heights */
    --line-height-150: 150%;
    --line-height-130: 130%;
    
    /* Gaps */
    --gap-8: 8px;
    --gap-12: 12px;
    --gap-16: 16px;
    --gap-24: 24px;
    --gap-32: 32px;
    --gap-40: 40px;
    --gap-56: 56px;
    
    /* Border Radius */
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-16: 16px;
    
    /* Shadows */
    --shadow-header: 0px 4px 36px rgba(0, 0, 0, 0.05);
    --shadow-card: 0px 0px 4.8px rgba(0, 0, 0, 0.2);
    
    /* Widths */
    --width-main: 1290px;
    --width-content: 1200px;
    --width-col-main: 770px;
    --width-col-side: 376px;
}

:root {
    --f-bg: #bcdfff;
    --f-white: #ffffff;
    --f-almost: #0e0e0e;
    --f-gray-1: #333333;
    --f-gray-2: #828282;
    --f-gray-3: #dddddd;
    --f-prim: #2a8ee7;
    --f-hover: #167ad3;
    --f-h1: 32px;
    --f-h2: 20px;
    --f-body: 14px;
    --f-radius-input: 8px;
    --f-radius-card: 12px;
    --f-radius-sm: 4px;
    --f-shadow-header: 0 4px 36px rgba(0, 0, 0, 0.05);
    --f-shadow-fab: 0 0 4.8px rgba(0, 0, 0, 0.2);
    --f-max: 1290px;
    /* Единая колонка контента: header + main выравниваются по бокам */
    --f-content: 1200px;
    --f-pad-x: 45px;
    /* Figma: Icons / 24 (bounding Gray 1, glyph ink при необходимости) */
    --f-icon-ink: #1c1b1f;
    --f-icon-surface-2: #d9d9d9; /* pause_circle внешний */
}

/* Корень документа без фона даёт белую «вспышку» при скролле (Chrome / слои композитинга) */
html.figma-html-root {
    background-color: var(--f-bg);
    min-height: 100%;
}

.figma-home body,
body.figma-home {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--f-bg);
    background: var(--f-bg);
    font-family: "Inter", system-ui, sans-serif;
    font-size: var(--f-body);
    line-height: 1.5;
    color: var(--f-almost);
}

.figma-home .container.basic-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.figma-page {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--f-bg);
    background: var(--f-bg);
    padding: 69px 0 0;
    box-sizing: border-box;
}

.figma-shell {
    /* Rectangle 10 — на всю ширину вьюпорта до 1290px (раньше был фикс 1290px и ломалось 641–1289px) */
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1290px;
    min-width: 0;
    margin: 0 auto;
    background: #ffffff;
    min-height: calc(100vh - 69px);
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.figma-header {
    /* Header (Figma auto layout) + боковые отступы как у .figma-main */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px var(--f-pad-x);
    gap: 8px;
    isolation: isolate;

    width: 100%;
    max-width: var(--f-max);
    min-height: 69px;
    height: auto;
    box-sizing: border-box;
    margin: 0 auto;

    background: var(--f-white);
    box-shadow: var(--f-shadow-header);

    flex: none;
    order: 0;
    flex-grow: 0;

    position: sticky;
    top: 0;
    z-index: 100;
}

/* Слот под шапкой (главная: «Популярные композиции») — выравнивание как у .figma-main */
.figma-below-header {
    width: 100%;
    max-width: var(--f-max);
    margin: 0 auto;
    padding: 24px var(--f-pad-x) 0;
    box-sizing: border-box;
    flex: none;
}

/* Frame 30: шапка — без фиксированной высоты, чтобы перенос строк меню не ломал вёрстку */
.figma-header__inner {
    display: grid;
    /* Средняя колонка — только гибкий отступ; min 321px давал горизонтальный скролл ~900–1300px */
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0;
    box-sizing: border-box;

    width: 100%;
    max-width: 1200px;
    min-height: 37px;
    height: auto;
    margin: 0 auto;

    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 0;
}

.figma-header__lead {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    grid-column: 1;
    min-width: 0;
}

.figma-logo {
    /* KAZMUZ */
    width: 125px;
    height: 36px;

    font-family: 'Comfortaa';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0.1em;

    /* Almost black */
    color: #0E0E0E;
    text-decoration: none;

    flex: none;
    order: 0;
    flex-grow: 0;
    flex-shrink: 0;
    align-self: center;
}

.figma-search {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 8px 12px;
    gap: 0;

    flex: 1 1 auto;
    width: min(296px, 100%);
    min-width: 0;
    max-width: 296px;
    height: 37px;

    border: 1px solid var(--f-gray-3);
    border-radius: var(--f-radius-input);

    align-self: center;
}

.figma-search__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
    min-height: 21px;
    flex: 1 1 auto;
    min-width: 0;
}

.figma-search__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: block;
    background-color: var(--f-gray-2);
    -webkit-mask-image: url("../images/figma-icons/search.png");
    mask-image: url("../images/figma-icons/search.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mask-mode: luminance;
}

.figma-search input {
    border: 0;
    outline: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 21px;
    font-family: "Inter", system-ui, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: var(--f-gray-2);
    background: transparent;
    order: 1;
}

.figma-search input::placeholder {
    color: #828282;
}

.figma-header__right,
.fma-header__right {
    /* Правая часть header — навигация + избранные */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;

    flex: none;
    order: 0;
    flex-grow: 0;
    width: auto;
    min-width: 0;
    min-height: 37px;

    grid-column: 3;
    justify-self: end;
    align-self: center;
}

.figma-nav {
    /* Frame 32 */
    
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 24px;

    width: auto;
    height: 21px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-nav a {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    text-decoration: none;
    white-space: nowrap;
}

.figma-nav .nav-popular {
    /* Популярные */
    width: 89px;
    height: 21px;
    color: #333333;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-nav .nav-new {
    /* Новые */
    width: 47px;
    height: 21px;
    color: #333333;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.figma-nav .nav-artists {
    /* Исполнители */
    width: 94px;
    height: 21px;
    color: #828282;
    flex: none;
    order: 2;
    flex-grow: 0;
}

.figma-nav .nav-collections {
    /* Сборники */
    width: 71px;
    height: 21px;
    color: #333333;
    flex: none;
    order: 3;
    flex-grow: 0;
}

.figma-nav .nav-radio {
    /* Радио */
    width: 44px;
    height: 21px;
    color: #333333;
    flex: none;
    order: 4;
    flex-grow: 0;
}

.figma-nav a:hover {
    color: #2A8EE7;
}

.figma-fav a:hover {
    color: #2A8EE7;
}

.figma-fav {
    /* Frame 33 */
    
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 8px;

    width: 143px;
    height: 21px;

    /* Inside auto layout */
    flex: none;
    order: 3;
    flex-grow: 0;
}

.figma-fav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    color: #333333;
    text-decoration: none;
}

.figma-fav__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
    flex-shrink: 0;
    order: 0;
    flex-grow: 0;
    background-color: var(--f-almost);
    -webkit-mask-image: url("../images/figma-icons/favorites-nav.png?v=20");
    mask-image: url("../images/figma-icons/favorites-nav.png?v=20");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mask-mode: luminance;
    filter: none;
    transition: filter 0.2s ease, background-color 0.2s ease;
}

.figma-fav a:hover .figma-fav__icon,
.figma-fav a:focus-visible .figma-fav__icon {
    background-color: #FF0000;
    filter: drop-shadow(0 0 2px #ff0000)
        drop-shadow(0 0 5px rgba(255, 0, 0, 0.9))
        drop-shadow(0 0 12px rgba(255, 0, 0, 0.65))
        drop-shadow(0 0 20px rgba(255, 0, 0, 0.45));
}

.figma-fav__text {
    /* Избранные (ссылка в шапке) */
    width: 115px;
    height: 21px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

/* Мобильная шапка: иконки поиск / избранное / меню (Frame 120) */
.figma-header__mob-icons {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex: none;
}

.figma-mob-ico {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
}

.figma-mob-ico--search {
    background-color: var(--f-gray-1);
    -webkit-mask-image: url("../images/figma-icons/search.png");
    mask-image: url("../images/figma-icons/search.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.figma-mob-ico--fav {
    width: 24px;
    height: 24px;
    margin: 2px;
    background-color: var(--f-gray-1);
    -webkit-mask-image: url("../images/figma-icons/favorites-nav.png?v=20");
    mask-image: url("../images/figma-icons/favorites-nav.png?v=20");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.figma-header__menu-drawer {
    position: relative;
    list-style: none;
}

.figma-header__menu-drawer > summary {
    list-style: none;
}

.figma-header__menu-drawer > summary::-webkit-details-marker {
    display: none;
}

.figma-mob-ico--menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
}

.figma-mob-ico__burger {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin: -5px 0 0 -9px;
    background: var(--f-gray-1);
    border-radius: 1px;
    box-shadow: 0 6px 0 var(--f-gray-1), 0 12px 0 var(--f-gray-1);
}

.figma-header__menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 220px;
    padding: 12px 16px;
    background: var(--f-white);
    border-radius: var(--f-radius-input);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--f-gray-3);
    box-sizing: border-box;
}

.figma-header__menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.figma-header__menu-nav a {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 150%;
    color: var(--f-gray-1);
    text-decoration: none;
}

.figma-header__menu-nav a:hover,
.figma-header__menu-nav a:focus-visible {
    color: var(--f-prim);
}

/* /stations — Frame 136: колонка + поиск (Frame 5) + список (Frame 124) + карточки */
.figma-stations-main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;
    width: 770px;
    max-width: 100%;
    margin: 0;
    flex: none;
    flex-grow: 0;
    min-height: 0;
}

.figma-stations-main .figma-popular__head {
    margin-bottom: 0;
    width: 100%;
}

/* /stations — поиск по названию */
.figma-stations-toolbar {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.figma-stations-country {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.figma-stations-country__label {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    color: var(--f-gray-2);
}

.figma-stations-country__select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 49px;
    padding: 10px 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #0e0e0e;
    cursor: pointer;
}

.figma-stations-toolbar__submit {
    flex: 0 0 auto;
}

.figma-stations-toolbar__btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 49px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--f-prim);
    color: var(--f-white);
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity 0.15s ease, filter 0.15s ease;
}

.figma-stations-toolbar__btn:hover {
    filter: brightness(1.05);
}

@media (min-width: 640px) {
    .figma-stations-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
    }

    .figma-stations-search {
        flex: 1 1 280px;
        width: auto;
        min-width: 0;
    }

    .figma-stations-toolbar__submit {
        width: auto;
    }

    .figma-stations-toolbar__btn {
        width: auto;
        min-width: 120px;
    }
}

/* Frame 5 — поиск */
.figma-stations-search {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8px 24px 8px 12px;
    gap: 8px;
    width: 100%;
    min-height: 49px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
}

.figma-stations-search__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.figma-stations-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: #333333;
}

.figma-stations-search__icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

.figma-stations-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #0e0e0e;
    outline: none;
}

.figma-stations-search__input::placeholder {
    color: #828282;
}

/* Frame 124 — список карточек */
.figma-stations-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Frame 122 / 123 — строка станции */
.figma-station-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 16px;
    width: 100%;
    min-height: 106px;
}

.figma-station-card__cover-wrap {
    flex: 0 0 auto;
    width: 149px;
    height: 106px;
    border-radius: 8px;
    overflow: hidden;
    background: #dddddd;
}

.figma-station-card__cover {
    width: 100%;
    height: 100%;
    background: #dddddd center / cover no-repeat;
    box-sizing: border-box;
}

.figma-station-card__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: #828282;
}

.figma-station-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 4px;
}

.figma-station-card__country {
    margin: 4px 0 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 130%;
    color: var(--f-gray-2);
}

.figma-station-card__title {
    margin: 0;
    max-width: 100%;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    color: #0e0e0e;
}

.figma-station-card__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 100%;
    max-width: 323px;
}

.figma-station-card__tags {
    margin: 0;
}

.figma-station-card__now {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0;
    gap: 8px;
    width: 100%;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 150%;
}

.figma-station-card__now-label {
    flex: 0 0 auto;
    color: #828282;
}

.figma-station-card__now-track {
    flex: 1 1 auto;
    min-width: 0;
    color: #828282;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.figma-station-card__play {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    margin-left: auto;
    padding: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    border-radius: 50%;
    background-color: var(--f-gray-3);
    background-image: none;
    text-decoration: none;
    align-self: center;
    overflow: visible;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* Иконка play / pause без PNG — единый стиль с акцентом плеера при эфире */
.figma-station-card__play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + 2px), -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent var(--f-almost);
    pointer-events: none;
}

.figma-station-card__play:hover {
    filter: brightness(1.04);
}

.figma-station-card__play:focus-visible {
    outline: 2px solid var(--f-prim);
    outline-offset: 2px;
}

.figma-station-card__play.is-on-air {
    background-color: var(--f-prim);
    box-shadow: 0 2px 10px rgba(42, 142, 231, 0.35);
}

.figma-station-card__play.is-on-air::after {
    transform: translate(-50%, -50%);
    width: 13px;
    height: 14px;
    border: none;
    border-style: none;
    border-width: 0;
    border-radius: 0;
    background-color: transparent;
    background-image:
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(#ffffff, #ffffff);
    background-size: 5px 14px, 5px 14px;
    background-position: 0 0, 8px 0;
    background-repeat: no-repeat;
    box-shadow: none;
}

.figma-station-card__play.is-on-air:hover {
    filter: brightness(1.06);
}

/* Пагинация под списком — активная страница как в Figma (белый + синяя обводка) */
.figma-stations-paginator.figma-paginator .page-item.active .page-link {
    background-color: #ffffff;
    border-color: #2a8ee7;
    color: #2a8ee7;
}

.figma-stations-paginator.figma-paginator .page-item:not(.active) .page-link {
    background-color: #ffffff;
}

@media (max-width: 768px) {
    .figma-stations-main {
        gap: 20px;
    }

    /* Компактная строка: маленькая обложка | текст + «Сейчас играет» | кнопка в одну линию с заголовком */
    .figma-stations-list {
        gap: 14px;
    }

    .figma-station-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) 44px;
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
        min-height: 0;
        padding: 12px 0;
        border-bottom: 1px solid var(--f-gray-3, #eee);
    }

    .figma-station-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .figma-station-card__cover-wrap {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: start;
        width: 64px;
        height: 64px;
        border-radius: 10px;
        aspect-ratio: 1;
    }

    .figma-station-card__cover--placeholder {
        font-size: 18px;
    }

    .figma-station-card__body {
        display: contents;
    }

    .figma-station-card__title {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 15px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .figma-station-card__country {
        grid-column: 2 / -1;
        margin: 0;
        font-size: 12px;
        line-height: 1.3;
    }

    .figma-station-card__details {
        grid-column: 2 / -1;
        max-width: 100%;
        gap: 8px;
    }

    .figma-station-card__now {
        font-size: 12px;
        line-height: 1.35;
        gap: 4px;
    }

    .figma-station-card__now-label {
        width: 100%;
        flex-basis: 100%;
    }

    .figma-station-card__now-track {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .figma-station-card__play {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        margin-left: 0;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .figma-station-card__play::after {
        border-width: 8px 0 8px 12px;
        transform: translate(calc(-50% + 1px), -50%);
    }

    .figma-station-card__play.is-on-air::after {
        width: 11px;
        height: 12px;
        background-size: 4px 12px, 4px 12px;
        background-position: 0 0, 7px 0;
    }

    /* Нет stream — без колонки под кнопку */
    .figma-station-card--no-play {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .figma-station-card--no-play .figma-station-card__title {
        grid-column: 2;
    }

    .figma-station-card--no-play .figma-station-card__country,
    .figma-station-card--no-play .figma-station-card__details {
        grid-column: 2 / -1;
    }

    .figma-station-card .figma-radio-tags {
        font-size: 11px;
        line-height: 1.35;
    }
}

.figma-favorites-empty {
    margin: 0;
    padding: 24px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--f-gray-2);
    max-width: 520px;
}

.figma-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
    max-width: var(--f-max);
    margin: 24px auto 0;
    padding: 0 var(--f-pad-x);
    box-sizing: border-box;
}

.figma-section {
    /* Frame 47 */
    
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;

    width: 100%;
    height: auto;
    min-height: 560px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-section--stack {
    max-width: 100%;
    padding: 0;
}

.figma-section__head {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px 24px;
}

.figma-section__head--people {
    margin-bottom: 32px;
}

.figma-h1 {
    margin: 0;
    font-weight: 700;
    font-size: var(--f-h1);
    line-height: 1.3;
    color: var(--f-almost);
}

.figma-link-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: var(--f-h2);
    line-height: 1.5;
    color: var(--f-hover);
    text-decoration: none;
}

.figma-link-all.--prim {
    color: var(--f-prim);
    font-size: 20px;
    line-height: 1.5;
}

.figma-link-all:hover {
    text-decoration: underline;
}

.figma-link-all__icon {
    font-size: 20px;
    line-height: 1;
    color: inherit;
}

/* Популярные композиции — Frame 41 (Figma auto layout) */
.figma-popular {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;

    width: 1209px;
    max-width: 100%;
    min-height: 326px;
    height: auto;
    margin: 0;
    box-sizing: border-box;

    flex: none;
    order: 1;
    flex-grow: 0;
}

.figma-popular__head {
    /* Frame 66 — auto layout */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    align-content: flex-start;
    padding: 0;
    gap: 32px;
    isolation: isolate;

    width: 1209px;
    max-width: 100%;
    height: 42px;
    box-sizing: border-box;

    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-popular__title {
    /* Популярные композиции */
    max-width: 408px;
    height: 42px;
    margin: 0;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    color: #0E0E0E;
    flex: 1;
    order: 0;
    flex-grow: 1;
    z-index: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-popular__carousel {
    position: relative;
    width: 100%;
    max-width: 1209px;
    isolation: isolate;
}

.figma-popular__track {
    /* Frame 38 */
    
    /* Auto layout */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    isolation: isolate;

    width: 100%;
    height: auto;
    min-height: 252px;

    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.figma-popular__track::-webkit-scrollbar {
    display: none;
    height: 0;
}

.figma-popular__nav {
    position: absolute;
    top: 80px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--f-white);
    box-shadow: 0 0 4.8px rgba(0, 0, 0, 0.2);
    color: var(--f-gray-1);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex: none;
}

.figma-popular__nav-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url("../images/figma-icons/carousel-nav-arrow.png") center / contain no-repeat;
}

.figma-popular__nav--next .figma-popular__nav-icon {
    background-image: url("../images/figma-icons/carousel-nav-arrow-next.png");
}

.figma-popular__nav--prev {
    left: -20px;
}

.figma-popular__nav--next {
    right: -20px;
}

.figma-popular__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.figma-popular__card {
    /* Frame 36 / 37 */
    
    /* Auto layout */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 8px;

    width: 229px;
    height: 252px;

    /* Inside auto layout */
    flex: none;
    order: 0;
    flex-grow: 0;
    z-index: 0;
    
    scroll-snap-align: start;
    box-sizing: border-box;
}

.figma-popular__cover {
    position: relative;
    width: 229px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
    flex: none;
}

.figma-popular__cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.figma-popular__cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.figma-popular__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    max-width: 209px;
    flex: none;
}

.figma-popular__track-title,
.figma-popular__artist-name {
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 150%;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.figma-popular__track-title {
    color: var(--f-almost);
}

.figma-popular__track-title:hover {
    color: var(--f-prim);
}

.figma-popular__artist-name {
    max-width: 191px;
    color: var(--f-gray-2);
}

.figma-popular__artist-name[href]:hover {
    color: var(--f-prim);
}

.figma-grid-2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.figma-col-main {
    flex: 1 1 770px;
    min-width: 0;
    max-width: 770px;
    display: flex;
    flex-direction: column;
    gap: 56px;
    box-sizing: border-box;
    overflow: visible;
}

.figma-col-side {
    flex: 0 0 376px;
    max-width: 376px;
    border-left: 1px solid var(--f-gray-3);
    padding-left: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    isolation: isolate;
}

.figma-sidebar-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: 376px;
    box-sizing: border-box;
}

/* Frame 47: список треков — column, gap 16, max 770 */
.figma-hlist {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 770px;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Horizontal song: единая высота строки — иконки «прослушивания» на одной вертикали */
.figma-hsong {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 56px;
    height: auto;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
        min-height 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

.figma-hsong__drag {
    position: absolute;
    z-index: 2;
    left: clamp(260px, 58%, calc(100% - 200px));
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 23px;
    margin: 0;
    padding: 0;
    color: var(--f-almost);
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.figma-hsong:hover .figma-hsong__drag,
.figma-hsong:focus-within .figma-hsong__drag {
    opacity: 1;
}

.figma-hsong__left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 269px;
    max-width: 269px;
    z-index: 0;
}

.figma-hsong__art {
    width: 48px;
    height: 48px;
    border-radius: var(--f-radius-sm);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
    transition: opacity 0.15s ease;
    overflow: hidden;
}

/* Frame 42: затемнение 0,6 поверх фона — не на кнопке play */
.figma-hsong__art::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.figma-hsong:hover .figma-hsong__art::after,
.figma-hsong:focus-within .figma-hsong__art::after {
    opacity: 1;
}

/* play_circle: 28×28 по центру обложки (PNG из макета) */
.figma-hsong__art .figma-hsong__play,
.figma-hsong__art .figma-hsong__play--placeholder {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 0;
    transition: opacity 0.15s ease;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
}

.figma-hsong:hover .figma-hsong__art .figma-hsong__play,
.figma-hsong:hover .figma-hsong__art .figma-hsong__play--placeholder,
.figma-hsong:focus-within .figma-hsong__art .figma-hsong__play,
.figma-hsong:focus-within .figma-hsong__art .figma-hsong__play--placeholder {
    opacity: 1;
}

.figma-hsong__art .figma-hsong__icon--play {
    display: block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: url("../images/figma-icons/play-circle.png") center / contain no-repeat;
}

.figma-hsong__art .figma-hsong__play:focus {
    outline: none;
}

.figma-hsong__art .figma-hsong__play:focus-visible {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--f-white), 0 0 0 4px var(--f-prim);
}

/* Frame 35: колонка название + исполнитель, gap 2, ширина текста 209 */
.figma-hsong__meta {
    min-width: 0;
    max-width: 209px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.figma-hsong__title {
    width: 100%;
    max-width: 209px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: var(--f-almost);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-hsong__title:hover {
    color: var(--f-prim);
}

.figma-hsong__artist {
    width: 100%;
    max-width: 209px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: var(--f-gray-2);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Frame 153: одинаковые отступы между избранное+скачать | прослушивания | время */
.figma-hsong__right {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    gap: 24px;
    flex-shrink: 0;
    flex: 0 0 auto;
    z-index: 1;
    min-height: 32px;
    height: 32px;
    box-sizing: border-box;
}

/* Frame 55: 232×32; иконки у правого края слота — рядом с прослушиваниями; gap 24 между избранным и скачать */
.figma-hsong__actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 24px;
    flex: none;
    width: 232px;
    min-width: 232px;
    max-width: 232px;
    height: 32px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-sizing: border-box;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.figma-hsong:hover .figma-hsong__actions,
.figma-hsong:focus-within .figma-hsong__actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-left: auto;
    margin-right: 0;
    order: 1;
    z-index: 1;
}

.figma-hsong__act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    flex: none;
    position: relative;
}

/* Bounding box (Figma): белая подложка под иконками при hover строки */
.figma-hsong:hover .figma-hsong__act,
.figma-hsong:focus-within .figma-hsong__act {
    background: var(--f-white);
}

/* Иконки списка треков (PNG из макета) */
.figma-hsong__icon {
    display: block;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.figma-hsong__icon--fav {
    width: 24px;
    height: 24px;
    background-image: url("../images/figma-icons/favorite.png");
}

.figma-hsong__icon--dl {
    width: 32px;
    height: 32px;
    background-image: url("../images/figma-icons/download.png");
}

.figma-hsong__icon--headphones {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-self: center;
    background-image: url("../images/figma-icons/headphones.png");
}

/* Icons / favorite: 24×24, order 0 внутри Frame 55 */
.figma-hsong__act--fav {
    order: 0;
    width: 24px;
    height: 24px;
}

.figma-hsong__act--fav:not(.is-in-favorites) .figma-hsong__icon--fav {
    opacity: 0.45;
}

.figma-hsong__act--fav.is-in-favorites .figma-hsong__icon--fav {
    opacity: 1;
    filter: invert(42%) sepia(95%) saturate(1800%) hue-rotate(186deg) brightness(0.92);
}

/* Icons / download: 32×32, order 1 */
.figma-hsong__act--dl {
    order: 1;
    width: 32px;
    height: 32px;
}

.figma-hsong__act:hover .figma-hsong__icon,
.figma-hsong__act:focus-visible .figma-hsong__icon {
    opacity: 0.85;
    outline: none;
}

.figma-hsong__act:hover,
.figma-hsong__act:focus-visible {
    outline: none;
}

/* Frame 154: ширина по содержимому — без лишнего зазора справа от числа */
.figma-hsong__stat {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 32px;
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    color: var(--f-gray-2);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.figma-hsong__stat-num {
    flex: 0 0 auto;
    margin-left: 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 32px;
    height: 32px;
    display: block;
    text-align: left;
}


.figma-hsong__time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    min-width: 3.25ch;
    max-width: none;
    height: 32px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: var(--f-gray-2);
    white-space: nowrap;
    box-sizing: border-box;
}

.figma-hsong__time-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 0;
    height: 32px;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.figma-hsong__art--placeholder {
    position: relative;
}

.figma-hsong__art .figma-hsong__play--placeholder {
    pointer-events: none;
}

/* Horizontal song / Hover: та же min-height, только рамка и фон */
.figma-hsong:hover,
.figma-hsong:focus-within {
    z-index: 2;
    box-sizing: border-box;
    isolation: isolate;
    min-height: 56px;
    padding: 8px 16px 8px 8px;
    margin: -8px;
    width: calc(100% + 16px);
    max-width: calc(100% + 16px);
    background: var(--f-white);
    border-color: var(--f-prim);
    border-radius: 4px;
    box-shadow: none;
}

/* Frame 153 при hover: та же одна линия */
.figma-hsong:hover .figma-hsong__right,
.figma-hsong:focus-within .figma-hsong__right {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

/* Порядок как в макете: Frame 55 → Frame 154 → время */
.figma-hsong:hover .figma-hsong__stat,
.figma-hsong:focus-within .figma-hsong__stat {
    order: 2;
    flex: none;
    flex-shrink: 0;
}

.figma-hsong:hover .figma-hsong__time,
.figma-hsong:focus-within .figma-hsong__time {
    order: 3;
    flex: none;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .figma-hsong__left {
        max-width: none;
        flex: 1 1 auto;
    }

    .figma-hsong__meta,
    .figma-hsong__title,
    .figma-hsong__artist {
        max-width: none;
    }

    .figma-hsong__drag {
        display: none;
    }

    .figma-hsong__actions {
        width: auto;
        min-width: 0;
        max-width: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .figma-hsong:hover .figma-hsong__right,
    .figma-hsong:focus-within .figma-hsong__right {
        flex: 0 1 auto;
    }

    .figma-hsong__right {
        height: auto;
        min-height: 0;
        gap: 16px;
    }

    .figma-hsong__stat-num {
        max-width: none;
        line-height: 1.5;
        height: auto;
    }

    .figma-hsong__stat {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        height: auto;
    }

    .figma-hsong__time {
        flex: 0 0 auto;
        width: auto;
        min-width: 2.75em;
        max-width: none;
        height: auto;
    }

    .figma-hsong__time-inner {
        height: auto;
        line-height: 1.5;
    }

    .figma-hsong:hover .figma-hsong__stat,
    .figma-hsong:focus-within .figma-hsong__stat {
        flex-shrink: 1;
        min-width: 0;
    }

    .figma-hsong:hover .figma-hsong__time,
    .figma-hsong:focus-within .figma-hsong__time {
        flex-shrink: 0;
    }
}

.figma-people-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.figma-people-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.figma-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.figma-person__avatar {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    background: #e8e8e8 center/cover no-repeat;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
    position: relative;
    box-sizing: border-box;
    /* чище обводка круга, без «волоска» на границе */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.figma-person__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 50%;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.figma-person__name {
    font-size: 14px;
    line-height: 1.5;
    color: var(--f-almost);
    max-width: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-person:hover .figma-person__name {
    color: var(--f-prim);
}

.figma-person__sub {
    font-size: 14px;
    line-height: 1.5;
    color: var(--f-gray-2);
    max-width: 100%;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-coll-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 769px;
}

.figma-coll {
    width: 141px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.figma-coll__box {
    width: 141px;
    height: 141px;
    border-radius: 8px;
    background: var(--f-gray-1) center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.figma-coll__box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.figma-coll__label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--f-almost);
    text-align: center;
    max-width: 135px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-ad {
    position: relative;
    flex: none;
    flex-grow: 0;
    order: 0;
    width: 100%;
    max-width: 376px;
    min-height: 320px;
    height: 320px;
    background: var(--f-gray-3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.5;
    color: var(--f-almost);
    box-sizing: border-box;
}

.figma-side-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 376px;
    box-sizing: border-box;
}

/* Frame 82: Топ 10 треков */
.figma-side-block--frame82 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 16px;
    width: 376px;
    max-width: 100%;
    min-height: 819px;
    flex: none;
    order: 1;
    flex-grow: 0;
    box-sizing: border-box;
}

.figma-side-block--stations {
    flex: none;
    order: 2;
    flex-grow: 0;
}

.figma-side-block__title {
    margin: 0;
    width: auto;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--f-almost);
}

.figma-side-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    isolation: isolate;
}

.figma-sidecard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 376px;
    min-height: 60px;
    box-sizing: border-box;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid var(--f-gray-3);
    gap: 37px;
}

.figma-sidecard--plain {
    min-height: 44px;
    padding: 16px 0 0;
    border-bottom: 0;
}

.figma-sidecard__text {
    flex: 1 1 0;
    min-width: 0;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: inherit;
    padding: 0;
    box-sizing: border-box;
}

.figma-sidecard__text:hover .figma-sidecard__title {
    color: var(--f-prim);
}

.figma-sidecard--hit:hover .figma-sidecard__title,
.figma-sidecard--hit:focus-within .figma-sidecard__title {
    color: var(--f-prim);
}

.figma-sidecard--track.hovered .figma-sidecard__title {
    color: var(--f-prim);
}

.figma-sidecard__title {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--f-almost);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-sidecard__sub {
    display: block;
    width: 100%;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--f-gray-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.figma-sidecard--radio .figma-sidecard__text--radio {
    max-width: none;
    width: min(100%, 344px);
}

.figma-sidecard__title--radio {
    max-width: 268px;
    width: 100%;
}

.figma-radio-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
    color: var(--f-gray-2);
}

.figma-radio-tags__item {
    color: var(--f-gray-2);
}

.figma-radio-tags__item + .figma-radio-tags__item::before {
    content: " / ";
    color: var(--f-gray-2);
}

.figma-side-more-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Icons / play: PNG в боковых «Топ 10» / «Топ 5 радио» */
.figma-sideplay {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
    flex: 0 0 24px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.figma-sideplay__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-color: var(--f-gray-1);
    -webkit-mask-image: url("../images/figma-icons/play-circle-sidebar.png");
    mask-image: url("../images/figma-icons/play-circle-sidebar.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mask-mode: luminance;
}

.figma-sideplay:hover .figma-sideplay__icon,
.figma-sideplay:focus-visible .figma-sideplay__icon,
.figma-sidecard--hit:hover .figma-sideplay.is-prim .figma-sideplay__icon,
.figma-sidecard--hit:focus-within .figma-sideplay.is-prim .figma-sideplay__icon,
.figma-sideplay[data-station-id].is-on-air .figma-sideplay__icon {
    background-color: var(--f-prim);
}

.figma-show-more {
    display: inline-block;
    margin: 0;
    width: auto;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    text-decoration: none;
}

.figma-show-more--tracks {
    color: var(--f-hover);
}

.figma-show-more--radio {
    color: var(--f-prim);
}

.figma-show-more:hover {
    text-decoration: underline;
}

.figma-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 32px var(--f-pad-x);
    border-top: 1px solid var(--f-gray-3);
    max-width: var(--f-max);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

.figma-footer a {
    color: var(--f-gray-1);
    text-decoration: none;
}

.figma-footer a:hover {
    color: var(--f-prim);
}

.figma-footer__center {
    color: var(--f-gray-2);
}

.figma-footer__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 19px;
    flex-wrap: wrap;
}

.figma-footer__pair {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.figma-footer__icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: center / contain no-repeat;
}

.figma-footer__icon--mail {
    background-image: url("../images/figma-icons/footer-mail.png");
}

.figma-footer__icon--telegram {
    background-image: url("../images/figma-icons/footer-telegram.png");
}

/* /tracks — основной блок, Frame 98 (Figma auto layout), в колонке как на главной */
.figma-tracks-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;

    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 0;

    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-tracks-main .figma-popular__head {
    width: 100%;
    max-width: 770px;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
}

.figma-tracks-main .figma-hlist {
    max-width: 770px;
}

.figma-tracks-main .figma-paginator {
    margin-top: 0;
    max-width: 770px;
    width: 100%;
    align-self: center;
}

/* /artists — основная колонка, Frame 96 */
.figma-artists-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;

    width: 769px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 0;

    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-artists-page-title {
    margin: 0;
    width: 100%;
    max-width: 769px;
    font-weight: 700;
    font-size: var(--f-h1);
    line-height: 1.3;
    color: var(--f-almost);
}

.figma-artists-letters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 769px;
}

.figma-artists-letters__carousel {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.figma-artists-letters__viewport {
    width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
}

.figma-artists-letters__btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--f-gray-3);
    border-radius: 4px;
    background: #fff;
    color: var(--f-gray-1);
    cursor: pointer;
    flex-shrink: 0;
    box-sizing: border-box;
    font: inherit;
    line-height: 1;
}

.figma-artists-letters__btn::before {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.figma-artists-letters__btn--prev::before {
    content: '\2039';
}

.figma-artists-letters__btn--next::before {
    content: '\203A';
}

.figma-artists-letters__btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.figma-artists-letters__row {
    width: 100%;
    max-width: 769px;
    min-width: 0;
    box-sizing: border-box;
}

/* Одна линия: равные доли ширины, без переноса */
.figma-artists-letters__row--latin {
    display: grid;
    grid-template-columns: repeat(27, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
}

.figma-artists-letters__row--cyrillic {
    display: grid;
    grid-template-columns: repeat(39, minmax(0, 1fr));
    gap: 1px;
    align-items: stretch;
}

.figma-artists-letters__row--latin a,
.figma-artists-letters__row--cyrillic a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    padding: 0 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--f-gray-1);
    text-decoration: none;
    border: 1px solid var(--f-gray-3);
    border-radius: var(--f-radius-input);
    box-sizing: border-box;
    white-space: nowrap;
    overflow: visible;
}

.figma-artists-letters__row--cyrillic a {
    font-size: 10px;
    padding: 0;
    min-height: 26px;
}

.figma-artists-letters__row--latin a:hover,
.figma-artists-letters__row--cyrillic a:hover {
    color: var(--f-hover);
    border-color: var(--f-hover);
}

.figma-artists-main .figma-popular__head {
    width: 100%;
    max-width: 769px;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
}

.figma-artists-main__grid {
    width: 100%;
    max-width: 769px;
}

.figma-artists-main .figma-paginator {
    margin-top: 0;
    max-width: 769px;
    width: 100%;
    align-self: center;
}

/* Страница исполнителя /artist/{slug} — Frame 96 + блок героя */
.figma-artist-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 32px;

    width: 770px;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 0;

    flex: none;
    order: 0;
    flex-grow: 0;
}

.figma-artist-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.figma-artist-hero {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 770px;
}

.figma-artist-hero__photo {
    width: 200px;
    max-width: min(200px, 40vw);
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: var(--f-radius-card);
    background: var(--f-gray-3) center / cover no-repeat;
    box-sizing: border-box;
}

.figma-artist-hero__content {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.figma-artist-hero__title {
    margin: 0;
    font-weight: 700;
    font-size: var(--f-h1);
    line-height: 1.25;
    color: var(--f-almost);
}

.figma-artist-hero__subtitle {
    display: block;
    margin-top: 6px;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: var(--f-gray-2);
}

.figma-artist-main .page-info,
.figma-artist-main .social-share {
    width: 100%;
}

/* Поделиться: те же SVG-кнопки, что на странице трека — без прижатия вправо из hero */
body.figma-artist-page .figma-artist-main .figma-track-share,
.figma-lyrics-single .figma-track-share {
    justify-content: flex-start;
    margin-left: 0;
}

body.figma-artist-page .figma-artist-main .figma-track-share .share-title,
.figma-lyrics-single .figma-track-share .share-title {
    display: block;
    margin-right: 15px;
}

/* template.css задаёт margin-right ссылкам — убираем дублирование с gap */
.figma-track-share.social-share a.figma-track-share__item {
    margin-right: 0;
}

/* Счётчики под карточкой артиста — одна линия, разделители */
.figma-artist-counters {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    max-width: 100%;
}

.figma-artist-counters .figma-artist-counter + .figma-artist-counter {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid var(--f-gray-3);
}

.figma-artist-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: var(--f-gray-2);
}

.figma-artist-counter__value {
    font-weight: 600;
    color: var(--f-almost);
    font-variant-numeric: tabular-nums;
}

.figma-artist-counter__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--f-gray-2);
}

.figma-artist-counter__icon--date svg {
    display: block;
}

.figma-artist-counter__icon--tracks {
    width: 22px;
    height: 22px;
    background: url("../images/figma-icons/headphones.png") center / contain no-repeat;
}

.figma-artist-counter__img {
    display: block;
    flex-shrink: 0;
}

/* Табы страницы артиста — Figma «tabs» + Frame 47/53 */
.nav.nav-tabs.figma-artist-tabs {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    gap: 64px;
    width: 770px;
    max-width: 100%;
    min-height: 42px;
    margin: 0;
    list-style: none;
    border: none;
    border-bottom: 1px solid var(--f-gray-3);
    flex: none;
    order: 0;
    flex-grow: 0;
}

.nav.nav-tabs.figma-artist-tabs .nav-item,
.nav.nav-tabs.figma-artist-tabs .nav-item:first-child {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 8px 12px;
    gap: 4px;
    margin: 0;
    flex: none;
    flex-grow: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.nav.nav-tabs.figma-artist-tabs .nav-item:has(.nav-link.active) {
    border-bottom-color: var(--f-prim);
}

.nav.nav-tabs.figma-artist-tabs .nav-link {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    font-family: "Inter", system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: var(--f-h2);
    line-height: 150%;
    text-align: center;
    text-transform: none;
    color: var(--f-almost);
    white-space: nowrap;
    text-decoration: none !important;
}

.nav.nav-tabs.figma-artist-tabs .nav-link:hover,
.nav.nav-tabs.figma-artist-tabs .nav-link:focus,
.nav.nav-tabs.figma-artist-tabs .nav-link:visited {
    text-decoration: none !important;
}

.nav.nav-tabs.figma-artist-tabs .nav-link:hover {
    color: var(--f-hover);
    border: none !important;
}

.nav.nav-tabs.figma-artist-tabs .nav-link.active,
.nav.nav-tabs.figma-artist-tabs .nav-item.show .nav-link {
    color: var(--f-prim);
    background: transparent !important;
    border: none !important;
}

.figma-artist-tab-panels {
    width: 100%;
    max-width: 770px;
}

/* Панели табов: в app.css/template.css нет правил Bootstrap для .tab-pane */
.figma-artist-tab-panels > .tab-pane {
    display: none;
}

.figma-artist-tab-panels > .tab-pane.active {
    display: block;
}

.figma-artist-tracks.figma-hlist {
    max-width: 770px;
}

.figma-artist-bio {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    color: var(--f-almost);
}

.figma-artist-bio.biography {
    max-width: 100%;
}

/* Singer page mob (Figma ~375): колонка, gap 16, контент по центру */
@media (max-width: 768px) {
    body.figma-artist-page {
        --f-pad-x: 20px;
    }

    body.figma-artist-page .figma-col-main {
        gap: 16px;
    }

    body.figma-artist-page .figma-artist-main {
        width: 100%;
        max-width: 100%;
        gap: 16px;
        align-items: center;
    }

    body.figma-artist-page .figma-artist-main > * {
        width: 100%;
        max-width: 100%;
        align-self: stretch;
    }

    body.figma-artist-page .figma-artist-hero {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        max-width: 100%;
    }

    body.figma-artist-page .figma-artist-hero__photo {
        width: 100%;
        max-width: min(220px, 76vw);
        margin-inline: auto;
        aspect-ratio: 1;
        border-radius: 16px;
    }

    body.figma-artist-page .figma-artist-hero__content {
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
    }

    body.figma-artist-page .figma-artist-hero__title {
        font-size: 24px;
        line-height: 130%;
    }

    body.figma-artist-page .figma-artist-hero__subtitle {
        font-size: 14px;
        line-height: 150%;
    }

    body.figma-artist-page .figma-artist-main .page-info,
    body.figma-artist-page .figma-artist-main .social-share {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px 16px;
    }

    body.figma-artist-page .figma-artist-main .page-info .counters,
    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters {
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 0;
        max-width: 100%;
    }

    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters .figma-artist-counter + .figma-artist-counter {
        margin-left: 10px;
        padding-left: 10px;
    }

    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters .figma-artist-counter {
        font-size: 13px;
        gap: 5px;
    }

    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters .figma-artist-counter__icon--tracks {
        width: 20px;
        height: 20px;
    }

    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters .figma-artist-counter__img {
        width: 16px;
        height: 16px;
    }

    body.figma-artist-page .figma-artist-main .page-info .figma-artist-counters .figma-artist-counter__icon--date svg {
        width: 16px;
        height: 16px;
    }

    body.figma-artist-page .figma-artist-main .social-share .share-title {
        width: 100%;
        text-align: center;
    }

    body.figma-artist-page .nav.nav-tabs.figma-artist-tabs {
        width: 100%;
        max-width: 100%;
        gap: 12px 20px;
        flex-wrap: wrap;
        justify-content: center;
        min-height: 0;
    }

    body.figma-artist-page .nav.nav-tabs.figma-artist-tabs .nav-item,
    body.figma-artist-page .nav.nav-tabs.figma-artist-tabs .nav-item:first-child {
        padding: 0 4px 10px;
    }

    body.figma-artist-page .nav.nav-tabs.figma-artist-tabs .nav-link {
        font-size: 16px;
        line-height: 150%;
        white-space: normal;
        text-align: center;
    }

    body.figma-artist-page .figma-artist-tab-panels {
        max-width: 100%;
    }

    body.figma-artist-page .figma-artist-tracks.figma-hlist {
        max-width: 100%;
    }

    body.figma-artist-page .figma-artist-bio,
    body.figma-artist-page .figma-artist-bio.biography {
        text-align: left;
    }

    /* Horizontal song / mob — страница исполнителя */
    body.figma-artist-page .figma-col-main .figma-hsong {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__left {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        gap: 12px;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__meta,
    body.figma-artist-page .figma-col-main .figma-hsong__title,
    body.figma-artist-page .figma-col-main .figma-hsong__artist {
        max-width: 188px;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__stat,
    body.figma-artist-page .figma-col-main .figma-hsong__time {
        display: none;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__actions {
        flex-direction: row;
        gap: 16px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__act--dl {
        order: 0;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__act--fav {
        order: 1;
    }

    body.figma-artist-page .figma-col-main .figma-hsong__right {
        flex: none;
        gap: 0;
    }

    body.figma-artist-page .figma-col-main .figma-hsong:hover,
    body.figma-artist-page .figma-col-main .figma-hsong:focus-within {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
}

.figma-person__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-person__letters {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    padding: 0 4px;
}

/* Пагинация — Figma auto layout (pagination) */
.figma-paginator {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 8px;

    width: 100%;
    max-width: 100%;
    min-height: 32px;
    height: auto;
    box-sizing: border-box;

    flex: none;
    order: 1;
    flex-grow: 0;

    margin-top: 32px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.figma-paginator::-webkit-scrollbar {
    display: none;
    height: 0;
}

.figma-paginator .pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.figma-paginator .page-item {
    margin: 0;
}

.figma-paginator .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    color: var(--f-gray-1);
    border: 1px solid var(--f-gray-3);
    border-radius: var(--f-radius-input);
    line-height: 1.2;
    box-sizing: border-box;
}

.figma-paginator .page-item.active .page-link {
    background-color: var(--f-prim);
    border-color: var(--f-prim);
    color: var(--f-white);
}

.figma-paginator .page-link:hover {
    color: var(--f-hover);
    border-color: var(--f-hover);
}

.figma-paginator .page-item.disabled .page-link {
    color: var(--f-gray-2);
    min-height: 32px;
}

/* Figma: нижний плеер — тот же тёмный бар что в template; акцент и кнопки из темы */
body.figma-home .player.player--sefon {
    --sf-prog: var(--f-prim);
    --sf-muted: var(--f-gray-2);
}

body.figma-home .player.player--sefon .player__btn:hover {
    color: var(--f-prim);
}

body.figma-home .player.player--sefon #auto.active .player-ico--repeat svg {
    color: var(--f-prim);
}

body.figma-home .player.player--sefon .player .playlist .close {
    color: #fff;
    background: var(--f-prim);
}

@media (max-width: 1200px) {
    .figma-page {
        padding-top: 69px;
        min-width: 0;
    }

    .figma-main {
        min-width: 0;
    }

    .figma-header {
        padding-left: 24px;
        padding-right: 24px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .figma-header__inner {
        padding: 0;
        gap: 12px 16px;
        grid-template-columns: auto minmax(24px, 1fr) auto;
        align-items: center;
        row-gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 37px;
    }

    .figma-header__lead {
        flex-wrap: wrap;
        gap: 12px 16px;
        align-items: center;
        min-width: 0;
    }

    /* Поиск сжимается на узком десктопе / планшете */
    .figma-search {
        flex: 1 1 160px;
        width: auto;
        max-width: min(296px, 100%);
        min-width: min(140px, 100%);
    }

    .figma-header__right,
    .fma-header__right {
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 12px 14px;
        min-height: 0;
        max-width: 100%;
    }

    .figma-nav {
        gap: 12px 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        height: auto;
        min-height: 0;
        max-width: 100%;
    }

    .figma-nav a {
        white-space: normal;
        line-height: 1.25;
    }

    /* Фиксированные ширины из макета ломали перенос на 900–1200px */
    .figma-nav .nav-popular,
    .figma-nav .nav-new,
    .figma-nav .nav-artists,
    .figma-nav .nav-collections,
    .figma-nav .nav-radio {
        width: auto;
        min-width: 0;
        height: auto;
    }

    .figma-fav {
        flex-shrink: 0;
    }

    .figma-side-block--frame82 {
        width: 100%;
        min-height: 0;
    }

    .figma-grid-2 {
        flex-direction: column;
    }

    .figma-col-side {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--f-gray-3);
        padding-top: 32px;
    }

    .figma-popular__nav {
        display: none;
    }
}

/* Меню сайта: ≤1100px — бургер + drawer (иначе горизонтальное меню не помещается 900–1100px) */
@media (max-width: 1100px) {
    .figma-header__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .figma-header__lead {
        grid-column: 1;
        min-width: 0;
    }

    .figma-header__mob-icons {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        grid-column: 3;
        justify-self: end;
        align-self: center;
        flex-shrink: 0;
    }

    .figma-header__right,
    .fma-header__right {
        display: none !important;
    }

    /* Панель меню под шапкой на средней ширине */
    .figma-header__menu-panel {
        min-width: min(280px, calc(100vw - 48px));
    }

    .figma-header__menu-nav {
        gap: 10px;
    }

    .figma-header__menu-nav a {
        padding: 10px 6px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    :root {
        --f-pad-x: 20px;
    }

    .figma-shell {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .figma-header {
        height: auto;
        min-height: 0;
        position: sticky;
        top: 0;
        padding: 0 var(--f-pad-x) 8px;
        gap: 16px;
        align-items: stretch;
    }

    .figma-page {
        padding-top: 0;
    }

    .figma-header__inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        height: auto;
        padding: 0;
        gap: 16px 0;
        row-gap: 0;
    }

    .figma-header__lead {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        gap: 0;
        flex-wrap: nowrap;
    }

    .figma-header__lead .figma-search {
        display: none;
    }

    .figma-header__mob-icons {
        display: flex;
        flex: none;
        align-items: center;
        gap: 16px;
    }

    .figma-header__right,
    .fma-header__right {
        display: none;
    }

    .figma-main {
        margin-top: 16px;
        gap: 16px;
    }

    .figma-below-header {
        padding: 16px var(--f-pad-x) 0;
        max-width: 100%;
    }

    .figma-popular {
        width: 100%;
        max-width: 100%;
        gap: 24px;
        align-items: flex-start;
    }

    .figma-popular__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .figma-popular__title {
        font-size: 24px;
        line-height: 130%;
        max-width: 100%;
        white-space: normal;
    }

    .figma-popular__carousel {
        max-width: 100%;
    }

    .figma-popular__track {
        min-height: 0;
    }

    .figma-popular__card {
        flex: 0 0 auto;
        width: 229px;
        height: auto;
        min-height: 252px;
    }

    .figma-popular__cover {
        width: 229px;
        height: 200px;
    }

    .figma-popular__nav {
        display: none;
    }

    .figma-grid-2 {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .figma-col-main {
        gap: 40px;
        max-width: 100%;
    }

    .figma-section--home-list.figma-section {
        max-width: 100% !important;
    }

    .figma-h1--section {
        font-size: 24px;
        line-height: 130%;
        margin: 0;
    }

    .figma-section__head--people {
        margin-bottom: 24px;
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .figma-people-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
        max-width: 335px;
        margin-left: auto;
        margin-right: auto;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    .figma-people-grid::-webkit-scrollbar {
        display: none;
    }

    .figma-people-row {
        display: contents;
    }

    .figma-person {
        flex: 0 0 141px;
        width: 141px;
        max-width: 141px;
    }

    .figma-person__avatar {
        max-width: 141px;
    }

    /* /artists — «Singers mob» (Figma): колонка по центру, пары карточек 141+24+141, H1 24/130% */
    .figma-artists-main {
        align-items: center;
        gap: 24px;
        width: 100%;
        max-width: 100%;
    }

    .figma-artists-main .figma-popular__head {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        align-content: center;
        gap: 16px;
        width: 100%;
        max-width: 335px;
        align-self: center;
        flex-wrap: nowrap;
    }

    .figma-artists-main .figma-popular__title {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        font-size: 24px;
        line-height: 130%;
        font-weight: 700;
        color: var(--f-almost);
    }

    .figma-artists-main .figma-artists-page-title {
        text-align: center;
        font-size: 24px;
        line-height: 130%;
        max-width: 335px;
        width: 100%;
        align-self: center;
        margin: 0;
        color: var(--f-almost);
    }

    .figma-artists-main .figma-artists-letters {
        max-width: 335px;
        width: 100%;
        align-self: center;
    }

    /* Карусель букв: стрелки + горизонтальный скролл с snap */
    .figma-artists-letters__carousel {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 8px;
        align-items: center;
        width: 100%;
    }

    .figma-artists-letters__btn {
        display: flex;
    }

    .figma-artists-letters__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .figma-artists-letters__viewport::-webkit-scrollbar {
        display: none;
        height: 0;
    }

    .figma-artists-letters__row--latin,
    .figma-artists-letters__row--cyrillic {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        max-width: none;
        min-width: min-content;
    }

    .figma-artists-letters__row--latin {
        gap: 4px;
    }

    .figma-artists-letters__row--cyrillic {
        gap: 1px;
    }

    .figma-artists-letters__row--latin a,
    .figma-artists-letters__row--cyrillic a {
        flex: 0 0 auto;
        min-width: 28px;
        width: auto;
        max-width: none;
        scroll-snap-align: start;
    }

    .figma-artists-main .figma-people-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        gap: 24px;
        width: 100%;
        max-width: 335px;
        overflow-x: visible;
        padding-bottom: 0;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .figma-artists-main .figma-people-row {
        display: contents;
    }

    .figma-artists-main .figma-person {
        flex: 0 0 141px;
        width: 141px;
        max-width: 141px;
        gap: 0;
    }

    .figma-artists-main .figma-person__avatar {
        width: 141px;
        height: 141px;
        max-width: 141px;
        flex-shrink: 0;
        margin-bottom: 8px;
    }

    .figma-artists-main .figma-person__name {
        max-width: 130px;
        margin-bottom: 2px;
    }

    .figma-artists-main .figma-person__sub {
        max-width: 130px;
        font-size: 14px;
        line-height: 150%;
        color: var(--f-gray-2);
    }

    .figma-artists-main .figma-paginator {
        max-width: 335px;
        width: 100%;
        align-self: center;
        margin-top: 0;
    }

    .figma-artists-main .figma-paginator .page-link {
        min-width: 32px;
        min-height: 32px;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.5;
        box-sizing: border-box;
    }

    .figma-artists-main .figma-paginator .page-item.active .page-link {
        background-color: #fff;
        border: 1px solid var(--f-prim);
        color: var(--f-prim);
    }

    .figma-artists-main .figma-paginator .page-item.active .page-link:hover {
        color: var(--f-prim);
        border-color: var(--f-prim);
        background-color: #fff;
    }

    .figma-artists-main .figma-paginator .page-item.disabled .page-link {
        background-color: rgba(130, 130, 130, 0.5);
        border-color: rgba(130, 130, 130, 0.35);
        color: var(--f-gray-3);
        opacity: 1;
    }

    .figma-artists-main .figma-paginator .page-item:not(.active):not(.disabled) .page-link {
        background-color: #fff;
        border: 1px solid var(--f-gray-3);
        color: var(--f-gray-1);
    }

    .figma-artists-main .figma-paginator .page-item:not(.active):not(.disabled) .page-link:hover {
        color: var(--f-hover);
        border-color: var(--f-hover);
    }

    .figma-col-side {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--f-gray-3);
        padding-top: 40px;
    }

    .figma-sidebar-stack {
        max-width: 100%;
        width: 100%;
    }

    .figma-side-block--frame82 {
        width: 100%;
        min-height: 0;
    }

    /* Главная: строка трека как «Horizontal song / mob» */
    .figma-col-main .figma-hsong {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .figma-col-main .figma-hsong__left {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        gap: 12px;
    }

    .figma-col-main .figma-hsong__meta,
    .figma-col-main .figma-hsong__title,
    .figma-col-main .figma-hsong__artist {
        max-width: 188px;
    }

    .figma-col-main .figma-hsong__stat,
    .figma-col-main .figma-hsong__time {
        display: none;
    }

    .figma-col-main .figma-hsong__actions {
        flex-direction: row;
        gap: 16px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .figma-col-main .figma-hsong__act--dl {
        order: 0;
    }

    .figma-col-main .figma-hsong__act--fav {
        order: 1;
    }

    .figma-col-main .figma-hsong__right {
        flex: none;
        gap: 0;
    }

    .figma-col-main .figma-hsong:hover,
    .figma-col-main .figma-hsong:focus-within {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .figma-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px var(--f-pad-x) 56px;
        gap: 24px;
        max-width: 100%;
    }

    .figma-footer__center {
        order: 2;
    }

    .figma-footer__links {
        order: 1;
    }
}

/* --- Страница трека (Frame 96 / 148 / 107) --- */
body.figma-track-page .figma-track-main {
    gap: 0;
}

.figma-track-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    max-width: 770px;
    box-sizing: border-box;
}

.figma-track-hero-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.figma-track-hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.figma-track-hero__cover-wrap {
    flex: 0 0 209px;
    width: 209px;
    height: 209px;
    border-radius: 8px;
    background: #333333;
    overflow: hidden;
    box-sizing: border-box;
}

.figma-track-hero__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figma-track-hero__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
}

.figma-track-hero__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.figma-track-hero__title {
    margin: 0;
    font-size: 32px;
    line-height: 130%;
    font-weight: 700;
    color: #0e0e0e;
    max-width: 537px;
}

.figma-track-hero__artist {
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 150%;
    font-weight: 400;
    color: #828282;
}

.figma-track-hero__artist a {
    color: inherit;
    text-decoration: none;
}

.figma-track-hero__artist a:hover {
    color: var(--f-prim);
}

.figma-track-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.figma-track-stat-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 150%;
}

.figma-track-stat-label {
    color: #828282;
}

.figma-track-stat-value {
    color: #333333;
}

.figma-track-hero__duration {
    font-variant-numeric: tabular-nums;
    color: var(--f-gray-2);
}

.figma-track-hero__cta {
    width: 100%;
    max-width: 537px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 16px;
    align-self: stretch;
}

.figma-track-hero__cta-left {
    flex: 1 1 auto;
    min-width: 0;
}

.figma-track-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.figma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 10px;
    border-radius: 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 150%;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    text-decoration: none;
}

.figma-btn--prim {
    background: #2a8ee7;
    color: #ffffff;
}

.figma-btn--prim:hover {
    filter: brightness(1.05);
}

.figma-track-dlwrap form {
    margin: 0;
    display: inline;
}

.figma-track-dlwrap .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 10px;
    border-radius: 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 150%;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    background: transparent;
    color: #2a8ee7;
    border: 1px solid #2a8ee7;
}

.figma-track-dlwrap .btn-download:hover {
    background: rgba(42, 142, 231, 0.06);
}

.figma-track-unavailable {
    margin: 0;
    font-size: 14px;
    color: #828282;
}

.figma-track-share {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

body.figma-track-page .figma-track-share .share-title {
    display: none;
}

.figma-track-share__item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.figma-track-share__svg {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #fff;
}

.figma-track-share__item.x .figma-track-share__svg {
    width: 16px;
    height: 16px;
}

.figma-track-share__item.ok {
    background: #f58220;
}

.figma-track-share__item.vk {
    background: #0077ff;
}

.figma-track-share__item.whatsapp {
    background: #25d366;
}

.figma-track-share__item.telegram {
    background: #229ed9;
}

.figma-track-share__item.x {
    background: #000;
}

.figma-track-current-row {
    width: 100%;
}

.figma-track-more {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.figma-track-more__title {
    margin: 0;
    font-size: 20px;
    line-height: 150%;
    font-weight: 700;
    color: #0e0e0e;
}

.figma-track-more__list {
    width: 100%;
}

.figma-track-more__all {
    margin-top: 4px;
}

.figma-track-sep {
    border: 0;
    border-top: 1px solid var(--f-gray-3);
    width: 100%;
    margin: 0;
}

.figma-track-seo {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.figma-track-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 770px;
}

.figma-track-admin__btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #c62828;
    background: #e53935;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

a.figma-track-admin__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

a.figma-track-admin__btn:hover {
    color: #fff;
}

.figma-track-download-block {
    padding: 24px 0;
}

.figma-track-download-block__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0e0e0e;
}

/* Плейсхолдер «Реклама» — только моб. макет трека */
.figma-track-mob-ad {
    display: none;
    box-sizing: border-box;
}

/* Song page mob (Figma ~375): 20px бока, колонка, hero 240×16, H1 24/130%, блоки gap 40 */
@media (max-width: 768px) {
    body.figma-track-page {
        --f-pad-x: 20px;
    }

    body.figma-track-page .figma-track-admin {
        max-width: 100%;
    }

    body.figma-track-page .figma-track-main.figma-col-main {
        gap: 40px;
    }

    body.figma-track-page .figma-track-stack {
        gap: 40px;
        max-width: 100%;
        align-items: stretch;
    }

    body.figma-track-page .figma-track-hero-wrap {
        gap: 16px;
        align-items: stretch;
    }

    body.figma-track-page .figma-track-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    body.figma-track-page .figma-track-hero__cover-wrap {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: 240px;
        border-radius: 16px;
        background: #dddddd;
    }

    body.figma-track-page .figma-track-hero__cover-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body.figma-track-page .figma-track-hero__body {
        align-items: flex-start;
        text-align: left;
        gap: 24px;
        width: 100%;
    }

    body.figma-track-page .figma-track-hero__title {
        font-size: 24px;
        line-height: 130%;
        max-width: 100%;
        text-align: left;
    }

    body.figma-track-page .figma-track-stats {
        align-items: flex-start;
    }

    body.figma-track-page .figma-track-mob-ad {
        display: flex;
        width: 100%;
        min-height: 240px;
        border-radius: 16px;
        background: #dddddd;
        align-items: center;
        justify-content: center;
        font-family: Inter, system-ui, sans-serif;
        font-weight: 700;
        font-size: 20px;
        line-height: 150%;
        color: #0e0e0e;
    }

    body.figma-track-page .figma-track-hero__cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        max-width: 100%;
    }

    body.figma-track-page .figma-track-btns {
        justify-content: flex-start;
    }

    body.figma-track-page .figma-track-share {
        margin-left: 0;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
    }

    body.figma-track-page .figma-track-share__item {
        width: 34px;
        height: 34px;
    }

    body.figma-track-page .figma-track-share__svg {
        width: 20px;
        height: 20px;
    }

    body.figma-track-page .figma-track-share__item.x .figma-track-share__svg {
        width: 18px;
        height: 18px;
    }

    /* Horizontal song / mob — только на странице трека при ≤768 */
    body.figma-track-page .figma-col-main .figma-hsong {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    body.figma-track-page .figma-col-main .figma-hsong__left {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
        gap: 12px;
    }

    body.figma-track-page .figma-col-main .figma-hsong__meta,
    body.figma-track-page .figma-col-main .figma-hsong__title,
    body.figma-track-page .figma-col-main .figma-hsong__artist {
        max-width: 188px;
    }

    body.figma-track-page .figma-col-main .figma-hsong__stat,
    body.figma-track-page .figma-col-main .figma-hsong__time {
        display: none;
    }

    body.figma-track-page .figma-col-main .figma-hsong__actions {
        flex-direction: row;
        gap: 16px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    body.figma-track-page .figma-col-main .figma-hsong__act--dl {
        order: 0;
    }

    body.figma-track-page .figma-col-main .figma-hsong__act--fav {
        order: 1;
    }

    body.figma-track-page .figma-col-main .figma-hsong__right {
        flex: none;
        gap: 0;
    }

    body.figma-track-page .figma-col-main .figma-hsong:hover,
    body.figma-track-page .figma-col-main .figma-hsong:focus-within {
        min-height: 48px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Каталог текстов (/lyrics) — строки в стиле списка треков */
.figma-hsong--lyrics .figma-hsong__art {
    cursor: default;
}

.figma-hsong--lyrics .figma-hsong__art::after {
    display: none;
}

.figma-hsong__art--lyrics {
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-hsong__lyrics-letters {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.03em;
}

/* Иконка просмотров (PNG из макета) */
.figma-hsong__stat-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-right: 4px;
    object-fit: contain;
    opacity: 0.72;
}

.figma-hsong__actions--lyrics-admin .figma-hsong__act--lyrics-del {
    border: 0;
    background: transparent;
    color: #c0392b;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.figma-hsong__actions--lyrics-admin .figma-hsong__act--lyrics-del:hover {
    background: rgba(192, 57, 43, 0.08);
}

/* --- Страницы без отдельного макета: текст песни, условия, поиск, комментарии --- */
.figma-lyrics-single .figma-popular__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    gap: 0;
    padding: 0;
    isolation: isolate;
}

/* ПК: крупный заголовок сверху, подзаголовок снизу; мобилка: как в HTML (подзаголовок, h1) */
@media (min-width: 641px) {
    .figma-lyrics-single .figma-popular__head {
        flex-direction: column-reverse;
    }
}

.figma-lyrics-single .figma-popular__title {
    width: 100%;
    max-width: 100%;
    flex: none;
    order: 0;
    height: auto;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: var(--f-h1);
    font-weight: 700;
    line-height: 1.25;
    color: var(--f-almost);
}

.figma-lyrics-single .seo-prefix-h1 {
    display: block;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--f-gray-2);
    margin: 0 0 6px;
}

@media (min-width: 641px) {
    .figma-lyrics-single .seo-prefix-h1 {
        margin: 10px 0 0;
    }
}

.figma-lyrics-single__admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.figma-lyrics-single__body {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--f-almost);
}

.figma-lyrics-single__body p {
    margin: 0 0 0.65em;
}

.figma-lyrics-single__body strong {
    font-weight: 600;
    color: var(--f-almost);
}

.figma-lyrics-single__body em {
    font-style: italic;
}

.figma-lyrics-single__body ul,
.figma-lyrics-single__body ol {
    margin: 0 0 0.65em;
    padding-left: 1.35em;
}

.figma-lyrics-single__body li {
    margin-bottom: 0.35em;
}

.figma-lyrics-single__body h2,
.figma-lyrics-single__body h3,
.figma-lyrics-single__body h4 {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    color: var(--f-almost);
    margin: 1em 0 0.5em;
    line-height: 1.3;
}

.figma-lyrics-single__body h2 {
    font-size: 1.25em;
}

.figma-lyrics-single__body h3 {
    font-size: 1.1em;
}

.figma-lyrics-single__body h4 {
    font-size: 1.05em;
}

.figma-lyrics-single__hr {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--f-gray-3);
    height: 0;
    background: none;
    color: transparent;
    overflow: hidden;
}

@media (max-width: 640px) {
    .figma-lyrics-single .figma-popular__title {
        font-size: 24px;
        line-height: 130%;
    }

    .figma-lyrics-single__body {
        font-size: 14px;
        line-height: 1.55;
    }
}

.figma-article-page__body {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.6;
    color: var(--f-almost);
}

.figma-search-page__form-wrap {
    width: 100%;
    margin-bottom: 20px;
}

.figma-search-page__form-wrap .search {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: min(520px, 100%);
}

.figma-search-page__form-wrap .search input.form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.figma-search-results__tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding-bottom: 6px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.figma-search-results__tabs .nav-item {
    flex-shrink: 0;
}

.figma-search-results__panes {
    width: 100%;
    min-width: 0;
}

.figma-comments-page .comments {
    width: 100%;
    min-width: 0;
}

.figma-comments-page .comment-body pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
}

@media (max-width: 640px) {
    .figma-article-page__body {
        font-size: 14px;
        line-height: 1.55;
    }

    .figma-comments-page .comment-header {
        flex-wrap: wrap;
        gap: 6px;
    }
}
