/* anilist */
.anime-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 72px 32px;
}

.anime-header {
    text-align: center;
    margin-bottom: 32px;
}

.anime-header h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.anime-header p {
    color: #c4b5fd;
    font-size: 1.1rem;
}

.anime.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.anime-input,
.anime-select {
    background-color: #1e1b4b;
    color: #ffffff;
    border: 1px solid #4c1d95;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.95rem;
    outline: none;
}

.anime-input {
    min-width: 220px;
}

.anime-input:focus,
.anime-select:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.anime-button {
    background-color: #a78bfa;
    color: #0f0c29;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.anime-button:hover {
    background-color: #8b5cf6;
    transform: translateY(-1px);
}

.anime-count-text {
    text-align: center;
    color: #d1d5db;
    margin-bottom: 28px;
}

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

.anime-card {
    display: flex;
    flex-direction: column;
    background-color: #15122f;
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-radius: 16px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.anime-card:hover {
    transform: translateY(-6px);
    border-color: #a78bfa;
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.25);
}

.anime-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: #0f0c29;
    overflow: hidden;
}

.anime-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

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

.anime-card-body {
    padding: 16px;
}

.anime-title {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0 0 12px 0;
    min-height: 44px;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #c4b5fd;
    font-size: 0.85rem;
    margin-top: 6px;
}

.anime-error {
    grid-column: 1 / -1;
    text-align: center;
    color: #fca5a5;
    font-weight: 600;
}
