body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding: 1rem;
    padding-bottom: 70px; /* Учитываем высоту навигации */
}

nav {
    background-color: #1e1e1e;
    display: flex;
    justify-content: space-around;
    padding: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.nav-btn:hover {
    color: #c22222;
    transform: scale(1.1);
}

.nav-btn.active {
    color: #c22222;
}

.search-container {
    display: flex;
    margin-bottom: 1rem;
}

#search-input {
    flex-grow: 1;
    border: none;
    background-color: #2c2c2c;


		color: #fff;
		padding: 16px;
		font-size: 16px;
		border: none;
		cursor: pointer;
		width: 100%;
		text-align: left;
		border-radius: 10px;

}

#search-submit {
    background-color: #c22222;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.movie-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-card img {
    width: 100%;
    height: auto;
}

.movie-card .info {
    padding: 0.5rem;
}

.movie-card h3 {
    margin: 0;
    font-size: 1rem;
}

.movie-card p {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #aaa;
}

.profile-card {
    background-color: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid #c22222;
}

.profile-info h2 {
    margin: 0;
    font-size: 24px;
}

.user-badges {
    margin-top: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}

.badge.admin {
    background-color: #c22222;
    color: white;
}

.badge.vip {
    background-color: #ffd700;
    color: black;
}

.badge.donater {
    background-color: #4caf50;
    color: white;
}

.user-id, .user-reg-date {
    margin: 5px 0;
    font-size: 14px;
    color: #888;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #888;
}

.profile-achievements, .profile-favorites, .profile-token {
    margin-top: 20px;
}

.achievements-list, .favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.achievement-item, .favorite-movie {
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.achievement-item i {
    margin-right: 5px;
    color: #ffd700;
}

.favorite-movie img {
    width: 50px;
    height: 75px;
    margin-right: 10px;
    border-radius: 4px;
}

.token-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.token-container input {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #2c2c2c;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.token-buttons {
    display: flex;
    justify-content: space-between;
}

.token-buttons button {
    flex: 1;
    padding: 10px;
    background-color: #c22222;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-buttons button:first-child {
    margin-left: 0;
}

.token-buttons button:last-child {
    margin-right: 0;
}

.token-buttons button:hover {
    background-color: #e62727;
}

.token-buttons i {
    font-size: 16px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 480px) {
    .profile-card {
        padding: 15px;
    }

    .token-container input {
        font-size: 12px;
    }

    .token-buttons button {
        padding: 8px;
    }

    .token-buttons i {
        font-size: 14px;
    }
}

.profile-section {
    margin-top: 1.5rem;
}

.profile-section h3 {
    color: #c22222;
    margin-bottom: 0.5rem;
}

.achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement {
    background-color: #2c2c2c;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.favorite-movies {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.favorite-movie {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
}

.favorite-movie img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.favorite-movie span {
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.long-press-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.long-press-menu button {
    background: none;
    border: none;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

.long-press-menu button:active,
.long-press-menu button.button-pressed {
    background-color: #2c2c2c;
}

.favorite-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.favorite-indicator.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
}

.long-press-menu button:not(:last-child) {
    border-bottom: 1px solid #2c2c2c;
}

.menu-header {
    color: #888;
    font-size: 12px;
    padding: 10px 15px;
    text-transform: uppercase;
}

.long-press-menu button:hover {
    background-color: #252525;
}

/* Цвета для индикаторов статуса */
.long-press-menu button[data-section="book"] .favorite-indicator.active { background-color: #FFD700; }
.long-press-menu button[data-section="like"] .favorite-indicator.active { background-color: #FF69B4; }
.long-press-menu button[data-section="look"] .favorite-indicator.active { background-color: #1E90FF; }
.long-press-menu button[data-section="wath"] .favorite-indicator.active { background-color: #32CD32; }
.long-press-menu button[data-section="viewed"] .favorite-indicator.active { background-color: #8A2BE2; }
.long-press-menu button[data-section="scheduled"] .favorite-indicator.active { background-color: #FF8C00; }
.long-press-menu button[data-section="continued"] .favorite-indicator.active { background-color: #00CED1; }
.long-press-menu button[data-section="thrown"] .favorite-indicator.active { background-color: #DC143C; }

.status-indicators {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    flex-direction: column;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 3px;
}

.status-indicator.book { background-color: #FFD700; }
.status-indicator.like { background-color: #FF69B4; }
.status-indicator.look { background-color: #1E90FF; }
.status-indicator.wath { background-color: #32CD32; }
.status-indicator.viewed { background-color: #8A2BE2; }
.status-indicator.scheduled { background-color: #FF8C00; }
.status-indicator.continued { background-color: #00CED1; }
.status-indicator.thrown { background-color: #DC143C; }

.bookmark-tabs {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    background-color: #1e1e1e;
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.bookmark-tab {
    background: none;
    border: none;
    color: #fff;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.bookmark-tab.active {
    border-bottom-color: #c22222;
    font-weight: bold;
}

.bookmark-count {
    font-size: 0.8em;
    color: #1e1e1e;
    margin-left: 5px;
    background-color: #fff;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-bookmarks-message {
    text-align: center;
    color: #888;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.bookmarks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    position: relative;
    min-height: 200px; /* Минимальная высота для контейнера закладок */
}

.bookmark-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.bookmark-item:hover {
    transform: scale(1.05);
}

.bookmark-item img {
    width: 100%;
    height: auto;
}

.bookmark-info {
    padding: 10px;
}

.bookmark-info h3 {
    margin: 0;
    font-size: 14px;
}

.bookmark-info p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}

.remove-bookmark {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.remove-bookmark:hover {
    background-color: rgba(194, 34, 34, 0.8);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.poster-wrapper {
    position: relative;
    overflow: hidden;
}

.tv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    /* z-index: 10; Убедимся, что значок поверх изображения */
}

.movie-card .poster-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

.movie-card .tv-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background-color: rgba(255, 0, 0, 0.8) !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    display: block !important;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.movie-card {
    position: relative;
}

.movie-card .poster-wrapper {
    position: relative;
    overflow: hidden;
}

.movie-card .tv-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.tv-badge {
    font-size: 10px;
    padding: 1px 4px;
}

.bookmark-menu-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.bookmark-menu-btn:hover {
    background-color: rgba(194, 34, 34, 0.8);
}

.bookmark-menu {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1000;
}

.bookmark-menu button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bookmark-menu button:hover {
    background-color: #2c2c2c;
}

.long-press-menu button[data-section="remove"] {
    color: #ff4444;
}

.bookmark-count {
    font-size: 0.8em;
    color: #888;
    margin-left: 5px;
}

.empty-bookmarks-message {
    text-align: center;
    color: #888;
    margin-top: 20px;
}

.dropdown-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}

.dropdown-button {
    background-color: #1e1e1e;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e1e1e;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #2c2c2c;
}

.dropdown-content a.active {
    background-color: #c22222;
}

.bookmark-count {
    float: right;
    background-color: white;
    color: #1e1e1e;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* Остальные стили остаются без изменений */

.long-press-menu.bookmark-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e1e1e;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.delete-button {
    background-color: #c22222;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #e62727;
}

.delete-button i {
    margin-right: 10px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Остальные стили остаются без изменений */

.support-project {
    margin-top: 20px;
    text-align: center;
}

.support-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.support-button:hover {
    background-color: #45a049;
}

.support-button i {
    margin-right: 5px;
}

.dropdown-button i {
    float: right;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown-button i.fa-chevron-up {
    transform: rotate(360deg);
}

.device-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.device-selection-modal.active {
    opacity: 1;
}

.modal-content {
    background-color: #1e1e1e;
    border-radius: 14px 14px 0 0;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.device-selection-modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.device-list {
    max-height: 300px;
    overflow-y: auto;
}

.device-list button {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #2c2c2c;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.device-list button:hover {
    background-color: #3a3a3a;
}

.close-modal {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    background-color: #c22222;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background-color: #e62727;
}
.export-section {
    margin: 15px 0;
    text-align: center;
}

.export-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.export-button:hover {
    background-color: #45a049;
}

.export-button i {
    font-size: 16px;
}
