/* ==========================================================================
   БАЗОВЫЕ СТИЛИ
   ========================================================================== */

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

.navbar-logo {
    height: 25px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Переключатель темы */
.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;
    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;
}

.theme-toggle input[type="checkbox"]:checked + label i::before {
    content: "\f185";
}

.theme-toggle input[type="checkbox"]:not(:checked) + label i::before {
    content: "\f186";
}

/* Гамбургер меню */
.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;
}

/* ==========================================================================
   АНИМИРОВАННЫЕ КНОПКИ НАВБАРА
   ========================================================================== */

/* Золотая кнопка TOP-100 */
.top100-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.top100-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.crown-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.crown-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700, #FFEC8B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: goldShine 3s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}

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

.sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkles::before,
.sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFD700;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite ease-in-out;
}

.sparkles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0.2s;
}

.sparkles::after {
    bottom: 25%;
    right: 35%;
    animation-delay: 1.1s;
}

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

.link-text {
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.top100-link:hover .crown-container i {
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.top100-link:hover .link-text {
    background-position: 100% 50%;
    animation: goldShine 1.5s ease-in-out infinite;
}

/* Синяя кнопка Likes */
.likes-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}
.likes-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}
.thumb-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
}
.thumb-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #1E90FF, #00BFFF, #1E90FF, #87CEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: blueShine 3s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}
@keyframes blueShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.blue-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.blue-sparkles::before,
.blue-sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #1E90FF;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite ease-in-out;
}
.blue-sparkles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0.2s;
}
.blue-sparkles::after {
    bottom: 25%;
    right: 35%;
    animation-delay: 1.1s;
}
.link-text-blue {
    background: linear-gradient(45deg, #1E90FF, #87CEFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}
.likes-link:hover .thumb-container i {
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.6));
}
.likes-link:hover .link-text-blue {
    animation: blueShine 1.5s ease-in-out infinite;
}

/* Рубиновая кнопка FAVORITES */
.favorite-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.favorite-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.heart-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.heart-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #DC143C, #FF3366, #DC143C, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: rubyPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}

@keyframes rubyPulse {
    0%, 100% {
        background-position: 0% 50%;
        transform: scale(1);
    }
    50% {
        background-position: 100% 50%;
        transform: scale(1.1);
    }
}

.ruby-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ruby-sparkles::before,
.ruby-sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FF3366;
    border-radius: 50%;
    opacity: 0;
    animation: rubySparkle 2.2s infinite ease-in-out;
    box-shadow: 0 0 6px #FF3366;
}

.ruby-sparkles::before {
    top: 22%;
    left: 28%;
    animation-delay: 0.3s;
}

.ruby-sparkles::after {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.3s;
}

@keyframes rubySparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 1; transform: scale(1.4) translateY(-4px); }
}

.favorite-link .link-text {
    background: linear-gradient(45deg, #DC143C, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.favorite-link:hover .heart-container i {
    animation-duration: 1.2s;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.7));
}

.favorite-link:hover .link-text {
    background-position: 100% 50%;
    animation: rubyPulse 1.2s ease-in-out infinite;
}

/* Красная кнопка LIVE с пульсирующей точкой */
.live-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.live-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.live-dot-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    width: 18px;
    height: 18px;
}

.live-dot-icon {
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.8);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(220, 53, 69, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 12px rgba(220, 53, 69, 1);
    }
}

.link-text-red {
    font-size: 0.95rem;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    transition: all 0.3s ease;
}

.live-link:hover .link-text-red {
    background-position: 100% 50%;
}

/* Изумрудная кнопка GENRES */
.genres-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.genres-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

.genres-icon-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
    perspective: 1000px;
}

.genres-icon-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #228B22, #32CD32, #228B22, #3CB371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: emeraldShine 3.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}

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

.emerald-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.emerald-sparkles::before,
.emerald-sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #32CD32;
    border-radius: 50%;
    opacity: 0;
    animation: emeraldSparkle 2.4s infinite ease-in-out;
    box-shadow: 0 0 6px #32CD32;
}

.emerald-sparkles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0.4s;
}

.emerald-sparkles::after {
    bottom: 25%;
    right: 35%;
    animation-delay: 1.4s;
}

@keyframes emeraldSparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 1; transform: scale(1.5) translateY(-3px); }
}

.genres-link .link-text {
    background: linear-gradient(45deg, #228B22, #3CB371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.genres-link:hover .genres-icon-container i {
    filter: drop-shadow(0 0 10px rgba(34, 139, 34, 0.7));
}

.genres-link:hover .link-text {
    background-position: 100% 50%;
    animation: emeraldShine 1.5s ease-in-out infinite;
}

/* Фиолетовая кнопка NEW */
.new-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.new-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.star-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
    perspective: 1000px;
}

.star-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #8A2BE2, #9370DB, #8A2BE2, #BA55D3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: purpleShine 3s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}

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

.purple-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.purple-sparkles::before,
.purple-sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #BA55D3;
    border-radius: 50%;
    opacity: 0;
    animation: purpleSparkle 2.4s infinite ease-in-out;
    box-shadow: 0 0 6px #BA55D3;
}

.purple-sparkles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0.4s;
}

.purple-sparkles::after {
    bottom: 25%;
    right: 35%;
    animation-delay: 1.4s;
}

@keyframes purpleSparkle {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 1; transform: scale(1.5) translateY(-3px); }
}

.new-link .link-text-purple {
    background: linear-gradient(45deg, #8A2BE2, #BA55D3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.new-link:hover .star-container i {
    animation-duration: 1.5s;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.7));
}

.new-link:hover .link-text-purple {
    background-position: 100% 50%;
    animation: purpleShine 1.5s ease-in-out infinite;
}

/* Синяя кнопка COUNTRIES */
.countries-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    z-index: 1;
}

.countries-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.globe-container {
    position: relative;
    display: inline-block;
    margin-right: 6px;
    perspective: 1000px;
}

.globe-container i {
    font-size: 1.3rem;
    background: linear-gradient(45deg, #1E90FF, #00BFFF, #1E90FF, #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: skyShine 3.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    z-index: 2;
}

@keyframes globeSway {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(2deg) translateX(1px); }
}

.globe-container i {
    animation:
        skyShine 4s ease-in-out infinite,
        globeSway 5s ease-in-out infinite;
}

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

.sky-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sky-sparkles::before,
.sky-sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00BFFF;
    border-radius: 50%;
    opacity: 0;
    animation: starTwinkle 2.6s infinite ease-in-out;
    box-shadow: 0 0 6px #00BFFF;
}

.sky-sparkles::before {
    top: 18%;
    left: 25%;
    animation-delay: 0.5s;
}

.sky-sparkles::after {
    bottom: 22%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.4) rotate(180deg); }
}

.countries-link .link-text {
    background: linear-gradient(45deg, #1E90FF, #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.countries-link:hover .globe-container i {
    animation-duration: 1.8s, 2s;
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.7));
}

.countries-link:hover .link-text {
    background-position: 100% 50%;
    animation: skyShine 1.8s ease-in-out infinite;
}

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ (BREADCRUMBS)
   ========================================================================== */

.breadcrumbs {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    margin-bottom: 15px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumb-item {
    font-size: 0.85rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #6c757d;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin-right: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ==========================================================================
   ЗАГОЛОВКИ
   ========================================================================== */

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);
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    font-size: 0.9rem;
    color: #333;
}

.stat-item i {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.stat-item strong {
    font-weight: bold;
    color: #007bff;
    font-size: 1.3rem;
}

.stat-item small {
    font-size: 0.8rem;
    margin-top: 2px;
}

.stats-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.stats-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Анимация появления */
.stat-value {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Таймер сброса */
#reset-timer {
    font-weight: 500;
}

#reset-timer .countdown {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #28a745;
    transition: color 0.3s ease;
}

#reset-timer .countdown.red {
    color: #dc3545 !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================================================
   ПОИСК
   ========================================================================== */

.search-container {
    position: relative;
    margin-bottom: 20px; /* в исходние 20 px*/
}

.search-container .btn-outline-secondary {
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    min-width: auto;
    height: auto;
}

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

/* ==========================================================================
   УМНЫЙ ПОИСК - СВЕТЛАЯ ТЕМА
   ========================================================================== */

#smart-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 500px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: none;
    margin-top: 4px;
    font-size: 0.95rem;
}

.search-category-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-category-header:not(:first-child) {
    margin-top: 5px;
    border-top: 1px solid #e9ecef;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.search-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.search-no-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.search-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-icon {
    font-size: 1.2rem;
    color: #6c757d;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

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

.search-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.search-no-results,
.search-loading {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.search-loading i {
    margin-right: 8px;
}

/* Скроллбар умного поиска */
#smart-search-results::-webkit-scrollbar {
    width: 8px;
}

#smart-search-results::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 0 8px 8px 0;
}

#smart-search-results::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

#smart-search-results::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

/* ==========================================================================
   SEARCH CLEAR BUTTON (крестик внутри инпута)
   ========================================================================== */

.search-clear-btn {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    text-decoration: none;
    line-height: 1;
}

.search-clear-btn:hover {
    color: #dc3545;
    text-decoration: none;
}

.form-control.has-clear {
    padding-right: 36px;
}

/* ==========================================================================
   ТАБЛИЦЫ
   ========================================================================== */

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

.table-bordered th,
.table-bordered td {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* Логотипы станций */
.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: #6c757d;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.station-link:hover, .country-link:hover, .genre-link:hover {
    color: #6c757d;
    text-decoration: underline;
}

/* Страны */
.country-cell {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.country-group {
    display: inline;
}

.country-flag {
    width: 20px;
    height: auto;
    margin-right: 5px;
    flex-shrink: 0;
}

/* Штаты */
.state-link {
    color: #28a745;
    text-decoration: none;
    white-space: nowrap;
}

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

/* Жанры */
.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;
}

.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;
    font-size: 1rem;
}

/* Бейджи */
.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;
}

/* ==========================================================================
   NO-THEAD TABLE (таблицы без заголовков и нумерации)
   ========================================================================== */

.no-thead-table .logo-first-col {
    padding-left: 12px;
}

.no-thead-table tbody tr:first-child td {
    border-top: none;
}

/* Десктоп: Play и Favorites всегда последние 2 колонки */
@media (min-width: 1024px) {
    .no-thead-table td:nth-last-child(2) {
        text-align: center;
        padding: 8px 4px;
        width: 60px;
    }

    .no-thead-table td:nth-last-child(1) {
        text-align: center;
        padding: 8px 12px 8px 4px;
        width: 50px;
    }
}

/* ==========================================================================
   КАРТОЧКА РАДИОСТАНЦИИ (для страницы станции)
   ========================================================================== */

.station-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

.station-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.station-logo-container {
    flex-shrink: 0;
}

.station-logo-container .station-logo,
.station-logo-container .no-logo {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.station-logo-container .station-logo:hover {
    transform: scale(1.05);
}

.station-logo-container .no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
    background-color: #e9ecef;
}

.station-info {
    flex-grow: 1;
}

.station-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
	padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    text-align: left;
}

.station-info .country-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}

.station-info .country-group {
    display: inline;
}

.station-info .separator {
    margin-right: 1px;
}

.station-info .country-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    margin-right: 0px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.station-info .country-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.station-info .state-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.station-info .state-link:hover {
    color: #6c757d;
    text-decoration: underline;
}

.station-info .country-link:hover {
    color: #6c757d;
    text-decoration: underline;
}

.station-info .genres-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.station-info .genre-link {
    background-color: #e9ecef;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.station-info .genre-link:hover {
    text-decoration: none;
    background-color: #dee2e6;
}

/* Рейтинг */
.station-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.station-rating .rating-stars {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #f1c40f;
    font-size: 1.2rem;
}

.rating-text {
    color: #6c757d;
    font-size: 1rem;
}

.rating-stars-input {
    display: inline-block;
}

.rating-stars-input i {
    color: #f1c40f;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 2px;
}

.rating-stars-input i:hover,
.rating-stars-input i.active {
    color: #ffaa00;
}

/* Now Playing */
.now-playing {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.now-playing.loading {
    opacity: 0.5;
}

.now-playing.hidden {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.now-playing .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.now-playing-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    margin-right: 8px;
}

.now-playing-info {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    text-overflow: ellipsis;
}

.now-playing-info span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-info h5 {
    font-size: 1.1rem;
    color: #333;
}

.now-playing-info p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.now-playing-info .text-muted {
    color: #6c757d !important;
}

.now-playing-info .small {
    font-size: 0.85rem;
}

/* ==========================================================================
   ИСТОРИЯ ТРЕКОВ (Track History)
   ========================================================================== */

.track-history {
    width: 100%;
    max-width: 100%;
}

.track-history .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.track-history-header {
    font-size: 0.9rem;
}

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

.track-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

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

.track-history-time {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 45px;
    margin-right: 10px;
}

.track-history-song {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-link-container {
    padding-top: 10px;
    border-top: 1px solid rgba(128, 128, 128, 0.15);
    text-align: center;
}

.playlist-full-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 16px;
    background-color: rgba(0, 123, 255, 0.08);
    transition: background-color 0.2s, color 0.2s;
}

.playlist-full-link:hover {
    background-color: rgba(0, 123, 255, 0.15);
    color: #0056b3;
    text-decoration: none;
}

.playlist-full-link i {
    font-size: 0.85rem;
}

/* ==========================================================================
   ЭЛЕМЕНТЫ УПРАВЛЕНИЯ СТАНЦИЕЙ
   ========================================================================== */

.station-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.station-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Кнопка Play для страницы станции */
.station-controls .play-button {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.station-controls .play-button:hover {
    background: linear-gradient(135deg, #30c257, #25934a);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.station-controls .play-button.playing {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

.station-controls .play-button i {
    font-size: 35px;
}

.station-controls .play-button i.fa-play {
    transform: translateX(5px);
}

.station-controls .play-button:hover,
.station-controls .play-button:focus,
.station-controls .play-button:active {
    transform: none;
    box-shadow: none;
    outline: none;
}

/* Кнопка 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;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.play-button:hover {
    background: linear-gradient(135deg, #30c257, #25934a);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

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

/* Кольцо пульсации при загрузке */
.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);
    }
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mute-button {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mute-button:hover {
    color: #333;
}

.mute-button.muted i::before {
    content: "\f6a9";
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: #6c757d;
    border-radius: 2px;
    outline: none;
    transition: background 0.3s ease;
}

.volume-slider:hover {
    background: #5a6268;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #218838;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    background: #218838;
}

/* Битрейт */
.bitrate-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: #e9ecef;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    transition: background-color 0.3s ease;
}

.bitrate-link {
    color: #333;
    text-decoration: none;
}

.bitrate-badge:hover {
    background-color: #dee2e6;
}

.bitrate-link:hover {
    text-decoration: none;
    color: #333;
}

.website-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: #e9ecef;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.website-badge:hover {
    background-color: #dee2e6;
    color: #333;
    text-decoration: none;
}

.website-badge i {
    margin-right: 6px;
}

/* Действия со станцией */
.station-actions {
    display: flex;
    gap: 10px;
}

/* Базовые стили для кнопок */
.btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    min-width: 90px;
 /*   height: 35px; */
 /*   display: flex; */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: #6c757d;
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Кнопка Favorites */
.favorite-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    color: #555;
    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: #d5d5d5;
    color: #333;
}

.favorite-btn:hover,
.favorite-btn:focus,
.favorite-btn:active {
    background-color: #ccc;
    transform: none;
    box-shadow: none;
    outline: none;
}

.favorite-btn.added:hover {
    background-color: #c5c5c5;
}

.favorite-btn.active-favorite {
    background-color: #d5d5d5;
    color: #333;
}

/* ==========================================================================
   ПЛЕЕР БАР (PLAYER BAR)
   ========================================================================== */

.player-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: bottom 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-bar.active {
    bottom: 0;
}

.player-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1320px;
    padding: 0 20px;
    justify-content: center;
}

.player-bar-logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.player-bar-logo {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.player-bar-logo.active {
    display: block;
    animation: rotateSlowly 20s linear infinite;
}

.player-bar-no-logo {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    display: none;
}

.player-bar-no-logo.active {
    display: flex;
}

@keyframes rotateSlowly {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.player-bar .play-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    aspect-ratio: 1 / 1;
}

.player-bar .play-button:hover {
    background: linear-gradient(135deg, #30c257, #25934a);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.player-bar .play-button.playing {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

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

.player-bar .play-button i {
    font-size: 24px;
}

.player-bar-icon {
    color: #fff;
    font-size: 20px;
    opacity: 0.8;
}

.player-bar-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    max-width: 40%;
    line-height: 1.3;
}

#player-bar-station-name {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-bar-track {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: none;
}

.player-bar-track:not(:empty) {
    display: block;
}

#player-bar-no-logo {
    display: none;
}

.player-bar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-bar .volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-bar .mute-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
}

.player-bar .mute-button:hover {
    color: #ccc;
}

.player-bar .mute-button.muted i::before {
    content: "\f6a9";
}

.player-bar .volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #fff;
    border-radius: 2px;
    outline: none;
    transition: background 0.3s ease;
}

.player-bar .volume-slider:hover {
    background: #ccc;
}

.player-bar .volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.player-bar .volume-slider::-webkit-slider-thumb:hover {
    background: #218838;
}

.player-bar .volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.player-bar .volume-slider::-moz-range-thumb:hover {
    background: #218838;
}

.player-bar .favorite-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    outline: none;
}

.player-bar .favorite-btn::before {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    font-size: 1.2rem;
}

.player-bar .favorite-btn.added::before {
    content: "\f00c";
    font-weight: 900;
}

.player-bar .favorite-btn:hover {
    background-color: #ccc;
}

.player-bar .favorite-btn.added {
    background-color: #d5d5d5;
    color: #333;
}

.player-bar .favorite-btn.added:hover {
    background-color: #c5c5c5;
}

/* ==========================================================================
   PLAYER BAR INFO POPUP (mobile tap to see full station/track name)
   ========================================================================== */

.player-bar-info-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 200px;
    max-width: min(85vw, 340px);
    z-index: 2100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-bar-info-popup.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.player-bar-info-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(20, 20, 30, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.player-bar-info-popup-station {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    word-break: break-word;
    line-height: 1.3;
}

.player-bar-info-popup-track {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
    word-break: break-word;
    line-height: 1.3;
}

/* Показываем только на мобильных (до 768px), на десктопе текст и так видно */
@media (min-width: 769px) {
    .player-bar-info-popup {
        display: none !important;
    }
}

/* ==========================================================================
   RELATED STATIONS (Связанные станции)
   ========================================================================== */

.related-stations {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

.related-stations-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.related-stations-table {
    width: 100%;
    margin-bottom: 0;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.related-stations-table th,
.related-stations-table td {
    vertical-align: middle;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
}

.related-stations-table th {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem !important;
}

.related-stations-table td {
    font-size: 0.85rem !important;
}

/* Bitrate - выравнивание влево чтобы не липнуть к Play */
.related-stations-table th:nth-child(5),
.related-stations-table td:nth-child(5) {
    text-align: left;
    padding: 8px 2px 8px 8px;
}

/* Play - отступ слева от Bitrate, справа к Favorites минимум */
.related-stations-table th:nth-child(6),
.related-stations-table td:nth-child(6) {
    text-align: center;
    padding: 8px 2px 8px 8px;
}

/* Favorites - отступ слева минимум чтобы приблизить к Play */
.related-stations-table th:nth-child(7),
.related-stations-table td:nth-child(7) {
    text-align: center;
    padding: 8px 8px 8px 2px;
}

.related-stations-table .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;
}

.related-stations-table .station-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.related-stations-table .country-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}

.related-stations-table .country-flag {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.related-stations-table .country-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.related-stations-table .country-link:hover {
    color: #6c757d;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.related-stations-table .station-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.related-stations-table .station-link:hover {
    color: #6c757d;
    text-decoration: underline;
    transition: color 0.2s;
}

.related-stations-table .genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.related-stations-table .genre-link {
    background-color: #e9ecef;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.related-stations-table .genre-link:hover {
    background-color: #dee2e6;
}

.related-stations-table .badge-info {
    background-color: #6c757d;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 10px;
    color: #fff;
}

.related-stations-table .play-button {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    margin-right: 0;
    margin-left: auto;
}

.related-stations-table .play-button:hover {
    background: linear-gradient(135deg, #30c257, #25934a);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
}

.related-stations-table .play-button.playing {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

.related-stations-table .play-button i {
    font-size: 14px;
}

.related-stations-table .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;
}

.related-stations-table .play-button:hover,
.related-stations-table .play-button:focus,
.related-stations-table .play-button:active {
    transform: none;
    box-shadow: none;
    outline: none;
}

.related-stations-table .favorite-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 50%;
    background-color: #e0e0e0;
    border: none;
    color: #555;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    margin-right: auto;
}

.related-stations-table .favorite-btn.added {
    background-color: #d5d5d5;
    color: #333;
}

.related-stations-table .favorite-btn:hover {
    background-color: #ccc;
}

.related-stations-table .favorite-btn.added:hover {
    background-color: #c5c5c5;
}

/* ==========================================================================
   КОММЕНТАРИИ
   ========================================================================== */

.comment-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.comments-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.user-rating-stars {
    color: #f1c40f;
    font-size: 1rem;
}

.rating-value {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-left: 8px;
    font-style: italic;
}

.comment-content p {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #34495e;
    line-height: 1.5;
}

.comment-content small {
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
}

#comment-form-container {
    margin-bottom: 30px;
}

.comment-form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input-group input[type="text"],
.comment-input-group input[type="email"],
.comment-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.comment-input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-input-group input[type="text"]:focus,
.comment-input-group input[type="email"]:focus,
.comment-input-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
    background: #fff;
}

.comment-rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rating-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    text-transform: uppercase;
}

.rating-stars-input {
    color: #f1c40f;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.rating-stars-input i {
    transition: all 0.3s ease;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 50%;
}

.rating-stars-input i:hover {
    color: #e67e22;
    transform: scale(1.1);
    background: #ecf0f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rating-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.3s ease;
}

.rating-description:not(:empty) {
    color: #28a745;
    font-weight: 600;
}

.rating-error {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8d7da;
    padding: 5px 10px;
    border-radius: 4px;
}

.comment-form button[type="submit"] {
    padding: 10px 25px;
    background: linear-gradient(90deg, #28a745, #218838);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
    cursor: pointer;
}

.comment-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #218838, #1e7e34);
    transform: scale(1.05);
}

.comments-section {
    margin-top: 20px;
}

.comments-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.comments-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.comment:hover {
    background: #f8f9fa;
}

.comment-header strong {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-actions button,
.station-votes button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-up {
    background: #28a745;
    color: white;
}

.vote-up:hover {
    background: #218838;
    transform: translateY(-2px);
}

.vote-down {
    background: #dc3545;
    color: white;
}

.vote-down:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.vote-up.disabled,
.vote-down.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vote-score {
    font-weight: 600;
    color: #007bff;
    min-width: 20px;
    text-align: center;
    font-size: 1rem;
}

.station-votes {
    display: flex;
    align-items: center;
    gap: 10px;
}

#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background: linear-gradient(90deg, #007bff, #00b4ff);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#load-more:hover {
    background: linear-gradient(90deg, #0069d9, #0097e6);
    transform: scale(1.05);
}

#comment-message {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

.text-danger {
    color: #dc3545;
    background-color: #f8d7da;
}

.text-success {
    color: #28a745;
    background-color: #d4edda;
}

/* === TOAST NOTIFICATIONS === */
.toast {
    position: fixed;
    top: 70px; /* Под навбаром */
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(400px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 380px;
    min-width: 320px;
    border-left: 4px solid #4CAF50;
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    animation: toastPulse 0.5s ease-out;
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(400px) scale(0.9);
}

.toast.add {
    border-left-color: #e91e63;
}

.toast.remove {
    border-left-color: #9e9e9e;
}

.toast.error {
    border-left-color: #f44336;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: toastIconBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.add .toast-icon {
    color: #e91e63;
}

.toast.remove .toast-icon {
    color: #9e9e9e;
}

.toast.success .toast-icon {
    color: #4CAF50;
}

.toast.error .toast-icon {
    color: #f44336;
}

@keyframes toastIconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
}

.toast-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.toast-link {
    font-size: 13px;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.toast-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.6;
    border-radius: 4px;
}

.toast-close:hover {
    opacity: 1;
    background: #f5f5f5;
    color: #666;
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */

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

.custom-footer .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 150px;
}

.footer-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.footer-section a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #495057;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #495057;
    text-decoration: underline;
}

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

/* Footer Brand с логотипом */
.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    object-fit: contain;
}

.footer-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.footer-brand:hover {
    text-decoration: none;
    opacity: 0.9;
}

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

.scroll-top-btn:focus,
.scroll-top-btn:active {
    outline: none;
}

/* ==========================================================================
   ПАГИНАЦИЯ
   ========================================================================== */

.pagination {
    flex-wrap: wrap;
    gap: 5px;
}

.page-link {
    padding: 6px 12px;
    font-size: 0.95rem;
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.page-link:hover {
    color: #495057;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.page-item.disabled .page-link {
    color: #adb5bd;
    background-color: #fff;
    border-color: #dee2e6;
}

/* ==========================================================================
   ТОП-10 СТИЛИ
   ========================================================================== */

.top-today-table td.rank-first,
.top-today-table td.rank-second,
.top-today-table td.rank-third {
    font-size: 1.4rem;
    padding: 8px 4px !important;
}

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

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.text-bronze {
    color: #CD7F32 !important;
}

.rank-first i,
.rank-second i,
.rank-third i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.top-today-table td:first-child {
    vertical-align: middle !important;
}

/* Most Liked Table */
.table .fa-thumbs-up {
    color: #28a745;
}

.table .fa-thumbs-down {
    color: #dc3545;
}

.table-text-danger {
    color: #dc3545 !important;
}

.table-text-success {
    color: #28a745 !important;
}

/* ==========================================================================
   ПЛАТИНОВЫЙ ПОБЕДИТЕЛЬ
   ========================================================================== */

.winner-container {
    width: 100%;
    padding: 0 15px;
}

.winner-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.winner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c0c0c0, #e5e4e2, #c0c0c0);
}

.winner-badge i {
    color: #e5e4e2;
    filter: drop-shadow(0 0 8px #c0c0c0);
    animation: float 3s ease-in-out infinite;
}

.winner-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #e5e4e2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.winner-name a {
    color: #212529;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Вчерашний победитель */
.yesterday-winner-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.yesterday-winner-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c0c0c0, #e5e4e2, #c0c0c0);
}

.yesterday-winner-row .station-link,
.yesterday-winner-row .country-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.yesterday-winner-row .station-link:hover,
.yesterday-winner-row .country-link:hover {
    color: #6c757d;
    text-decoration: underline;
    transition: color 0.2s;
}

.yesterday-winner-row .rank-first i {
    animation: float 3s ease-in-out infinite;
}

.platinum-crown {
    color: #e5e4e2 !important;
    filter: drop-shadow(0 0 8px rgba(192, 192, 192, 0.6));
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

/* ==========================================================================
   Фильтры
   ========================================================================== */

.filter-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.filter-card.visible {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.scrollable-checkbox {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background: white;
}

.form-check {
    margin-bottom: 8px;
    padding-left: 1.5rem;
}

.form-check-input {
    margin-left: -1.5rem;
    margin-top: 0.2rem;
}

.form-check-label img {
    border: 1px solid #dee2e6;
    border-radius: 2px;
}

#selected-filters .badge {
    font-size: 14px;
    padding: 6px 10px;
    background-color: #6c757d;
    color: white;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#selected-filters .remove-filter {
    margin-left: 6px;
    font-size: 16px;
    line-height: 1;
}

#selected-filters .filter-tag:hover .remove-filter,
#selected-filters .remove-filter:hover {
    color: #ff4d4d;
}

.filter-toggle-container {
    margin-bottom: 15px;
}

.toggle-filters-btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px auto;
    display: block !important;
    transition: all 0.3s ease;
}

.toggle-filters-btn i {
    margin-right: 5px;
}

.mobile-filter-buttons {
    margin-bottom: 15px;
}

#filter-loader {
    padding: 20px;
    display: none;
}

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

/* ===================================================================
   WELCOME BACK POPUP
   =================================================================== */

.welcome-back-popup {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-width: 340px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(400px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.welcome-back-popup.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.welcome-back-popup.hide {
    opacity: 0;
    transform: translateX(400px) scale(0.9);
}

.welcome-back-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.welcome-back-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.welcome-back-content {
    padding: 20px;
}

.welcome-back-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.welcome-back-icon {
    font-size: 1.4rem;
    color: #28a745;
    animation: welcomePulse 2s ease-in-out infinite;
}

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

.welcome-back-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.welcome-back-station {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

.welcome-back-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.welcome-back-no-logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.welcome-back-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-back-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-back-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-back-play {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.welcome-back-play:hover {
    background: linear-gradient(135deg, #218838, #1c6e2f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.welcome-back-play i {
    font-size: 0.9rem;
}

/* AddToAny кнопки - прозрачный фон */
.a2a_floating_style,
.a2a_floating_style a {
    background: transparent !important;
}

/* Скрыть на мобильных (меньше 768px) */
@media (max-width: 768px) {
    .a2a_floating_style {
        display: none !important;
    }
}

/* ==========================================================================
   LISTENING HISTORY STYLES
   ========================================================================== */

/* History button in player bar */
.pla-btn--history {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pla-btn--history:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.pla-btn--history:focus {
    outline: none;
}

.pla-btn--history[aria-expanded="true"] {
    background: rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.5);
}

.pla-btn--history i {
    font-size: 1rem;
}

.pla-btn--history span {
    font-weight: 500;
}

/* Show history button only on desktop */
@media (min-width: 769px) {
    .pla-btn--history {
        display: flex;
    }
}

/* History popup */
.history-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 2100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.history-popup.active {
    opacity: 1;
    transform: translateY(0);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(40, 167, 69, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.history-header span {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    flex: 1;
    text-align: center;
}

.history-clear-btn,
.history-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.history-clear-btn {
    color: rgba(220, 53, 69, 0.8);
    order: -1;
}

.history-clear-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.history-close-btn {
    color: rgba(255, 255, 255, 0.7);
}

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

.history-close-btn:focus,
.history-clear-btn:focus {
    outline: none;
}

.history-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: rgba(40, 167, 69, 0.2);
    transform: translateX(4px);
}

.history-station-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-no-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.history-station-name {
    flex: 1;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .history-popup {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 90px;
    }
}

/* History confirmation modal */
.history-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2200;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.history-confirm-modal.active {
    opacity: 1;
}

.history-confirm-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-confirm-modal.active .history-confirm-content {
    transform: scale(1);
}

.history-confirm-icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.history-confirm-icon i {
    font-size: 28px;
    color: #dc3545;
}

.history-confirm-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.history-confirm-content p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.history-confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.history-confirm-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-confirm-cancel {
    background: #f0f0f0;
    color: #333;
}

.history-confirm-cancel:hover {
    background: #e0e0e0;
}

.history-confirm-delete {
    background: #dc3545;
    color: #fff;
}

.history-confirm-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* ==========================================================================
   STATION GROUP BLOCK
   ========================================================================== */

.station-group-block {
    background: var(--card-bg, #fff);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.station-group-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color, #333);
}

.station-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.station-group-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--card-inner-bg, #f8f9fa);
    border-radius: 6px;
    transition: background 0.2s;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.station-group-card:hover {
    background: var(--card-hover-bg, #e9ecef);
}

.station-group-logo img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

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

.station-group-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color, #333);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-group-name:hover {
    color: var(--primary-color, #007bff);
}

.station-group-card .play-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.station-group-card .play-button i {
    font-size: 0.85rem !important;
}

.station-group-card .play-button i.fa-play {
    transform: translate(1px, 1px) !important;
}

.station-group-card .play-button i.fa-pause {
    transform: translateY(1px) !important;
}

@media (min-width: 1440px) {
    .station-group-card .play-button i.fa-play {
        transform: translateX(1px) !important;
    }

    .station-group-card .play-button i.fa-pause {
        transform: none !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .station-group-grid {
        gap: 0.5rem;
    }

    .station-group-card {
        gap: 0.5rem;
        padding: 0.4rem;
    }

    .station-group-logo img {
        width: 36px;
        height: 36px;
    }

    .station-group-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .station-group-grid {
        grid-template-columns: 1fr;
    }

    .station-group-card .play-button {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .station-group-card .play-button i {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .station-group-block {
        padding: 0.75rem;
    }

    .station-group-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .station-group-grid {
        gap: 0.5rem;
    }

    .station-group-card {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .station-group-logo img {
        width: 36px;
        height: 36px;
    }

    .station-group-name {
        font-size: 0.85rem;
    }

    .station-group-card .play-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .station-group-card .play-button i {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 360px) {
    .station-group-block {
        padding: 0.5rem;
    }

    .station-group-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .station-group-grid {
        gap: 0.4rem;
    }

    .station-group-card {
        gap: 0.4rem;
        padding: 0.4rem;
    }

    .station-group-logo img {
        width: 32px;
        height: 32px;
    }

    .station-group-name {
        font-size: 0.8rem;
    }

    .station-group-card .play-button {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .station-group-card .play-button i {
        font-size: 0.75rem !important;
    }
}

/* ==========================================================================
   COLLECTIONS BADGES (station page)
   ========================================================================== */
.station-collections-block {
    padding: 0.5rem 0;
}
.station-collections-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.badge-collection {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.badge-collection:hover {
    background: #1565c0;
    color: #fff;
    text-decoration: none;
}
.dark-theme .badge-collection {
    background: #1a3a5c;
    color: #90caf9;
}
.dark-theme .badge-collection:hover {
    background: #1565c0;
    color: #fff;
}

/* ==========================================================================
   COUNTRIES GRID (каталог стран)
   ========================================================================== */

.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.country-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    min-width: 0;
}

.country-grid-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.country-grid-item .country-flag {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
}

.country-grid-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-grid-item .badge {
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .countries-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GENRES GRID (каталог жанров — секции + поджанры)
   ========================================================================== */

.genre-section {
    margin-bottom: 32px;
}

.genre-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 4px;
}

.genre-section-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background-color 0.2s;
}

.genre-section-link .genre-section-name {
    color: #0056b3;
}

.genre-section-link:hover {
    text-decoration: none;
    color: inherit;
    background: #eef2ff;
    border-left-color: #0056b3;
}

.genre-section-arrow {
    font-size: 0.8rem;
    color: #007bff;
    margin-left: auto;
    transition: transform 0.2s;
}

.genre-section-link:hover .genre-section-arrow {
    transform: translateX(3px);
}

.genre-section-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
    background: #e8edf3;
    padding: 2px 9px;
    border-radius: 10px;
}

.genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.genre-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    min-width: 0;
}

.genre-grid-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.genre-grid-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.genre-grid-item .badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    background-color: #e8edf3;
    color: #555;
}

/* Hub subgenres accordion */
.hub-subgenres {
    margin-bottom: 16px;
}

.hub-subgenres-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    transition: background 0.15s;
}

.hub-subgenres-toggle:hover {
    background: #e9ecef;
}

.hub-subgenres-toggle:focus {
    outline: none;
    box-shadow: none;
}

.hub-subgenres-toggle.active {
    background: #e9ecef;
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.hub-toggle-icon {
    color: #007bff;
}

.hub-toggle-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6c757d;
    transition: transform 0.25s;
}

.hub-subgenres-toggle.active .hub-toggle-chevron {
    transform: rotate(180deg);
}

.hub-subgenres-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.25s ease;
}

.hub-subgenres-panel .genres-grid {
    padding: 12px 0;
}

@media (max-width: 991px) {
    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .genres-grid {
        grid-template-columns: 1fr;
    }
    .genre-section-title {
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   BITRATES GRID (каталог битрейтов)
   ========================================================================== */

.bitrates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.bitrate-grid-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s;
    min-width: 0;
}

.bitrate-grid-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
}

.bitrate-grid-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bitrate-grid-value {
    font-weight: 600;
    flex: 1;
}

.bitrate-grid-item .badge {
    flex-shrink: 0;
    font-size: 0.75rem;
}

.bitrate-grid-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bitrate-grid-genres .genre-link {
    font-size: 0.7rem;
    padding: 1px 6px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .bitrates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bitrates-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Rating Page Tabs
   ========================================================================== */
.rating-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    background: var(--card-bg, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.rating-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-color, #333);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}
.rating-tab:focus {
    outline: none;
}
.rating-tab:hover {
    background: #e9e9e9;
}
.rating-tab.active {
    background: #4a90d9;
    color: #fff;
}
.rating-tab-content {
    display: none;
}
.rating-tab-content.active {
    display: block;
}

@media (max-width: 480px) {
    .rating-tabs {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }
    .rating-tab {
        justify-content: flex-start;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   GOOGLE AUTH — navbar user menu, auth banner
   ========================================================================== */

/* Auth link (Google icon for anonymous) */
.auth-link {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #888;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 8px;
}
.auth-link:hover {
    color: #4285f4;
}
.auth-link-text {
    display: none;
}
.user-menu-name {
    display: none;
}

/* Auth modal */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.auth-modal-overlay.active {
    display: flex;
}
.auth-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}
.auth-modal-close:hover {
    color: #333;
}
.auth-modal-icon {
    font-size: 2.5rem;
    color: #4285f4;
    margin-bottom: 12px;
}
.auth-modal h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: #333;
}
.auth-modal p {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* User menu (logged-in) */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}
.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: box-shadow 0.2s;
}
.user-menu-toggle:hover {
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4);
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Dropdown menu */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}
.user-menu.open .user-dropdown {
    display: block;
}
.user-dropdown-header {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}
.user-dropdown-item:hover {
    background: #f5f5f5;
    color: #333;
}
.user-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}
.user-dropdown-danger {
    color: #dc3545;
}
.user-dropdown-danger:hover {
    background: #fff0f0;
    color: #c82333;
}
.user-dropdown-delete {
    margin: 0;
    padding: 0;
    border-top: 1px solid #eee;
}

/* Auth banner on /favorite */
.auth-banner {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border: 1px solid #d2e3fc;
    border-radius: 12px;
}
.auth-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.auth-banner-icon {
    font-size: 1.8rem;
    color: #4285f4;
    flex-shrink: 0;
}
.auth-banner-text {
    flex: 1;
    line-height: 1.4;
}
.auth-banner-text strong {
    display: block;
    font-size: 0.95rem;
    color: #1a73e8;
}
.auth-banner-text span {
    font-size: 0.85rem;
    color: #5f6368;
}
.btn-auth-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow 0.2s, background 0.2s;
    flex-shrink: 0;
}
.btn-auth-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #1a73e8;
}
.btn-auth-google i {
    font-size: 1.1rem;
    color: #4285f4;
}

/* Mobile */
@media (max-width: 768px) {
    .auth-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .auth-banner-icon {
        font-size: 1.5rem;
    }
}

/* User menu mobile — inside hamburger */
@media (max-width: 767px) {
    .user-menu {
        flex-direction: column;
        width: 100%;
    }
    .user-menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px;
        border-bottom: 1px solid #e9ecef;
        border-radius: 0;
        outline: none;
        box-shadow: none;
    }
    .user-menu-toggle:focus,
    .user-menu-toggle:active {
        outline: none;
        box-shadow: none;
    }
    .user-menu-name {
        display: inline;
        font-size: 0.95rem;
        color: #333;
    }
    .user-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        width: 100%;
        min-width: auto;
    }
    .user-dropdown-header {
        display: none;
    }
    .nav-link.auth-link {
        padding: 10px;
        font-size: 0.95rem;
    }
    .auth-link:focus,
    .auth-link:active {
        outline: none;
        box-shadow: none;
    }
    .auth-link-text {
        display: inline;
    }
    .auth-link i {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   МЕДИА-ЗАПРОСЫ
   ========================================================================== */

/* Очень маленькие экраны (до 320px) */
@media (max-width: 320px) {
    .breadcrumbs {
        display: none;
    }

    .now-playing {
        padding: 8px;
    }

    .now-playing-info {
        font-size: 0.85rem;
    }

    .now-playing-info span {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .now-playing-icon {
        font-size: 1.2rem;
        margin-right: 5px;
    }

    .track-history {
        padding: 8px;
    }

    .track-history-time {
        font-size: 0.7rem;
        min-width: 40px;
        margin-right: 8px;
    }

    .track-history-song {
        font-size: 0.8rem;
    }

    .playlist-full-link {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .player-bar {
        height: 60px;
    }

    .player-bar-content {
        gap: 8px;
        padding: 0 10px;
        justify-content: space-between;
    }

    .player-bar-logo-container {
        width: 30px;
        height: 30px;
    }

    .player-bar-logo,
    .player-bar-no-logo {
        border-radius: 6px;
    }

    .player-bar-no-logo {
        font-size: 1rem;
    }

    .player-bar .play-button {
        width: 40px;
        height: 40px;
    }

    .player-bar .play-button i {
        font-size: 16px;
    }

    .player-bar-icon {
        display: none;
    }

    .player-bar-info {
        font-size: 0.9rem;
        max-width: 35%;
    }

    .player-bar .volume-control {
        gap: 5px;
    }

    .player-bar .mute-button {
        font-size: 1rem;
    }

    .player-bar .volume-slider {
        width: 60px;
    }

    .player-bar .favorite-btn {
        display: none;
    }
}

/* Средние маленькие экраны (321px - 360px) */
@media (min-width: 321px) and (max-width: 360px) {
    .breadcrumb-item.active {
        display: none;
    }

    .player-bar {
        height: 70px;
    }

    .player-bar-content {
        gap: 10px;
        padding: 0 12px;
        justify-content: space-between;
    }

    .player-bar-logo-container {
        width: 40px;
        height: 40px;
    }

    .player-bar-no-logo {
        font-size: 1.2rem;
    }

    .player-bar .play-button {
        width: 50px;
        height: 50px;
    }

    .player-bar .play-button i {
        font-size: 20px;
    }

    .player-bar-icon {
        font-size: 16px;
    }

    .player-bar-info {
        font-size: 1rem;
        max-width: 40%;
    }

    .player-bar .volume-slider {
        width: 80px;
    }

    .player-bar .favorite-btn {
        width: 40px;
        height: 40px;
    }

    .player-bar .favorite-btn::before {
        font-size: 1.1rem;
    }
}

/* Мобильные устройства (от 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: 80px;
        height: 80px;
    }
}

/* Маленькие экраны (от 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;
    }

    .page-item.page-number {
        display: none;
    }

    .page-item.page-number.active {
        display: block;
    }

    .page-item.optional {
        display: none;
    }

    #pagination-container {
        margin-top: 10px;
        padding: 0 5px;
    }

    .main-container.container {
        overflow-x: clip;
    }
}

/* Адаптация для умного поиска на малых экранах */
@media (max-width: 576px) {
    #smart-search-results {
        max-height: 400px;
        left: -10px;
        right: -10px;
    }

    .search-logo,
    .search-no-logo {
        width: 35px;
        height: 35px;
    }

    .search-name {
        font-size: 0.9rem;
    }

    .search-meta {
        font-size: 0.75rem;
    }
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ ТАБЛИЦ (до 767px) */
@media (max-width: 767px) {
    /* Основной контейнер */
    .main-container.container {
        margin-top: 65px;
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }

    .now-playing {
        padding: 10px;
    }

    .now-playing-info {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .now-playing-info span {
        white-space: normal;
        word-break: break-word;
    }

    .now-playing-icon {
        font-size: 1.2rem;
        margin-right: 5px;
    }

    .track-history {
        padding: 10px;
    }

    .track-history-time {
        font-size: 0.75rem;
        min-width: 42px;
        margin-right: 8px;
    }

    .track-history-song {
        font-size: 0.85rem;
        white-space: normal;
        word-break: break-word;
    }

    .playlist-full-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    /* Навбар */
    .hamburger {
        display: flex;
    }

    .theme-toggle {
        padding: 12px 16px !important;
        text-align: left;
        width: 100%;
        border-bottom: none;
        margin: 0;
        display: block;
        box-sizing: border-box;
        line-height: 1.2;
    }

    .theme-toggle label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .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);
        gap: 0 !important;
    }

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

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

    /* Хлебные крошки */
    .breadcrumbs {
        padding: 8px 10px;
        margin-bottom: 10px;
    }

    .breadcrumb-list {
        gap: 6px;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin-right: 6px;
    }

    .mobile-hidden {
        display: none;
    }

    /* Анимированные кнопки навбара в мобильном меню */
    .top100-link,
    .favorite-link,
    .genres-link,
    .likes-link,
    .new-link,
    .countries-link,
    .live-link {
        justify-content: flex-start;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    }

    .live-link {
        border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    }

    .live-link:hover {
        background: rgba(220, 53, 69, 0.15);
    }

    .top100-link:hover {
        background: rgba(255, 215, 0, 0.15);
    }

    .favorite-link {
        border-bottom: 1px solid rgba(220, 20, 60, 0.2);
    }

    .favorite-link:hover {
        background: rgba(220, 20, 60, 0.18);
    }

    .genres-link {
        border-bottom: 1px solid rgba(34, 139, 34, 0.2);
    }

    .genres-link:hover {
        background: rgba(34, 139, 34, 0.18);
    }

    .new-link {
        border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    }

    .new-link:hover {
        background: rgba(138, 43, 226, 0.18);
    }

    .countries-link {
        border-bottom: 1px solid rgba(30, 144, 255, 0.2);
    }

    .countries-link:hover {
        background: rgba(30, 144, 255, 0.18);
    }

    .crown-container i,
    .heart-container i,
    .genres-icon-container i,
    .globe-container i {
        font-size: 1.4rem;
    }

    .link-text {
        font-size: 1rem;
    }

    .player-bar-logo-container {
        display: none;
    }

    /* Общие стили для таблиц */
    .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="Score"]::before,
    .table td[data-label="Countries"]::before {
        display: none;
    }

    /* Скрыть столбец номера на мобильных */
    .table th.row-number,
    .table td.row-number {
        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[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: 0.8rem;
        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="Genre"]::before {
        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: #e0e0e0;
        border: none;
        color: #555;
        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: #d5d5d5;
        color: #333;
    }

    .favorite-btn:hover,
    .favorite-btn:focus,
    .favorite-btn:active {
        background-color: #ccc;
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

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

    /* Карточка станции на мобильной версии */
    .station-card {
        display: block;
        padding: 15px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
    }

    .station-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .station-logo-container {
        margin: 0 auto;
    }

    .station-card .station-logo,
    .station-card .no-logo {
        width: 90px;
        height: 90px;
    }

    .station-card .station-logo:hover,
    .station-card .no-logo:hover {
        transform: none;
        box-shadow: none;
    }

    .station-info h1 {
        font-size: 1.5rem;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .country-cell {
        justify-content: center;
        gap: 8px;
        margin-top: 5px;
    }

    .country-flag {
        width: 24px;
        height: 18px;
    }

    .country-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    .genres-container {
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
    }

    .genre-link {
        font-size: 1.15rem;
        padding: 5px 10px;
    }

    .genre-link:hover {
        background-color: #dee2e6;
    }

    .station-controls {
        flex-direction: column;
        gap: 15px;
    }

    .station-player {
        justify-content: center;
    }

    .station-controls .play-button {
        width: 80px;
        height: 80px;
    }

    .station-controls .play-button.playing {
        background: linear-gradient(135deg, #dc3545, #b02a37);
    }

    .station-controls .play-button i {
        font-size: 2.5rem;
    }

    .station-controls .play-button i.fa-play {
        transform: translateX(5px);
    }

    .station-controls .play-button:hover,
    .station-controls .play-button:focus,
    .station-controls .play-button:active {
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .station-controls .play-button.loading::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-width: 4px;
    }

    .volume-control {
        display: none;
    }

    .bitrate-badge,
    .station-actions .btn-primary,
    .station-actions .btn-success,
    .station-rating {
        display: none;
    }

    /* favorites для страницы станции */
    .station-controls .favorite-btn {
        width: 80px !important;
        height: 80px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        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;
    }

    .station-controls .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 2.5rem;
    }

    .station-controls .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .station-controls .favorite-btn span {
        display: none;
    }

    .station-controls .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .station-controls .favorite-btn:hover,
    .station-controls .favorite-btn:focus,
    .station-controls .favorite-btn:active {
        background-color: #ccc;
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .station-controls .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

    /* Related Stations на мобильной */
    .related-stations {
        padding: 15px;
    }

    .related-stations-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .related-stations-table {
        display: block;
        overflow-x: auto;
        border: none;
        background: none;
    }

    .related-stations-table thead {
        display: none;
    }

    .related-stations-table tbody {
        display: block;
        width: 100%;
    }

    .related-stations-table tr {
        display: block;
        width: 100%;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #e9ecef;
    }

    .related-stations-table td {
        display: block;
        width: 100%;
        border: none;
        padding: 5px;
        text-align: center;
    }

    .related-stations-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        display: block;
        margin-bottom: 5px;
        font-size: 1.2rem;
    }

    .related-stations-table td[data-label="Logo"]::before,
    .related-stations-table td[data-label="Name"]::before,
    .related-stations-table td[data-label="Country"]::before,
    .related-stations-table td[data-label="Play"]::before,
    .related-stations-table td[data-label="Favorites"]::before,
    .related-stations-table td[data-label="Bitrate"]::before {
        display: none;
    }

    .related-stations-table td[data-label="Genres"]::before {
        display: none;
    }

    .related-stations-table td[data-label="Logo"] .station-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        border-radius: 12px;
        transition: none;
    }

    .related-stations-table td[data-label="Logo"] .station-logo:hover {
        transform: none;
        box-shadow: none;
    }

    .related-stations-table td[data-label="Name"] .station-link {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .related-stations-table td[data-label="Country"] .country-flag {
        width: 24px;
        height: 18px;
    }

    .related-stations-table td[data-label="Country"] .country-link {
        font-size: 0.9rem;
    }

    .related-stations-table td[data-label="Genres"] .genre-list {
        display: flex;
        justify-content: center;
        gap: 6px;
    }

    .related-stations-table td[data-label="Genres"] .genre-link {
        font-size: 1.15rem;
        padding: 5px 10px;
    }

    .related-stations-table td[data-label="Bitrate"] {
        display: none;
    }

    .related-stations-table td[data-label="Play"] .play-button {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #28a745, #1e7e34);
        margin: 0 auto;
    }

    .related-stations-table td[data-label="Play"] .play-button.playing {
        background: linear-gradient(135deg, #dc3545, #b02a37);
    }

    .related-stations-table td[data-label="Play"] .play-button i {
        font-size: 2.5rem;
    }

    .related-stations-table td[data-label="Play"] .play-button i.fa-play {
        transform: translateX(5px);
    }

    .related-stations-table td[data-label="Play"] .play-button:hover,
    .related-stations-table td[data-label="Play"] .play-button:focus,
    .related-stations-table td[data-label="Play"] .play-button:active {
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .related-stations-table td[data-label="Play"] .play-button.loading::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-width: 4px;
    }

    /* Related Stations - Favorites */
    .related-stations-table td[data-label="Favorites"] .favorite-btn {
        width: 80px !important;
        height: 80px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        margin: 0 auto;
        box-sizing: border-box;
        min-width: 0 !important;
    }

    .related-stations-table td[data-label="Favorites"] .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 2.5rem;
    }

    .related-stations-table td[data-label="Favorites"] .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .related-stations-table td[data-label="Favorites"] .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .related-stations-table td[data-label="Favorites"] .favorite-btn:hover,
    .related-stations-table td[data-label="Favorites"] .favorite-btn:focus,
    .related-stations-table td[data-label="Favorites"] .favorite-btn:active {
        background-color: #ccc;
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .related-stations-table td[data-label="Favorites"] .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

    .comment-form-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    /* Комментарии */
    .comments-card {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-bottom: 15px;
        border: 1px solid #e9ecef;
    }

    .comment-header {
        flex-wrap: wrap;
        gap: 5px;
    }

    .user-rating-stars {
        font-size: 0.8rem;
    }

    .rating-value {
        font-size: 0.7rem;
    }

    .comment-content p {
        font-size: 0.85rem;
    }

    .comment-content small {
        font-size: 0.75rem;
    }

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

    .custom-footer .container {
        padding: 0 10px;
    }

    /* Плеер бар на мобильной */
    .player-bar {
        height: 70px;
    }

    .player-bar-content {
        gap: 10px;
        padding: 0 15px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .player-bar-logo-container {
        display: none;
    }

    .player-bar .play-button {
        width: 50px;
        height: 50px;
        aspect-ratio: 1 / 1;
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
    }

    .player-bar .play-button i {
        font-size: 20px;
    }

    .player-bar-icon {
        font-size: 16px;
        flex-shrink: 0;
    }

    .player-bar-info {
        font-size: 0.95rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .player-bar-controls {
        margin-left: auto;
        flex-shrink: 0;
    }

    .player-bar .volume-slider {
        width: 80px;
    }

    .player-bar .favorite-btn {
        width: 40px !important;
        height: 40px !important;
    }

    .player-bar .favorite-btn::before {
        font-size: 1rem;
    }

    /*фильтры*/
        .filter-card {
        display: none;
    }

    .filter-card.visible {
        display: block;
    }

    .form-check-input {
        width: 24px;
        height: 24px;
        margin-top: 0;
        margin-left: -2rem;
    }

    .form-check-label {
        font-size: 16px;
        padding-left: 0.5rem;
        line-height: 24px;
    }

    .form-check {
        margin-bottom: 12px;
    }

    .scrollable-checkbox {
        padding: 15px;
        max-height: 250px;
    }

    #filter-submit, #filter-reset {
        font-size: 16px;
        padding: 10px 20px;
        min-width: 120px;
        margin: 0 10px;
    }

    .filter-label {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .flag-icon {
        width: 24px;
        height: 16px;
        margin-right: 8px;
    }

    #selected-filters .badge {
        font-size: 16px;
        padding: 8px 12px;
    }

    #selected-filters .remove-filter {
        font-size: 20px;
    }

    .top-today-table tr td:first-child {
        display: none !important;
    }

    /* Скрываем Listen Time (6-я колонка), оставляем Play (7-я) */
    .rating-table tr td:nth-child(6) {
        display: none !important;
    }

    .yesterday-winner-row td:nth-child(7) {
        display: none !important;
    }

        .welcome-back-popup {
        top: auto;
        bottom: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(100px) scale(0.95);
    }

    .welcome-back-popup.show {
        transform: translateY(0) scale(1);
    }

    .welcome-back-popup.hide {
        transform: translateY(100px) scale(0.95);
    }

    .welcome-back-content {
        padding: 16px;
    }

    .welcome-back-station {
        padding: 10px;
    }

    .welcome-back-logo,
    .welcome-back-no-logo {
        width: 48px;
        height: 48px;
    }

        /* Скрываем везде кроме player bar */
    .station-controls .favorite-btn,
    .related-stations-table .favorite-btn,
    .table .favorite-btn,
    tbody .favorite-btn,
    td[data-label="Favorites"] .favorite-btn {
        display: none !important;
    }

    /* Показываем только в player bar */
    .player-bar .favorite-btn {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
    }

}

/* МОБИЛЬНЫЕ СТИЛИ ДЛЯ ЧЕМПИОНА (вчерашнего победителя) */
@media (max-width: 767px) {
    .yesterday-winner-row {
        display: block !important;
        width: 100%;
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
        border: 2px solid #444444 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
        margin-bottom: 15px !important;
        padding: 15px !important;
        position: relative;
        overflow: hidden;
    }

    .yesterday-winner-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #718096, #a0aec0, #718096);
    }

    .yesterday-winner-row td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 8px 0 !important;
        text-align: center !important;
    }

    .yesterday-winner-row td.rank-first {
        padding: 10px 0 !important;
    }

    .yesterday-winner-row .platinum-crown {
        font-size: 2.5rem !important;
        color: #a0aec0 !important;
        filter: drop-shadow(0 0 12px rgba(160, 174, 192, 0.8));
        animation: float 3s ease-in-out infinite;
    }

    .yesterday-winner-row td[data-label="Logo"] {
        padding: 10px 0 !important;
    }

    .yesterday-winner-row td[data-label="Logo"] .station-logo {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
        border: 3px solid #a0aec0 !important;
        box-shadow: 0 0 15px rgba(160, 174, 192, 0.4) !important;
    }

    .yesterday-winner-row td:nth-child(3) {
        padding: 12px 0 !important;
    }

    .yesterday-winner-row .station-link {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        color: #e0e0e0 !important;
        display: block !important;
        margin-bottom: 8px !important;
    }

    .yesterday-winner-row .text-muted {
        display: block !important;
        font-size: 1rem !important;
        color: #a0aec0 !important;
        margin-top: 8px !important;
    }

    .yesterday-winner-row td[data-label="Country"] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    .yesterday-winner-row td[data-label="Country"]::before {
        content: "Country: ";
        font-weight: 600;
        color: #e0e0e0;
        font-size: 1.1rem;
    }

    .yesterday-winner-row .country-flag {
        width: 24px !important;
        height: auto !important;
    }

    .yesterday-winner-row .country-link {
        font-size: 1.2rem !important;
        color: #e0e0e0 !important;
    }

    .yesterday-winner-row td[data-label="Genres"] {
        padding: 10px 0 !important;
    }

    .yesterday-winner-row td[data-label="Genres"]::before {
        content: "Genres: ";
        display: block;
        font-weight: 600;
        color: #e0e0e0;
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .yesterday-winner-row .genre-list {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    .yesterday-winner-row .genre-link {
        background-color: #444444 !important;
        color: #e0e0e0 !important;
        font-size: 1.1rem !important;
        padding: 6px 12px !important;
        border-radius: 12px !important;
    }

    .yesterday-winner-row .genre-link:hover {
        background-color: #555555 !important;
    }

    .yesterday-winner-row td[data-label="Bitrate"] {
        padding: 10px 0 !important;
    }

    .yesterday-winner-row td[data-label="Bitrate"]::before {
        content: "Bitrate: ";
        display: inline;
        font-weight: 600;
        color: #e0e0e0;
        font-size: 1.1rem;
        margin-right: 6px;
    }

    .yesterday-winner-row .badge-info {
        background-color: #555555 !important;
        font-size: 1.1rem !important;
        padding: 6px 10px !important;
    }

    .yesterday-winner-row td:nth-child(7) {
        padding: 10px 0 !important;
    }

    .yesterday-winner-row td:nth-child(7)::before {
        content: "Total Time: ";
        display: inline;
        font-weight: 600;
        color: #e0e0e0;
        font-size: 1.1rem;
        margin-right: 6px;
    }

    .yesterday-winner-row td[data-label="Play"] {
        padding: 15px 0 10px 0 !important;
    }

    .yesterday-winner-row .champion-play-button,
    .yesterday-winner-row .play-button {
        width: 90px !important;
        height: 90px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #1f7a33, #145c24) !important;
        border: none !important;
        border-radius: 50% !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(31, 122, 51, 0.5) !important;
    }

    .yesterday-winner-row .champion-play-button i,
    .yesterday-winner-row .play-button i {
        font-size: 2.8rem !important;
    }

    .yesterday-winner-row .champion-play-button.playing,
    .yesterday-winner-row .play-button.playing {
        background: linear-gradient(135deg, #b02a37, #8c1d28) !important;
    }
}

/* ПЛАНШЕТЫ И ДЕСКТОП (от 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;
    }

    .breadcrumbs {
        padding: 12px 15px;
        margin-bottom: 15px;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }

    .mobile-hidden {
        display: inline;
    }

    .breadcrumb-item.active {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .station-card .station-logo,
    .station-card .no-logo {
        width: 90px;
        height: 90px;
    }

    .country-flag {
        width: 24px;
        height: 18px;
    }

    .station-info h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .station-controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .station-player {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .volume-control {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .volume-slider {
        width: 100px;
    }

    .bitrate-badge {
        padding: 8px 16px;
        height: 35px;
        min-width: 0;
    }

    .station-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .btn {
        padding: 8px 16px;
        min-width: 90px;
        height: 35px;
    }

    /* Кнопка "Избранное" — круглая с иконкой */
    .favorite-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        min-width: 0;
    }

    .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 span {
        display: none;
    }

    .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .favorite-btn:hover {
        background-color: #ccc;
    }

    .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

    /* Таблица связанных станций */
    .related-stations-table td {
        padding: 8px;
        vertical-align: middle;
    }

    .related-stations-table .badge-info {
        padding: 4px 8px;
        font-size: 0.8rem;
        border-radius: 10px;
        display: inline-flex;
    }

    /* Уточняем стили для кнопки Favorites */
    .related-stations-table .favorite-btn {
        width: 45px;
        height: 45px;
        margin-left: 0;
        margin-right: auto;
        display: flex;
        align-items: center;
        border-radius: 50%;
        justify-content: center;
        background-color: #e0e0e0;
        color: #555;
    }

    .related-stations-table .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 1.1rem;
    }

    .related-stations-table .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .related-stations-table .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .related-stations-table .favorite-btn:hover {
        background-color: #ccc;
    }

    .related-stations-table .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

    .related-stations-table .favorite-btn span {
        display: none;
    }

    .related-stations-table td[data-label="Favorites"] {
        text-align: center;
        padding: 12px;
        vertical-align: middle;
    }

    /* Стили Play для таблиц жанров/стран */
    .table td[data-label="Play"] {
        padding: 12px;
        vertical-align: middle;
        text-align: center;
    }

    .table .play-button {
        margin: 0 auto;
    }

    .table td[data-label="Favorites"] {
        padding: 12px;
        vertical-align: middle;
        text-align: center;
    }

    .table .favorite-btn {
        width: 45px;
        height: 45px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        transition: background-color 0.3s ease;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .table .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 1.2rem;
    }

    .table .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .table .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .table .favorite-btn:hover,
    .table .favorite-btn:focus,
    .table .favorite-btn:active {
        background-color: #ccc;
        transform: none;
        box-shadow: none;
        outline: none;
    }

    .table .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

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

    /*фильтры*/

    .toggle-filters-btn {
        display: none !important;
    }

    .filter-card {
        display: block !important;
    }

    .mobile-filter-buttons {
        display: none;
    }
}

/*listener 768*/

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .breadcrumb-item.active {
        max-width: 150px;
    }

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

    /* Скрыть текст на кнопках навбара, оставить только иконки для компактности */
    .new-link .link-text-purple,
    .genres-link .link-text,
    .likes-link .link-text-blue,
    .top100-link .link-text,
    .favorite-link .link-text {
        display: none;
    }

    .star-container,
    .genres-icon-container,
    .thumb-container,
    .crown-container,
    .heart-container {
        margin-right: 0;
    }

    .station-controls {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .station-info h1 {
        font-size: 1.1rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .station-card .station-logo,
    .station-card .no-logo {
        width: 90px;
        height: 90px;
    }

    .btn {
        min-width: 80px;
        padding: 5px 10px;
        display: inline-flex;
    }

    .bitrate-badge {
        min-width: 0;
        display: inline-flex;
    }

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

    .favorite-btn {
        width: 35px;
        height: 35px;
    }

    .related-stations-table th,
    .related-stations-table td {
        padding: 6px;
    }

    .related-stations-table .station-logo {
        width: 35px;
        height: 35px;
    }

    .related-stations-table .country-flag {
        width: 24px;
        height: 18px;
    }

    .related-stations-table .genre-link {
        padding: 3px 6px;
        font-size: 0.8rem;
    }

    /* Скрыть заголовки таблицы на этом разрешении */
    .related-stations-table thead {
        display: none;
    }

    /* Logo - отступ слева */
    .related-stations-table th:nth-child(1),
    .related-stations-table td:nth-child(1) {
        padding-left: 8px;
    }

    /* Bitrate - выравнивание влево */
    .related-stations-table th:nth-child(5),
    .related-stations-table td:nth-child(5) {
        text-align: left;
        padding: 6px 2px 6px 6px;
    }

    /* Play - по центру */
    .related-stations-table th:nth-child(6),
    .related-stations-table td:nth-child(6) {
        text-align: center;
        padding: 6px;
    }

    /* Favorites - выравнивание влево с ограничением ширины */
    .related-stations-table th:nth-child(7),
    .related-stations-table td:nth-child(7) {
        text-align: left;
        padding: 6px 0 6px 0;
        width: 50px !important;
        max-width: 50px !important;
    }

    .related-stations-table .play-button {
        width: 45px;
        height: 45px;
        margin: 0 10px 0 auto;
    }

    .related-stations-table .favorite-btn {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        margin: 0;
    }

    .related-stations-table .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 1.1rem;
    }

    .related-stations-table .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .related-stations-table .favorite-btn span {
        display: none;
    }

    .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 30%;
        min-width: 150px;
    }

    .footer-section:first-child {
        flex: 1 1 100%;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .custom-footer .container {
        max-width: 720px;
        padding: 0 15px;
    }

    .player-bar-content {
        gap: 12px;
        padding: 0 15px;
        max-width: 720px;
    }

    .player-bar-logo-container {
        width: 45px;
        height: 45px;
    }

    .player-bar .play-button {
        width: 55px;
        height: 55px;
    }

    .player-bar .play-button i {
        font-size: 22px;
    }

    .player-bar-info {
        font-size: 1.05rem;
        max-width: 45%;
    }

    .player-bar .volume-slider {
        width: 90px;
    }

    /* Оптимизация таблиц для планшетов */
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 8px 4px;
    }

    .table .station-logo {
        width: 40px;
        height: 40px;
    }

    .table .country-flag {
        width: 20px;
        height: auto;
    }

    .table .genre-link {
        padding: 3px 6px;
        font-size: 0.75rem;
        margin: 2px;
    }

    .table .play-button {
        width: 40px;
        height: 40px;
    }

    .table .play-button i {
        font-size: 0.9rem;
    }

    .table .favorite-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .table .badge {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .table .country-cell {
        flex-direction: column;
        gap: 3px;
    }

    .table .country-link,
    .table .station-link {
        font-size: 0.85rem;
    }

    /* Переопределение фиксированных ширин столбцов */
    .table th[style*="width"],
    .table td[style*="width"] {
        width: auto !important;
    }

    .table th:has(.station-logo),
    .table td:has(.station-logo) {
        width: 50px !important;
    }

    /* Скрыть заголовки и столбец номера на планшетах */
    .table thead {
        display: none;
    }

    .table th.row-number,
    .table td.row-number {
        display: none;
    }

    /* Logo - отступ слева после скрытия номера */
    .table td[data-label="Logo"] {
        padding-left: 8px;
    }

    /* Выравнивание кнопок Play и Favorites для страниц жанров/стран */
    .table td[data-label="Play"] {
        text-align: center;
        padding: 6px;
    }

    .table td[data-label="Favorites"] {
        text-align: left;
        padding: 6px 0 6px 0;
        width: 50px !important;
        max-width: 50px !important;
    }

    .table .play-button {
        width: 45px;
        height: 45px;
        margin: 0 10px 0 auto;
    }

    .table .favorite-btn {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .table .favorite-btn::before {
        content: "\f004";
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
        font-size: 1.1rem;
    }

    .table .favorite-btn.added::before {
        content: "\f00c";
        font-weight: 900;
    }

    .table .favorite-btn span {
        display: none;
    }

    .table .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }
}

/* Десктоп 1024px+ */
@media (min-width: 1024px) {
    .breadcrumb-item.active {
        max-width: 350px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-container.container {
        max-width: 960px;
    }

    .custom-navbar .container {
        max-width: 960px;
    }

    .station-card .station-logo,
    .station-card .no-logo {
        width: 90px;
        height: 90px;
    }

    .station-info h1 {
        font-size: 1.2rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .station-controls {
        gap: 15px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.9rem;
        min-width: 90px;
        border-radius: 20px;
        display: inline-flex;
    }

    .favorite-btn {
        width: 35px;
        height: 35px;
        padding: 0;
        border-radius: 50%;
        background-color: #e0e0e0;
        border: none;
        color: #555;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        min-width: 0;
    }

    .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 span {
        display: none;
    }

    .favorite-btn.added {
        background-color: #d5d5d5;
        color: #333;
    }

    .favorite-btn:hover {
        background-color: #ccc;
    }

    .favorite-btn.added:hover {
        background-color: #c5c5c5;
    }

    .related-stations-table .station-logo {
        width: 35px;
        height: 35px;
    }

    /* Bitrate - выравнивание влево */
    .related-stations-table th:nth-child(5),
    .related-stations-table td:nth-child(5) {
        text-align: left;
        padding: 8px 2px 8px 8px;
    }

    /* Play - отступ слева от Bitrate */
    .related-stations-table th:nth-child(6),
    .related-stations-table td:nth-child(6) {
        text-align: center;
        padding: 8px 2px 8px 8px;
    }

    /* Favorites - близко к Play */
    .related-stations-table th:nth-child(7),
    .related-stations-table td:nth-child(7) {
        text-align: center;
        padding: 8px 8px 8px 2px;
    }

    .related-stations-table .favorite-btn {
        width: 45px;
        height: 45px;
    }

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

    .footer-section {
        flex: 1 1 0;
    }

    .footer-section:first-child {
        flex: 1.5 1 0;
    }

    .player-bar-content {
        max-width: 960px;
    }

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

    /* Выравнивание столбцов Play и Favorites для страниц жанров/стран */
    .table th:nth-child(6),
    .table td:nth-child(6) {
        text-align: center;
        padding: 8px 4px;
        width: 60px;
    }

    .table th:nth-child(7),
    .table td:nth-child(7) {
        text-align: center;
        padding: 8px 4px;
        width: 50px;
    }

    .table .play-button {
        margin: 0 auto;
    }

    .table .favorite-btn {
        margin: 0 auto;
    }

    .station-logo,
    .no-logo {
        width: 60px;
        height: 60px;
    }
}

/* Средние десктопы (1024px—1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .breadcrumb-item.active {
        max-width: 250px;
    }

    .player-bar-content {
        max-width: 960px;
    }
}

/* Большие десктопы 1200px+ */
@media (min-width: 1200px) {
    .breadcrumb-item.active {
        max-width: none;
        overflow: visible;
        white-space: normal;
    }

    .main-container.container {
        max-width: 1140px;
    }

    .custom-navbar .container {
        max-width: 1140px;
    }

    .station-info h1 {
        font-size: 1.3rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .station-controls {
        gap: 15px;
    }

    /* Bitrate - выравнивание влево */
    .related-stations-table th:nth-child(5),
    .related-stations-table td:nth-child(5) {
        text-align: left;
        padding: 10px 2px 10px 10px;
    }

    /* Play - отступ слева от Bitrate */
    .related-stations-table th:nth-child(6),
    .related-stations-table td:nth-child(6) {
        text-align: center;
        padding: 10px 2px 10px 10px;
    }

    /* Favorites - близко к Play */
    .related-stations-table th:nth-child(7),
    .related-stations-table td:nth-child(7) {
        text-align: center;
        padding: 10px 10px 10px 2px;
    }

    .related-stations-table .favorite-btn {
        width: 45px;
        height: 45px;
    }

    .custom-footer .container {
        max-width: 1140px;
    }

    .player-bar-content {
        max-width: 1140px;
    }

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

/* Очень большие экраны 1440px+ */
@media (min-width: 1440px) {
    .main-container.container {
        max-width: 1320px;
    }

    .custom-navbar .container {
        max-width: 1320px;
    }

    .custom-footer .container {
        max-width: 1320px;
    }

    .station-info h1 {
        font-size: 1.4rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .player-bar-content {
        max-width: 1320px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Full HD 1920px+ */
@media (min-width: 1920px) {
    .custom-navbar .container {
        max-width: 1320px;
    }

    .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: 1320px;
    }

    .custom-footer .container {
        max-width: 1320px;
    }

    .footer-section h5 {
        font-size: 1.2rem;
    }

    .footer-section p,
    .footer-links a {
        font-size: 1rem;
    }

    .station-info h1 {
        font-size: 1.5rem;
        white-space: normal;
        word-wrap: break-word;
        max-width: 100%;
    }

    .station-card .station-logo,
    .station-card .no-logo {
        width: 90px;
        height: 90px;
    }

    .country-flag {
        width: 24px;
        height: 18px;
    }

    .player-bar-content {
        max-width: 1600px;
    }

    h1 {
        font-size: 2.75rem;
    }

    .station-logo,
    .no-logo {
        width: 80px;
        height: 80px;
    }
}
