body, h1, h2, p, input, button, div, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #151515; /* Changed from linear-gradient to solid black */
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
}

/* Container for genres */
.genre-container {
    width: 80%;
    margin: 50px auto;
    background-color: #d3d3d3; /* Gray color */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header for genres */
.genre-header {
    background-color: #a9a9a9; /* Darker gray */
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 8px;
}

/* Styles for genre list */
#genre-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}

/* Genre item styles */
.genre-item {
    font-size: 18px;
    margin-right: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

/* Hover effect */
.genre-item:hover {
    transform: scale(1.1);
}


.anime-info-box {
    position: absolute;
    background-color: white;
    border: 2px solid #e74c3c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none; /* Initially hidden */
    z-index: 1000; /* Make sure it's on top */
}

.anime-info-box h3 {
    margin: 0;
}

.anime-info {
    margin: 10px 0;
}

.anime-buttons {
    display: flex;
    justify-content: space-between;
}

.watch-now {
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.details-button {
    background-color: lightgray;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


  .share-container {
    background-color: #e74c3c; /* Red background */
    color: white; /* White text */
    border-radius: 40px; /* More rounded corners */
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure GIF and text stay spaced */
    max-width: 500px; /* Adjust width of the container */
    height: 80px; /* Make the container smaller in height */
    margin: 20px auto; /* Center the container */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow */
    position: relative;
}

/* The outer box that contains the circular GIF */
.share-gif-box {
    position: relative;
    width: 50px; /* Smaller outer box width */
    height: 50px; /* Smaller outer box height */
    background-color: #e74c3c; /* Red background color */
    border-radius: 50%; /* Make outer box perfectly circular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: 10px; /* Add some spacing from the text */
    box-shadow: 0 0 0 5px #e74c3c; /* Red ring around the GIF */
}

.share-gif-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e74c3c; /* Red overlay to match container */
    clip-path: circle(40% at center); /* Circular hole in the center */
    z-index: 1; /* Overlay on top of the GIF */
}

/* The GIF that is shown through the circular hole */
.share-gif {
    width: 40px; /* Size of the GIF */
    height: 40px;
    border-radius: 50%; /* Ensures the GIF is circular */
    object-fit: cover; /* Makes sure the GIF fits within the circle */
    z-index: 0; /* Stays behind the overlay */
}

/* Medium-sized text */
.share-text {
    font-size: 18px; /* Medium size for text */
    font-weight: bold;
    margin-left: 10px; /* Spacing between the GIF and text */
    white-space: nowrap; /* Prevent text from wrapping */
}


  .anime-slider-container {
    position: relative;
    width: 50%;
    max-width: 1000px; /* Controls how wide the slider will be */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px; /* Curved borders for the image */
}

.anime-slider-container img {
    width: 100%;
    height: 250px; /* Fix the height to a smaller value */
    object-fit: scale-down; /* Ensures the image is cropped to fit the container */
    border-radius: 15px; /* Curved corners for the image */
    transition: transform 0.5s ease;
}

.anime-slide {
    display: none;
    position: relative;
}

.anime-slide.active {
    display: block;
}

.anime-title {
    position: absolute;
    bottom: 50px; /* Adjust to fit buttons */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.watch-btn, .details-btn {
    padding: 10px 20px;
    background-color: #e74c3c; /* Button color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.watch-btn:hover, .details-btn:hover {
    background-color: #c0392b; /* Darker on hover */
}

.slider-btn {
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for buttons */
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

#prev-btn {
    left: 0;
    border-radius: 15px 0 0 15px; /* Matches the image's curved edges */
}

#next-btn {
    right: 0;
    border-radius: 0 15px 15px 0; /* Matches the image's curved edges */
}

.slider-dot-container {
    text-align: center;
    margin-top: 10px;
}

.slider-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #333;
}

.anime-slider-container:hover img {
    transform: scale(1.05); /* Slight zoom-in effect on hover */
}

/* Video background styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Ensure the video is behind the content */
    pointer-events: none; /* Prevent interaction with the video background */
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
}

header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns the content to the left */
    margin-bottom: 20px;
    position: relative;
}

.logo-container {
    position: fixed;
    top: 20px; /* Adjust this value to position the logo vertically */
    left: 20px; /* Adjust this value to position the logo horizontally */
    z-index: 1000;
}

.logo {
    width: 200px; /* Adjust the size of the logo */
    height: auto;
}

.content {
    margin-left: 250px; /* Adjust this value to ensure content does not overlap the logo */
    padding: 20px;
}


#search-bar {
    width: 100%;
    max-width: 600px;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

#search-bar:focus {
    background: rgba(255, 255, 255, 0.2);
}

#autocomplete-list {
    position: absolute;
    top: 50px;
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
}

#autocomplete-list div {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#autocomplete-list img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

#autocomplete-list div:hover {
    background: rgba(255, 255, 255, 0.2);
}

main {
    width: 100%;
    max-width: 1200px;
}

section {
    margin-bottom: 40px;
}

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

.anime-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

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

.anime-card p {
    padding: 10px;
    text-align: center;
}

.anime-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

#video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#video-player {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

#server-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

#server-list button, #quality-list button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

#server-list button:hover, #quality-list button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#prev-episode, #next-episode {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0 10px;
}

#prev-episode:hover, #next-episode:hover {
    background: rgba(255, 255, 255, 0.2);
}

.episode-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #549cb0;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.episode-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

.anime-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.anime-details img {
    width: 300px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

.anime-details h2 {
    margin-bottom: 10px;
}

.anime-details p {
    margin-bottom: 10px;
    max-width: 800px;
}

.anime-details .genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.anime-details .genre {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.dropdown-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#prev-episode {
    margin-right: auto;
}

#next-episode {
    margin-left: auto;
}

footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    font-size: 14px;
    background: #222;
    border-radius: 10px;
}