/* Шапка */
.header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    background: var(--color1);
    border-bottom: 1px solid var(--color2);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-self: start;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.logo-container:hover {
    opacity: 0.7;
}

.logo-glitch {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--primary);
}

.logo-pulse {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--secondary);
    margin-left: 5px;
    animation: pulse 3s infinite;
}

/* Навигация */
.nav {
    display: flex;
    gap: 20px;
    justify-self: center;
    position: relative;
}

.nav-btn {
    color: var(--secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: clamp(12px, 2.5vw, 14px);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    padding: 8px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    height: 2px;
    width: 0%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-btn:hover::after {
    width: 100%;
}

/* Поиск */
.search-terminal {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 6px 15px;
}

.search-terminal input {
    background: transparent;
    border: none;
    color: var(--text-forms);
    outline: none;
    width: 180px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: clamp(12px, 2.5vw, 16px);
}
.fastsearch-area {
    display: flex;
    gap: 15px;
    max-width: 300px;
    color: var(--primary);
    overflow: hidden;
    padding: 15px 15px 0 15px;
}

.fastsearch-area .fs-image img {
    display: block;
    width: 60px;
    height: 84.8px;
    border-radius: 8px;
}

.fastsearch-area .fs-info {
    display: grid;
    align-content: center;
}

.fastsearch-area .fs-info h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fastsearch-area .fs-info .fs-title-gray {
    font-size: clamp(10px, 2.5vw, 12px);
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fastsearch-area .fs-info .fs-meta {
    display: flex;
    gap: 10px;
}

.fastsearch-area .fs-info .fs-meta a {
    font-size: clamp(10px, 2.5vw, 14px);
}

/* Блок пользователя */
.user-panel {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-self: end;
}

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

header .account_btn {
    color: var(--secondary);
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-transition: background-color 0.3s ease;
}
header .account_btn img {
    background-color: var(--color2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
header .account_btn img:hover {
    background-color: var(--color3);
}
header .account_btn img:active {
    background-color: #1a1f22;
}
header .account_btn i {
    font-size: clamp(10px, 2.5vw, 14px);
    margin-left: 6px;
    color: #a0a0a0;
}
header .account_btn_menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--color2);
    color: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    width: 260px;
    padding: 10px 0;
    z-index: 1000;
}
header .account_btn_menu a:hover {
    text-decoration: none;
}
header .account_btn_menu.active {
    display: flex;
}
header .account-button__menu-group {
    padding: 12px 15px;
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 600;
    color: var(--secondary);
    background-color: var(--color3);
    border-radius: 8px 8px 0 0;
}
header .user-card {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--secondary);
    transition: background-color 0.2s ease;
    -webkit-transition: background-color 0.2s ease;
}
header .user-card:hover {
    background-color: var(--color3);
}
header .user-card>div {
    display: grid;
}
header .user-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
header .user-card__title {
    font-size: clamp(11px, 2.5vw, 15px);
    font-weight: 500;
}
header .user-card__name {
    color: var(--secondary);
}
header .user-card__subtitle {
    font-size: clamp(10px, 2.5vw, 12px);
    color: #b0b0b0;
}
header .account-menu__group {
    padding: 5px 0;
}

header .account-menu__group:last-child {
    padding: 5px 0 0 0;
}

header .account-menu__group:not(:last-child) {
    border-bottom: 1px solid var(--color3);
}

header .account-menu__item {
    display: flex;
    align-items: center;
}

header .account-menu__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    color: var(--secondary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    -webkit-transition: background-color 0.2s ease;
}

header .account-menu__link:hover {
    background-color: var(--color3);
}

header .account-lastmenu {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

header .account-menu__link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    font-size: clamp(12px, 2.5vw, 16px);
    color: #a0a0a0;
}

header .account-menu__label {
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: 400;
}

/* Форма авторизации */
.auth-form {
    position: relative;
}

.auth-trigger {
    padding: 8px 20px;
    font-size: clamp(10px, 2.5vw, 14px);
}

.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-modal-content {
    background: var(--panel-bg);
    border: 1px solid var(--primary);
    border-radius: 8px;
    width: 350px;
    padding: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-dim);
    font-size: clamp(18px, 2.5vw, 24px);
    cursor: pointer;
    transition: color 0.3s;
}

.close-auth:hover {
    color: var(--primary);
}

.auth-title {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(16px, 2.5vw, 20px);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dim);
    font-size: clamp(10px, 2.5vw, 14px);
}

.input, .textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color1);
    border: 1px solid var(--color3);
    border-radius: 4px;
    color: var(--secondary);
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
    outline: none;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.navbtn.primary,
input.bbcodes {
    background: var(--primary);
    color: #000;
}

.navbtn.link {
    background: none;
    color: var(--secondary);
    border: none;
}

/* Секции */
.section {
    margin: 20px 0;
    padding: 0 20px;
}

.section-title {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: clamp(16px, 2.5vw, 22px);
}

.title-decor {
    color: var(--primary);
    margin-right: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary);
    font-size: clamp(10px, 2.5vw, 12px);
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.section-new {
    width: 100%;
}

/* Информационный блок */
.about-site {
    display: grid;
    gap: 20px;
    grid-column: 1 / -1;
    padding: 10px 0;
}

/* Сетка аниме */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    /* padding: 10px 0; */
}

/* Кнопка "смотреть все игры */
.grid-column-one {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 80%;
    justify-content: center;
    justify-self: center;
}

/* Карточка аниме */
.card {
    background: var(--color2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}
.season-section .card {
    background: var(--color1);
}

.card-edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card-poster {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: clamp(9px, 2.5vw, 11px);
    text-transform: uppercase;
}

.card-status.released {
    color: #00ff2a;
}

.card-status.announced {
    color: var(--secondary);
}

.card-hover-panel {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transition: bottom 0.3s ease;
}

.card:hover .card-hover-panel {
    bottom: 0;
}

.rating {
    display: flex;
    align-items: center;
    color: #ffcc00;
    font-size: clamp(10px, 2.5vw, 14px);
}

.rating-star {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin: -2px 5px 0 0;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: clamp(10px, 2.5vw, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.type {
    background: var(--primary);
    color: var(--color1);
}

.action-btn.bookmark {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-btn:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 2px 10px rgba(0, 247, 255, 0.3);
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: clamp(11px, 2.5vw, 15px);
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: clamp(10px, 2.5vw, 12px);
    color: var(--text-dim);
}

/* Футер */
.footer {
    background: var(--color1);
    border-top: 1px solid var(--color2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-output {
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--secondary);
    opacity: 0.7;
}

.console-line {
    margin-bottom: 5px;
}

.footer-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbtn.small {
    padding: 4px 8px;
    font-size: clamp(10px, 2.5vw, 12px);
}

/* Анимации */
@keyframes pulse {
    0% { opacity: 0.7; text-shadow: 0 0 5px var(--secondary); }
    50% { opacity: 1; text-shadow: 0 0 20px var(--secondary); }
    100% { opacity: 0.7; text-shadow: 0 0 5px var(--secondary); }
}

/* Сезоны */
.season-section {
    background: var(--color2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.season-filter {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.season-filter-btn {
    background: var(--color1);
    border: 1px solid var(--color3);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: clamp(10px, 2.5vw, 13px);
    transition: all 0.3s;
}

.season-filter-btn:hover {
    background: var(--primary);
    color: #000;
}

/* Блок обновлений */
.updates-section {
    position: relative;
    margin: 0;
}

.updates-nav {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.updates-nav-btn {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 5px 10px;
    cursor: pointer;
    position: relative;
    font-size: clamp(10px, 2.5vw, 14px);
}

.updates-nav-btn.active {
    color: var(--primary);
}

.updates-nav-btn.active:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.updates-day-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 523px;
    overflow-y: scroll;
}

.update-card {
    background: var(--color2);
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.update-card:hover {
    background: var(--color3);
}

.update-poster {
    width: 60px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.update-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-info {
    flex-grow: 1;
    display: grid;
    gap: 10px;
}

.update-title {
    font-size: clamp(11px, 2.5vw, 15px);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.update-meta {
    display: flex;
    gap: 10px;
    font-size: clamp(10px, 2.5vw, 12px);
    color: var(--text-dim);
}

.update-episode {
    color: var(--primary);
    font-weight: 500;
}

.update-time {
    font-size: clamp(9px, 2.5vw, 11px);
    color: #7a7aff;
}

/* Расписание */
.schedule-section {
    margin: 0;
}

.schedule-days {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.schedule-day {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 247, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.schedule-day.active,
.schedule-day:hover {
    background: var(--primary);
    color: #000;
}

.schedule-list {
    max-height: 465px;
    overflow-y: scroll;
}

.schedule-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    background: var(--color2);
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.schedule-item:hover {
    background: var(--color3);
}

.schedule-time {
    width: 60px;
    min-width: 60px;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(10px, 2.5vw, 14px);
}

.schedule-title {
    flex-grow: 1;
    color: white;
    font-size: clamp(10px, 2.5vw, 14px);
}

.schedule-episode {
    width: 60px;
    font-size: clamp(10px, 2.5vw, 13px);
    color: var(--secondary);
    text-align: right;
    white-space: nowrap;
    opacity: 0.7;
}

/* Фильтр */
.filters-new {
    width: 40%;
    height: max-content;
}

.filter-panel {
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-title {
    color: var(--primary);
    font-size: clamp(12px, 2.5vw, 16px);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tags label {
    background: var(--color1);
    border: 1px solid var(--color3);
    border-radius: 15px;
    padding: 5px 10px;
    font-size: clamp(10px, 2.5vw, 12px);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tags label:hover {
    background: var(--primary);
    color: var(--color1)
}

.filter-tags label input {
    display: none;
}

.filter-tags label input:checked + span {
    color: var(--primary);
}

.filter-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider {
    flex-grow: 1;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(0, 247, 255, 0.2);
    outline: none;
    border-radius: 2px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.filter-buttons {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.filter-apply, .filter-reset {
    align-self: flex-end;
    width: 100%;
}

.filter-reset {
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}