/* Общие стили */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Логотип */
.logo-container {
    flex: 0 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.logo-img:hover {
    opacity: 0.9;
}

/* Главная страница */
.genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.genre-filter .button {
    padding: 8px 20px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.genre-filter .button:hover {
    background-color: #7f8c8d;
}

.genre-filter .button.active {
    background-color: #3498db;
}

.genre-filter .button.active:hover {
    background-color: #2980b9;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.radio-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #eee;
    
    /* --- ДОБАВЛЕННЫЕ СВОЙСТВА ДЛЯ ВЫРАВНИВАНИЯ --- */
    display: flex;              /* Включаем Flexbox */
    flex-direction: column;     /* Располагаем элементы (лого, название, жанр) в столбец */
    height: 100%;               /* Заставляем карточку растягиваться на всю высоту ячейки грида */
    box-sizing: border-box;     /* Учитываем padding и border в общей высоте */
}

.radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.radio-logo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0; /* Убираем отступ снизу */
    border: 1px solid #eee;
    flex-shrink: 0; /* Запрещаем логотипу сжиматься */
    align-self: center; /* Центрируем логотип, если он меньше контейнера */
}

/* Изменяем стили для названия, чтобы оно занимало свободное пространство */
.radio-card h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;

    /* --- ДОБАВЛЕННЫЕ СВОЙСТВА --- */
    flex-grow: 1;               /* Позволяем этому блоку расти и занимать все доступное пространство */
    display: flex;
    align-items: center;        /* Центрируем текст по вертикали */
    justify-content: center;    /* Центрируем текст по горизонтали */
    padding: 10px 0;            /* Добавляем вертикальные отступы для воздуха */
}


/* Кнопки */
button, .button {
    padding: 10px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 15px;
    margin: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

button:hover, .button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.button-back {
    background-color: #95a5a6;
}

.button-back:hover {
    background-color: #7f8c8d;
}

.button-delete {
    background-color: #e74c3c;
}

.button-delete:hover {
    background-color: #c0392b;
}

.button-edit {
    background-color: #f39c12;
    color: #fff;
}

.button-edit:hover {
    background-color: #e67e22;
}

/* Контейнер для кнопок */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.button-container .button,
.button-container .button-back {
    margin: 0;
}

/* ===== Стили админ-панели ===== */
.admin-page {
    padding: 30px 0;
    background-color: #f5f7fa;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e6ed;
}

.admin-header h1 {
    color: #2c3e50;
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header h1 i {
    color: #3498db;
}

.admin-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e0e6ed;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #3498db;
}

/* Формы в админ-панели */
.admin-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-form label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: -15px;
    font-size: 15px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fff;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Таблицы в админ-панели */
.stations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.stations-table th {
    background: #3498db;
    color: white;
    padding: 14px 18px;
    text-align: left;
    font-weight: 500;
}

.stations-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #e0e6ed;
    vertical-align: middle;
    color: #34495e;
}

.stations-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.stations-table tr:hover {
    background-color: #f1f5f9;
}

.station-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e6ed;
}

/* Кнопки в админ-панели */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
}

/* Поиск в админ-панели */
.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.search-input {
    flex-grow: 1;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Список жанров в админ-панели */
.genre-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.genre-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #e0e6ed;
    transition: background-color 0.3s;
}

.genre-list li:hover {
    background-color: #f1f5f9;
}

.genre-list li span {
    color: #2c3e50;
    font-weight: 500;
}

/* Навигация в админ-панели */
.admin-navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

/* Профиль пользователя */
.profile-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #e0e6ed;
}

.profile-container h1 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
}

.profile-container p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #34495e;
}

.profile-container h2 {
    margin-top: 30px;
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Формы входа и регистрации */
.auth-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #e0e6ed;
}

.auth-container h1 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 25px;
}

.auth-container p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #34495e;
}

.auth-container a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-container a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.auth-form input {
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.auth-form button {
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-form button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Подвал сайта */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-bottom {
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: #ecf0f1;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Формы поиска */
.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Формы изменения роли */
.role-form {
    display: inline;
}

.role-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.role-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-and-search {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        width: 100%;
    }
    
    #search-input {
        width: 100%;
    }
    
    .user-menu {
        width: 100%;
        justify-content: center;
    }
    
    .admin-container {
        padding: 20px;
    }
    
    .radio-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .stations-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .radio-grid {
        grid-template-columns: 1fr;
    }
    
    .genre-filter {
        justify-content: center;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .station-details {
        padding: 20px;
    }
    
    .admin-form,
    .auth-form {
        gap: 12px;
    }
}
/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-sizing: border-box;
}

/* Форма в модальном окне */
.form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Кнопка закрытия */
.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* Адаптивность */
@media (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .button {
        width: 100%;
    }
}
/* Форма редактирования */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Анимация для уведомлений */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notification {
    animation: fadeIn 0.3s ease-out;
}
/* Стили для заявок */
.request-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.station-request-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.request-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.request-info h3 {
    margin-top: 0;
    color: #3498db;
}

/* Стили для списка заявок */
.requests-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.request-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.request-item h3 {
    margin-top: 0;
    color: #2c3e50;
}

.status-pending {
    color: #f39c12;
    font-weight: 500;
}

.status-approved {
    color: #27ae60;
    font-weight: 500;
}

.status-rejected {
    color: #e74c3c;
    font-weight: 500;
}

.admin-comment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 3px solid #e74c3c;
}

a.radio-card-link {
    text-decoration: none;
    color: inherit; /* Наследовать цвет текста */
    display: block; /* Чтобы ссылка занимала всю карточку */
}
/* Можно добавить немного стилей для span, имитирующего кнопку */
.radio-card .button-edit {
     display: inline-block; /* Чтобы кнопка была внутри потока */
     /* Можно убрать pointer-events, если не хотите, чтобы она сама была кликабельна */
     /* pointer-events: none; */
}


/* --- Стили для Уведомлений (Современный вид) --- */
.notification {
    display: flex;             /* Используем flex для выравнивания иконки и текста */
    align-items: flex-start;   /* Выравниваем по верху, если текст многострочный */
    padding: 15px 20px;        /* Увеличенные отступы */
    margin: 15px 0;            /* Внешние отступы */
    border-radius: 8px;        /* Скругленные углы */
    font-size: 15px;           /* Размер шрифта */
    line-height: 1.5;          /* Межстрочный интервал */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Мягкая тень */
    border-left-width: 5px;    /* Толщина левой цветной полоски */
    border-left-style: solid;
    /* Убираем display: none по умолчанию, если он был; скрытие лучше делать через JS */
    animation: fadeIn 0.4s ease-out forwards; /* Используем существующую анимацию */
}

/* Стили для иконки в уведомлении */
.notification i {
    font-size: 1.3em;          /* Размер иконки */
    margin-right: 15px;        /* Отступ иконки от текста */
    margin-top: 2px;           /* Небольшая коррекция вертикального положения */
    flex-shrink: 0;            /* Запрещаем иконке сжиматься */
}

/* Стили для успешного уведомления */
.notification.success {
    background-color: #f0fff4; /* Очень светлый зеленый фон */
    color: #2f855a;            /* Темно-зеленый текст */
    border-left-color: #48bb78;/* Зеленая полоска слева */
}
.notification.success i {
    color: #48bb78;            /* Зеленая иконка */
}

/* Стили для уведомления об ошибке */
.notification.error {
    background-color: #fff5f5; /* Очень светлый красный фон */
    color: #c53030;            /* Темно-красный текст */
    border-left-color: #f56565;/* Красная полоска слева */
}
.notification.error i {
    color: #f56565;            /* Красная иконка */
}

/* Стили для предупреждения (если используется, например, в admin.php) */
.notification.warning {
    background-color: #fffaf0; /* Очень светлый оранжевый фон */
    color: #b7791f;            /* Темно-оранжевый/коричневый текст */
    border-left-color: #ed8936;/* Оранжевая полоска слева */
}
.notification.warning i {
    color: #ed8936;            /* Оранжевая иконка */
}

/* Анимация появления (если еще не определена) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Убедитесь, что старые правила для .admin-notification и т.п. удалены, */
/* если вы используете классы .notification.success/error везде */

/* --- Конец стилей для Уведомлений --- */

/* Дополнительные стили для страницы add_station_request (если пользователь не залогинен) */
.auth-prompt { text-align: center; }
.benefits-list { list-style: none; padding: 0; margin: 25px 0; text-align: left; max-width: 450px; display: inline-block;}
.benefits-list li { margin-bottom: 12px; font-size: 1.05em; display: flex; align-items: center; gap: 10px;}
.benefits-list li i { color: #3498db; width: 20px; text-align: center; }
.auth-links { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.notification.info { background-color: #eaf5ff; color: #31708f; border-left: 5px solid #3498db; }
/* Стили для подсказок под полями */
.form-hint {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
    display: block;
}


.add-genre-form { display: flex; gap: 10px; }
    .add-genre-form input { flex-grow: 1; }
    .genre-list { list-style: none; padding: 0; margin: 0; border: 1px solid #eef1f5; border-radius: 8px; overflow: hidden; background: #fff; }
    .genre-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f0f4f8; }
    .genre-list li:last-child { border-bottom: none; }
    .genre-list li span { color: #34495e; font-weight: 500; }
    .genre-list .admin-btn.btn-sm { padding: 4px 10px; font-size: 13px; }
    .genre-list-container { margin-top: 20px; }
    
	
.users-table .role-badge { padding: 3px 8px; border-radius: 12px; font-size: 0.85em; font-weight: 500; color: #fff; display: inline-block; text-align: center; }
    .role-badge.role-admin { background-color: #e74c3c; }
    .role-badge.role-station_owner { background-color: #f39c12; }
    .role-badge.role-user { background-color: #3498db; }
	
/* ================================= */
/* Стили Пагинации на главной (если нужно отличие от админки) */
/* ================================= */

.frontend-pagination {
     margin-top: 40px; /* Больше отступ */
     padding-top: 20px;
     /* Можно переопределить цвета кнопок, размер и т.д. */
}
.frontend-pagination ul {
     justify-content: center; /* Центрировать кнопки */
}
.frontend-pagination .pagination-info {
     /* Можно скрыть информацию о страницах на мобильных, если мешает */
     /* display: none; */
}
/* Пример изменения цвета активной кнопки */
/* .frontend-pagination li.active span, */
/* .frontend-pagination li.active a { */
/* background-color: #2ecc71; // Зеленый */
/* border-color: #2ecc71; */
/* } */

/* Дополнительные стили для главной страницы */
.search-results-title {
    font-size: 1.4em;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search-results-title i {
    margin-right: 8px;
    color: #777;
}

/* =================================================== */
/* Стили для кнопки сброса поиска (Минималистичный вид) */
/* =================================================== */

.clear-search-link {
    display: inline-block; /* Для правильного позиционирования и отступов */
    color: #e74c3c;         /* Основной красный цвет */
    text-decoration: none;
    margin-left: 15px;
    font-size: 1.1em;        /* <<-- Размер иконки (можно подобрать) */
    line-height: 1;          /* Для вертикального выравнивания с текстом */
    padding: 3px;            /* Небольшой паддинг для удобства клика */
    border-radius: 50%;      /* Оставляем для области клика */
    transition: color 0.2s ease, transform 0.2s ease;
    vertical-align: middle;  /* Выравнивание по вертикали с текстом заголовка */
    /* --- Убираем старые стили --- */
    border: none;            /* Без рамки */
    background-color: transparent; /* Без фона */
    width: auto;             /* Авто ширина */
    height: auto;            /* Авто высота */
    font-weight: normal;     /* Убираем жирность */
}

.clear-search-link:hover {
    color: #c0392b;         /* Темнее красный при наведении */
    transform: scale(1.2);   /* Немного увеличиваем */
    background-color: transparent; /* Фон не нужен */
}

/* Убираем специфичные стили для иконки внутри, она наследует от ссылки */
.clear-search-link i.fas.fa-times {
    font-size: inherit; /* Наследует размер от родителя (.clear-search-link) */
    line-height: inherit;
    display: block; /* Остается блочной для центрирования */
}

/* =================================================== */
/* Конец стилей для кнопки сброса поиска             */
/* =================================================== */


.no-stations-found {
    grid-column: 1 / -1; /* Занимает всю ширину грида */
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.1em;
    border: 1px dashed #d6dbdf;
}
.no-stations-found a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}
.no-stations-found a:hover {
    text-decoration: underline;
}

/* Добавим стили для жанра в карточке */
.station-genre-badge {
    display: inline-block;
    background-color: #ecf0f1;
    color: #7f8c8d;
    font-size: 0.8em;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: auto; /* Прижимаем к низу, если нужно */
    font-weight: 500;
    flex-shrink: 0; /* Запрещаем сжиматься */
}

/* ================================= */
/* Исправление отступа на index.php */
/* ================================= */

/* Убираем стили, скрывающие пустой контейнер */
/*
#main-notification-area:empty {
    display: none;
}
*/

/* Убираем отступы и высоту у самого контейнера */
#main-notification-area {
    padding: 0;
    margin: 0;
    min-height: 0;
     /* transition можно добавить, если нужна плавная анимация высоты при появлении/исчезновении */
     /* transition: margin 0.3s ease, padding 0.3s ease; */
}

/* ЗАДАЕМ ОТСТУП СНИЗУ ДЛЯ САМИХ УВЕДОМЛЕНИЙ внутри этого контейнера */
/* Это применится и к PHP уведомлениям, и к JS */
#main-notification-area .notification {
    margin: 0 0 20px 0; /* Отступ только снизу */
    /* Наследует стили .notification */
}

/* Можно вернуть стандартный отступ под фильтром, если он нужен */
.genre-filter {
    margin-bottom: 25px;
    padding-bottom: 20px;
}

/* Убедимся, что у сетки нет верхнего отступа */
.radio-grid {
    margin-top: 0;
}
/* И у заголовка стандартный отступ */
.search-results-title {
    margin-bottom: 25px;
}

/* Скрытие элемента визуально, но доступно для скринридеров */
.visually-hidden {
    position: absolute !important; /* !important на всякий случай, если есть конфликты */
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    white-space: nowrap !important; /* Добавлено */
}
/* ================================= */
/* Адаптивность для Главной страницы */
/* ================================= */

@media (max-width: 768px) { /* Планшеты и телефоны */

    .container {
        padding: 0 15px; /* Уменьшаем общие боковые отступы */
    }
    .page-container { /* Общий отступ для контента */
        padding-top: 20px;
        padding-bottom: 30px;
    }

    /* Фильтр жанров */
    .genre-filter {
        gap: 8px; /* Уменьшаем отступы */
        justify-content: center; /* Центрируем кнопки при переносе */
        margin-bottom: 20px;
        padding-bottom: 15px; /* Уменьшаем отступ под фильтром */
    }
    .genre-filter .button {
        padding: 6px 16px; /* Уменьшаем кнопки */
        font-size: 13px;
    }

    /* Сетка станций */
    .radio-grid {
        /* Меняем минимальную ширину карточки для 2-3 колонок */
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px; /* Уменьшаем отступы */
    }

    /* Карточка станции */
    .radio-card {
        padding: 15px; /* Уменьшаем отступы */
    }
    .radio-logo {
        width: 100%; /* Адаптивная ширина */
        max-width: 120px; /* Ограничение макс. ширины лого */
        height: auto; /* Авто высота */
        margin-bottom: 12px;
    }
    .radio-card h3 {
        font-size: 16px; /* Уменьшаем шрифт */
        margin-bottom: 5px; /* Добавляем отступ под заголовком */
    }
    .station-genre-badge { /* Бейдж жанра */
        font-size: 0.75em;
        padding: 2px 8px;
        margin-top: 6px;
    }

     /* Заголовок результатов поиска */
     .search-results-title {
        font-size: 1.2em;
        margin-bottom: 15px;
        padding-bottom: 8px;
        flex-wrap: wrap; /* Разрешаем перенос */
     }
     .clear-search-link {
        font-size: 1em; /* Уменьшаем крестик */
        margin-left: 10px;
     }

     /* Сообщение "Нет станций" */
     .no-stations-found {
        padding: 30px 15px;
        font-size: 1em;
     }

} /* Конец @media (max-width: 768px) */


@media (max-width: 480px) { /* Совсем маленькие экраны */

     .container {
        padding: 0 10px; /* Еще меньше боковые отступы */
    }
     .page-container {
        padding-top: 15px;
        padding-bottom: 20px;
    }


    /* Фильтр жанров */
    .genre-filter .button {
        padding: 5px 14px;
        font-size: 12px;
    }

    /* Сетка станций - ЯВНО 3 КОЛОНКИ */
    .radio-grid {
        grid-template-columns: 1fr 1fr 1fr; /* <<< ЗАДАЕМ 3 РАВНЫЕ КОЛОНКИ */
        gap: 10px; /* <<< УМЕНЬШАЕМ ОТСТУПЫ еще больше */
    }

     /* Карточка станции - делаем еще компактнее */
     .radio-card {
        padding: 10px; /* Меньше padding */
     }
    .radio-logo {
        max-width: 80px; /* <<< СИЛЬНО УМЕНЬШАЕМ ЛОГО */
        margin-bottom: 8px;
        border-radius: 6px; /* Уменьшаем скругление лого */
    }
    .radio-card h3 {
        font-size: 13px; /* Уменьшаем шрифт заголовка */
        line-height: 1.3; /* Уменьшаем межстрочный */
        margin-bottom: 4px;
        /* Для очень длинных названий можно добавить обрезку */
        /* white-space: nowrap; */
        /* overflow: hidden; */
        /* text-overflow: ellipsis; */
    }
    .station-genre-badge {
        font-size: 0.65em; /* Совсем маленький бейдж */
        padding: 1px 5px;
        margin-top: 4px;
    }

} /* Конец @media (max-width: 480px) */

/* ================================= */
/* Новый дизайн Пагинации (Frontend) */
/* ================================= */

.pagination-controls { /* Используем этот класс */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px; /* Отступ сверху */
    padding: 15px 0;
    border-top: 1px solid #e9ecef; /* Разделитель сверху */
    flex-wrap: wrap;
    gap: 15px;
}

/* Убираем лишние отступы у .frontend-pagination, если он используется только как доп. класс */
.frontend-pagination {
    /* Можно добавить специфичные для фронтенда отступы, если нужно */
    /* Например: margin-top: 40px; */
}


/* Список номеров страниц */
.pagination-controls ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* Кнопки справа по умолчанию */
    align-items: center;
    gap: 6px; /* Отступ между кнопками */
}

/* Стили для элементов списка (ссылки, span) */
.pagination-controls li span,
.pagination-controls li a {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #4a5568;
    cursor: pointer;
}

/* Наведение на ссылку */
.pagination-controls li a:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Активная страница */
.pagination-controls li.active span,
.pagination-controls li.active a {
    background-color: #3498db; /* Основной синий фон */
    border-color: #3498db;
    color: #fff; /* Белый текст */
    font-weight: 600;
    cursor: default;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}
.pagination-controls li.active a:hover { /* Убираем hover для активной */
    transform: none;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}


/* Неактивные кнопки Назад/Вперед */
.pagination-controls li.disabled span {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}
.pagination-controls li.disabled span:hover {
    transform: none;
    box-shadow: none;
    background-color: #f8f9fa; /* Убедимся что фон не меняется */
}


/* Многоточие */
.pagination-controls li.dots span {
    border: none;
    background: none;
    color: #6c757d;
    padding: 8px 4px;
    cursor: default;
    box-shadow: none;
}

/* Информация о страницах */
.pagination-info {
    font-size: 14px;
    color: #6c757d;
    text-align: left; /* Выравнивание текста */
}

/* --- Адаптивность Пагинации (копируем из admin.css) --- */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column; /* Элементы в столбец */
        align-items: center; /* Центрируем все */
        gap: 12px;
        margin-top: 30px; /* Оставляем отступ */
        padding-top: 15px;
    }
    .pagination-controls ul {
        justify-content: center; /* Центрируем кнопки страниц */
        order: 1; /* Кнопки идут первыми */
        gap: 4px; /* Меньше отступ */
        padding-left: 0;
    }
    .pagination-info {
        order: 2; /* Текст идет вторым */
        text-align: center; /* Текст по центру */
        font-size: 13px; /* Мельче текст */
    }
    .pagination-controls li span,
    .pagination-controls li a {
         padding: 6px 10px; /* Компактнее кнопки */
         font-size: 13px;
         min-width: 32px;
         border-radius: 4px;
     }
}

@media (max-width: 480px) {
    .pagination-controls ul {
        gap: 4px; /* Еще меньше отступ */
    }
    .pagination-controls li span,
    .pagination-controls li a {
         padding: 5px 8px;
         font-size: 12px;
         min-width: 28px;
     }
    .pagination-info {
         font-size: 12px;
     }
}
/* ================================= */
/* Конец нового дизайна Пагинации  */
/* ================================= */

