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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #4361ee;
    --accent-color: #f72585;
    --background-color: #0f0f23;
    --card-color: #1e1e3a;
    --text-color: #f8f9fa;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(247, 37, 133, 0.1) 0%, transparent 20%),
        linear-gradient(135deg, var(--background-color), #0a0a18); */
    /* background: #170b5978;  */
    background: #07071d; 
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    overflow-y: auto;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), #16213e);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    /* padding: 20px 30px; */
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header h1 {
    color: var(--text-color);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    min-width: 0;
}

.header h1 i {
    color: var(--secondary-color);
    margin-right: 10px;
    -webkit-text-fill-color: var(--secondary-color);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 45px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--card-color);
    color: var(--text-color);
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

/* Player Section - FIXED STICKY */
.player-section {
    /* background: #41417f; */
    background: #251e61;
	/* background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgb(96 96 183 / 80%)); */
    /* background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); */
    border-radius: var(--border-radius);
    padding: clamp(15px, 3vw, 25px);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Simple Sticky Player - ИСПРАВЛЕННЫЙ */
.player-section.sticky-player {
    position: -webkit-sticky;
    position: sticky;
    top: 1px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--secondary-color);
    animation: fadeInSticky 0.3s ease;
}

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

/* При sticky состоянии скрываем visualizer для компактности */
/* .player-section.sticky-player .visualizer {
    display: none;
} */

/* Прогресс-бар всегда виден, даже в sticky режиме */
.player-section.sticky-player .standard-progress {
    display: flex !important;
    margin-top: 10px;
}

/* Стандартный прогресс-бар */
.standard-progress {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.standard-progress.active {
    opacity: 1;
}

.progress-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    max-width: 500px;
    min-width: 300px;
    margin: 0 auto;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85rem;
    color: #bdc3c7;
    font-weight: 500;
    margin-bottom: 8px;
}

.time-display span {
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: 1px;
    min-width: 45px;
    text-align: center;
}

.progress-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-slider::-webkit-slider-thumb:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.progress-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-slider::-moz-range-thumb:hover {
    background: var(--accent-color);
}

.progress-slider:focus {
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.3);
}

/* Прогресс-бар загрузки */
.loading-progress {
    margin-top: 15px;
    height: 25px;
    display: none; /* Скрыт по умолчанию */
    flex-direction: column;
    gap: 5px;
}

.loading-progress.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    color: var(--text-color);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #bdc3c7;
    height: 17px;
}

/* Стадии прогресса */
.progress-loading .progress-fill {
    background: linear-gradient(90deg, var(--secondary-color), #3a56d4);
}

.progress-buffering .progress-fill {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.5; }
}

.progress-playing .progress-fill {
    background: linear-gradient(90deg, var(--accent-color), #e01e72);
}

.progress-error .progress-fill {
    background: linear-gradient(90deg, #ff4757, #ff3838);
    width: 100% !important;
}

.progress-error .progress-text {
    color: #ff6b81;
}

/* Когда прогресс завершен */
.loading-progress.completed {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.now-playing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 20px);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Station-info - ПЕРЕПИСАННЫЙ: ОБЪЕДИНЯЕМ ЛОГОТИП И ДЕТАЛИ */
.station-info {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 15px);
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 350px);
    /* Центрируем как единую группу */
    justify-content: flex-start; /* На десктопе слева */
    text-align: left; /* На десктопе текст слева */
    margin-right: 20px; /* Отступ от кнопок управления */
}

.station-info img {
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    border-radius: var(--border-radius);
    object-fit: cover;
    flex-shrink: 0;
}

.station-details {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* На десктопе выравниваем по левому краю */
}

.station-details h2 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 5px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-details p {
    color: #bdc3c7;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 15px);
    flex-shrink: 0;
    flex-wrap: nowrap;
    max-width: 300px;
    overflow: hidden;
}

.control-btn, .play-btn, .favorite-btn {
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    color: var(--text-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-btn {
    background: var(--secondary-color);
    width: clamp(45px, 7vw, 60px);
    height: clamp(45px, 7vw, 60px);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.control-btn:hover, .favorite-btn:hover {
    background: #34495e;
    transform: scale(1.1);
}

.play-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.favorite-btn.active {
    color: var(--accent-color);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 180px;
    width: 100%;
    overflow: hidden;
}

.volume-control i {
    color: var(--secondary-color);
    font-size: clamp(1rem, 2vw, 1.2rem);
    flex-shrink: 0;
}

.volume-control input {
    width: 100%;
    min-width: 60px;
    max-width: 140px;
    accent-color: var(--secondary-color);
    flex: 1;
}

/* Visualizer */
/* .visualizer {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.wave-container {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 35px;
}

.wave-bar {
    width: 3px;
    background: linear-gradient(to top, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.visualizer.playing .wave-bar {
    animation: calmChaos 2.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { 
    height: 6px; 
    animation-delay: 0.1s; 
}
.wave-bar:nth-child(2) { 
    height: 15px; 
    animation-delay: 0.3s; 
}
.wave-bar:nth-child(3) { 
    height: 10px; 
    animation-delay: 0.6s; 
}
.wave-bar:nth-child(4) { 
    height: 20px; 
    animation-delay: 0.2s; 
}
.wave-bar:nth-child(5) { 
    height: 8px; 
    animation-delay: 0.5s; 
}
.wave-bar:nth-child(6) { 
    height: 18px; 
    animation-delay: 0.8s; 
}
.wave-bar:nth-child(7) { 
    height: 12px; 
    animation-delay: 0.4s; 
}
.wave-bar:nth-child(8) { 
    height: 16px; 
    animation-delay: 0.7s; 
}
.wave-bar:nth-child(9) { 
    height: 7px; 
    animation-delay: 0.9s; 
}

@keyframes calmChaos {
    0% { 
        height: 5px;
        opacity: 0.4;
        transform: scaleY(0.3);
    }
    20% {
        height: 22px;
        opacity: 0.8;
        transform: scaleY(1.1);
    }
    40% {
        height: 12px;
        opacity: 0.5;
        transform: scaleY(0.5);
    }
    60% {
        height: 18px;
        opacity: 0.7;
        transform: scaleY(0.9);
    }
    80% {
        height: 8px;
        opacity: 0.4;
        transform: scaleY(0.4);
    }
    100% { 
        height: 20px;
        opacity: 0.7;
        transform: scaleY(1.0);
    }
}

.visualizer.playing .wave-bar:nth-child(1) { animation-duration: 2.0s; }
.visualizer.playing .wave-bar:nth-child(2) { animation-duration: 2.4s; }
.visualizer.playing .wave-bar:nth-child(3) { animation-duration: 1.8s; }
.visualizer.playing .wave-bar:nth-child(4) { animation-duration: 2.6s; }
.visualizer.playing .wave-bar:nth-child(5) { animation-duration: 2.1s; }
.visualizer.playing .wave-bar:nth-child(6) { animation-duration: 2.3s; }
.visualizer.playing .wave-bar:nth-child(7) { animation-duration: 1.9s; }
.visualizer.playing .wave-bar:nth-child(8) { animation-duration: 2.5s; }
.visualizer.playing .wave-bar:nth-child(9) { animation-duration: 2.2s; } */

/* Меню жанров */
.genres-container {
    background: linear-gradient(135deg, var(--primary-color), #16213e);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 50;
    width: 100%;
}

.genres-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.genres-header:hover {
    background: rgba(0, 0, 0, 0.3);
}

.genres-header h3 {
    color: var(--text-color);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.genres-container.expanded .toggle-icon {
    transform: rotate(90deg);
}

.genres-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    box-sizing: border-box;
}

.genres-container.expanded .genres-menu {
    max-height: 1000px;
    padding: 20px;
    overflow: visible;
}

/* Кнопки жанров */
.genre-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--card-color);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    text-decoration: none;
    border: 2px solid transparent;
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.genre-btn:hover {
    background: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
}

.genre-btn.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.genre-btn.active:hover {
    background: linear-gradient(135deg, #3a56d4, #e01e72);
}

.genre-btn-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    width: 24px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.genre-btn.active .genre-btn-icon {
    color: white;
}

.genre-btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.genre-btn-name {
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-btn-count {
    font-size: 0.8rem;
    color: #bdc3c7;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.genre-btn.active .genre-btn-count {
    color: rgba(255, 255, 255, 0.9);
}

/* Станции */
.stations-section {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
}

.section-header h2 {
    color: var(--text-color);
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.stations-count {
    /* background: var(--secondary-color); */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
    /* margin-bottom: 15px; */
}

/* Stations Grid */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.station-card {
    background: var(--card-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.station-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.station-card.playing {
    border-color: var(--secondary-color);
    /* background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(30, 30, 58, 0.8)); */
    background: linear-gradient(135deg, #1b2867, #ef6dd2a8);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(67, 97, 238, 0.3); }
    50% { box-shadow: 0 0 30px rgba(67, 97, 238, 0.5); }
}

.station-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    min-height: 50px;
    overflow: hidden;
}

.station-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.station-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.station-genre {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    width: fit-content;
    white-space: nowrap;
}

.station-desc {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.station-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    overflow: hidden;
}

.play-indicator {
    color: var(--secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.fav-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.fav-btn.active {
    color: var(--accent-color);
}

.fav-btn:hover {
    transform: scale(1.2);
}

/* No Stations */
.no-stations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--card-color);
    border-radius: var(--border-radius);
    border: 2px dashed var(--secondary-color);
    overflow: hidden;
}

.no-stations i {
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.7;
    font-size: 3rem;
}

.no-stations h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.no-stations p {
    color: #bdc3c7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.back-to-home {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.back-to-home:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid transparent;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 900px) {
    .header {
        
        text-align: center;
        /* padding: 15px 20px; */
        gap: 15px;
    }
    
    .search-box {
        max-width: 100%;
        width: 80%;
        order: 3;
        margin-top: 10px;
    }
    
    .header h1 {
        order: 1;
    }
    
    .progress-center-wrapper {
        width: 60%;
        min-width: 280px;
    }
    
    .now-playing {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center; /* Центрируем элементы */
    }
    
    .station-info {
        max-width: 100%;
        width: 100%;
        justify-content: center; /* Центрируем всю группу */
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .station-details {
        align-items: baseline; /* Центрируем текст внутри */
    }
    
    .station-details h2,
    .station-details p {
        text-align: center;
    }
	
	    .player-controls {
        order: 0;
		max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: center; /* Центрирование по горизонтали */
        align-items: center; /* Центрирование по вертикали */
        margin: 0;
        gap: clamp(10px, 2vw, 15px);
        flex-wrap: nowrap;
    }
    

    
    .volume-control {
        max-width: 100%;
        width: 100%;
        justify-content: center; /* Центрируем регулятор громкости */
        order: 1;
        margin-top: 10px;
    }
    
    .player-section.sticky-player {
        top: 1px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Station-info на мобильных - ИСПРАВЛЕНО */
    .station-info {
        flex-direction: row; /* Оставляем в строку */
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .station-info img {
        width: clamp(45px, 7vw, 60px);
        height: clamp(45px, 7vw, 60px);
    }
    
    .station-details {
        align-items: baseline;
    }
    
    .station-details h2 {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        text-align: center;
    }
    
    .station-details p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        text-align: center;
    }
    
    .now-playing {
        flex-direction: column;
        align-items: center; /* Центрируем все элементы по вертикали */
        gap: 15px;
        width: 100%;
    }
    
    /* Player-controls на мобильных */
    .player-controls {
        order: 0;
        width: 100%;
        display: flex;
        justify-content: center; /* Центрирование по горизонтали */
        align-items: center; /* Центрирование по вертикали */
        margin: 0;
        gap: clamp(10px, 2vw, 15px);
        flex-wrap: nowrap;
    }
    
    /* Volume Control на мобильных */
    .volume-control {
        order: 1;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center; /* Центрирование по горизонтали */
        align-items: center; /* Центрирование по вертикали */
        margin-top: 5px;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .volume-control input {
        max-width: 200px;
        width: 100%;
    }
    
    /* Стандартный прогресс-бар на мобильных */
    .standard-progress {
        margin-top: 12px;
        gap: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .progress-center-wrapper {
        width: 80%;
        min-width: 250px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .time-display {
        font-size: 0.8rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .progress-slider {
        height: 5px;
        width: 100%;
    }
    
    .progress-slider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    
    .progress-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    
    /* Кнопки на мобильных */
    .play-btn {
        width: clamp(45px, 6vw, 55px);
        height: clamp(45px, 6vw, 55px);
        font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    }
    
    .control-btn, .favorite-btn {
        width: clamp(38px, 5vw, 45px);
        height: clamp(38px, 5vw, 45px);
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    
    /* Прогресс-бар на мобильных */
    .loading-progress {
        margin-top: 12px;
        height: 22px;
        width: 100%;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-text {
        font-size: 0.65rem;
    }
    
    .progress-status {
        font-size: 0.7rem;
    }
    
    /* Меню жанров на мобильных */
    .genres-menu {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .genres-container.expanded .genres-menu {
        padding: 15px;
    }
    
    .genre-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-height: 55px;
    }
    
    .genre-btn-icon {
        font-size: 1.1rem;
        width: 20px;
        min-width: 20px;
    }
    
    .genre-btn-name {
        font-size: 0.9rem;
    }
    
    .genre-btn-count {
        font-size: 0.75rem;
    }
    
    /* Станции на мобильных */
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-align: left;
    }
    
    .section-header h2 {
        font-size: clamp(1.2rem, 2.8vw, 1.3rem);
    }
    
    .stations-count {
        font-size: clamp(0.75rem, 1.8vw, 0.8rem);
    }
    
    /* Sticky player mobile */
    .player-section.sticky-player {
        top: 1px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .header {
		flex-direction: column;
        /* padding: 12px 15px; */
    }
    
    .progress-center-wrapper {
        width: 90%;
        min-width: 200px;
    }
    
    .time-display {
        font-size: 0.75rem;
    }
    
    .progress-slider {
        height: 4px;
    }
    
    .progress-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    
    .progress-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
    
    /* Для очень узких экранов */
    .now-playing {
        flex-direction: column;
        align-items: center; /* Центрируем все элементы */
        gap: 15px;
    }
    
    .station-info {
        order: -1;
        width: 100%;
        margin-bottom: 0;
        justify-content: center; /* Центрируем */
        text-align: center;
    }
    
    .player-controls {
        order: 0;
        width: 100%;
        justify-content: center; /* Центрируем */
        margin: 0;
        gap: 8px;
    }
    
    .volume-control {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
        padding: 0 20px;
        justify-content: center; /* Центрируем */
    }
    
    .volume-control input {
        max-width: 180px;
    }
    
    .station-info img {
        width: 50px;
        height: 50px;
    }
    
    .station-details h2 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .station-details p {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Меню жанров на очень узких экранах */
    .genres-menu {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
    }
    
    /* Sticky player на очень узких экранах */
    .player-section.sticky-player {
        top: 1px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        /* padding: 10px 12px; */
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .progress-center-wrapper {
        width: 95%;
        min-width: 180px;
    }
    
    .time-display {
        font-size: 0.7rem;
    }
    
    .time-display span {
        min-width: 40px;
    }
    
    .progress-slider {
        height: 3px;
    }
    
    .progress-slider::-webkit-slider-thumb {
        width: 10px;
        height: 10px;
    }
    
    .progress-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
    }
    
    .search-box input {
        padding: 12px 15px;
        padding-left: 40px;
    }
    
    .player-section {
        padding: 12px;
    }
    
 /* Station-info на очень маленьких экранах */
    .station-info {
        flex-direction: row; /* Оставляем в строку, но можем поменять на column */
        align-items: center;
        justify-content: center;
    }
    
    .station-info img {
        width: 45px;
        height: 45px;
        margin-bottom: 0; /* Убираем, если оставляем в строку */
        margin-right: 10px; /* Добавляем отступ справа */
    }
    
    .station-details h2 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .station-details p {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .control-btn, .favorite-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Volume Control на очень маленьких экранах */
    .volume-control {
        padding: 0 15px;
        justify-content: center;
    }
    
    .volume-control input {
        max-width: 150px;
    }
    
    /* Прогресс-бар на очень маленьких экранах */
    .loading-progress {
        margin-top: 10px;
        height: 20px;
    }
    
    .progress-text {
        font-size: 0.6rem;
    }
    
    .progress-status {
        font-size: 0.65rem;
    }
    
    /* Меню жанров на очень маленьких экранах */
    .genres-menu {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .genres-container.expanded .genres-menu {
        padding: 12px;
    }
    
    .genre-btn {
        padding: 10px;
        min-height: 50px;
    }
    
    .genres-header {
        padding: 12px 15px;
    }
    
    .genres-header h3 {
        font-size: 1.1rem;
    }
    
    .toggle-icon {
        font-size: 1rem;
    }
    
    /* Sticky player на очень маленьких экранах */
    .player-section.sticky-player {
        top: 1px;
    }
}

/* Специальные стили для очень узких экранов (менее 360px) */
@media (max-width: 360px) {
    .container {
        padding: 5px;
    }
    
    .header {
        /* padding: 8px 10px; */
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .progress-center-wrapper {
        width: 100%;
        min-width: 150px;
    }
    
    .time-display {
        font-size: 0.65rem;
    }
    
    .time-display span {
        min-width: 35px;
    }
    
    .progress-slider {
        height: 2px;
    }
    
    .progress-slider::-webkit-slider-thumb {
        width: 8px;
        height: 8px;
    }
    
    .progress-slider::-moz-range-thumb {
        width: 8px;
        height: 8px;
    }
    
    .search-box input {
        padding: 10px 12px;
        padding-left: 35px;
        font-size: 0.9rem;
    }
    
    .search-box i {
        left: 10px;
    }
    
    .player-section {
        padding: 10px;
    }
    
    .now-playing {
        flex-direction: column;
        align-items: center; /* Центрируем все элементы */
    }
    
    .station-info {
        /* flex-direction: column; */
        align-items: center;
        text-align: center;
    }
	
    
	    /* .station-info img {
        width: 40px;
        height: 40px;
    } */
    
    /* .station-details h2 {
        font-size: 1rem;
        text-align: center;
    } */
    
    /* .station-details p {
        font-size: 0.7rem;
        text-align: center;
    } */
    
    .player-controls {
        justify-content: center; /* Центрируем кнопки */
        width: 100%;
        gap: 5px;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
    
    .volume-control input {
        max-width: 120px;
    }
    
    .play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .control-btn, .favorite-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Sticky player на самых маленьких экранах */
    .player-section.sticky-player {
        top: 1px;
    }
}