/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Memberikan ruang di atas konten utama agar tidak tertutup header */
body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    padding-top: 80px; /* Ruang tambahan untuk header */
}

/* Header dengan posisi di pojok kiri atas */
header {
    position: absolute;
    top: 20px;    /* Jarak dari atas */
    left: 20px;   /* Jarak dari kiri */
    text-align: left;
    padding: 10px;
    z-index: 100;
}

/*Footer */
footer {
    text-align: center;
    margin-bottom: 20px;
}

/* Film Section */
.film-container {
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f9f9f9;
    text-align: center;
    width: 80%;
    max-width: 600px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.film-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 10px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    display: inline-block;
    width: 100%;
}

.play-button {
    display: inline-block;
    margin: 10px;
    padding: 10px 15px;
    background: #ff5722;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.play-button:hover {
    background: #e64a19;
}

.video-container {
    margin-top: 10px;
}

/* Anime Grid */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}

@media screen and (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 320px) {
    .anime-grid {
        grid-template-columns: 1fr;
    }
}

/* Anime Card */
.anime-card {
    background-color: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

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

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.card-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

/* Contoh CSS untuk input pencarian dan sort */
#search-anime, #sort-anime {
    padding: 10px;
    margin: 10px 5px 20px 0;
    width: 200px;
    border-radius: 4px;
    border: none;
    outline: none;
}

#search-anime:focus, #sort-anime:focus {
    border: 2px solid #6c63ff;
}

/* Episode List */
.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.episode-list a {
    background: #3a3a3a;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.episode-list a:hover {
    background: #007bff;
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 50px auto;
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-container h2 {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-size: 1.1em;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #888;
    background: #2a2a2a;
    color: #fff;
}

button {
    margin-top: 20px;
    padding: 10px;
    background: #007bff;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #0056b3;
}

#response-message {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* Sticky Ads */
.sticky-ads {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 8px;
    z-index: 1000;
    max-width: 90%;
}

.close-ads {
    position: absolute;
    top: -15px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .sticky-ads {
        width: 90%;
        bottom: 20px;
    }
    .close-ads {
        display: block;
    }
}
