
/* General Body and Layout Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f1f1f1;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #2c2c2c;
    border-bottom: 2px solid #555;
}

main {
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
}

/* Search Section Styling */
.search-section {
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

#searchInput {
    width: 80%;
    max-width: 600px;
    padding: 12px 20px;
    border: 2px solid #555;
    border-radius: 25px;
    background-color: #333;
    color: #f1f1f1;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #00b0ff;
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.5);
}

/* Results and Watchlist Containers */
.results-container, .watchlist-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 15px; /* Space between list items */
    margin-top: 20px;
    align-items: center; /* Center the list items */
}

/* Anime Card Styling */
.anime-card {
   background-color: #2c2c2c;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%; /* Make cards take more width */
    max-width: 800px; /* Max width for readability */
    display: flex; /* Use flexbox for horizontal layout */
    align-items: center; /* Vertically align items in the card */
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.anime-cover {
     width: 100px; /* Fixed width for the image */
    height: 140px; /* Fixed height for the image */
    object-fit: cover; /* Ensure image covers the area without distortion */
    border-radius: 5px; /* Slightly rounded corners for the image */
    margin-right: 15px; /* Space between image and text */
    flex-shrink: 0; /* Prevent image from shrinking */
}

.anime-details {
    flex-grow: 1; /* Allow details to take up remaining space */
    text-align: left; /* Align text to the left */
}

.anime-card h3 {
    font-size: 1.3em; /* Slightly larger title */
    margin: 0 0 5px; /* Adjust margin */
    white-space: normal; /* Allow title to wrap */
    overflow: visible; /* Don't hide overflow if title wraps */
    text-overflow: unset; /* Don't hide overflow if title wraps */
    color: #00b0ff; /* Highlight title color */
}

.anime-card p {
    font-size: 0.9em;
    color: #aaa;
    margin: 5px 0;
}

.anime-card .genres {
    font-size: 0.8em;
    color: #bbb;
    margin-bottom: 10px;
}

.anime-card .description-snippet {
    font-size: 0.85em;
    color: #ccc;
    margin-top: 10px;
    display: -webkit-box; /* For multiline ellipsis */
    -webkit-line-clamp: 3; /* Show up to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-button {
    background-color: #00b0ff;
    color: white;
    border: none;
    padding: 8px 12px; /* Slightly smaller button */
    margin-left: 15px; /* Space between text and button */
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em; /* Smaller font size */
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.add-button:hover {
    background-color: #0088cc;
}



.remove-button {
    background-color: #ff0055;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.remove-button:hover {
    background-color: #cc0044;
}