@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff5e57;
    /* --secondary-color: #2c7be5; */
    --background-dark: #12151d;
    --background-darker: #0b0d12;
    --background-lighter: #1a1f2e;
    --text-light: #ffffff;
    --text-muted: #a9b1d6;
    --border-color: #2a2f3b;
    --card-bg: rgba(26, 31, 46, 0.7);
    --hover-overlay: rgba(255, 94, 87, 0.1);
    --gradient-overlay: linear-gradient(0deg, rgba(11, 13, 18, 0.95) 0%, rgba(11, 13, 18, 0.5) 50%, rgba(11, 13, 18, 0) 100%);
    --rating-color: #ffcc00;
}
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].active {
    opacity: 1;
    transform: translateY(0);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    background-color: var(--background-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hide {
    display: none;
}

.logo span {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    list-style: none;
    margin-left: 2rem;
}

.main-nav li {
    margin-right: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--background-lighter);
    border-radius: 50px;
    overflow: hidden;
    margin-left: auto;
    padding: 0 0.5rem;
}

.search-container input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 250px;
}

.search-container button {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.search-container button:hover {
    color: var(--primary-color);
}

.user-actions {
    margin-left: 20px;
}

.logout-btn {
    background-color: var(--background-dark);
    color: var(--primary-color);

    font-weight: 600;
    font-size: 15px;
    margin-left: 2px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: var(--text-light);
}

.sign-in-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sign-in-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hero-section {
    height: 300px;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content {
    position: relative;
    padding: 2rem;
    max-width: 700px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.watch-now-btn,
.more-info-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}


.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--background-darker);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.auth-container h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-dark);
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--background-darker);
}

.auth-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: var(--text-light);
}

.error-message {
    color: var(--primary-color);
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.sign-in-btn {
    background: var(--primary-color);
    color: #fff;
}

.sign-up-btn {
    background: transparent;
    color: #fff;
    border: 1px solid var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; 
}

.user-menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.user-menu-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.user-menu-content a:hover {
    background-color: #2a2a2a;
}

.user-menu:hover .user-menu-content {
    display: block;
}

.watch-now-btn {
    background-color: var(--primary-color);
    color: #fff;
}

.watch-now-btn:hover {
    background-color: #ff4040;
    transform: translateY(-2px);
}

.more-info-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    backdrop-filter: blur(5px);
}

.more-info-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.quality {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.separator {
    font-weight: 700;
    color: var(--primary-color);
}

.filters-section {
    background-color: var(--background-darker);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-filters-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-filters-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toggle-filters-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.toggle-filters-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.filters-container {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.filters-container.hidden {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    overflow: hidden;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.filters-extended {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    background-color: var(--background-lighter);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--primary-color);
}

.filter-group select optgroup {
    background-color: var(--background-darker);
    color: var(--text-muted);
    font-weight: 600;
}

.filter-group select option {
    background-color: var(--background-lighter);
    color: var(--text-light);
    padding: 0.5rem;
}

.genres-filter {
    margin-bottom: 1.5rem;
}

.genres-filter > label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

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

.genre-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.genre-checkbox:hover {
    background-color: var(--background-lighter);
}

.genre-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background-color: var(--background-lighter);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.genre-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.genre-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.genre-checkbox span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.filters-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.apply-filters-btn,
.reset-filters-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.apply-filters-btn:hover {
    background-color: #ff4040;
    transform: translateY(-2px);
}

.reset-filters-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.reset-filters-btn:hover {
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .filters-actions {
        flex-direction: column;
    }

    .apply-filters-btn,
    .reset-filters-btn {
        width: 100%;
    }

    .filters-extended {
        grid-template-columns: 1fr;
    }

    .search-container input {
        width: 100%;
    }

    .anime-header {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
    }

    .profile-info, .file-upload {
        flex: none;
        width: 100%;
    }

    .anime-statuses {
        flex-direction: column;
    }

    .anime-statuses button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.anime-section {
    padding: 3rem 2rem;
}

.anime-section.profile {
    padding-top: 0;
} 

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.section-header-random {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header-random h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.view-all {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--primary-color);
}

.view-all i {
    font-size: 0.7rem;
}

.sub-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sub-category {
    background-color: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.sub-category:hover {
    background-color: var(--background-lighter);
    color: var(--text-light);
}

.sub-category.active {
    background-color: var(--background-lighter);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.anime-grid-random {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.anime-grid-random .anime-card {
    width: 300px;
}

.random-anime-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

#next-random-anime {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#next-random-anime:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.anime-grid-related {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.anime-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor:pointer;
}

.anime-card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.anime-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .anime-card-image img {
    transform: scale(1.05);
}

.anime-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.anime-card:hover .anime-card-overlay {
    opacity: 1;
}

.play-button {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.anime-card:hover .play-button {
    transform: scale(1);
    opacity: 1;
}

.anime-card-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rating-color);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.anime-card-rating i {
    font-size: 0.7rem;
}

.anime-card-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.anime-card-info {
    padding: 1rem;
}

.anime-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer {
    background-color: var(--background-darker);
    padding-top: 3rem;
    margin-top: 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem 3rem;
    border-bottom: 1px solid var(--border-color);
}


.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-column p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    background-color: var(--background-lighter);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}
select[multiple] {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

select[multiple] option {
    padding: 4px 8px;
}

select[multiple] option:checked {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.filter-group {
    margin-bottom: 15px;
}
.footer-column ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


@media (max-width: 1054px) {
    .main-nav{
        display: none;
    }
}
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
    .user-actions {
        margin-left: 10px;
    }
}

@media (max-width: 992px) {

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .anime-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .search-container input {
        width: 150px;
    }
}

@media (max-width: 450px){
    .search-container input {
        width: 140px;
    }
}

@media (max-width: 440px){
    .search-container input {
        width: 130px;
    }
}
@media (max-width: 430px){
    .search-container input {
        width: 120px;
    }
}
@media (max-width: 420px){
    .search-container input {
        width: 110px;
    }
}
@media (max-width: 410px){
    .search-container input {
        width: 100px;
    }
}
@media (max-width: 400px){
    .search-container input {
        width: 90px;
    }
}
@media (max-width: 390px){
    .search-container input {
        width: 80px;
    }
}
@media (max-width: 380px){
    .search-container input {
        width: 70px;
    }
}
@media (max-width: 370px){
    .search-container input {
        width: 60px;
    }
}


@media (max-width: 768px) {

    .hero-section {
        height: 200px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

.anime-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.profile {
    /* background-color: var(--background-darker); */
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 5%;
    padding: 2rem;

}
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding: 3rem 2rem;
}

.profile-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-info {
    padding: 0;
    margin: 0;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
}

.avatar-profile  {
    max-width: 400px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}

#changeAvatarButton {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#changeAvatarButton:hover {
    background-color: #ff4040;
}

.file-upload {
    padding: 0;
    margin: 0;
}

.anime-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.anime-list {
    text-align: right;
    padding: 2rem; /* Отступы */
    padding-bottom: 0;
}
.anime-statuses {
    list-style-type: none; /* Убирает точки */
    padding: 0; /* Убирает отступы */
    display: flex; /* Используем Flexbox для горизонтального расположения */
    gap: 1rem; /* Отступы между кнопками */
    flex-wrap: wrap;

}


.anime-statuses li {
    /* flex: 1 1 150px;  */
    margin-bottom: 0.5rem; /* Отступ между элементами списка */
}

.anime-statuses button {
    background-color: var(--background-lighter);
    color: white; /* Цвет текста */
    border: none; /* Убирает рамку */
    padding: 0.5rem 1rem; /* Отступы внутри кнопки */
    border-radius: 5px; /* Закругленные углы */
    cursor: pointer; /* Указатель при наведении */
    transition: background-color 0.3s; /* Плавный переход цвета */
    
}

.anime-statuses button:hover {
    background-color: var(--primary-color-dark); /* Цвет кнопки при наведении */
}

.anime-poster {
    position: relative;
    max-height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.anime-poster img {
    width: 100%;
    height: auto;
    display: block;
}

.anime-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    color: var(--rating-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anime-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.anime-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.original-title {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    color: var(--text-muted);
}

.info-item span {
    color: var(--text-light);
    font-weight: 600;
    margin-right: 0.5rem;
}

.info-item-full {
    grid-column: 1 / -1;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.tag-genre {
    background-color: var(--primary-color);
    color: white;
}

.tag-studio {
    background-color: var(--background-lighter);
    color: var(--text-light);
}

.anime-description,
.anime-screenshots,
.anime-stats,
.comments,
.player-container,
.related-anime,
.banner {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.comments h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--background-lighter);
    color: var(--text-light);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-form textarea::placeholder { /* Стили для плейсхолдера */
    color: var(--text-muted);
    opacity: 0.7;
}

.comment-form button {
    align-self: flex-end; /* Выравнивание кнопки по правому краю */
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.comment-form button:hover {
    background-color: #ff4040;
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}



.comments-list-text {
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.comment-item {
    background-color: var(--background-lighter);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    gap: 1rem;
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.comment-header-text {
    display: flex;
    flex-direction: column;
}

.comment-text {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.2rem;
    text-align: left;
}



@media (max-width: 768px) {
    .comment-form button {
        width: 100%;
        align-self: stretch;
    }
}

.player-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    background-color: var(--card-bg);
    border-color: var(--card-bg);
}

.anime-description h2,
.anime-screenshots h2,
.anime-stats h2,
.related-anime h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.anime-description p {
    color: var(--text-muted);
    line-height: 1.8;
}

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

.screenshots-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.screenshots-grid img:hover {
    transform: scale(1.05);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    gap: 0.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem;
    background-color: transparent;
}

.stat-name {
    min-width: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-bar-container {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    border-radius: 2px;
    background-color: var(--primary-color);
}

.stat-value {
    min-width: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-name-value {
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .stat-name, 
    .stat-value {
        font-size: 0.8rem;
    }
}

.stats-box:nth-child(2) .stat-name {
    width: 120px;
}

@media (max-width: 992px) {
    .anime-header { 
        grid-template-columns: 1fr;
    }
    
    .anime-poster {
        max-width: 300px;
        max-height: 600px;
        margin: 0 auto;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .anime-container {
        padding: 1rem;
    }
    .profile {
        padding: 1rem;
    }
    .hero-section {
        height: 150px;
    }
    
    .anime-info h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

.animeBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5em;
}

#animeBtn {
    width: 100%;
    height: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#animeBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.doc {
    padding: 3rem 0;
}

.doc-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--background-lighter);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.doc-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.doc-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
}

.doc-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-light);
}

.doc-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.doc-content ul,
.doc-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.doc-content .warning {
    background-color: var(--hover-overlay);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin: 2rem 0;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .player-container {
        background-color: var(--card-bg);
        border-radius: 10px;
        padding: 0.5rem;
        margin-bottom: 2rem;
    }

    .player-container iframe {
        width: 100%;
        aspect-ratio: 4/3;
        width: auto;
        
    }
    .doc-content {
        padding: 1.5rem;
    }

    .doc-content h1 {
        font-size: 2rem;
    }

    .doc-content h2 {
        font-size: 1.5rem;
    }

    .doc-content h3 {
        font-size: 1.2rem;
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    color: var(--text-muted);
}

.no-results h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-section,
.social-section,
.contact-section {
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
}

.social-link.telegram {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.social-link.youtube {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.social-link.tiktok {
    background-color: var(--background-darker);
    color: var(--text-light);
}

.social-description {
    background-color: var(--background-lighter);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.social-description ul {
    margin-top: 1rem;
}

.contact-section a {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-link {
        justify-content: center;
    }
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.anime-card-related {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 275px;
    height: 150px;
    display: flex;
    flex-direction: row;
}

.anime-card-related-image {
    width: 100px;
    height: auto;
}

.anime-card-related-image img {
    width: 100px;
    height: 100%;
    object-fit: cover;
}

.anime-card-related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-card-related:hover .anime-card-related-overlay {
    opacity: 1;
}

.anime-card-related-rating {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--rating-color);
    font-size: 0.7rem;
}

.anime-card-related-type {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: white;
    font-size: 0.7rem;
}

.anime-card-related-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.anime-card-related-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    margin-top: 0;
}

.anime-card-related-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: auto;
}

.anime-card-related-relation {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.status-info {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.2rem;
}
.inter{
    font-weight: bold;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-header {
    background-color: var(--background-lighter);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.7rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
}

.select-header:hover {
    border-color: var(--primary-color);
}

.select-header i {
    transition: transform 0.3s ease;
}

.select-header.active i {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-darker);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.select-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.checkbox-grid {
    padding: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkbox-item:hover {
    background-color: var(--hover-overlay);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--background-darker);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-item span {
    color: var(--text-light);
    font-size: 0.9rem;
    user-select: none;
}

@media (max-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

.checkbox-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.checkbox-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.group-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 0 8px;
}

.add-anime {
    position: relative;
}

#addAnimeBtn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #ff5e57;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
}

.anime-status {
    position: relative;
}

#animeStatus {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-anime-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 0;
    background-color: var(--background-lighter);
    border: 1px solid var(--background-darker);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.add-anime-menu ul {
    background-color: var(--background-lighter);
    list-style: none;
    padding: 10px;
    margin: 0;
}

.add-anime-menu li {
    background-color: var(--background-lighter);
    padding: 5px 10px;
}

.add-anime-menu li button {
    text-decoration: none;
    background-color: var(--background-lighter);
    color: var(--text-muted);
}

.add-anime-menu li:hover {
    background-color: var(--background-darker);
    
}
.add-anime-menu li:hover button {
    background-color: var(--background-darker); 
}

.reply-button {
    background-color: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: auto;
    align-self: flex-end;
}

.reply-button:hover {
    color: var(--text-light);
}

/* Стили для формы ответа */
.reply-form-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--background-lighter); /* Более темный фон для формы ответа */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.reply-form-container textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--background-lighter);
    color: var(--text-light);
    font-size: 0.9rem;
    min-height: 70px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.reply-form-container textarea:focus {
    border-color: var(--primary-color);
}

.reply-form-container .submit-reply-btn,
.reply-form-container .cancel-reply-btn {
    align-self: flex-end;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.reply-form-container .submit-reply-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.reply-form-container .submit-reply-btn:hover {
    background-color: #ff4040;
    transform: translateY(-2px);
}

.reply-form-container .cancel-reply-btn {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.reply-form-container .cancel-reply-btn:hover {
    color: var(--text-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* Adjust reply button position */
.comment-item .reply-button {
    margin-top: auto;
    align-self: flex-end;
}

.reply-comment {
    margin-left: 2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.reply-to-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.reply-to-username {
    color: var(--text-muted);
    font-weight: 600;
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: flex-end;
}

.like-button,
.dislike-button {
    background-color: var(--background-darker);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.like-button:hover {
    background-color: rgba(0, 128, 0, 0.2); /* Light green hover */
    border-color: #4CAF50;
}

.dislike-button:hover {
    background-color: rgba(255, 0, 0, 0.2); /* Light red hover */
    border-color: #f44336;
}

.reaction-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.reaction-icon.plus {
    color: #4CAF50; /* Green */
}

.reaction-icon.minus {
    color: #f44336; /* Red */
}

.like-count,
.dislike-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.like-button.active {
    background-color: rgba(0, 128, 0, 0.2); /* Light green hover */
    border-color: #4CAF50;
}

.dislike-button.active {
    background-color: rgba(255, 0, 0, 0.2); /* Light red hover */
    border-color: #f44336;
}

