/* =================================================================
   STYLE.CSS - GAYA GLOBAL UNTUK WEBSITE ANIME ZEROTWO
   ================================================================= */

/* 1. Gaya Umum & Tema Gelap
----------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #00b7e0;
    transition: color 0.2s ease-in-out;
}
a:hover {
    text-decoration: underline;
    color: #00d4ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    font-size: 28px;
    color: #00b7e0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 2. Header & Navigasi
----------------------------------------------------------------- */
header {
    background-color: #1e1e1e;
    padding: 15px 0;
    border-bottom: 2px solid #00b7e0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.logo span {
    color: #00b7e0;
}

nav a {
    margin: 0 15px;
    font-size: 18px;
    font-weight: 500;
}

/* 3. Komponen Kartu Anime (Reusable)
----------------------------------------------------------------- */
.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    min-height: 200px;
}

.anime-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.anime-card:hover {
     border-color: #00b7e0;
     transform: translateY(-5px);
     box-shadow: 0 4px 15px rgba(0, 183, 224, 0.2);
}
.anime-card img {
    width: 100%;
    aspect-ratio: 10 / 15;
    object-fit: cover;
    display: block;
    background-color: #2a2a2a;
}
.anime-card h3 {
    padding: 12px;
    margin: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    flex-grow: 1;
}

/* 4. Halaman Detail Anime & Player
----------------------------------------------------------------- */
.detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; margin-top: 20px; }
.left-column .poster { width: 100%; border-radius: 8px; }
.anime-info-box { background-color: #1e1e1e; padding: 15px; border-radius: 8px; margin-top: 20px; }
.info-item { display: flex; justify-content: space-between; border-bottom: 1px solid #333; padding: 8px 0; font-size: 14px; }
.info-item .label { font-weight: bold; color: #aaa; }
.info-item .value { text-align: right; }
.genres-container { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.genre-tag { background-color: #333; padding: 3px 8px; border-radius: 12px; font-size: 12px; }
.right-column h1, .right-column h2, .right-column h3 { margin-top: 0; color: #00b7e0; }
.right-column hr { border-color: #333; }
.player-wrapper { position: relative; padding-bottom: 56.25%; height: 0; background-color: #000; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.player-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
#quality-buttons-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.quality-button { background-color: #3a3a3a; border: 1px solid #555; color: #e0e0e0; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.quality-button.active, .quality-button:hover { background-color: #00b7e0; color: #121212; border-color: #00b7e0; font-weight: bold; }
#episode-list { max-height: 400px; overflow-y: auto; padding-right: 10px; }
#episode-list ul { list-style-type: none; padding: 0; }
#episode-list li { background-color: #2a2a2a; margin-bottom: 8px; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; }
#episode-list li:hover, #episode-list li.playing { background-color: #4caf50; color: white; font-weight: bold; }
#episode-list li div { padding: 12px 15px; }

/* 5. Halaman Daftar Anime (Filter)
----------------------------------------------------------------- */
.filter-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; background-color: #1e1e1e; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.filter-group { display: flex; flex-direction: column; }
.filter-group label { margin-bottom: 8px; font-weight: bold; color: #00b7e0; }
.filter-group select, .filter-group input { padding: 8px; border-radius: 4px; border: 1px solid #555; background-color: #2a2a2a; color: #e0e0e0; width: 100%; }
#genre-filter-list { grid-column: 1 / -1; }
.genre-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 150px; overflow-y: auto; background: #121212; padding: 10px; border-radius: 4px; }
.genre-item { display: flex; align-items: center; gap: 5px; }

/* 6. Halaman Jadwal
----------------------------------------------------------------- */
.day-buttons-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.day-button { padding: 10px 20px; font-size: 16px; cursor: pointer; border-radius: 20px; border: 1px solid #555; background-color: #2a2a2a; color: #e0e0e0; transition: all 0.2s ease; }
.day-button:hover, .day-button.active { background-color: #00b7e0; color: #121212; border-color: #00b7e0; font-weight: bold; }

/* 7. Halaman Admin
----------------------------------------------------------------- */
.admin-container { width: 100%; max-width: 600px; background-color: #2a2a2a; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; background-color: #1e1e1e; border: 1px solid #555; border-radius: 4px; color: #e0e0e0; font-size: 16px; box-sizing: border-box; }
textarea { resize: vertical; min-height: 100px; }
#status-message { margin-top: 20px; padding: 12px; border-radius: 4px; text-align: center; font-weight: bold; display: none; }
.status-success { background-color: #28a745; color: white; display: block; }
.status-error { background-color: #dc3545; color: white; display: block; }

/* 8. Responsif
----------------------------------------------------------------- */
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
    header .container { flex-direction: column; gap: 15px; }
}