* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Rodchenko CTT';
    src: url('/static/fonts/RodchenkoCTT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #2481cc;
    --primary-dark: #1a5a99;
    --primary-light: #3d9ce8;
    --logo-city: #f0f0f0;
    --logo-live: #3d9ce8;
    --logo-dash-length: 24px;
    --logo-dash-thickness: 4px;
    --bg-color: #0f0f14;
    --bg-secondary: #1a1a20;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --overlay-bg: rgba(255, 255, 255, 0.05);
    --overlay-border: rgba(255, 255, 255, 0.1);
    --player-height: 120px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
    transform: translateZ(0) scale(1.1);
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: filter 0.3s ease-out;
}

/* Анимация пульсации фона при сильном звуке */
#backgroundCanvas.audio-active {
    filter: blur(70px);
}

/* Оптимизация для GPU-рендеринга */
#backgroundCanvas,
.dynamic-background,
.background-overlay {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--bg-color);
    transition: all 0.8s ease-in-out;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0);
    transition: all 0.8s ease-in-out;
}

body.light-background .background-overlay {
    background: rgba(0, 0, 0, 0.3);
}

body.dark-background .background-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Ночной режим - уменьшенная яркость */
body.night-mode {
    --text-color: rgba(255, 255, 255, 0.75);
    --text-secondary: rgba(255, 255, 255, 0.5);
}

body.night-mode .background-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.night-mode #backgroundCanvas {
    opacity: 0.4;
}

body.night-mode .header {
    background: rgba(20, 20, 26, 0.9);
}

body.night-mode .control-btn,
body.night-mode .social-btn,
body.night-mode .icon-btn {
    background: rgba(255, 255, 255, 0.05);
}

body.night-mode .player {
    background: rgba(20, 20, 28, 0.95);
}

body.night-mode .track-title,
body.night-mode .track-artist,
body.night-mode h1, 
body.night-mode h2, 
body.night-mode h3 {
    color: rgba(255, 255, 255, 0.75);
}

body.night-mode .widget-box,
body.night-mode .action-card {
    background: rgba(26, 26, 32, 0.85);
}

/* Текст и подпись кнопок «Заказать песню» / «Передать привет» — приглушённые в ночном режиме */
body.night-mode .action-card,
body.night-mode .action-card span {
    color: rgba(255, 255, 255, 0.65);
}
body.night-mode .action-card i {
    opacity: 0.65;
}

/* Виджет Телеграм — приглушённый в ночном режиме */
body.night-mode .widget-box .widget-header h3,
body.night-mode .widget-box .widget-subtitle {
    color: rgba(255, 255, 255, 0.65);
}
body.night-mode .widget-box .widget-header i,
body.night-mode .widget-box .widget-arrow {
    opacity: 0.65;
    color: rgba(255, 255, 255, 0.65);
}
body.night-mode .telegram-widget-name,
body.night-mode .telegram-widget-date,
body.night-mode .telegram-widget-text {
    color: rgba(255, 255, 255, 0.65);
}
body.night-mode .telegram-widget-text b,
body.night-mode .telegram-widget-text strong {
    color: rgba(255, 255, 255, 0.75);
}
body.night-mode .telegram-widget-text i,
body.night-mode .telegram-widget-text em {
    color: rgba(255, 255, 255, 0.7);
}

body.night-mode .banner-slide img {
    filter: brightness(0.7);
}

body.night-mode .text-button {
    opacity: 0.7;
    filter: brightness(0.8);
}

body.night-mode .settings-btn {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

body.night-mode .player-bar {
    background: rgba(20, 20, 26, 0.85);
}

body.night-mode .track-preview {
    opacity: 0.4;
}

body.night-mode .volume-popup.visible {
    opacity: 0.98;
}

/* Затемнение всех иконок в ночном режиме */
body.night-mode .control-btn i,
body.night-mode .control-btn .volume-icon,
body.night-mode .social-btn i,
body.night-mode .icon-btn i,
body.night-mode .action-card i,
body.night-mode .widget-box .widget-header i,
body.night-mode .widget-arrow,
body.night-mode .text-button i,
body.night-mode .volume-btn i,
body.night-mode .volume-icon,
body.night-mode .volume-muted-icon,
body.night-mode .setting-icon,
body.night-mode .setting-arrow,
body.night-mode .modal-content i,
body.night-mode .close-btn,
body.night-mode .modal-action-btn i,
body.night-mode .modal-back-btn i,
body.night-mode .listeners-count i,
body.night-mode .track-more-btn i,
body.night-mode .player-bar i,
body.night-mode .track-info-modal-body i,
body.night-mode .album-art-overlay i {
    opacity: 0.75;
}

/* Логотип в ночном режиме */
body.night-mode .radio-name .logo-city {
    color: rgba(255, 255, 255, 0.6);
}

body.night-mode .radio-name .logo-live {
    color: rgba(61, 156, 232, 0.7);
}

body.night-mode .radio-name .logo-dash {
    opacity: 0.7;
}

/* Кнопки переключения баннера (точки) */
body.night-mode .banner-dot {
    background: rgba(255, 255, 255, 0.25);
}

body.night-mode .banner-dot.active {
    background: rgba(255, 255, 255, 0.6);
}

/* Таймлайн трека — приглушённый в ночном режиме */
body.night-mode .timeline-bar,
body.night-mode .top-progress-bar {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .timeline-progress,
body.night-mode .top-progress-fill {
    background: linear-gradient(90deg, rgba(61, 156, 232, 0.35) 0%, rgba(61, 156, 232, 0.22) 100%) !important;
}

body.night-mode .control-btn:hover i,
body.night-mode .control-btn:hover .volume-icon,
body.night-mode .social-btn:hover i,
body.night-mode .icon-btn:hover i,
body.night-mode .action-card:hover i {
    opacity: 0.9;
}

/* Settings button (внутри плеера) */
.settings-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-btn i {
    transition: transform 0.4s ease;
}

.settings-btn:hover i {
    transform: rotate(90deg);
}

/* Подсказка «Все фишки тут» — фиксированная позиция, управляется JS */
.settings-hint {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 25000;
    visibility: hidden;
}

.settings-hint:not(.hidden) {
    visibility: visible;
}

.settings-hint.hidden {
    display: none !important;
}

.settings-hint-text {
    position: relative;
    background: #2a3142;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.settings-hint-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #2a3142;
}

/* Статичный градиент для оптимизации */
#staticGradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.optimized-mode #staticGradient {
    opacity: 1;
}

body.optimized-mode #backgroundCanvas {
    display: none;
}

body.optimized-mode .dynamic-background {
    display: none;
}

/* В режиме оптимизации убираем размытие у карточек, оставляем только у плеера */
body.optimized-mode .widget-box,
body.optimized-mode .action-card,
body.optimized-mode .header,
body.optimized-mode .info-tooltip,
body.optimized-mode .modal-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* В режиме оптимизации скрываем регулировку громкости */
body.optimized-mode #volumeControlWrapper {
    display: none !important;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: var(--player-height);
    position: relative;
    z-index: 100;
}

.header {
    background: rgba(26, 26, 32, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 40px;
    border-bottom: 1px solid var(--overlay-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.radio-name {
    font-family: 'Rodchenko CTT', 'Impact', 'Arial Black', sans-serif;
    font-size: 36px;
    font-weight: 200;
    display: flex;
    align-items: baseline;
    gap: 0;
    cursor: default;
    user-select: none;
    letter-spacing: 1px;
}

.radio-name .logo-city {
    color: var(--logo-city);
    font-family: inherit;
}

/* Тире: настройка длины и толщины через --logo-dash-length, --logo-dash-thickness */
.radio-name .logo-dash {
    display: inline-block;
    width: var(--logo-dash-length, 18px);
    height: var(--logo-dash-thickness, 4px);
    margin: 0 8px;
    padding: 0;
    align-self: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, var(--primary-light) 100%);
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(61, 156, 232, 0.3);
}

.radio-name .logo-live {
    color: var(--logo-live);
    font-family: inherit;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.discord-btn {
    background: #5865F2;
    color: white;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.telegram-btn {
    background: #0088cc;
    color: white;
    overflow: hidden;
}

.telegram-btn:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.vk-btn {
    background: #0077FF;
    color: white;
}

.vk-btn:hover {
    background: #0059CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.text-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.text-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.4);
}

.info-icon-wrapper {
    position: relative;
}

.info-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.info-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background: rgba(26, 26, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.info-tooltip:hover,
.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.info-tooltip p {
    margin: 0;
    padding: 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.info-tooltip p:first-child {
    padding-top: 0;
}

.info-tooltip p:last-child {
    padding-bottom: 0;
}

.info-tooltip strong {
    color: white;
    font-weight: 600;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: rgba(26, 26, 32, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
}

.main-content {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 332px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.action-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    position: relative;
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(36, 129, 204, 0.2);
}

.action-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

/* Тултип для заблокированных кнопок — action-card и прочие */
.action-card.disabled::before,
[data-disabled-tooltip].disabled::before {
    content: attr(data-disabled-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(26, 26, 32, 0.95);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-card.disabled::after,
[data-disabled-tooltip].disabled::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 26, 32, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.action-card.disabled:hover::before,
.action-card.disabled:hover::after,
[data-disabled-tooltip].disabled:hover::before,
[data-disabled-tooltip].disabled:hover::after {
    opacity: 1;
}

/* Позиционирование для кнопок без position */
[data-disabled-tooltip].disabled {
    position: relative;
}

.action-card svg {
    color: var(--primary-color);
}

.action-card span {
    font-size: 16px;
    font-weight: 600;
}

.widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.widget-box {
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Кликабельные виджеты */
.widget-box.clickable-widget {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-box.clickable-widget:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.widget-box.clickable-widget:active {
    transform: translateY(0);
}

.widget-arrow {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.widget-box.clickable-widget:hover .widget-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.widget-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.widget-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 400;
}

.widget-content {
    flex: 1;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-placeholder,
.telegram-placeholder {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.telegram-placeholder svg {
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.telegram-post {
    transition: opacity 0.3s ease;
}

/* ========================================
   TELEGRAM WIDGET (новый дизайн)
   ======================================== */

.telegram-widget-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.telegram-widget-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.telegram-widget-item:last-child {
    margin-bottom: 0;
}

.telegram-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.telegram-widget-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.telegram-widget-name {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

.telegram-widget-date {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.telegram-widget-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Яркие теги в виджете */
.telegram-widget-text a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.telegram-widget-text a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.telegram-widget-text b,
.telegram-widget-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.telegram-widget-text i,
.telegram-widget-text em {
    color: rgba(255, 255, 255, 0.9);
}

.telegram-widget-text code {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Хештеги */
.telegram-widget-text a[href*="?q=%23"],
.telegram-widget-text a[href*="search?query"] {
    color: #a78bfa;
    font-weight: 500;
}

.telegram-widget-media {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.telegram-widget-media img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.telegram-widget-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.telegram-widget-empty i {
    font-size: 36px;
    opacity: 0.4;
}

.widget-content::-webkit-scrollbar {
    width: 6px;
}

.widget-content {
    padding-right: 4px;
}

.widget-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.widget-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.widget-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.history-item-art {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 10px;
}

.history-item-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-artist {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-time {
    display: none;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.schedule-item-time {
    font-size: 14px;
    font-weight: 700;
    color: #3d9ce8;
}

.schedule-item-show {
    font-size: 14px;
    font-weight: 600;
}

.schedule-item-host {
    font-size: 12px;
    color: var(--text-secondary);
}

.schedule-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.schedule-item-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    margin-top: 4px;
}

.schedule-item-past {
    opacity: 0.5 !important; /* !important для переопределения анимации content-loaded */
    position: relative;
}

.schedule-item-past .schedule-item-time {
    color: var(--text-secondary);
}

.schedule-item-past .schedule-item-status {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
}

.schedule-item-live {
    background: rgba(255, 71, 87, 0.1);
    border-left: 3px solid #ff4757;
}

.schedule-item-live .schedule-item-time {
    color: #ff4757;
    font-weight: 600;
}

.schedule-item-status.live {
    color: #ff4757;
    font-weight: 700;
    animation: livePulseText 2s ease-in-out infinite;
}

@keyframes livePulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.schedule-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: rgba(26, 26, 32, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    z-index: 20000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

/* ========== НОВЫЙ ПРОГРЕСС-БАР СВЕРХУ ПЛЕЕРА ========== */
.top-progress-bar-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
    transition: height 0.2s ease;
}

.top-progress-bar-wrapper:hover {
    height: 5px;
}

.top-progress-bar {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.top-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    transition: width 0.5s linear;
}

.top-progress-time {
    position: absolute;
    top: 8px;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    background: rgba(26, 26, 32, 0.4);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
    white-space: nowrap;
}

.top-progress-time.left {
    left: 12px;
}

.top-progress-time.right {
    right: 12px;
}

.top-progress-bar-wrapper:hover .top-progress-time {
    opacity: 1;
}

.track-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 0;
    width: 220px;
    flex-shrink: 1;
    opacity: 0.6;
    transition: width 0.4s ease, opacity 0.3s ease, padding 0.4s ease, margin 0.4s ease, border-width 0.4s ease;
    overflow: hidden;
}

.track-preview.hidden {
    width: 0;
    padding: 0;
    opacity: 0;
    border-width: 0;
    pointer-events: none;
}

.track-preview:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}

.preview-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info {
    flex: 1;
    min-width: 0;
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.preview-artist {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-track .preview-info {
    text-align: left;
}

.player-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.player-top {
    display: flex;
    align-items: center;
    position: relative;
    gap: clamp(10px, 1.5vw, 20px);
    min-width: 0;
}

.player-art {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.player-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-secondary);
}

/* Font Awesome иконка вместо default-cover */
.player-art img[src=""],
.player-art img.no-cover,
.player-art img:not([src]) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-art img[src=""]::before,
.player-art img.no-cover::before,
.player-art img:not([src])::before {
    content: "\f001";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Плашка с именем ведущего — рядом с названием трека, в стиле сайта */
.track-artist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 22px;
}

.live-host-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    background: linear-gradient(145deg, rgba(36, 129, 204, 0.2), rgba(36, 129, 204, 0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(36, 129, 204, 0.3);
    width: fit-content;
}

.live-host-badge .live-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(36, 129, 204, 0.6);
    animation: liveDotPulse 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes liveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.live-badge {
    display: none;
}

.player-info {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: max-width 0.2s ease, opacity 0.2s ease;
}

/* Обёртка для названия трека с кнопкой */
.track-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    min-width: 0;
    overflow: hidden;
}

.player-info .track-title {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    display: block;
    max-width: 100%;
}

/* Кнопка "подробнее о треке" - 3 точки */
.track-more-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    opacity: 0.6;
}

.track-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    opacity: 1;
}

.track-more-btn:active {
    transform: scale(0.9);
}

.track-more-btn i {
    font-size: 14px;
}

.player-info .track-artist {
    font-size: clamp(12px, 1vw, 14px);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    max-width: 100%;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 16px);
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.player-extra-controls {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.8vw, 12px);
    margin-left: auto;
    flex-shrink: 0;
}

.control-btn {
    width: clamp(36px, 3vw, 44px);
    height: clamp(36px, 3vw, 44px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Иконки адаптивные к размеру кнопки */
.control-btn i {
    font-size: clamp(14px, 1.4vw, 20px) !important;
}

.play-btn i,
.play-btn.control-btn i,
.play-btn .play-icon,
.play-btn .pause-icon,
.play-btn .loading-icon {
    font-size: clamp(20px, 2vw, 32px) !important;
}

.volume-btn i,
.volume-control .control-btn i {
    font-size: clamp(16px, 1.6vw, 24px) !important;
    width: 1em;
    text-align: center;
}

.listeners-count i {
    font-size: clamp(14px, 1.2vw, 20px) !important;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Иконочные hover-анимации */
#lyricsPlayerBtn:hover i {
    animation: lyricsWiggle 0.5s ease;
}

@keyframes lyricsWiggle {
    0% { transform: translateX(0); }
    15% { transform: translateX(3px); }
    30% { transform: translateX(-3px); }
    45% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    75% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.volume-btn:hover i {
    animation: iconPulse 0.4s ease;
}

/* Кнопки в хедере */
.text-button:hover i {
    animation: iconBounce 0.4s ease;
}

/* Discord — покачивание */
.discord-btn:hover i {
    animation: discordWobble 0.6s ease;
}

@keyframes discordWobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-14deg); }
    30% { transform: rotate(10deg); }
    45% { transform: rotate(-8deg); }
    60% { transform: rotate(5deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* Telegram — улетает за край, возвращается с противоположной стороны */
.telegram-btn i {
    backface-visibility: hidden;
}

.telegram-btn:hover i {
    animation: telegramFly 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes telegramFly {
    0% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(24px, -24px) rotate(12deg); }
    48% { transform: translate(30px, -30px) rotate(15deg); }
    50% { transform: translate(30px, -30px) rotate(15deg); visibility: hidden; }
    51% { transform: translate(-30px, 30px) rotate(-15deg); visibility: hidden; }
    52% { transform: translate(-30px, 30px) rotate(-15deg); visibility: visible; }
    60% { transform: translate(-24px, 24px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* VK и прочие — пульс */
.vk-btn:hover i,
.icon-btn:hover i {
    animation: iconPulse 0.4s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}


.control-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

#likeBtn,
#dislikeBtn {
    width: auto;
    min-width: 0;
    padding: 0 clamp(10px, 1vw, 16px);
    gap: 6px;
    border-radius: 24px;
}

#likeBtn:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.08);
}

#likeBtn:hover i {
    animation: likeHeartBeat 0.5s ease;
}

#likeBtn:active {
    transform: scale(0.92);
}

#likeBtn.active {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

#dislikeBtn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.08);
}

#dislikeBtn:hover i {
    animation: dislikeShake 0.4s ease;
}

#dislikeBtn:active {
    transform: scale(0.92);
}

#dislikeBtn.active {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

@keyframes likeHeartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes dislikeShake {
    0% { transform: rotate(0); }
    20% { transform: rotate(-12deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-6deg); }
    80% { transform: rotate(4deg); }
    100% { transform: rotate(0); }
}

/* Анимация при активации лайка/дизлайка */
@keyframes votePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

#likeBtn.just-voted,
#dislikeBtn.just-voted {
    animation: votePop 0.3s ease;
}

.like-count {
    font-size: 13px;
    font-weight: 600;
}

.play-btn {
    width: clamp(46px, 3.5vw, 56px);
    height: clamp(46px, 3.5vw, 56px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(36, 129, 204, 0.5);
}

.play-btn:active {
    transform: scale(0.95);
}

/* Плавные переходы иконок play/pause/loading */
.play-btn .play-icon,
.play-btn .pause-icon,
.play-btn .loading-icon {
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.play-btn .loading-icon.fa-spin {
    animation: fa-spin 1s linear infinite;
}

.volume-control {
    position: relative;
    display: flex;
    align-items: center;
}

/* ========== ГОРИЗОНТАЛЬНЫЙ ВЫДВИЖНОЙ СЛАЙДЕР ГРОМКОСТИ ========== */
#volumeControlWrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10;
}

#volumeControlWrapper .volume-btn {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Иконки громкости Font Awesome */
.volume-btn .volume-icon,
.volume-btn .volume-muted-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
}

/* ========== POPUP ГРОМКОСТИ (ФОН КАК У МОДАЛОК, ЗАПОЛНЕНИЕ КАК У ТАЙМЛАЙНА) ========== */
.volume-popup {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px 10px;
    min-width: 40px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 30000;
    isolation: isolate;
    pointer-events: none;
    opacity: 0;
    transform-origin: center bottom;
    transform: translate(-50%, -100%) scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.volume-popup.visible {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
    pointer-events: auto;
}

.volume-track-v {
    position: relative;
    width: 5px;
    height: 88px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.volume-track-v:hover {
    background: rgba(255, 255, 255, 0.12);
}

.volume-fill-v {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 0 0 999px 999px;
    pointer-events: none;
    transition: height 0.08s ease-out;
}

.volume-thumb-v {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: bottom 0.08s ease-out;
}

.volume-percent-v {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ========== TRACK INFO MODAL ========== */
.track-info-modal-body {
    padding: 0 !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.track-info-hero {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-info-cover {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.track-info-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    background: var(--bg-secondary);
}

.track-info-cover img[src=""],
.track-info-cover img.no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-info-cover img[src=""]::before,
.track-info-cover img.no-cover::before {
    content: "\f001";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.track-info-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.track-info-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-info-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-info-artist {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    word-break: break-word;
}

.track-info-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.track-info-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.track-info-meta i {
    font-size: 12px;
    color: var(--primary-color);
}

.track-info-votes {
    display: flex;
    gap: 14px;
}

.track-vote-like,
.track-vote-dislike {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.track-vote-like {
    color: #ff6b8a;
}

.track-vote-like i {
    color: #ff6b8a;
}

.track-vote-dislike {
    color: #7c8db5;
}

.track-vote-dislike i {
    color: #7c8db5;
}

.track-info-actions {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.track-info-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.track-info-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.track-info-action-btn:active {
    transform: translateY(0);
}

.track-info-action-btn i {
    font-size: 20px;
    color: var(--primary-color);
}

.track-info-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Обёртка для кнопки поиска с выпадающим меню */
.track-info-search-wrapper {
    flex: 1;
    position: relative;
    overflow: visible;
}

.track-info-search-wrapper .track-info-action-btn {
    width: 100%;
}

/* Выпадающее меню площадок */
.track-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(26, 26, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10002;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.track-info-search-wrapper:hover .track-search-dropdown {
    opacity: 1;
    visibility: visible;
}

.track-search-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-color);
    text-decoration: none;
}

.track-search-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-option-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.track-search-option span:last-child {
    font-size: 13px;
    font-weight: 500;
}

.track-info-section {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.track-info-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.track-info-section-header i {
    color: var(--primary-color);
}

.track-info-lyrics {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-y: auto;
    flex: 1 1 0;
    min-height: 0;
}

.track-info-lyrics::-webkit-scrollbar {
    width: 6px;
}

.track-info-lyrics::-webkit-scrollbar-track {
    background: transparent;
}

.track-info-lyrics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* ========== STREAM QUALITY MODAL ========== */
.stream-settings-control {
    position: relative;
    display: flex;
    align-items: center;
}

/* Стили для опций качества в модальном окне */
.stream-quality-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stream-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.stream-option.active {
    background: rgba(36, 129, 204, 0.15);
    border-color: var(--primary-color);
}

.stream-option-radio {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.stream-option.active .stream-option-radio {
    border-color: var(--primary-color);
}

.stream-option.active .stream-option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.stream-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.stream-option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.stream-option-quality {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-color);
}

.stream-option-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

#streamSettingsBtn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.listeners-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
}

.listeners-count svg {
    color: var(--primary-color);
}

.player-timeline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-time {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: center;
}

.timeline-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: default;
    pointer-events: none;
    position: relative;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s linear;
    position: relative;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--player-height);
    z-index: 10000;
    pointer-events: none;
    visibility: hidden;
}

.modal.active {
    visibility: visible;
}

/* Тёмный фон ТОЛЬКО в области закрытия модалки */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: var(--player-height);
    width: 30vw;
    max-width: 380px;
    min-width: 80px;
    background: rgba(0, 0, 0, 0.11);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: fixed;
    right: 20px;
    bottom: calc(var(--player-height) + 20px);
    top: 20px;
    width: 90%;
    max-width: 480px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(calc(100% + 40px));
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    overflow: hidden;
    border-radius: 16px;
    z-index: 10001;
    pointer-events: auto;
    opacity: 0;
}

/* Градиент от обложки как основной фон панели */
.modal-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.modal.active .modal-gradient {
    opacity: 1;
}

.modal.active .modal-content {
    transform: translateX(0);
    opacity: 1;
}

.modal.modal-closing .modal-content {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: transparent;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.modal.active .modal-header {
    opacity: 1;
    transform: translateY(0);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 28px;
}

.modal-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
}

.modal-action-btn:hover {
    background: #6496ff;
    color: white;
    transform: scale(1.05);
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    right: 28px;
}

/* Когда close-btn внутри modal-header-actions, убираем абсолютное позиционирование */
.modal-header-actions .close-btn {
    position: static;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1) rotate(90deg);
}

/* Кнопка "назад" в модалках */
.modal-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    left: 28px;
}

.modal-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    transform: translateX(-3px);
}

.modal-back-btn:active {
    transform: translateX(-6px) scale(0.95);
}

/* Информация о треке в модалке текста */
.lyrics-track-info {
    display: flex;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.lyrics-track-cover {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.lyrics-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lyrics-track-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lyrics-track-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lyrics-track-title {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-track-artist {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-modal-body {
    padding: 24px 28px !important;
    line-height: 1.9;
    font-size: 15px;
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.modal.active .modal-body {
    opacity: 1;
    transform: translateY(0);
}

/* Модалка «О треке»: ограничение высоты тела, чтобы блок текста песни прокручивался */
#trackInfoModal .modal-body {
    min-height: 0;
    overflow: hidden;
}

/* Минималистичный скроллбар */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

#allTracksModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#allTracksModal .modal-body {
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

#allTracksModal .tracks-list {
    flex: 1;
    overflow-y: auto;
    max-height: none;
}

.history-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    transition: background 0.2s ease;
    align-items: center;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.history-item:hover .history-actions {
    opacity: 1;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.history-action-btn:hover {
    background: #6496ff;
    color: white;
    transform: scale(1.1);
}

.history-order-btn:hover {
    background: #22c55e;
}

.history-art {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-secondary);
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.2px;
}

.history-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

#lyricsText {
    white-space: pre-wrap;
    line-height: 2;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
}

#lyricsText:empty::before {
    content: "Текст песни недоступен";
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* ========================================
   МОДАЛКИ ВИДЖЕТОВ (Telegram, Schedule)
   ======================================== */

/* Общие стили для контента модалок виджетов */
.telegram-loading,
.schedule-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.telegram-loading i,
.schedule-loading i {
    font-size: 32px;
    color: var(--primary-color);
}

/* Telegram Modal Items */
.telegram-modal-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.telegram-modal-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.telegram-modal-item:last-child {
    margin-bottom: 0;
}

.telegram-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.telegram-modal-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0088cc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.telegram-modal-name {
    font-weight: 600;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
}

.telegram-modal-date {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.telegram-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Яркие теги в модалке телеграма */
.telegram-modal-text a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.telegram-modal-text a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.telegram-modal-text b,
.telegram-modal-text strong {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
}

.telegram-modal-text i,
.telegram-modal-text em {
    color: rgba(255, 255, 255, 0.95);
}

.telegram-modal-text code {
    background: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

/* Хештеги */
.telegram-modal-text a[href*="?q=%23"],
.telegram-modal-text a[href*="search?query"] {
    color: #a78bfa;
    font-weight: 500;
}

.telegram-modal-text a[href*="?q=%23"]:hover,
.telegram-modal-text a[href*="search?query"]:hover {
    color: #c4b5fd;
}

.telegram-modal-media {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.telegram-modal-media img,
.telegram-modal-media video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.telegram-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.telegram-modal-empty i {
    opacity: 0.4;
}

/* Schedule Modal Items */
.schedule-modal-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.schedule-modal-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.schedule-modal-item:last-child {
    margin-bottom: 0;
}

.schedule-modal-item.schedule-modal-live {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.schedule-modal-item.schedule-modal-past {
    opacity: 0.5;
}

.schedule-modal-time {
    font-size: 13px;
    color: #a78bfa;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-modal-time i {
    font-size: 12px;
}

.schedule-modal-show {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 4px;
}

.schedule-modal-host {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.schedule-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.schedule-modal-status.live {
    background: rgba(248, 113, 113, 0.25);
    color: #f87171;
    animation: pulse 2s ease-in-out infinite;
}

.schedule-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.schedule-modal-empty i {
    opacity: 0.4;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА ДЛЯ ФОРМ
   ======================================== */

.modal-small .modal-content {
    max-width: 420px;
}

.modal-large .modal-content {
    max-width: 580px;
}

.form-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(100, 150, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(100, 150, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.optional-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 6px;
    vertical-align: middle;
}

.form-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: -2px;
    line-height: 1.4;
}

.form-textarea {
    resize: none;
    min-height: 100px;
}

.form-select {
    cursor: pointer;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6496ff;
}

.form-checkbox label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.form-checkbox label a {
    color: #6496ff;
    text-decoration: none;
    font-weight: 500;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    margin-top: 12px;
}

.btn-primary,
.btn-secondary,
.btn-link {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: #6496ff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5284ee;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(100, 150, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-link {
    background: transparent;
    color: #6496ff;
    padding: 10px 20px;
}

.btn-link:hover {
    text-decoration: underline;
}

.warning-message {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    color: #ffc107;
}

.warning-message svg {
    flex-shrink: 0;
    color: #ffc107;
}

.warning-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: none;
}

.search-results:not(:empty) {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 6px;
}

.track-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.track-art {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
}

.track-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    background: var(--bg-secondary);
}

.track-art img[src=""],
.track-art img.no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-art img[src=""]::before,
.track-art img.no-cover::before {
    content: "\f001";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.2px;
}

.track-artist {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-order-btn {
    padding: 10px 18px;
    background: #6496ff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.track-order-btn:hover {
    background: #5284ee;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 150, 255, 0.3);
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-secondary);
}

.modal-intro {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.rules-section {
    margin-bottom: 24px;
}

.rules-section:last-child {
    margin-bottom: 0;
}

.rules-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #6496ff;
    letter-spacing: -0.2px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.rules-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.rules-list ol li {
    padding-left: 0;
    list-style-position: inside;
}

.rules-list ol li::before {
    display: none;
}

.instruction-intro {
    margin-bottom: 24px;
}

.instruction-intro p {
    font-size: 15px;
    color: var(--text-secondary);
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.instruction-step {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.instruction-step:hover {
    background: rgba(255, 255, 255, 0.05);
}

.instruction-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6496ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.instruction-content {
    flex: 1;
}

.instruction-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.2px;
}

.instruction-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 8px;
}

.instruction-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6496ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.instruction-link:hover {
    text-decoration: underline;
}

.tracks-list::-webkit-scrollbar,
.search-results::-webkit-scrollbar {
    width: 6px;
}

.tracks-list::-webkit-scrollbar-track,
.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.tracks-list::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tracks-list::-webkit-scrollbar-thumb:hover,
.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

* {
    scroll-behavior: smooth;
}

.widget-content,
.tracks-list,
.modal-body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

@media (max-width: 1200px) {
    .action-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .track-preview {
        width: 180px;
    }
}

/* ============================================
   RESPONSIVE DESIGN (БЕЗ МОБИЛЬНОЙ ВЕРСИИ)
   ============================================ */

@media (max-width: 1200px) {
    .header {
        padding: 16px 32px;
    }
    
    .main-content {
        padding: 32px;
    }
    
    .banner-slider {
        height: 280px;
    }
    
    .action-section {
        gap: 20px;
    }
    
    .player-bar {
        padding: 0 32px;
    }
    
    .track-preview {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 14px 24px;
    }
    
    .radio-name {
        font-size: 22px;
        letter-spacing: 1px;
    }
    
    .main-content {
        padding: 28px 24px;
    }
    
    .banner-slider {
        height: 240px;
    }
    
    .action-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .widgets-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .player-bar {
        padding: 0 24px;
        gap: 16px;
    }
    
    .next-track {
        width: 0;
        padding: 0;
        opacity: 0;
        border-width: 0;
        pointer-events: none;
    }
    
    .listeners-count {
        padding: 5px 10px;
        font-size: 12px;
        gap: 4px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 12px 20px;
    }
    
    .radio-name {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .header-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .text-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .social-btn, .icon-btn {
        width: 38px;
        height: 38px;
    }
    
    .main-content {
        padding: 24px 20px;
    }
    
    .banner-slider {
        height: 200px;
    }
    
    .widgets-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .player-bar {
        padding: 0 16px;
        gap: 12px;
    }
    
    .prev-track {
        width: 0;
        padding: 0;
        opacity: 0;
        border-width: 0;
        pointer-events: none;
    }
    
    .player-art {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }
    
    #likeBtn .like-count,
    #dislikeBtn .like-count {
        display: none;
    }
    
    #likeBtn,
    #dislikeBtn {
        padding: 0;
        width: clamp(36px, 3vw, 44px);
        height: clamp(36px, 3vw, 44px);
    }
    
}

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    .info-tooltip {
        min-width: 240px;
        font-size: 11px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .banner-slider {
        height: 160px;
    }
    
    .action-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .player-bar {
        padding: 0 12px;
        gap: 10px;
    }
    
    .player-art {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }
    
    .player-extra-controls #lyricsPlayerBtn {
        display: none;
    }
    
    
    .listeners-count {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 14px;
    }
}

/* Адаптация по высоте экрана */
@media (max-height: 750px) {
    :root {
        --player-height: 100px;
    }
    
    .player-art {
        width: 64px;
        height: 64px;
    }
    
    .preview-art {
        width: 42px;
        height: 42px;
    }
    
    .track-preview {
        padding: 8px;
    }
}

@media (max-height: 600px) {
    :root {
        --player-height: 80px;
    }
    
    .player-art {
        width: 52px;
        height: 52px;
        border-radius: 8px;
    }
    
    .preview-art {
        width: 36px;
        height: 36px;
    }
    
    .track-preview {
        padding: 6px;
        gap: 8px;
    }
    
    .play-btn {
        width: 42px !important;
        height: 42px !important;
    }
    
    .play-btn i,
    .play-btn .play-icon,
    .play-btn .pause-icon,
    .play-btn .loading-icon {
        font-size: 18px !important;
    }
    
    .control-btn {
        width: 34px !important;
        height: 34px !important;
    }
    
    .control-btn i {
        font-size: 12px !important;
    }
    
    .volume-btn i,
    .volume-control .control-btn i {
        font-size: 14px !important;
    }
    
    
    .listeners-count i {
        font-size: 12px !important;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(26, 26, 32, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom right;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    to {
        transform: translateX(120%) scale(0.8);
        opacity: 0;
    }
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.toast-message {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    padding: 0;
    margin-top: -2px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .modal-content {
        right: 12px;
        bottom: calc(var(--player-height) + 12px);
        top: 12px;
        width: calc(100% - 24px);
        max-width: none;
        transform: translateX(calc(100% + 12px));
    }
    
    .modal-close-zone {
        display: none;
    }
    
    .history-actions {
        opacity: 1;
    }
}

/* ============================================
   ALBUM ART FULLSCREEN OVERLAY
   ============================================ */
.album-art-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.album-art-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.album-art-fullscreen {
    max-width: 80vmin;
    max-height: 80vmin;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
}

.album-art-overlay.active .album-art-fullscreen {
    transform: scale(1);
}

.album-art-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.album-art-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ============================================
   SKELETON LOADERS
   Современные loading-скелеты для улучшения UX
   ============================================ */

/* Базовая анимация shimmer */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Базовый класс скелета */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0.15) 40%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    pointer-events: none;
    user-select: none;
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Плавный переход при загрузке контента */
.skeleton-loaded {
    animation: skeleton-fade-out 0.3s ease-out forwards;
}

@keyframes skeleton-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Скелет для обложки плеера */
.player-art .skeleton-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    z-index: 1;
}

.player-art img.loaded + .skeleton-art {
    display: none;
}

/* Скелет для информации о треке */
.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.title {
    width: 180px;
    height: 24px;
}

.skeleton-text.artist {
    width: 120px;
    height: 16px;
}

.skeleton-text.short {
    width: 60px;
    height: 14px;
}

/* Скелет счетчика лайков */
.skeleton-count {
    display: inline-block;
    width: 24px;
    height: 16px;
    border-radius: 4px;
}

/* Скелеты для виджетов */
.skeleton-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.skeleton-widget-art {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}

.skeleton-widget-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-widget-title {
    height: 16px;
    width: 80%;
    border-radius: 4px;
}

.skeleton-widget-subtitle {
    height: 12px;
    width: 50%;
    border-radius: 4px;
}

/* Скелет для баннера */
.skeleton-banner {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Скелет для preview треков (prev/next) */
.skeleton-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
}

.skeleton-preview-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-preview-title {
    height: 14px;
    width: 70%;
    border-radius: 4px;
}

.skeleton-preview-artist {
    height: 12px;
    width: 50%;
    border-radius: 4px;
}

/* Скелет для истории треков */
.skeleton-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-history-art {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}

.skeleton-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-history-title {
    height: 16px;
    width: 75%;
    border-radius: 4px;
}

.skeleton-history-artist {
    height: 12px;
    width: 55%;
    border-radius: 4px;
}

/* Скелет для расписания */
.skeleton-schedule-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-schedule-time {
    height: 16px;
    width: 80px;
    border-radius: 4px;
}

.skeleton-schedule-show {
    height: 16px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-schedule-host {
    height: 12px;
    width: 40%;
    border-radius: 4px;
}

/* Скелет для telegram постов */
.skeleton-telegram-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-telegram-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skeleton-telegram-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-telegram-name {
    height: 14px;
    width: 100px;
    border-radius: 4px;
}

.skeleton-telegram-text {
    height: 14px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-telegram-text:nth-child(2) {
    width: 90%;
}

.skeleton-telegram-text:nth-child(3) {
    width: 70%;
}

/* Скелет для модального окна треков */
.skeleton-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-track-art {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-track-title {
    height: 16px;
    width: 70%;
    border-radius: 4px;
}

.skeleton-track-artist {
    height: 12px;
    width: 50%;
    border-radius: 4px;
}

/* Skeleton для модального окна заказа треков (когда нет ведущего) */
.skeleton-order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}

.skeleton-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-form-label {
    height: 14px;
    width: 100px;
    border-radius: 4px;
}

.skeleton-form-input {
    height: 42px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-form-select {
    height: 42px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-form-button {
    height: 44px;
    width: 150px;
    border-radius: 8px;
    margin-top: 10px;
    align-self: flex-start;
}

.skeleton-track-btn {
    width: 80px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Skeleton для модального окна информации о треке */
.skeleton-track-info-modal {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skeleton-track-info-hero {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.skeleton-track-info-cover {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    flex-shrink: 0;
}

.skeleton-track-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-track-info-title {
    height: 24px;
    width: 80%;
    border-radius: 6px;
}

.skeleton-track-info-artist {
    height: 18px;
    width: 60%;
    border-radius: 4px;
}

.skeleton-track-info-meta {
    display: flex;
    gap: 16px;
}

.skeleton-track-info-meta-item {
    height: 16px;
    width: 70px;
    border-radius: 4px;
}

.skeleton-track-info-votes {
    display: flex;
    gap: 16px;
}

.skeleton-track-info-vote {
    height: 20px;
    width: 50px;
    border-radius: 4px;
}

.skeleton-track-info-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skeleton-track-info-action-btn {
    height: 44px;
    width: 140px;
    border-radius: 10px;
}

.skeleton-track-info-lyrics {
    height: 200px;
    border-radius: 12px;
}

/* Контейнер для скелета плеера */
.player-info-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-info-skeleton .skeleton-title {
    height: 22px;
    width: 200px;
    border-radius: 4px;
}

.player-info-skeleton .skeleton-artist {
    height: 16px;
    width: 140px;
    border-radius: 4px;
}

/* Состояние загрузки - скрытие реального контента */
.is-loading .player-text {
    opacity: 0;
}

.is-loading .skeleton {
    display: block;
}

/* Плавное появление контента после загрузки */
.player-info .track-title,
.player-info .track-artist {
    transition: opacity 0.3s ease;
}

.player-info.loading .track-title,
.player-info.loading .track-artist {
    opacity: 0;
}

/* Счетчики в загрузке */
.like-count.loading {
    min-width: 24px;
    color: transparent;
    position: relative;
}

.like-count.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Скрыть placeholder при наличии скелета */
.widget-content.has-skeleton .widget-placeholder,
.widget-content.has-skeleton .telegram-placeholder {
    display: none;
}

/* Fade in анимация для загруженного контента */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-loaded {
    animation: fadeInContent 0.3s ease forwards;
}

/* Скелет для баннерного изображения */
.banner-slide .skeleton-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide img.loaded + .skeleton-banner-img {
    display: none;
}

/* Анимации для плавного обновления виджетов */
.history-item-new,
.schedule-item-new {
    animation: fadeSlideIn 0.4s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODAL CLOSE ZONE (левая часть экрана, 20%)
   ============================================ */
.modal-close-zone {
    position: fixed;
    top: 0;
    left: 0;
    bottom: var(--player-height);
    width: 30vw;
    max-width: 380px;
    min-width: 80px;
    z-index: 10001;
    pointer-events: none;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal.active .modal-close-zone {
    pointer-events: auto;
}

/* Первый раз — заметная зона с текстом */
.modal.active .modal-close-zone:not(.seen) {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal.active .modal-close-zone:not(.seen)::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    animation: closeZonePulse 2s ease-in-out infinite;
}

.modal.active .modal-close-zone:not(.seen)::after {
    content: 'Нажмите для закрытия';
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.5px;
    max-height: 140px;
}

@keyframes closeZonePulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-4px); }
}

/* После первого использования — тонкая полоска */
.modal.active .modal-close-zone.seen {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.modal.active .modal-close-zone:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.modal.active .modal-close-zone:hover::before {
    content: '\f053';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SETTINGS MODAL — панели (настройки / качество)
   ============================================ */
.modal-settings-container {
    overflow: hidden;
}

.modal-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-panel-settings {
    transform: translateX(0);
}

.modal-panel-quality {
    transform: translateX(100%);
}

.modal-settings-container.modal-quality-active .modal-panel-settings {
    transform: translateX(-100%);
}

.modal-settings-container.modal-quality-active .modal-panel-quality {
    transform: translateX(0);
}

/* Order Song + Stop List panels */
.modal-panels-container {
    overflow: hidden;
}

.modal-panel-order {
    transform: translateX(0);
}

.modal-panel-stoplist {
    transform: translateX(100%);
}

.modal-panels-container.modal-stoplist-active .modal-panel-order {
    transform: translateX(-100%);
}

.modal-panels-container.modal-stoplist-active .modal-panel-stoplist {
    transform: translateX(0);
}

/* Request Call + Call Rules panels */
.modal-panel-call {
    transform: translateX(0);
}

.modal-panel-callrules {
    transform: translateX(100%);
}

.modal-panels-container.modal-callrules-active .modal-panel-call {
    transform: translateX(-100%);
}

.modal-panels-container.modal-callrules-active .modal-panel-callrules {
    transform: translateX(0);
}

.settings-body {
    padding: 0 !important;
}

.settings-section {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
    cursor: default;
    position: relative;
    z-index: 1;
}

.setting-item + .setting-item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Неактивное состояние «Спокойный фон» при включённом режиме оптимизации */
.setting-item:has(#settingCalmBg:disabled) {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.setting-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.setting-icon {
    font-size: 18px;
    color: var(--primary-light);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.setting-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.setting-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 2px;
}

.setting-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    transition: transform 0.2s ease;
}

#settingStreamQuality {
    cursor: pointer;
    border-radius: 8px;
    margin: 0 -8px;
    padding: 12px 8px;
    transition: background 0.2s ease;
}

#settingStreamQuality:hover {
    background: rgba(255, 255, 255, 0.05);
}

#settingStreamQuality:hover .setting-arrow {
    transform: translateX(3px);
    color: var(--primary-light);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Setting select */
.setting-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.setting-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
}

.setting-select option {
    background: #1a1a1a;
    color: white;
}

/* Autofill fields */
.autofill-fields {
    padding: 12px 0 0;
}

.autofill-field {
    margin-bottom: 12px;
}

.autofill-field label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.autofill-save-btn {
    width: 100%;
    margin-top: 8px;
}

/* Text button with icons */
.text-button i {
    margin-right: 6px;
}

/* Version updated: 2025-01-18 skeleton-loaders */

/* ========== RageMP / CEF: прокрутка и селекты в игровом браузере ========== */
body.ragemp-cef {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.ragemp-cef .widget-content,
body.ragemp-cef .modal-body,
body.ragemp-cef .tracks-list,
body.ragemp-cef .search-results,
body.ragemp-cef .track-info-lyrics,
body.ragemp-cef .modal-settings-container,
body.ragemp-cef .modal-panels-container {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-y: auto;
}

body.ragemp-cef .form-select,
body.ragemp-cef select.form-select {
    pointer-events: auto !important;
    cursor: pointer;
}
body.ragemp-cef .form-select:focus {
    outline: none;
}

/* Кастомный выпадающий список (вместо native select) */
body.ragemp-cef .cef-custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
body.ragemp-cef .cef-custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
}
body.ragemp-cef .cef-custom-select-list {
    -webkit-overflow-scrolling: touch;
}
