/* dark-theme.css */

/* Базовые стили */
html.dark-theme body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-theme .main-container.container {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

/* Заголовок h1 */
html.dark-theme h1 {
    color: #e0e0e0;
}

/* Убираем underline у всех ссылок по умолчанию и при наведении */
html.dark-theme a,
html.dark-theme .country-link,
html.dark-theme .state-link,
html.dark-theme .genre-link,
html.dark-theme .station-link,
html.dark-theme .bitrate-link {
    text-decoration: none;
}

/* Навбар */
html.dark-theme .custom-navbar {
    background-color: #222222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.dark-theme .navbar-brand,
html.dark-theme .nav-link {
    color: #e0e0e0;
}

html.dark-theme .nav-link:hover {
    color: #e0e0e0;
}
/*
html.dark-theme .favorite-link {
    background-color: #b02a37;
    color: #ffffff;
}

html.dark-theme .favorite-link:hover {
    background-color: #8c1d28;
    color: #ffffff;
}
*/
html.dark-theme .hamburger .bar {
    background-color: #e0e0e0;
}

/* Stats-item в stats-container */
html.dark-theme .stats-container {
    background-color: #333333;
    border: 1px solid #444444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.dark-theme .stats-item {
    color: #e0e0e0;
}

html.dark-theme .stats-item strong {
    color: #e0e0e0;
}

html.dark-theme .stats-link {
    color: #e0e0e0;
    text-decoration: none;
}

html.dark-theme .stats-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   ТЕМНАЯ ТЕМА
   ========================================================================== */

html.dark-theme .stats-container {
    border-bottom: 1px solid #444;
}

html.dark-theme .stat-item strong {
    color: #e0e0e0;
}

html.dark-theme .stat-item small {
    color: #aaa;
}

html.dark-theme .stat-item i {
    opacity: 0.9;
}

/* Filter-card */
html.dark-theme .filter-card {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

html.dark-theme .filter-label {
    color: #e0e0e0;
}

html.dark-theme .scrollable-checkbox .form-check-label {
    color: #e0e0e0;
}

html.dark-theme .scrollable-checkbox .form-check-input {
    background-color: #444444;
    border-color: #555555;
}

html.dark-theme .scrollable-checkbox .form-check-input:checked {
    background-color: #1f7a33;
    border-color: #1f7a33;
}

html.dark-theme .btn-primary,
html.dark-theme #filter-submit,
html.dark-theme #filter-submit-top,
html.dark-theme .toggle-filters-btn {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #ffffff;
}

html.dark-theme .btn-primary:hover,
html.dark-theme #filter-submit:hover,
html.dark-theme #filter-submit-top:hover,
html.dark-theme .toggle-filters-btn:hover {
    background-color: #004d99;
    border-color: #004d99;
}

html.dark-theme .btn-outline-secondary,
html.dark-theme #filter-reset,
html.dark-theme #filter-reset-top {
    background-color: #444444;
    border-color: #555555;
    color: #e0e0e0;
}

html.dark-theme .btn-outline-secondary:hover,
html.dark-theme #filter-reset:hover,
html.dark-theme #filter-reset-top:hover {
    background-color: #555555;
    color: #ffffff;
}

/* Scrollable-checkbox в фильтрах */
html.dark-theme .scrollable-checkbox {
	height: 200px;
    background-color: #333333;
    border: 1px solid #444444;
    padding: 10px;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

html.dark-theme .scrollable-checkbox .form-check {
    margin-bottom: 8px;
}

html.dark-theme .scrollable-checkbox .form-check-input {
    background-color: #444444;
    border-color: #555555;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

html.dark-theme .scrollable-checkbox .form-check-input:checked {
    background-color: #1f7a33;
    border-color: #1f7a33;
}

html.dark-theme .scrollable-checkbox .form-check-input:hover:not(:checked) {
    background-color: #555555;
}

html.dark-theme .scrollable-checkbox .form-check-label {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

html.dark-theme .scrollable-checkbox .form-check-label:hover {
    color: #ffffff;
}

/* Флаги в фильтрах стран */
html.dark-theme .scrollable-checkbox .flag-icon {
    border: 1px solid #555555;
    border-radius: 2px;
}

/* Подсветка активных элементов */
html.dark-theme .scrollable-checkbox .form-check-input:checked + .form-check-label {
    color: #ffffff;
}

/* Хлебные крошки */
html.dark-theme .breadcrumbs {
    background-color: #333333;
    border: 1px solid #444444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.dark-theme .breadcrumb-item {
    color: #a0a0a0;
}

html.dark-theme .breadcrumb-item a {
    color: #e0e0e0;
    text-decoration: none;
}

html.dark-theme .breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: none;
}

html.dark-theme .breadcrumb-item.active {
    color: #e0e0e0;
}

html.dark-theme .breadcrumb-item + .breadcrumb-item::before {
    color: #a0a0a0;
}

/* Поиск */
html.dark-theme .search-container .btn-outline-secondary {
    background-color: #444444;
    border-color: #555555;
    color: #e0e0e0;
}

html.dark-theme .search-container .btn-outline-secondary:hover {
    background-color: #555555;
    color: #ffffff;
}

html.dark-theme #search-input {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme #search-input::placeholder {
    color: #a0a0a0;
}

html.dark-theme #search-results {
    background-color: #333333;
    border: 1px solid #555555;
    color: #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

html.dark-theme #search-results .list-group-item {
    border-bottom: 1px solid #444444;
    color: #e0e0e0;
    background-color: #333333;
}

html.dark-theme #search-results .list-group-item:hover {
    background-color: #444444;
}

html.dark-theme #search-results .no-logo {
    background-color: #555555;
    color: #a0a0a0;
}

html.dark-theme #search-input:focus {
    border-color: #555555;
    box-shadow: 0 0 8px rgba(31, 122, 51, 0.3);
    background-color: #444444;
}

/* Карточка станции */
html.dark-theme .station-card {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme .station-info h1 {
    color: #e0e0e0;
}

html.dark-theme .station-logo,
html.dark-theme .no-logo {
    border: 1px solid #555555;
}

html.dark-theme .no-logo {
    background-color: #555555;
    color: #a0a0a0;
}

html.dark-theme .country-link,
html.dark-theme .bitrate-link,
html.dark-theme .state-link {
    color: #e0e0e0;
}

html.dark-theme .country-link:hover,
html.dark-theme .state-link:hover,
html.dark-theme .station-link:hover,
html.dark-theme .bitrate-link:hover {
    text-decoration: none;
    color: #ffffff;
}

html.dark-theme .genre-link {
    background-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .genre-link:hover {
    text-decoration: none;
    background-color: #555555;
    color: #e0e0e0;
}

/* Элементы управления */
html.dark-theme .bitrate-badge {
    background-color: #555555;
    color: #ffffff;
}

html.dark-theme .bitrate-badge:hover {
    background-color: #666666;
}

html.dark-theme .btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

html.dark-theme .btn-primary:hover {
    background-color: #004d99;
}

html.dark-theme .btn-success {
    background-color: #1f7a33;
    border-color: #1f7a33;
}

html.dark-theme .btn-success:hover {
    background-color: #145c24;
}

/* Кнопка "Добавить в избранное" */
html.dark-theme .favorite-btn {
    background-color: #a0a0a0;
    color: #333333;
}

html.dark-theme .favorite-btn::before {
    color: #333333;
}

html.dark-theme .favorite-btn.added {
    background-color: #a0a0a0;
    color: #333333;
}

html.dark-theme .favorite-btn.added::before {
    color: #333333;
}

html.dark-theme .favorite-btn:hover {
    background-color: #777777;
    color: #333333;
}

html.dark-theme .favorite-btn.added:hover {
    background-color: #cccccc;
    color: #333333;
}

html.dark-theme .play-button {
    background: linear-gradient(135deg, #1f7a33, #145c24);
}

html.dark-theme .play-button:hover {
    background: linear-gradient(135deg, #25994f, #1a6c30);
    box-shadow: 0 0 10px rgba(31, 122, 51, 0.6);
}

html.dark-theme .play-button.playing {
    background: linear-gradient(135deg, #b02a37, #8c1d28);
}

html.dark-theme .play-button.loading::before {
    background: linear-gradient(135deg, #1f7a33, #145c24) border-box;
}

html.dark-theme .volume-slider {
    background: #a0a0a0;
}

html.dark-theme .volume-slider:hover {
    background: #b0b0b0;
}

html.dark-theme .volume-slider::-webkit-slider-thumb {
    background: #1f7a33;
}

html.dark-theme .volume-slider::-webkit-slider-thumb:hover {
    background: #145c24;
}

html.dark-theme .volume-slider::-moz-range-thumb {
    background: #1f7a33;
}

html.dark-theme .volume-slider::-moz-range-thumb:hover {
    background: #145c24;
}

html.dark-theme .mute-button {
    color: #a0a0a0;
}

html.dark-theme .mute-button:hover {
    color: #e0e0e0;
}

html.dark-theme .favorite-btn:hover,
html.dark-theme .favorite-btn.added:hover {
    background-color: #888;
}

/* Рейтинг */
html.dark-theme .rating-stars {
    color: #e0e0e0;
}

html.dark-theme .rating-text {
    color: #a0a0a0;
}

/* Now Playing */
html.dark-theme .now-playing .card {
    background-color: #3a3a3a !important;
    border: 1px solid #444444 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

html.dark-theme .now-playing .card-body {
    background-color: #3a3a3a !important;
}

html.dark-theme .now-playing-info h5 {
    color: #ffffff;
}

html.dark-theme .now-playing-info p {
    color: #e0e0e0;
}

html.dark-theme .now-playing-info .text-muted {
    color: #a0a0a0 !important;
}

html.dark-theme .now-playing-icon {
    color: #e0e0e0;
}

/* Track History */
html.dark-theme .track-history .card {
    background-color: #3a3a3a !important;
    border: 1px solid #444444 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

html.dark-theme .track-history .card-body {
    background-color: #3a3a3a !important;
}

html.dark-theme .track-history-song {
    color: #e0e0e0;
}

html.dark-theme .track-history-time {
    color: #a0a0a0;
}

html.dark-theme .track-history-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .track-history-header .text-muted {
    color: #a0a0a0 !important;
}

html.dark-theme .playlist-link-container {
    border-top-color: rgba(255, 255, 255, 0.1);
    text-align: left;
}

.playlist-link-container {
    text-align: left;
}

html.dark-theme .playlist-full-link {
    color: #a0a0a0;
    background-color: rgba(160, 160, 160, 0.1);
}

html.dark-theme .playlist-full-link:hover {
    background-color: rgba(160, 160, 160, 0.2);
    color: #e0e0e0;
}

/* Таблица table table-hover table-bordered table-striped */
html.dark-theme .table {
    background-color: #333333;
    color: #e0e0e0;
    border: 1px solid #444444;
}
/* границы вертикальные  */
html.dark-theme .table.table-bordered th,
html.dark-theme .table.table-bordered td {
    border: 0px solid #444444;
}

html.dark-theme .table th {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-bottom: none;
}

html.dark-theme .table td {
    border-bottom: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme .table.table-striped tbody tr:nth-child(odd) {
    background-color: #333333;
}

html.dark-theme .table.table-striped tbody tr:nth-child(even) {
    background-color: #3a3a3a;
}

html.dark-theme .table.table-hover tbody tr:hover {
    background-color: #444444 !important;
}

/* Стили для специфичных элементов таблицы */
html.dark-theme .table .station-link,
html.dark-theme .table .country-link,
html.dark-theme .table .state-link {
    color: #e0e0e0;
}

html.dark-theme .table .station-link:hover,
html.dark-theme .table .country-link:hover,
html.dark-theme .table .state-link:hover {
    color: #ffffff;
    text-decoration: none;
}

html.dark-theme .table .genre-link {
    background-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .table .genre-link:hover {
    background-color: #555555;
    color: #e0e0e0;
    text-decoration: none;
}

html.dark-theme .table .badge-info {
    background-color: #555555;
    color: #e0e0e0;
}

html.dark-theme .table .badge-info a {
    color: #e0e0e0;
}

html.dark-theme .table .badge-info:hover {
    background-color: #666666;
}

/* Related Stations */
html.dark-theme .related-stations {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme .related-stations-title {
    color: #e0e0e0;
}

html.dark-theme .related-stations-table {
    background-color: #333333;
    border-collapse: collapse;
}

html.dark-theme .related-stations-table thead {
    border-bottom: 1px solid #444444;
}

html.dark-theme .related-stations-table tr:last-child td {
    border-bottom: none;
}

html.dark-theme .related-stations-table th {
    color: #e0e0e0;
    background-color: #3a3a3a;
    border-bottom: none;
}

html.dark-theme .related-stations-table td {
    color: #e0e0e0;
    border-bottom: 1px solid #444444;
}

html.dark-theme .related-stations-table .station-logo,
html.dark-theme .related-stations-table .no-logo {
    border: 1px solid #555555;
}

html.dark-theme .related-stations-table tr {
    background-color: #333333;
}

html.dark-theme .related-stations-table tr:hover {
    background-color: #3a3a3a !important;
}

html.dark-theme .related-stations-table .station-link {
    color: #e0e0e0;
}

html.dark-theme .related-stations-table .station-link:hover {
    color: #ffffff;
}

html.dark-theme .related-stations-table .genre-link {
    background-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .related-stations-table .genre-link:hover {
    background-color: #555555;
}

html.dark-theme .related-stations-table .badge-info {
    background-color: #555555;
    color: #e0e0e0;
}

html.dark-theme .related-stations-table .play-button {
    background: linear-gradient(135deg, #1f7a33, #145c24);
}

html.dark-theme .related-stations-table .play-button:hover {
    background: linear-gradient(135deg, #25994f, #1a6c30);
    box-shadow: 0 0 10px rgba(31, 122, 51, 0.6);
}

html.dark-theme .related-stations-table .play-button.playing {
    background: linear-gradient(135deg, #b02a37, #8c1d28);
}

/* Базовые стили для favorite-btn в тёмной теме */
html.dark-theme .related-stations-table .favorite-btn {
    background-color: #a0a0a0;
    color: #333333;
    border: none;
    transition: background-color 0.3s ease;
}

/* Убеждаемся, что иконка всегда тёмная */
html.dark-theme .related-stations-table .favorite-btn::before {
    color: #333333 !important;
}

/* Состояние "добавлено" */
html.dark-theme .related-stations-table .favorite-btn.added {
    background-color: #a0a0a0;
    color: #333333;
}

html.dark-theme .related-stations-table .favorite-btn.added::before {
    color: #333333;
}

/* Состояние "добавлено" */
html.dark-theme body .related-stations-table .favorite-btn.added {
    background-color: #a0a0a0 !important;
    color: #333333 !important;
}

/* Hover для "добавлено" */
html.dark-theme body .related-stations-table .favorite-btn.added:hover {
    background-color: #cccccc !important;
    color: #333333 !important;
}

/* Hover для обычного состояния */
html.dark-theme body .related-stations-table .favorite-btn:hover {
    background-color: #888888 !important;
    color: #333333 !important;
}

html.dark-theme body .related-stations-table .favorite-btn {
    background-color: #a0a0a0 !important;
    color: #333333 !important;
}

/* Комментарии */
html.dark-theme .comment-form-title {
    color: #e0e0e0;
}

html.dark-theme .comment-form-wrapper {
    background-color: #333333;
    border: 1px solid #444444;
    padding: 15px;
    border-radius: 10px;
}

html.dark-theme .comment-form input[type="text"],
html.dark-theme .comment-form input[type="email"],
html.dark-theme .comment-form textarea {
    background-color: #444444;
    border: 1px solid #555555;
    color: #e0e0e0;
}

html.dark-theme .comment-form input[type="text"]::placeholder,
html.dark-theme .comment-form input[type="email"]::placeholder,
html.dark-theme .comment-form textarea::placeholder {
    color: #a0a0a0;
}

html.dark-theme .rating-stars-input {
    background-color: transparent;
}

html.dark-theme .rating-stars-input i {
    color: #e0e0e0;
    background-color: transparent;
}

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

html.dark-theme .comments-card {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme .comment-header {
    color: #e0e0e0;
}

html.dark-theme .user-rating-stars {
    color: #e0e0e0;
}

html.dark-theme .comment-content p {
    color: #e0e0e0;
}

html.dark-theme .comment-content small {
    color: #a0a0a0;
}

/* Comment Form Container */
html.dark-theme #comment-form-container .comment-form-wrapper {
    background-color: #333333;
    border: 1px solid #444444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html.dark-theme .comment-input-group input[type="text"],
html.dark-theme .comment-input-group input[type="email"],
html.dark-theme .comment-input-group textarea {
    background-color: #444444;
    border: 1px solid #555555;
    color: #e0e0e0;
}

html.dark-theme .comment-input-group input[type="text"]::placeholder,
html.dark-theme .comment-input-group input[type="email"]::placeholder,
html.dark-theme .comment-input-group textarea::placeholder {
    color: #a0a0a0;
}

html.dark-theme .comment-input-group input[type="text"]:focus,
html.dark-theme .comment-input-group input[type="email"]:focus,
html.dark-theme .comment-input-group textarea:focus {
    border-color: #555555;
    box-shadow: 0 0 8px rgba(31, 122, 51, 0.3);
    background-color: #555555;
}

html.dark-theme .comment-rating-input {
    background-color: #3a3a3a;
    border: 1px solid #555555;
}

html.dark-theme .rating-label {
    color: #e0e0e0;
}

html.dark-theme .rating-description {
    color: #a0a0a0;
}

/* Описание рейтинга при наведении */
html.dark-theme .rating-description:not(:empty) {
    color: #e0e0e0;
}

html.dark-theme .rating-error {
    background-color: #8c1d28;
    color: #e0e0e0;
}

html.dark-theme .comment-form button[type="submit"] {
    background: linear-gradient(90deg, #1f7a33, #145c24);
}

html.dark-theme .comment-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #145c24, #1f7a33);
}

html.dark-theme #comment-message.text-danger {
    background-color: #8c1d28;
    color: #e0e0e0;
}

html.dark-theme #comment-message.text-success {
    background-color: #1f7a33;
    color: #e0e0e0;
}

/* Comments Section */
html.dark-theme .comments-section .comments-card {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

html.dark-theme .comments-header {
    border-bottom: 2px solid #555555;
}

html.dark-theme .comments-header h3 {
    color: #ffffff;
}

html.dark-theme .comment {
    background-color: #3a3a3a;
    border-bottom: 1px solid #555555;
}

html.dark-theme .comment:hover {
    background-color: #444444;
}

html.dark-theme .comment-header strong {
    color: #e0e0e0;
}

html.dark-theme .rating-value {
    color: #a0a0a0;
}

html.dark-theme .comment-actions .vote-up {
    background-color: #1f7a33;
}

html.dark-theme .comment-actions .vote-up:hover {
    background-color: #145c24;
}

html.dark-theme .comment-actions .vote-down {
    background-color: #b02a37;
}

html.dark-theme .comment-actions .vote-down:hover {
    background-color: #8c1d28;
}

html.dark-theme .comment-actions .vote-score {
    color: #e0e0e0;
}

html.dark-theme .station-votes .vote-score-station {
    color: #e0e0e0;
}

html.dark-theme .station-votes .vote-up {
    background-color: #1f7a33;
}

html.dark-theme .station-votes .vote-up:hover {
    background-color: #145c24;
}

html.dark-theme .station-votes .vote-down {
    background-color: #b02a37;
}

html.dark-theme .station-votes .vote-down:hover {
    background-color: #8c1d28;
}

/* Футер */
html.dark-theme .custom-footer {
    background-color: #222222;
    color: #e0e0e0;
    border-top: 1px solid #444444;
    margin-top: 15px;
}

html.dark-theme .footer-section h5 {
    color: #ffffff;
}

html.dark-theme .footer-section p {
    color: #a0a0a0;
}

html.dark-theme .footer-links a {
    color: #e0e0e0;
}

html.dark-theme .footer-links a:hover {
    color: #ffffff;
}

html.dark-theme .footer-bottom p {
    color: #a0a0a0;
}

html.dark-theme .scroll-top-btn {
    background-color: #0066cc;
}

html.dark-theme .scroll-top-btn:hover {
    background-color: #004d99;
}

html.dark-theme .footer-section p a {
    color: #e0e0e0;
    text-decoration: none;
}

html.dark-theme .footer-section p a:hover {
    color: #ffffff;
    text-decoration: none;
}

html.dark-theme .footer-section a {
    color: #e0e0e0;
}

html.dark-theme .footer-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

html.dark-theme .footer-brand span {
    color: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATIONS - ТЕМНАЯ ТЕМА
   ========================================================================== */

html.dark-theme .toast {
    background: #2d2d2d;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
                0 1px 4px rgba(0, 0, 0, 0.25);
}

html.dark-theme .toast::before {
    background: #4CAF50;
}

html.dark-theme .toast.add::before {
    background: #e91e63;
}

html.dark-theme .toast.remove::before {
    background: #757575;
}

html.dark-theme .toast.error::before {
    background: #f44336;
}

html.dark-theme .toast-title {
    color: #ffffff;
}

html.dark-theme .toast-link {
    color: #f48fb1;
}

html.dark-theme .toast-link:hover {
    opacity: 1;
}

html.dark-theme .toast-close {
    color: #777;
}

html.dark-theme .toast-close:hover {
    background: #444;
    color: #fff;
}

html.dark-theme .toast.add .toast-icon {
    color: #f48fb1;
}

html.dark-theme .toast.remove .toast-icon {
    color: #bdbdbd;
}

html.dark-theme .toast.success .toast-icon {
    color: #81c784;
}

html.dark-theme .toast.error .toast-icon {
    color: #e57373;
}

/* Переключатель темы */
html.dark-theme .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

html.dark-theme .theme-toggle input[type="checkbox"] {
    display: none;
}

html.dark-theme .theme-toggle label {
    cursor: pointer;
    color: #e0e0e0;
    font-size: 0.95rem;
    padding: 6px 10px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    transition: color 0.2s ease;
}

html.dark-theme .theme-toggle label i {
    font-size: 1.2rem;
    margin-left: 4px;
}

html.dark-theme .theme-toggle label:hover {
    color: #f1c40f;
}

html.dark-theme .theme-toggle input[type="checkbox"]:checked + label i::before {
    content: "\f185"; /* fa-sun */
}

/*top*/

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

/* Пагинация */
html.dark-theme #pagination-container {
    padding: 10px;
    border-radius: 8px;
}

html.dark-theme .pagination {
    background-color: transparent;
}

html.dark-theme .page-item .page-link {
    background-color: #444444;
    border: 1px solid #555555;
    color: #e0e0e0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-theme .page-item.active .page-link {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #333333;
}

html.dark-theme .pagination .page-item .page-link:hover {
    background-color: #777777;
    color: #333333;
    border-color: #777777;
}

html.dark-theme .page-item.disabled .page-link {
    background-color: #333333;
    border-color: #444444;
    color: #a0a0a0;
    pointer-events: none;
}

html.dark-theme .website-badge {
    background-color: #555555;
    color: #ffffff;
}

html.dark-theme .website-badge:hover {
    background-color: #666666;
}

html.dark-theme .welcome-back-popup,
[data-theme="dark"] .welcome-back-popup {
    background: #1f2a44;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
                0 2px 10px rgba(0, 0, 0, 0.2);
}

html.dark-theme .welcome-back-content,
[data-theme="dark"] .welcome-back-content {
    background: #1f2a44;
}

html.dark-theme .welcome-back-header,
[data-theme="dark"] .welcome-back-header {
    border-bottom: 1px solid #3a4660;
}

html.dark-theme .welcome-back-title,
[data-theme="dark"] .welcome-back-title {
    color: #e0e0e0;
}

html.dark-theme .welcome-back-station,
[data-theme="dark"] .welcome-back-station {
    background: #2a3555;
}

html.dark-theme .welcome-back-logo,
[data-theme="dark"] .welcome-back-logo {
    border: 2px solid #3a4660;
}

html.dark-theme .welcome-back-no-logo,
[data-theme="dark"] .welcome-back-no-logo {
    background: linear-gradient(135deg, #4b5efc 0%, #8b47d8 100%);
}

html.dark-theme .welcome-back-label,
[data-theme="dark"] .welcome-back-label {
    color: #a0a0a0;
}

html.dark-theme .welcome-back-name,
[data-theme="dark"] .welcome-back-name {
    color: #ffffff;
}

html.dark-theme .welcome-back-close,
[data-theme="dark"] .welcome-back-close {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

html.dark-theme .welcome-back-close:hover,
[data-theme="dark"] .welcome-back-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

html.dark-theme .welcome-back-play,
[data-theme="dark"] .welcome-back-play {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

html.dark-theme .welcome-back-play:hover,
[data-theme="dark"] .welcome-back-play:hover {
    background: linear-gradient(135deg, #218838, #1c6e2f);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Стили для мобильного меню */
@media (max-width: 767px) {
    html.dark-theme .navbar-menu {
        background-color: #222222;
    }

    html.dark-theme .nav-link {
        border-bottom: 1px solid #444444;
    }

    html.dark-theme .nav-link:hover {
        background-color: #333333;
    }

    html.dark-theme .theme-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-bottom: none !important;
    }

    html.dark-theme .related-stations-table tr {
        background-color: #333333 !important;
        border: 1px solid #444444;
    }

	/* Обычная таблица (table) */
    html.dark-theme .table {
        background: none;
        border: none;
        box-shadow: none;
    }

html.dark-theme .table tr {
        background-color: #333333 !important;
        border: 1px solid #444444;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

/* Убираем границы у ячеек в тёмной теме */
    html.dark-theme .table td {
        border: none !important;
    }

	html.dark-theme .table.table-hover tbody tr:hover {
        background-color: #333333 !important;
    }

/* Таблица связанных станций (related-stations-table) */
    html.dark-theme .related-stations-table {
        background: none;
        border: none;
    }

	html.dark-theme .related-stations-table tr {
        background-color: #333333 !important;
        border: 1px solid #444444;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        margin-bottom: 10px;
        padding: 10px;
    }

	html.dark-theme .related-stations-table td {
        border-bottom: none;
        color: #e0e0e0;
    }


    html.dark-theme .related-stations-table tr:hover {
        background-color: #333333 !important;
    }
	/* Ссылки жанров в обычной таблице */
    html.dark-theme .table td[data-label="Genres"] .genre-link {
        background-color: #444444;
        color: #e0e0e0;
        text-decoration: none;
    }

    html.dark-theme .table td[data-label="Genres"] .genre-link:hover {
        background-color: #555555;
        color: #ffffff;
        text-decoration: none;
    }

    /* Ссылки жанров в таблице связанных станций */
    html.dark-theme .related-stations-table td[data-label="Genres"] .genre-link {
        background-color: #444444;
        color: #e0e0e0;
        text-decoration: none;
    }

    html.dark-theme .related-stations-table td[data-label="Genres"] .genre-link:hover {
        background-color: #555555;
        color: #ffffff;
        text-decoration: none;
    }

	html.dark-theme .related-stations-table .favorite-btn {
        width: 80px !important;
        height: 80px !important;
        background-color: #a0a0a0;
        color: #333333;
    }

	html.dark-theme body .related-stations-table .favorite-btn {
        width: 80px !important;
        height: 80px !important;
        background-color: #a0a0a0 !important;
        color: #333333 !important;
    }

    html.dark-theme body .related-stations-table .favorite-btn.added {
        background-color: #a0a0a0 !important;
        color: #333333 !important;
    }

    html.dark-theme body .related-stations-table .favorite-btn.added:hover {
        background-color: #cccccc !important;
        color: #333333 !important;
    }

	/* States */
    html.dark-theme .countries-table td[data-label="State"] .country-link {
        color: #e0e0e0;
    }

    html.dark-theme .countries-table td[data-label="State"] .country-link:hover {
        color: #ffffff;
    }

    html.dark-theme .countries-table td[data-label="Stations"]::before {
        color: #e0e0e0;
    }

    html.dark-theme .countries-table td[data-label="Stations"] .badge {
        background-color: #555555;
    }

	/* Bitrates */
    html.dark-theme .table td[data-label="Bitrate"] .station-link {
        color: #e0e0e0;
    }

    html.dark-theme .table td[data-label="Bitrate"] .station-link:hover {
        color: #ffffff;
    }

    html.dark-theme .table td[data-label="Popular Genres"] .genre-link {
        background-color: #444444;
        color: #e0e0e0;
    }

    html.dark-theme .table td[data-label="Popular Genres"] .genre-link:hover {
        background-color: #555555;
        color: #ffffff;
    }

	html.dark-theme .table td[data-label="Popular Genres"]::before {
    display: none;
}

/* Countries */
html.dark-theme .countries-table td[data-label="Country"] .country-link {
    color: #e0e0e0;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

html.dark-theme .countries-table td[data-label="Country"] .country-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

html.dark-theme .countries-table td[data-label="Country"] .country-flag-large {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.dark-theme .countries-table td[data-label="Stations"]::before {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
}

html.dark-theme .countries-table td[data-label="Stations"] .badge {
    background-color: #555555;
}

html.dark-theme .countries-table td[data-label="Stations"] .badge a {
    color: #e0e0e0;
    text-decoration: none;
}

html.dark-theme .countries-table td[data-label="Stations"] .badge a:hover {
    color: #ffffff;
    text-decoration: underline;
}

	/* Genres */
    html.dark-theme .table td[data-label="Genre"] .genre-link {
        color: #e0e0e0;
    }

    html.dark-theme .table td[data-label="Genre"] .genre-link:hover {
        color: #ffffff;
    }

	html.dark-theme .table td[data-label="Genre"]::before {
    display: none;
}
}

/* ТЁМНАЯ ТЕМА для кнопок
html.dark-theme .top100-link {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

html.dark-theme .top100-link:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}


html.dark-theme .favorite-link {
    background: rgba(220, 20, 60, 0.12) !important;
    border: 1px solid rgba(220, 20, 60, 0.35) !important;
    border-radius: 8px !important;
}

html.dark-theme .favorite-link:hover {
    background: rgba(220, 20, 60, 0.22) !important;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.45) !important;
}


html.dark-theme .genres-link {
    background: rgba(34, 139, 34, 0.12) !important;
    border: 1px solid rgba(34, 139, 34, 0.35) !important;
    border-radius: 8px !important;
}

html.dark-theme .genres-link:hover {
    background: rgba(34, 139, 34, 0.22) !important;
    box-shadow: 0 4px 16px rgba(34, 139, 34, 0.45) !important;
}


html.dark-theme .new-link {
    background: rgba(138, 43, 226, 0.12) !important;
    border: 1px solid rgba(138, 43, 226, 0.35) !important;
    border-radius: 8px !important;
}

html.dark-theme .new-link:hover {
    background: rgba(138, 43, 226, 0.22) !important;
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.45) !important;
}


html.dark-theme .countries-link {
    background: rgba(30, 144, 255, 0.12) !important;
    border: 1px solid rgba(30, 144, 255, 0.35) !important;
    border-radius: 8px !important;
}

html.dark-theme .countries-link:hover {
    background: rgba(30, 144, 255, 0.22) !important;
    box-shadow: 0 4px 16px rgba(30, 144, 255, 0.45) !important;
}


*/

/* ТЁМНАЯ ТЕМА */
html.dark-theme #reset-timer .countdown {
    color: #34d399;
}

html.dark-theme #reset-timer .countdown.red {
    color: #f87171 !important;
}

/* ==========================================================================
   ТЁМНАЯ ТЕМА
   ========================================================================== */
html.dark-theme .yesterday-winner-row {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
html.dark-theme .yesterday-winner-row::before {
    background: linear-gradient(90deg, #718096, #a0aec0, #718096);
}
html.dark-theme .yesterday-winner-row .rank-first i {
    color: #a0aec0;
    filter: drop-shadow(0 0 8px rgba(160,174,192,.6));
}
html.dark-theme .yesterday-winner-row .text-muted {
    color: #a0aec0 !important;
}

html.dark-theme .platinum-crown {
    color: #a0aec0 !important;
    filter: drop-shadow(0 0 8px rgba(160, 174, 192, 0.6));
}

    html:not(.dark-theme) .yesterday-winner-row .platinum-crown {
        color: #a0aec0 !important;
        filter: drop-shadow(0 0 12px rgba(160, 174, 192, 0.8));
    }

@media (max-width: 767px) {
    html:not(.dark-theme) .yesterday-winner-row {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 2px solid #dee2e6 !important;
    }

    html:not(.dark-theme) .yesterday-winner-row::before {
        background: linear-gradient(90deg, #c0c0c0, #e5e4e2, #c0c0c0);
    }

    html:not(.dark-theme) .yesterday-winner-row .platinum-crown {
        color: #a0aec0 !important;
        filter: drop-shadow(0 0 12px rgba(160, 174, 192, 0.8));
    }

    html:not(.dark-theme) .yesterday-winner-row .station-link {
        color: #212529 !important;
    }

    html:not(.dark-theme) .yesterday-winner-row .text-muted {
        color: #6c757d !important;
    }

    html:not(.dark-theme) .yesterday-winner-row .country-link {
        color: #007bff !important;
    }

    html:not(.dark-theme) .yesterday-winner-row .genre-link {
        background-color: #e9ecef !important;
        color: #333 !important;
    }

    html:not(.dark-theme) .yesterday-winner-row .genre-link:hover {
        background-color: #dee2e6 !important;
    }

    html:not(.dark-theme) .yesterday-winner-row .badge-info {
        background-color: #6c757d !important;
    }

    html:not(.dark-theme) .yesterday-winner-row td::before {
        color: #333 !important;
    }
}

html.dark-theme .table .fa-thumbs-up { color: #34d399; }
html.dark-theme .table .fa-thumbs-down { color: #f87171; }
html.dark-theme .table td[style*="color: #28a745"] { color: #34d399 !important; }
html.dark-theme .table td[style*="color: #dc3545"] { color: #f87171 !important; }

/* ========================================= */
/* УМНЫЙ ПОИСК — ТЁМНАЯ ТЕМА                 */
/* ========================================= */

html.dark-theme #smart-search-results {
    background: #2d2d2d;
    border: 1px solid #444444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

html.dark-theme .search-category-header {
    background: #333333;
    border-bottom: 1px solid #444444;
    color: #a0a0a0;
    border-top: 1px solid #444444;
}

html.dark-theme .search-category-header:not(:first-child) {
    margin-top: 5px;
}

html.dark-theme .search-result-item {
    color: #e0e0e0;
    border-bottom: 1px solid #3a3a3a;
    transition: background-color 0.2s ease;
}

html.dark-theme .search-result-item:hover {
    background-color: #3a3a3a;
}

html.dark-theme .search-result-item:last-child {
    border-bottom: none;
}

html.dark-theme .search-logo {
    border: 1px solid #555555;
}

html.dark-theme .search-no-logo {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    color: #ffffff;
}

html.dark-theme .search-flag {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark-theme .search-icon {
    color: #a0a0a0;
}

html.dark-theme .search-name {
    color: #e0e0e0;
}

html.dark-theme .search-meta {
    color: #a0a0a0;
}

html.dark-theme .search-result-item mark {
    background-color: #7c2d12;
    color: #ffda6a;
    padding: 2px 4px;
    border-radius: 3px;
}

html.dark-theme .search-no-results,
html.dark-theme .search-loading {
    color: #a0a0a0;
}

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

/* Скроллбар */
html.dark-theme #smart-search-results::-webkit-scrollbar-track {
    background: #333333;
}

html.dark-theme #smart-search-results::-webkit-scrollbar-thumb {
    background: #555555;
}

html.dark-theme #smart-search-results::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Адаптивность */
@media (max-width: 576px) {
    html.dark-theme #smart-search-results {
        left: -10px;
        right: -10px;
    }
}

html.dark-theme .listeners-counter,
[data-theme="dark"] .listeners-counter {
    background: rgba(239, 68, 68, 0.15);
}

html.dark-theme .listeners-counter:hover,
[data-theme="dark"] .listeners-counter:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   LISTENING HISTORY STYLES - DARK THEME
   ========================================================================== */

/* History button in player bar */
html.dark-theme .pla-btn--history,
[data-theme="dark"] .pla-btn--history {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark-theme .pla-btn--history:focus,
[data-theme="dark"] .pla-btn--history:focus {
    outline: none;
}

html.dark-theme .pla-btn--history[aria-expanded="true"],
[data-theme="dark"] .pla-btn--history[aria-expanded="true"] {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
}

/* History popup */
html.dark-theme .history-popup,
[data-theme="dark"] .history-popup {
    background: rgba(20, 20, 20, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-theme .history-header,
[data-theme="dark"] .history-header {
    background: rgba(34, 197, 94, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .history-header span,
[data-theme="dark"] .history-header span {
    color: #e0e0e0;
}

html.dark-theme .history-clear-btn,
[data-theme="dark"] .history-clear-btn {
    color: rgba(239, 68, 68, 0.8);
}

html.dark-theme .history-clear-btn:hover,
[data-theme="dark"] .history-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

html.dark-theme .history-close-btn,
[data-theme="dark"] .history-close-btn {
    color: rgba(255, 255, 255, 0.6);
}

html.dark-theme .history-close-btn:hover,
[data-theme="dark"] .history-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

html.dark-theme .history-close-btn:focus,
html.dark-theme .history-clear-btn:focus,
[data-theme="dark"] .history-close-btn:focus,
[data-theme="dark"] .history-clear-btn:focus {
    outline: none;
}

html.dark-theme .history-list::-webkit-scrollbar-track,
[data-theme="dark"] .history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-theme .history-list::-webkit-scrollbar-thumb,
[data-theme="dark"] .history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

html.dark-theme .history-list::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

html.dark-theme .history-item,
[data-theme="dark"] .history-item {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-theme .history-item:hover,
[data-theme="dark"] .history-item:hover {
    background: rgba(34, 197, 94, 0.15);
}

html.dark-theme .history-station-logo,
[data-theme="dark"] .history-station-logo {
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .history-no-logo,
[data-theme="dark"] .history-no-logo {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

html.dark-theme .history-station-name,
[data-theme="dark"] .history-station-name {
    color: #e0e0e0;
}

html.dark-theme .history-empty,
[data-theme="dark"] .history-empty {
    color: rgba(255, 255, 255, 0.4);
}

/* History confirmation modal - Dark Theme */
html.dark-theme .history-confirm-modal,
[data-theme="dark"] .history-confirm-modal {
    background: rgba(0, 0, 0, 0.85);
}

html.dark-theme .history-confirm-content,
[data-theme="dark"] .history-confirm-content {
    background: #2d2d2d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

html.dark-theme .history-confirm-icon,
[data-theme="dark"] .history-confirm-icon {
    background: rgba(239, 68, 68, 0.15);
}

html.dark-theme .history-confirm-icon i,
[data-theme="dark"] .history-confirm-icon i {
    color: #ef4444;
}

html.dark-theme .history-confirm-content h3,
[data-theme="dark"] .history-confirm-content h3 {
    color: #e0e0e0;
}

html.dark-theme .history-confirm-content p,
[data-theme="dark"] .history-confirm-content p {
    color: #a0a0a0;
}

html.dark-theme .history-confirm-cancel,
[data-theme="dark"] .history-confirm-cancel {
    background: #3d3d3d;
    color: #e0e0e0;
}

html.dark-theme .history-confirm-cancel:hover,
[data-theme="dark"] .history-confirm-cancel:hover {
    background: #4d4d4d;
}

html.dark-theme .history-confirm-delete,
[data-theme="dark"] .history-confirm-delete {
    background: #ef4444;
    color: #fff;
}

html.dark-theme .history-confirm-delete:hover,
[data-theme="dark"] .history-confirm-delete:hover {
    background: #dc2626;
}

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

html.dark-theme .station-group-block {
    background-color: #333333;
    border: 1px solid #444444;
}

html.dark-theme .station-group-title {
    color: #e0e0e0;
}

html.dark-theme .station-group-title i {
    color: #5a9fd4;
}

html.dark-theme .station-group-card {
    background-color: #3a3a3a;
    border: 1px solid #444444;
}

html.dark-theme .station-group-card:hover {
    background-color: #444444;
}

html.dark-theme .station-group-logo img {
    border: 1px solid #555555;
}

html.dark-theme .station-group-name {
    color: #e0e0e0;
}

html.dark-theme .station-group-name:hover {
    color: #ffffff;
}

/* ==========================================================================
   ГЛОБАЛЬНЫЙ text-muted для тёмной темы
   ========================================================================== */

html.dark-theme .text-muted {
    color: #a0a0a0 !important;
}

/* Приглушить яркие иконки в стат-строках под заголовками */
html.dark-theme .text-center.text-muted i {
    opacity: 0.65;
}

/* Catalog filter tabs */
html.dark-theme .catalog-filter-tab {
    background: #333333;
    border-color: #444444;
    color: #ccc;
}

html.dark-theme .catalog-filter-tab:hover {
    background: #3a3a3a;
    border-color: #555555;
}

html.dark-theme .catalog-filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

html.dark-theme .catalog-filter-count {
    background: rgba(255, 255, 255, 0.1);
}

html.dark-theme .catalog-filter-tab.active .catalog-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Countries grid */
html.dark-theme .country-grid-item {
    border-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .country-grid-item:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

html.dark-theme #country-filter {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme #country-filter::placeholder {
    color: #a0a0a0;
}

html.dark-theme #country-filter:focus {
    border-color: #555555;
    box-shadow: 0 0 8px rgba(31, 122, 51, 0.3);
    background-color: #444444;
}

html.dark-theme .country-grid-item .badge,
html.dark-theme .genre-grid-item .badge {
    background-color: #555555;
    color: #ccc;
}

/* Genres grid */
html.dark-theme .genre-section-title {
    background: #333333;
    border-left-color: #5a9fd4;
}

html.dark-theme .genre-section-link:hover {
    background: #3a3a3a;
    border-left-color: #79b8e8;
}

html.dark-theme .genre-section-link .genre-section-name {
    color: #79b8e8;
}

html.dark-theme .genre-section-arrow {
    color: #5a9fd4;
}

html.dark-theme .genre-section-count {
    background: #555555;
    color: #ddd;
}

html.dark-theme .hub-subgenres-toggle {
    background: #333333;
    border-color: #444444;
    color: #ccc;
}

html.dark-theme .hub-subgenres-toggle:hover,
html.dark-theme .hub-subgenres-toggle.active {
    background: #3a3a3a;
}

html.dark-theme .hub-toggle-icon {
    color: #5a9fd4;
}

html.dark-theme .genre-grid-item {
    border-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .genre-grid-item:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

html.dark-theme #genre-filter {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme #genre-filter::placeholder {
    color: #a0a0a0;
}

html.dark-theme #genre-filter:focus {
    border-color: #555555;
    box-shadow: 0 0 8px rgba(31, 122, 51, 0.3);
    background-color: #444444;
}

html.dark-theme .search-clear-btn {
    color: #888;
}

html.dark-theme .search-clear-btn:hover {
    color: #dc3545;
}

/* States filter */
html.dark-theme #state-filter {
    background-color: #333333;
    border: 1px solid #444444;
    color: #e0e0e0;
}

html.dark-theme #state-filter::placeholder {
    color: #a0a0a0;
}

html.dark-theme #state-filter:focus {
    border-color: #555555;
    box-shadow: 0 0 8px rgba(31, 122, 51, 0.3);
    background-color: #444444;
}

/* Bitrates grid */
html.dark-theme .bitrate-grid-item {
    border-color: #444444;
    color: #e0e0e0;
}

html.dark-theme .bitrate-grid-item:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

html.dark-theme .bitrate-grid-item .badge {
    background-color: #555555;
    color: #ccc;
}

/* Rating Page Tabs */
html.dark-theme .rating-tabs {
    background: #2a2a2a;
}
html.dark-theme .rating-tab {
    background: #3a3a3a;
    color: #e0e0e0;
}
html.dark-theme .rating-tab:hover {
    background: #4a4a4a;
    color: #fff;
}
html.dark-theme .rating-tab.active {
    background: #4a90d9;
    color: #fff;
}

/* Auth */
html.dark-theme .auth-link {
    color: #aaa;
}
html.dark-theme .auth-modal {
    background: #2a2a2a;
}
html.dark-theme .auth-modal h3 {
    color: #e0e0e0;
}
html.dark-theme .auth-modal p {
    color: #aaa;
}
html.dark-theme .auth-modal-close {
    color: #777;
}
html.dark-theme .auth-modal-close:hover {
    color: #e0e0e0;
}
html.dark-theme .user-dropdown {
    background: #2a2a2a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
html.dark-theme .user-dropdown-header {
    color: #e0e0e0;
    border-bottom-color: #444;
}
html.dark-theme .user-dropdown-item {
    color: #ccc;
}
html.dark-theme .user-dropdown-item:hover {
    background: #333;
    color: #fff;
}
html.dark-theme .user-dropdown-danger:hover {
    background: #3a1a1a;
}
html.dark-theme .user-dropdown-delete {
    border-top-color: #444;
}
@media (max-width: 767px) {
    html.dark-theme .user-dropdown {
        box-shadow: none;
        background: #222222;
    }
    html.dark-theme .user-menu-toggle {
        border-bottom-color: #444444;
    }
    html.dark-theme .user-menu-name {
        color: #e0e0e0;
    }
}
html.dark-theme .auth-banner {
    background: linear-gradient(135deg, #1a2332, #1e2a3a);
    border-color: #2a3f5f;
}
html.dark-theme .auth-banner-text strong {
    color: #6ea8fe;
}
html.dark-theme .auth-banner-text span {
    color: #aaa;
}
html.dark-theme .btn-auth-google {
    background: #333;
    color: #e0e0e0;
    border-color: #555;
}
html.dark-theme .btn-auth-google:hover {
    background: #444;
    color: #6ea8fe;
}
