body {
    background: #121212;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#banner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    font-size: 2em;
    font-weight: bold;
    box-shadow: inset 0 -60px 60px -20px rgba(0,0,0,0.8);
}

section {
    margin: 20px;
}

h2 {
    margin-bottom: 10px;
}

h1 {
    color:rgb(217, 17, 224);
}

h1 #title {
    color: red
}

#search-section {
    display: none;
    margin: 20px;
}

/* Use grid layout for movie lists */
#movies-list, #tvshows-list, #anime-list, #search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Adjust image sizes in grid */
#movies-list img, #tvshows-list img, #anime-list img, #search-results img {
    height: auto;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Disable zoom effect on hover */
#movies-list img:hover, #tvshows-list img:hover, #anime-list img:hover, #search-results img:hover {
    transform: none;
}

/* Modal styles */
#modal, #search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-content, #search-modal-content {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-close, #search-close {
    cursor: pointer;
    font-size: 1.5em;
    color: #bbb;
    font-weight: bold;
}

#modal-body {
    display: flex;
    margin-top: 10px;
    gap: 20px;
    flex-wrap: wrap;
}

#modal-image {
    max-width: 200px;
    border-radius: 5px;
}

#modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#modal-rating {
    color: gold;
    margin: 5px 0;
    font-size: 1.2em;
}

#modal-overview {
    margin-top: 10px;
    color: #ccc;
    font-size: 0.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

#modal-video {
    margin-top: 15px;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: black;
    border: none;
}

/* Server selection */
#server {
    margin-top: 10px;
    padding: 5px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    width: 200px;
}

/* Search modal */
#search-input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: none;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Search input styling */
#search-input {
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 8px;
    border: none;
    width: 300px;
    max-width: 100%;
    background: #222;
    color: white;
    outline: none;
}

#search-results img {
    height: 150px;
    width: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
