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

:root {
    --primary-color: #2481cc;
    --primary-dark: #1a5a99;
    --primary-light: #3d9ce8;
    --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: 140px;
}

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);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.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);
}

.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-size: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%); /* background: linear-gradient(135deg, #ffffff 0%, #3d9ce8 100%) */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
}

.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.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 {
    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 {
    opacity: 1;
}

.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-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;
}

.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;
    position: relative;
}

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

.schedule-item-past .schedule-item-show {
}

.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: 2000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.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: 220px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

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

.preview-art {
    width: 60px;
    height: 60px;
    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: 12px;
}

.player-top {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.player-art {
    position: relative;
    width: 80px;
    height: 80px;
    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);
}

.live-badge {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 50%, #ff4757 100%);
    background-size: 200% 200%;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: liveGradient 3s ease infinite, livePulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    width: fit-content;
    flex-shrink: 0;
}

@keyframes liveGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.player-info {
    flex: 1;
    min-width: 0;
    max-width: 350px;
    position: relative;
    padding-right: 20px;
}

.player-info .track-title {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    max-width: 100%;
}

.player-info .track-artist {
    font-size: 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: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.player-extra-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.control-btn {
    width: 44px;
    height: 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;
}

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

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

#likeBtn,
#dislikeBtn {
    width: auto;
    min-width: 70px;
    padding: 0 16px;
    gap: 8px;
    border-radius: 24px;
}

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

#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);
}

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

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

.play-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(36, 129, 204, 0.4);
}

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

.volume-control::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    pointer-events: auto;
    z-index: 10000;
}

.volume-slider {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-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: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.3s; /* Задержка перед скрытием */
    z-index: 10001;
}

.volume-slider::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(26, 26, 32, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.volume-slider:hover,
.volume-control:hover .volume-slider,
.volume-slider.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s; /* Убираем задержку при появлении */
}

.volume-slider-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.volume-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.volume-slider-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.volume-slider-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 35px;
    text-align: right;
}

.volume-slider-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.volume-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    transition: none; /* Убрали transition чтобы следовала за точкой */
}

.volume-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.2s ease;
}

.volume-slider-thumb:hover,
.volume-slider-thumb:active {
    transform: translate(-50%, -50%) scale(1.2);
}

.volume-slider-thumb:active {
    cursor: grabbing;
}

.listeners-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    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: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.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 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(26, 26, 32, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--overlay-border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--overlay-border);
    background: linear-gradient(180deg, rgba(36, 129, 204, 0.15) 0%, transparent 100%);
    border-radius: 20px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

#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: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--overlay-border);
}

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

.history-art {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.history-artist {
    font-size: 13px;
    color: var(--text-secondary);
}

#lyricsText {
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 15px;
}

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

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

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

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

.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: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.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;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.form-checkbox label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--overlay-border);
    background: linear-gradient(180deg, transparent 0%, rgba(36, 129, 204, 0.1) 100%);
    margin-top: 8px;
    padding: 16px 0 0 0;
}

.btn-primary,
.btn-secondary,
.btn-link {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

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

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

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

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

.btn-link {
    background: none;
    color: var(--primary-color);
    padding: 8px 16px;
}

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

.warning-message {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    color: #ffc107;
}

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

.warning-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.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: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

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

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

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

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

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

.track-order-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.track-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.4);
}

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

.modal-intro {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

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

.rules-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.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: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.instruction-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    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: 8px;
}

.instruction-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.instruction-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s 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 {
        min-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 {
        min-width: 200px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 14px 24px;
    }
    
    .radio-name {
        font-size: 22px;
    }
    
    .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: 20px;
    }
    
    .next-track {
        display: none;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 12px 20px;
    }
    
    .radio-name {
        font-size: 20px;
    }
    
    .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 20px;
        gap: 16px;
    }
    
    .prev-track {
        display: none;
    }
    
    .player-main {
        gap: 10px;
    }
    
    .player-controls {
        position: static;
        transform: none;
        margin: 0 auto;
    }
}

@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 16px;
        height: auto;
    }
    
    .player-top {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .player-art {
        width: 70px;
        height: 70px;
    }
    
    .player-controls {
        gap: 12px;
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .player-extra-controls {
        order: 4;
        width: 100%;
        justify-content: center;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    #likeBtn,
    #dislikeBtn {
        min-width: 60px;
        padding: 0 12px;
    }
}

/* ============================================
   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;
    }
}

/* ============================================
   ALBUM ART MODAL
   ============================================ */
.album-art-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 90vmin;
    max-height: 90vmin;
    padding: 0;
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-art-modal-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.album-art-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.album-art-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Version updated: 2025-12-19 19:58 */
