
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Основной контейнер */
.main-container.container {
    flex: 1 0 auto;
    margin-top: 65px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
}

/* Навбар */
.custom-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.custom-navbar.hidden {
    transform: translateY(-100%);
}

.custom-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    color: #333;
    font-weight: 700;
    text-decoration: none;
    padding: 0;
}

/*dark-light*/
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-toggle input[type="checkbox"] {
    display: none; /* Скрываем чекбокс в светлой теме */
}

.theme-toggle label {
    cursor: pointer;
    color: #333;
    font-size: 0.95rem;
    padding: 6px 10px; /* Уравниваем с nav-link */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: color 0.2s ease;
}

.theme-toggle label:hover {
    color: #f1c40f;
}

.theme-toggle label i {
    font-size: 1.2rem;
    margin-left: 4px;
}

/* Стили для логотипа в навбаре */
.navbar-logo {
    height: 25px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Меню */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #007bff;
}

.favorite-link {
    background-color: #dc3545;
    color: #fff;
    border-radius: 20px;
    padding: 4px 10px;
    transition: background-color 0.3s ease;
}

.favorite-link:hover {
    background-color: #b02a37;
    color: #fff;
}


/* Заголовок */
h1 {
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 15px 0;
    padding: 5px 0;
}

/* Статистика */
.stats-container {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-item {
    font-size: 0.9rem;
    color: #333;
}

.stats-item strong {
    font-weight: bold;
    color: #007bff;
}

.stats-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.stats-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Поиск */
.search-container {
    position: relative;
    margin-bottom: 15px;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

#search-results .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#search-results .list-group-item:last-child {
    border-bottom: none;
}

#search-results .station-logo {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
}

#search-results .no-logo {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Таблица */
.table {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 15px;
}

.table th, .table td {
    vertical-align: middle;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.table td {
    font-size: 0.85rem;
}

.station-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.station-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.no-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
}

.station-link, .country-link, .genre-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.station-link:hover, .country-link:hover, .genre-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.country-cell {
display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap; 
}

.country-flag {
    width: 20px;
    height: auto;
    margin-right: 5px;
    flex-shrink: 0;
}
/*state*/
.state-link {
    color: #28a745;
    text-decoration: none;
    white-space: nowrap;
}

.state-link:hover {
    text-decoration: underline;
}

.separator {
    color: #000;
    margin-left: -3px;
    margin-right: 3px;
}

.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.genre-list .more-genres {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.genre-list .more-genres.visible {
    display: flex;
    flex-wrap: wrap;
    opacity: 1;
    max-height: 500px;
}

.show-more-btn {
    cursor: pointer;
    color: #28a745;
    text-decoration: none;
    font-size: 0.8rem;
}

.show-more-btn:hover {
    text-decoration: underline;
}

.badge-info {
    background-color: #6c757d;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 10px;
    color: #fff;
}

.badge-info a {
    color: #fff;
    text-decoration: none;
}

.badge-info a:hover {
    text-decoration: underline;
}

/* Кнопка Play */
.play-button {
width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.play-button:hover {
background: linear-gradient(135deg, #218838, #1c6e2f);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.play-button.playing {
background: linear-gradient(135deg, #dc3545, #b02a37); 
}

.play-button i {
    font-size: 14px;
}

.play-button:hover,
.play-button:focus,
.play-button:active {
    transform: none; 
    box-shadow: none; 
    outline: none;
}

/* Кнопка Favorites */
.favorite-btn {
    width: 45px; 
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background-color: #ffc107;
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.favorite-btn::before {
    content: "\f004"; 
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 1.2rem; 
}

.favorite-btn.added::before {
    content: "\f00c"; 
    font-weight: 900;
}

.favorite-btn.added {
    background-color: #ffc107; 
    color: #000;
}

.favorite-btn:hover,
.favorite-btn:focus,
.favorite-btn:active {
    background-color: #e0a800;
    transform: none;
    box-shadow: none;
    outline: none;
}

.favorite-btn.added:hover {
    background-color: #e0a800;
}

/* Audio Player */
#audio-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#audio-player-container.visible {
    display: flex;
}

.nav-button, .main-play-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button {
    background-color: #6c757d;
}

.main-play-button {
    background-color: #28a745;
    width: 40px;
    height: 40px;
}

.nav-button:hover, .main-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

#volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: #6c757d;
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
}

#volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#now-playing-info {
    font-size: 0.9rem;
}

/* Уведомления */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 200px;
    padding: 12px 15px;
    background-color: #333;
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast .favorites-link {
    color: #ffc107;
    text-decoration: underline;
    margin-left: 8px;
}

.toast .favorites-link:hover {
    color: #fff;
}



/* Жанры */
.genre-link {
    display: inline-block;
    padding: 4px 8px; 
    background-color: #e9ecef;
    border-radius: 12px; 
    color: #333; 
    text-decoration: none;
    font-size: 1rem; 
    transition: background-color 0.3s ease;
}

.genre-link:hover {
    background-color: #dee2e6; 
    color: #333;
    text-decoration: none; 
}




/*Кольцо пульсации*/
.play-button {
    position: relative;
}

.play-button.loading::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 3px solid transparent; 
    background: linear-gradient(135deg, #28a745, #1e7e34) border-box; 
    animation: pulseRing 1.5s infinite ease-in-out, gradientShift 3s infinite ease-in-out;
    opacity: 0.7;
}

.play-button.loading .fa-play,
.play-button.loading .fa-pause {
    display: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #28a745, #1e7e34);
    }
    50% {
        background: linear-gradient(135deg, #1e7e34, #28a745);
    }
    100% {
        background: linear-gradient(135deg, #28a745, #1e7e34);
    }
}

.custom-footer {
    background-color: #ffffff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-top: 0;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0056b3;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.scroll-top-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scroll-top-btn:hover {
    background-color: #0056b3;
}

/* Стили пагинации для всех экранов */
.pagination {
    flex-wrap: wrap;
    gap: 5px; 
}

.page-link {
    padding: 6px 12px;
    font-size: 0.95rem;
}


/* ==========================================================================
   Медиа-запросы
   ========================================================================== */

/* Мобильные устройства (от 360px) */
@media (min-width: 360px) {
  .container {
    padding: 12px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .stats-item {
    font-size: 1rem;
  }

  .station-logo,
  .no-logo {
    width: 45px;
    height: 45px;
  }


}

/* Дополнительно: адаптация для совсем маленьких экранов (до 400px) */
@media (max-width: 400px) {
    .page-link {
        padding: 3px 6px;
        font-size: 0.75rem;
    }

    .pagination {
        gap: 2px;
    }
}

/* Мобильные устройства (от 414px) */
@media (min-width: 414px) {
  .container {
    padding: 14px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .station-logo,
  .no-logo {
    width: 50px;
    height: 50px;
  }
}

/* Маленькие экраны (от 480px) */
@media (min-width: 480px) {
  .container {
    padding: 15px;
  }

  .stats-container {
    padding: 20px;
  }

  .table td {
    font-size: 0.9rem;
  }
}

/* Медиа-запрос для экранов до 600px */
@media (max-width: 600px) {
    .pagination {
        gap: 3px;
    }

    .page-link {
        padding: 4px 8px;
        font-size: 0.85rem; 
    }

    /* Показываем только Previous, текущую страницу и Next */
    .page-item.page-number {
        display: none; 
    }

    .page-item.page-number.active {
        display: block;
    }

    /* Опционально скрываем First и Last */
    .page-item.optional {
        display: none; 
    }

    /* Уменьшаем контейнер пагинации */
    #pagination-container {
        margin-top: 10px;
        padding: 0 5px;
    }

    /* Убеждаемся, что пагинация не выходит за контейнер */
    .main-container.container {
        overflow-x: hidden;
    }
}

/* Планшеты и десктоп (от 768px) */
@media (min-width: 768px) {
.main-container.container {
        max-width: 720px;
        padding: 15px;
        margin-top: 65px;
    }
/*навбар*/

.custom-navbar .container {
        max-width: 720px;
    }

    .navbar-menu {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    .nav-link {
        border-bottom: none;
    }


  h1 {
    font-size: 2rem;
  }

  .table {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .table th {
    font-size: 1rem;
  }

  .table td {
    font-size: 0.95rem;
  }

  .station-logo,
  .no-logo {
    width: 60px;
    height: 60px;
  }

  .country-flag {
    width: 24px;
    height: 18px;
  }



.table td[data-label="Favorites"] {
        padding: 12px; 
        vertical-align: middle; 
        text-align: center;
    }

    .favorite-btn {
        width: 45px;
        height: 45px;
        margin: 0 auto; 
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #ffc107;
        border: none;
        color: #000;
        transition: background-color 0.3s ease;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 1.2rem; 
    }

    .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .favorite-btn.added {
        background-color: #ffc107;
        color: #000;
    }

    .favorite-btn:hover,
    .favorite-btn:focus,
    .favorite-btn:active {
        background-color: #e0a800;
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .favorite-btn.added:hover {
        background-color: #e0a800;
    }

  #volume-slider {
    width: 100px;
  }

  #audio-player-container {
    padding: 15px;
    gap: 15px;
  }

  .toast {
    min-width: 250px;
    font-size: 0.9rem;
  }

  .countries-table .country-cell {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .countries-table .country-name,
  .countries-table .country-flag-large,
  .countries-table .stations-label {
    display: none;
  }

  .countries-table .country-flag {
    display: block;
  }

  .countries-table .country-link {
    display: inline;
  }

.countries-table td[data-label="Stations"] .badge {
        font-size: 1.15rem;
        padding: 4px 8px;
        background-color: #6c757d;
        border-radius: 10px;
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
	
	.main-container.container {
        max-width: 720px;
        padding: 15px;
    }

    .custom-navbar .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .navbar-menu {
        gap: 6px;
    }

    .nav-link {
        padding: 6px 8px;
    }
	
	.country-cell {
    gap: 6px;
	flex-wrap: nowrap;
  }
  
  .country-flag {
    width: 22px;
    height: auto;
  }
  
  .country-link, .state-link {
    font-size: 0.95rem;
  }
    .custom-footer {
        padding: 20px 0;
    }

    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
    }

    .footer-section {
        flex: 1 1 45%;
        min-width: 180px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Десктоп (от 1024px) */
@media (min-width: 1024px) {
.main-container.container {
        max-width: 960px;
    }

.custom-navbar .container {
        max-width: 960px;
    }

  h1 {
    font-size: 2.25rem;
  }

  .stats-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .table th {
    font-size: 1.1rem;
  }

  .table td {
    font-size: 1rem;
  }

  .station-logo,
  .no-logo {
    width: 70px;
    height: 70px;
  }

.country-cell {
    gap: 8px;
    flex-wrap: nowrap;
  }

.country-flag {
    width: 30px;
    height: auto;
  }
  
  .country-link, .state-link {
    font-size: 1rem;
  }
  
  .custom-footer .container {
        max-width: 960px;
    }
}

/* Большие экраны (от 1200px) */
@media (min-width: 1200px) {
.main-container.container {
        max-width: 1140px;
    }

.custom-navbar .container {
        max-width: 1140px;
    }

	.custom-footer .container {
        max-width: 1140px;
    }

  h1 {
    font-size: 2.5rem;
  }
}

/* Очень большие экраны (от 1440px) */
@media (min-width: 1440px) {
.main-container.container {
        max-width: 1320px;
    }
	
	.custom-navbar .container {
        max-width: 1320px;
    }
	
	
	.custom-footer .container {
        max-width: 1320px;
    }
}

/* Full HD (от 1920px) */
@media (min-width: 1920px) {
	
	.custom-navbar .container {
        max-width: 1600px;
    }
	
	.country-cell {
    gap: 10px;
	flex-wrap: wrap;
  }
  
  .country-flag {
    width: 36px;
    height: auto;
  }
  
  .country-link, .state-link {
    font-size: 1.1rem;
  }
.main-container.container {
        max-width: 1600px;
    }
	
	
	.custom-footer .container {
        max-width: 1600px;
    }

    .footer-section h5 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-links a {
        font-size: 1rem;
    }

  h1 {
    font-size: 2.75rem;
  }

  .station-logo,
  .no-logo {
    width: 80px;
    height: 80px;
  }
}

/* Мобильная адаптация таблицы (до 767px) */
@media (max-width: 767px) {
	
	/* Основной контейнер */
    .main-container.container {
        margin-top: 65px;
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
	
	/* Навбар */
.hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: 10px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
        transition: background-color 0.2s ease;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .favorite-link {
        background-color: transparent;
        color: #dc3545;
        border-radius: 0;
        padding: 10px;
    }

    .favorite-link:hover {
        background-color: #f8f9fa;
        color: #b02a37;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .custom-navbar .container {
        justify-content: space-between;
    }

    .navbar-brand {
        margin-left: 0;
    }
/* Общие стили для таблиц */
    .table {
        display: block;
        overflow-x: auto;
        border: none;
        box-shadow: none;
        background: none;
        padding: 0;
        margin-bottom: 0;
    }

  .table.table-striped,
  .table.table-hover {
    background: none;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: block;
    width: 100%;
  }

.table tr {
        display: block;
        width: 100%;
        background-color: #ffffff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
        padding: 10px;
    }

  .table.table-striped tr,
  .table.table-hover tr,
  .table tr:hover,
  .table tr:nth-child(odd),
  .table tr:nth-child(even) {
    background-color: #ffffff !important;
  }

  .table td {
    display: block;
    width: 100%;
    border: none;
    padding: 5px;
    text-align: center;
  }

  .table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

/* Скрываем заголовки по умолчанию */
    .table td[data-label="Logo"]::before,
    .table td[data-label="Name"]::before,
    .table td[data-label="Country"]::before,
    .table td[data-label="Play"]::before,
    .table td[data-label="Favorites"]::before,
    .table td[data-label="Bitrate"]::before,
    .table td[data-label="Genres"]::before,
    .table td[data-label="Stations"]::before,
    .table td[data-label="Countries"]::before {
        display: none;
    }
	
	/* States (страница городов/штатов) */
    .countries-table td[data-label="State"] .country-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
	
	.countries-table td[data-label="State"] .country-name {
        display: none;
    }

    .countries-table td[data-label="State"] .country-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: #007bff;
        text-align: center;
        display: block;
    }
	
	.countries-table td[data-label="Stations"] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
    }

    .countries-table td[data-label="Stations"]::before {
        content: "Stations";
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0;
    }

    .countries-table td[data-label="Stations"] .badge {
        font-size: 1.1rem;
        padding: 4px 8px;
        background-color: #6c757d;
        border-radius: 10px;
    }

    .countries-table td[data-label="Stations"] .badge a {
        color: #fff;
        text-decoration: none;
    }
	
	.countries-table td[data-label="State"]::before {
    display: none; 
}

  .table td[data-label="Genres"]::before {
    display: none;
  }

  .table td.row-number {
    display: none;
  }

  .table td[data-label="Logo"] .station-logo,
  .table td[data-label="Logo"] .no-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 12px;
    transition: none;
  }

  .table td[data-label="Logo"] .station-logo:hover,
  .table td[data-label="Logo"] .no-logo:hover {
    transform: none;
    box-shadow: none;
  }

  .table td[data-label="Name"] .station-link {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
  }

.table td[data-label="Country"] .country-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
  }

.table td[data-label="Country"] .country-flag {
    width: 20px;
    height: auto;
  }

.table td[data-label="Country"] .country-link {
    font-size: 1.1rem;
  }
  
  .table td[data-label="Country"] .state-link {
    font-size: 1.1rem;
  }
  
.table td[data-label="Country"] .separator {
    font-size: 1.1rem;
    margin-left: -3px;
    margin-right: 3px;
  }

  .table td[data-label="Genres"] .genre-list {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .table td[data-label="Genres"] .genre-link {
    font-size: 1.15rem;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 12px;
    text-decoration: none;
  }

  .table td[data-label="Genres"] .genre-link:hover {
    background-color: #dee2e6;
  }

  .table td[data-label="Genres"] .show-more-btn,
  .table td[data-label="Genres"] .more-genres {
    display: none;
  }

/* Bitrates (страница битрейтов) */
    .table td[data-label="Bitrate"] {
        display: block; 
    }
	
	.table td[data-label="Bitrate"] .station-link {
        font-size: 1.8rem;
        font-weight: 700;
        color: #007bff;
        text-align: center;
        display: block;
    }
	
	.table td[data-label="Stations"],
    .table td[data-label="Countries"] {
        display: none; 
    }
	
	.table td[data-label="Popular Genres"] {
        display: block;
		padding-top: 0;
    }
	
	.table td[data-label="Popular Genres"] .genre-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }

    .table td[data-label="Popular Genres"] .genre-link {
        font-size: 1.15rem;
        padding: 5px 10px;
        background-color: #e9ecef;
        border-radius: 12px;
        text-decoration: none;
        text-align: center;
    }

    .table td[data-label="Popular Genres"] .genre-link:hover {
        background-color: #dee2e6;
    }
	
	.table td[data-label="Popular Genres"]::before {
    display: none; 
}
	
	/* Genres (страница жанров) */
    .table td[data-label="Genre"] {
        display: block;
    }

    .table td[data-label="Genre"] .genre-link {
        font-size: 1.8rem;
        font-weight: 700;
        color: #007bff;
        text-align: center;
        display: block;
        padding: 10px;
        background-color: transparent;
        border-radius: 0;
    }

    .table td[data-label="Genre"] .genre-link:hover {
        color: #0056b3;
        text-decoration: none;
    }

    .table td[data-label="Stations"],
    .table td[data-label="Countries"] {
        display: none;
    }
	
	.table td[data-label="Genre"]::before {
    display: none;
}

    /* Убираем лишние элементы */
    .table td.row-number {
        display: none;
    }
	
  .table td[data-label="Play"] {
    padding: 10px;
  }

  .play-button {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 50%;
    color: white;
    outline: none;
    transition: background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .play-button.playing {
    background: linear-gradient(135deg, #dc3545, #b02a37);
  }

  .play-button i {
    font-size: 2.5rem;
  }

  .play-button i.fa-play {
    transform: translateX(5px);
  }

  .play-button:hover,
  .play-button:focus,
  .play-button:active {
    transform: none;
    box-shadow: none;
    outline: none;
  }

  .table td[data-label="Favorites"] {
    padding: 10px;
  }
/*favorite*/
.favorite-btn {
        width: 80px !important;
        height: 80px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background-color: #ffc107;
        border: none;
        color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
        min-width: 0 !important;
        margin: 0 auto;
    }

.favorite-btn::before {
        content: "\f004"; 
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 2.5rem; 
    }
	
	.favorite-btn.added::before {
        content: "\f00c"; 
        font-weight: 900;
    }

.favorite-btn.added {
        background-color: #ffc107;
        color: #000;
    }

.favorite-btn:hover,
    .favorite-btn:focus,
    .favorite-btn:active {
        background-color: #e0a800;
        transform: none;
        box-shadow: none;
        outline: none;
    }

.favorite-btn.added:hover {
        background-color: #e0a800;
    }
	
	.favorite-btn span {
        display: none; 
    }
/*play*/
  .play-button.loading::before {
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-width: 4px;
  }

  .countries-table td[data-label="Country"] .country-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.countries-table td[data-label="Country"] .country-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    text-align: center;
    text-decoration: none;
}

.countries-table td[data-label="Country"] .country-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.countries-table td[data-label="Country"] .country-flag {
    display: none;
}

.countries-table td[data-label="Country"] .country-flag-large {
    display: block;
    width: 160px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countries-table td[data-label="Country"] .country-name {
    display: none;
}

.countries-table td[data-label="Stations"] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.countries-table td[data-label="Stations"]::before {
    content: "Stations";
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.countries-table td[data-label="Stations"] .badge {
    font-size: 1.1rem;
    padding: 4px 8px;
    background-color: #6c757d;
    border-radius: 10px;
}

.countries-table td[data-label="Stations"] .badge a {
    color: #fff;
    text-decoration: none;
}

.countries-table td[data-label="Stations"] .badge a:hover {
    text-decoration: underline;
}
  
/*футер*/

.custom-footer {
        padding: 15px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-section h5 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .scroll-top-btn {
        margin-top: 10px;
        padding: 5px 10px;
        font-size: 0.8rem;
    }
  
}