/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #333;
    min-height: 100vh;
}

/* Стили для переключателя темы */
.theme-switch-container {
    position: fixed;
    top: 80px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Стили для хедера */
.header {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #333;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 2px solid #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
    gap: 15px;
}

.header a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    margin-left: 0;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.nav-links a:hover {
    background: linear-gradient(145deg, #007bff20, #007bff40);
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

/* Контейнер для центрирования содержимого */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 20px;
    border: 2px solid #007bff;
    backdrop-filter: blur(10px);
}

/* Стилизованные заголовки */
h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #007bff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Стилизованная кнопка-ссылка */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1em;
    color: #fff;
    background: linear-gradient(135deg, #007bff, #0056b3);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    margin: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Список персонажей */
.characters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Карточка персонажа */
.character-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    border-radius: 16px;
    overflow: hidden;
    width: 220px;
    min-height: 380px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-card:hover::before {
    opacity: 1;
}

.character-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.25);
    border-color: #0056b3;
}

.character-card img.avatar {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    border: 3px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.character-card img.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
}

.character-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.character-card h2 {
    font-size: 1.3em;
    margin: 15px 0;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 123, 255, 0.1);
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    min-height: 2.6em;
    flex-wrap: wrap;
    padding: 0 5px;
}

.character-card h2 img.gender-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.character-card p {
    font-size: 0.9em;
    color: #6c757d;
    margin: 8px 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.character-dates {
    font-size: 0.8em !important;
    color: #888 !important;
}

.name-link,
.author-link{
    text-decoration: none; /* Убирает подчеркивание */
    color: inherit;        /* Наследует цвет родительского элемента */
    cursor: pointer;       /* При этом остаётся курсор-ссылка */
}

.token-count {
    font-weight: bold;
    color: #007BFF !important;
}

.message-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.message-count img {
    width: 20px;
    height: 20px;
}

.message-count .count {
    font-weight: 600;
    color: #495057;
}

/* Стили для иконки избранного чтобы избежать конфликтов с лайками */
.favorite-icon {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    margin-top: 5px;
    cursor: pointer;
    transition: transform 0.2s ease;
    vertical-align: middle;
    position: relative;
    z-index: 10;
}

.favorite-icon:hover {
    transform: scale(1.1);
}

.delete-button {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.delete-button:hover {
    background: linear-gradient(135deg, #ff4444, #e63946);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

/* Стили формы фильтрации */
.filter-form {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Верхний ряд: переключатели + кнопка */
.filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Блок переключателей, растянутый до уровня кнопок */
.search-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.search-toggle label {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.search-toggle label:hover {
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.search-toggle input[type="radio"]:checked + label {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border-color: #0056b3;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.search-toggle input[type="radio"] {
    margin-right: 5px;
}

/* Нижний ряд: поле поиска, селект и чекбокс */
.filter-bottom {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-bottom input[type="text"],
.filter-bottom select {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    box-sizing: border-box;
}

.filter-bottom input[type="text"]:focus,
.filter-bottom select:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
transform: translateY(-1px);
}
.favorites-label {
display: flex;
align-items: center;
margin-left: 10px;
padding: 8px 16px;
background: linear-gradient(145deg, #ffffff, #f8f9fa);
border: 2px solid #e9ecef;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
color: #495057;
box-sizing: border-box;
flex-shrink: 0;
white-space: nowrap;
}

.favorites-label:hover {
border-color: #007bff;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.sort-label {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 16px;
background: linear-gradient(145deg, #ffffff, #f8f9fa);
border: 2px solid #e9ecef;
border-radius: 8px;
font-weight: 500;
color: #495057;
box-sizing: border-box;
flex-shrink: 0;
white-space: nowrap;
}

.sort-label select {
margin-left: 8px;
min-width: 150px;
max-width: 200px;
}

.current-filter {
display: inline-block;
margin: 10px 0;
padding: 8px 16px;
background: linear-gradient(145deg, #f8f9fa, #e9ecef);
border-radius: 8px;
font-size: 14px;
border: 1px solid #dee2e6;
color: #495057;
font-weight: 500;
    padding: 8px 16px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
}

.reset-filter {
    margin-left: 10px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.reset-filter:hover {
    color: #c82333;
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.05);
}

.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1 1 calc(25% - 12px);
    min-width: 140px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    font-weight: 500;
    color: #495057;
}

.tag-checkbox:hover {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.tag-checkbox input[type="checkbox"]:checked + label {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border-color: #0056b3;
}

.tag-checkbox:hover {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.tag-checkbox img {
    width: 24px;
    height: 24px;
}

.tag-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

.show-more-tags {
    display: inline-flex;
    align-items: center;
}

.show-more-btn {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #495057;
}

.show-more-btn:hover {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.show-more-btn.active {
    background: #007BFF;
    color: white;
    border-color: #0056b3;
}

.additional-tags {
    width: 100%;
    margin-top: 15px;
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 15px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.additional-tags .tag-checkbox {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1 1 auto;
    min-width: 160px;
    max-width: none;
    box-sizing: border-box;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    font-size: 16px;
    gap: 8px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 4px;
    border: 2px solid #007bff;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.pagination a:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.pagination .current {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-color: #0056b3;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

/* Сообщения и дополнительные кнопки */
.message-count {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.message-count img {
    cursor: pointer;
    margin-right: 5px;
}

.count {
    font-size: 14px;
    color: #333;
}

.backup-button {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.backup-button:hover {
    background: linear-gradient(135deg, #218838, #1e5e3e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.scroll-to-top:hover {
    background-color: #007bff;
}

/* Стили для footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: bold;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #666;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }
}


/* Медиазапросы для адаптивности */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .header a {
        margin-left: 0;
        margin-top: 10px;
    }
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 10px;
    }
    .characters-list {
        flex-direction: column;
        align-items: center;
    }
    .character-card {
        width: 90%;
        min-height: auto;
        padding: 15px;
    }
    .character-card img.avatar {
        max-height: 280px;
    }
    .character-card h2 {
        font-size: 1.1em;
        min-height: auto;
        padding: 0 10px;
        line-height: 1.4;
    }
    .filter-form {
        padding: 10px;
    }
    .filter-top {
        flex-direction: column;
        gap: 10px;
    }
    .filter-top .btn {
        width: 100%;
        margin-top: 10px;
    }
    .search-toggle {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .filter-bottom {
        flex-direction: column;
    }
    .filter-bottom input[type="text"] {
        width: 100%;
    }
    .tag-filter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .tag-checkbox {
        font-size: 12px;
        padding: 8px 10px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-height: auto;
    }
    .tag-checkbox img {
        width: 20px;
        height: 20px;
    }
    .additional-tags {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        padding: 10px;
        overflow: hidden;
        box-sizing: border-box;
    }
    .additional-tags .tag-checkbox {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 130px;
        max-width: none;
        box-sizing: border-box;
    }
    .favorites-label {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    .current-filter {
        text-align: center;
        width: 100%;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .character-card {
        width: 95%;
        min-height: auto;
        padding: 12px;
    }
    .character-card img.avatar {
        max-height: 280px;
    }
    .character-card h2 {
        font-size: 1em;
        min-height: auto;
        padding: 0 8px;
        line-height: 1.3;
    }
    .character-info {
        padding: 0 5px;
    }
}

@media (min-width: 1200px) {
    .character-card img.avatar {
        max-height: 250px;
    }
}

/* Креативные стили для лайков в карточках персонажей */
.likes-badge {
display: inline-flex;
align-items: center;
gap: 4px;
margin: 0 8px;
padding: 6px 12px;
background: linear-gradient(145deg, #f8f9fa, #e9ecef);
border: 1px solid #dee2e6;
border-radius: 12px;
font-size: 0.85em;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
}

.likes-badge:focus-visible {
outline: 3px solid #007BFF;
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

.likes-badge:hover {
background: linear-gradient(145deg, #e9ecef, #dee2e6);
border-color: #adb5bd;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.likes-badge.liked {
background: linear-gradient(145deg, #ff6b6b, #ff5252);
border-color: #ff3838;
color: white;
box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.likes-badge.liked:hover {
background: linear-gradient(145deg, #ff5252, #ff3838);
border-color: #ff1744;
box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.like-heart-icon {
font-size: 16px;
transition: transform 0.2s ease;
animation: heartbeat 1.5s ease-in-out infinite;
}

.likes-badge:hover .like-heart-icon {
transform: scale(1.2);
}

.likes-badge.liked .like-heart-icon {
animation: heartbeat 0.8s ease-in-out infinite;
color: #ff1744;
}

.likes-count {
font-weight: 600;
font-size: 0.9em;
min-width: 12px;
text-align: center;
color: inherit;
}

.dislikes-badge {
display: inline-flex;
align-items: center;
gap: 4px;
margin: 0 8px;
padding: 6px 12px;
background: linear-gradient(145deg, #f8f9fa, #e9ecef);
border: 1px solid #dee2e6;
border-radius: 12px;
font-size: 0.85em;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
}

.dislikes-badge:focus-visible {
outline: 3px solid #007BFF;
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
}

.dislikes-badge:hover {
background: linear-gradient(145deg, #e9ecef, #dee2e6);
border-color: #adb5bd;
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dislikes-badge.disliked {
background: linear-gradient(145deg, #6c757d, #495057);
border-color: #343a40;
color: white;
box-shadow: 0 2px 8px rgba(108, 117, 125, 0.35);
}

.dislikes-badge.disliked:hover {
background: linear-gradient(145deg, #495057, #343a40);
border-color: #212529;
box-shadow: 0 4px 12px rgba(52, 58, 64, 0.45);
}

.dislike-thumb-icon {
font-size: 16px;
transition: transform 0.2s ease;
}

.dislikes-badge:hover .dislike-thumb-icon {
transform: scale(1.2);
}

.dislikes-count {
font-weight: 600;
font-size: 0.9em;
min-width: 12px;
text-align: center;
color: inherit;
}

/* Анимация сердцебиения для лайков */
@keyframes heartbeat {
0% { transform: scale(1); }
14% { transform: scale(1.1); }
28% { transform: scale(1); }
42% { transform: scale(1.1); }
70% { transform: scale(1); }
}

/* Адаптивность для лайков */
@media (max-width: 768px) {
.likes-badge {
margin: 0 4px;
padding: 1px 6px;
font-size: 0.8em;
}

.like-heart-icon {
font-size: 14px;
}

.likes-count {
font-size: 0.8em;
}
}

/* Стили для уведомлений */
.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 15px 20px;
border-radius: 8px;
color: white;
font-weight: 500;
z-index: 10000;
opacity: 0;
transform: translateX(100%);
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
max-width: 300px;
word-wrap: break-word;
}

.notification.show {
opacity: 1;
transform: translateX(0);
}

.notification.like-success {
background: linear-gradient(145deg, #ff6b6b, #ff5252);
border-left: 4px solid #ff3838;
}

.notification.like-removed {
background: linear-gradient(145deg, #6c757d, #5a6268);
border-left: 4px solid #495057;
}

.notification.dislike-success {
background: linear-gradient(145deg, #6c757d, #495057);
border-left: 4px solid #343a40;
}

.notification.dislike-removed {
background: linear-gradient(145deg, #6c757d, #5a6268);
border-left: 4px solid #495057;
}

.notification.favorite-success {
background: linear-gradient(145deg, #ffc107, #ffb300);
border-left: 4px solid #ff9800;
color: #333;
}

.notification.favorite-removed {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    border-left: 4px solid #495057;
}

.notification.error {
    background: linear-gradient(145deg, #dc3545, #c82333);
    border-left: 4px solid #bd2130;
}

.notification-icon {
    margin-right: 8px;
    font-size: 18px;
}

.notification-close {
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Анимация для уведомлений */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .notification-icon {
        font-size: 16px;
        margin-right: 6px;
    }
    
    .notification-close {
        margin-left: 8px;
    }
}