/* Основные стили для радиостанций */
.radio-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.radio-station-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.radio-station-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.radio-station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-station-card:hover::before {
    opacity: 1;
}

.station-image {
    position: relative;
    width: 100%;
}

.station-image img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.radio-station-card:hover .station-image img {
    transform: scale(1.05);
}

.station-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    border-radius: 8px;
}

.station-info h3 {
    margin: 15px 0 8px 0;
    font-size: 1.3em;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.station-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.station-info h3 a:hover {
    color: #3498db;
}

.station-genres {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 12px;
    font-weight: 500;
}

.station-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: #95a5a6;
    margin-bottom: 15px;
}

.station-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.station-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.play-station-btn, .favorite-station-btn, .like-station-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.play-station-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    flex-grow: 1;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.play-station-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.play-station-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.favorite-station-btn, .like-station-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    width: 44px;
    height: 44px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.favorite-station-btn:hover, .like-station-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-station-btn.active, .like-station-btn.active {
    color: white;
    border-color: transparent;
}

.favorite-station-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.like-station-btn.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

/* Стили плеера */
.radio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    border-top: 3px solid #3498db;
}

.player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 15px;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 1 auto;
    min-width: 0;
}

#player-station-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.1);
}

.station-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.station-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.station-link:hover {
    color: #3498db;
}

.station-details h4 {
    margin: 0 0 4px 0;
    font-size: 1em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff !important;
}

.station-details span {
    font-size: 0.8em;
    color: #bdc3c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Контролы плеера */
.player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

/* Основные кнопки управления */
.play-btn, .pause-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 50px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.play-btn:hover, .pause-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Кнопки действий */
.favorite-btn, .like-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 45px;
    min-width: 45px;
    justify-content: center;
    font-weight: 500;
}

.favorite-btn:hover, .like-btn:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    transform: translateY(-1px);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.like-btn.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

/* Счетчик слушателей */
.listeners-count {
    font-size: 0.8em;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    padding: 8px 12px;
    border-radius: 8px;
    height: 45px;
    font-weight: 500;
}

/* Контроль громкости */
.volume-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: none;
    border: none;
    color: #bdc3c7;
    font-size: 1em;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
}

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

.volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.2);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

/* Стили для выключенного звука */
.volume-controls.muted .volume-slider {
    background: rgba(255,255,255,0.1);
}

.volume-controls.muted .volume-slider::-webkit-slider-thumb {
    background: #e74c3c;
}

.volume-controls.muted .volume-slider::-moz-range-thumb {
    background: #e74c3c;
}

/* Новые стили для переключателя видов */
.radio-view-switcher {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    justify-content: center;
}

.view-switch-btn {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.view-switch-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
    color: #3498db;
}

.view-switch-btn.active {
    border-color: #3498db;
    background: #3498db;
    color: white;
}

.view-switch-btn svg {
    width: 18px;
    height: 18px;
}

/* Стили для компактного вида */
.radio-stations-grid.view-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.radio-view-compact.radio-station-card {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.radio-view-compact .station-image {
    width: 100%;
    margin-bottom: 10px;
}

.radio-view-compact .station-image img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.radio-view-compact .station-info {
    flex: 1;
    margin-bottom: 10px;
}

.radio-view-compact .station-info h3 {
    font-size: 1.1em;
    margin: 0 0 8px 0;
    text-align: center;
}

.radio-view-compact .station-genres {
    font-size: 0.8em;
    text-align: center;
    margin-bottom: 8px;
    display: none; /* Скрываем жанры в компактном виде */
}

.radio-view-compact .station-stats {
    font-size: 0.75em;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.radio-view-compact .station-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.radio-view-compact .play-station-btn {
    padding: 8px 12px;
    font-size: 12px;
    height: auto;
    width: 100%;
}

.radio-view-compact .favorite-station-btn,
.radio-view-compact .like-station-btn {
    width: 100%;
    height: 36px;
    padding: 0;
    font-size: 14px;
    justify-content: center;
}

/* Стили для спискового вида */
.radio-stations-grid.view-list {
    grid-template-columns: 1fr;
    gap: 8px;
}

.radio-view-list.radio-station-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    min-height: 80px;
}

.radio-view-list .station-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin: 0;
}

.radio-view-list .station-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e1e5e9;
}

.radio-view-list .station-image-placeholder {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 8px;
}

.radio-view-list .station-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.8);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.radio-view-list .station-play-overlay .play-icon {
    font-size: 20px;
    font-weight: bold;
}

.radio-view-list .station-image:hover .station-play-overlay {
    opacity: 1;
}

.radio-view-list .station-play-overlay:hover {
    background: rgba(41, 128, 185, 0.9);
}

.radio-view-list .station-info {
    flex: 1;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-view-list .station-info h3 {
    margin: 0;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radio-view-list .station-genres {
    font-size: 0.85em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #7f8c8d;
}

.radio-view-list .station-stats {
    font-size: 0.8em;
    margin: 0;
    gap: 15px;
}

.radio-view-list .station-actions {
    flex-shrink: 0;
    margin: 0;
    gap: 8px;
    display: flex;
    align-items: center;
}

.radio-view-list .main-play-btn {
    display: none !important;
}

.radio-view-list .favorite-station-btn,
.radio-view-list .like-station-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 16px;
}

/* Стили для полной карточки радиостанции */
.radio-full-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
}

.radio-full-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.radio-full-image {
    flex-shrink: 0;
}

.radio-full-image img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.radio-full-info {
    flex: 1;
}

.radio-full-info h1 {
    margin: 0 0 10px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.radio-full-genres {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 15px;
}

.radio-full-stats {
    display: flex;
    gap: 25px;
    font-size: 1em;
}

.radio-full-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.radio-full-content {
    padding: 30px;
}

.radio-full-description {
    line-height: 1.7;
    color: #2c3e50;
    font-size: 1.1em;
}

.radio-full-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.radio-full-play-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.radio-full-play-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.radio-full-play-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Секция комментариев */
.radio-comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.radio-comments-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.radio-comments-list {
    margin-bottom: 30px;
}

.radio-comment {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.comment-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author strong {
    color: #2c3e50;
    font-size: 1em;
}

.comment-date {
    color: #7f8c8d;
    font-size: 0.85em;
}

.comment-text {
    color: #2c3e50;
    line-height: 1.5;
}

/* Форма комментариев */
.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.comment-form .submit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
}

/* История треков */
.radio-track-history {
    margin-top: 30px;
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.radio-track-history h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

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

.track-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 15px;
}

.track-time {
    color: #7f8c8d;
    font-weight: 600;
    min-width: 50px;
    font-size: 0.9em;
}

.track-info {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.track-artist {
    font-weight: 600;
    color: #3498db;
}

.track-separator {
    margin: 0 5px;
    color: #95a5a6;
}

.track-title {
    color: #2c3e50;
}

.no-tracks {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* Стили для избранного */
.radio-favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.radio-no-favorites {
    text-align: center;
    padding: 60px 40px;
    color: #7f8c8d;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 3px dashed #dee2e6;
}

.radio-no-favorites p {
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
}

.radio-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid #f5c6cb;
    margin: 15px 0;
    font-weight: 500;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.radio-station-card {
    animation: fadeIn 0.5s ease-out;
}

.play-btn.pulse {
    animation: pulse 2s infinite;
}

/* Сообщения и ошибки */
#radio-loading,
#radio-error,
#radio-message {
    animation: fadeIn 0.3s ease-in;
    border-radius: 10px;
    font-weight: 600;
}

#radio-loading {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

#radio-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

#radio-message {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

/* Стили для админки */
.stream-status.working { color: #46b450; font-weight: bold; }
.stream-status.not-working { color: #dc3232; font-weight: bold; }
.stream-status.checking { color: #ffb900; font-weight: bold; }
.stream-status.error { color: #dc3232; font-weight: bold; }

#update-stream-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-stream-modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 500px;
    max-width: 90%;
}

/* Touch стили для мобильных устройств */
.play-station-btn.touch-active,
.favorite-station-btn.touch-active,
.like-station-btn.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.station-play-overlay.touch-active {
    opacity: 1 !important;
    background: rgba(41, 128, 185, 0.95) !important;
}

/* Улучшенная совместимость с браузерами */
.play-station-btn, 
.favorite-station-btn, 
.like-station-btn,
.view-switch-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Исправления для Safari */
@supports (-webkit-touch-callout: none) {
    .play-station-btn, 
    .favorite-station-btn, 
    .like-station-btn {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Исправления для Firefox */
@-moz-document url-prefix() {
    .volume-slider {
        background: rgba(255,255,255,0.1);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .radio-stations-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-stations-grid.view-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .radio-view-compact.radio-station-card {
        padding: 12px;
    }
    
    .radio-view-compact .station-image img {
        height: 100px;
    }
    
    .radio-view-compact .station-info h3 {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .radio-view-compact .station-stats {
        font-size: 0.7em;
        gap: 8px;
    }
    
    .radio-view-compact .station-actions {
        gap: 6px;
    }
    
    .radio-view-compact .play-station-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .radio-view-compact .favorite-station-btn,
    .radio-view-compact .like-station-btn {
        height: 32px;
        font-size: 13px;
    }
    
    .radio-stations-grid.view-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .radio-view-list.radio-station-card {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .radio-view-list .station-image {
        width: 50px;
        height: 50px;
    }
    
    .radio-view-list .station-image-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .radio-view-list .station-play-overlay .play-icon {
        font-size: 16px;
    }
    
    .radio-view-list .station-info h3 {
        font-size: 1em;
    }
    
    .radio-view-list .station-genres {
        font-size: 0.75em;
    }
    
    /* На мобильных скрываем статистику в списковом виде */
    .radio-view-list .station-stats {
        display: none;
    }
    
    .radio-view-list .station-actions {
        gap: 6px;
    }
    
    .radio-view-list .favorite-station-btn,
    .radio-view-list .like-station-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .player-container {
        padding: 10px 15px;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .station-info {
        flex: 1;
        min-width: 0;
        max-width: none;
        order: 1;
    }
    
    #player-station-image {
        width: 45px;
        height: 45px;
    }
    
    .station-details h4 {
        font-size: 0.95em;
        margin-bottom: 2px;
    }
    
    .station-details span {
        font-size: 0.75em;
    }
    
    .player-controls {
        order: 2;
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    
    .play-btn, .pause-btn {
        padding: 8px 12px;
        min-width: 45px;
        height: 40px;
        font-size: 1em;
        order: 1;
    }
    
    .favorite-btn, .like-btn {
        padding: 6px 10px;
        height: 40px;
        min-width: 40px;
        font-size: 0.9em;
        order: 2;
    }
    
    /* На мобильных скрываем текст в кнопках */
    .favorite-btn span:not(:first-child), 
    .like-btn span:not(:first-child) {
        display: none;
    }
    
    .listeners-count {
        padding: 6px 10px;
        height: 40px;
        font-size: 0.75em;
        order: 3;
    }
    
    /* Скрываем громкость на мобильных */
    .volume-controls {
        display: none !important;
    }
    
    .radio-favorites-list {
        grid-template-columns: 1fr;
    }
    
    .station-actions {
        flex-wrap: wrap;
    }
    
    .play-station-btn {
        min-width: 120px;
    }
    
    .radio-full-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .radio-full-image img {
        width: 100px;
        height: 100px;
    }
    
    .radio-full-info h1 {
        font-size: 1.6em;
    }
    
    .radio-full-stats {
        justify-content: center;
    }
    
    .radio-full-actions {
        flex-direction: column;
    }
    
    .radio-full-play-btn {
        justify-content: center;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* На десктопе скрываем текст "Избранное" в плеере */
@media (min-width: 769px) {
    .favorite-btn span:not(:first-child) {
        display: none;
    }
    
    .favorite-btn {
        min-width: 45px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .radio-player {
        padding: 0;
    }
    
    .player-container {
        padding: 8px 12px;
    }
    
    #player-station-image {
        width: 40px;
        height: 40px;
    }
    
    .station-details h4 {
        font-size: 0.9em;
    }
    
    .play-btn, .pause-btn {
        min-width: 42px;
        height: 38px;
        padding: 6px 10px;
    }
    
    .favorite-btn, .like-btn {
        min-width: 38px;
        height: 38px;
    }
    
    .listeners-count {
        height: 38px;
        padding: 6px 10px;
    }
    
    /* Еще больше компактности на очень маленьких экранах */
    .station-details span {
        display: none;
    }
    
    .radio-full-content {
        padding: 20px;
    }
    
    .radio-full-actions {
        flex-direction: column;
    }
    
    .radio-full-play-btn {
        justify-content: center;
    }
    
    .radio-stations-grid.view-compact {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .radio-view-compact .station-actions {
        flex-direction: column;
    }
    
    .radio-view-list.radio-station-card {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .radio-view-list .station-image {
        width: 45px;
        height: 45px;
    }
    
    .radio-view-list .station-image-placeholder {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .radio-view-list .station-info {
        flex: 2;
        min-width: 0;
    }
    
    .radio-view-list .station-actions {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 360px) {
    #player-station-image {
        width: 35px;
        height: 35px;
    }
    
    .station-details h4 {
        font-size: 0.85em;
    }
    
    .play-btn, .pause-btn {
        min-width: 38px;
        height: 36px;
        padding: 5px 8px;
        font-size: 0.9em;
    }
    
    .favorite-btn, .like-btn {
        min-width: 36px;
        height: 36px;
        padding: 5px 8px;
    }
    
    .listeners-count {
        font-size: 0.7em;
        padding: 5px 8px;
    }
    
    .radio-view-list.radio-station-card {
        padding: 8px 10px;
    }
    
    .radio-view-list .station-image {
        width: 40px;
        height: 40px;
    }
    
    .radio-view-list .station-image-placeholder {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .radio-stations-grid.view-compact {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}