/* KUNCI UTAMA: Agar semua form elemen sejajar */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    padding: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

html, body {
    min-height: 100%;
    overflow-x: hidden;
}

h1 {
    text-align: center;
}

.box {
    background: #222;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* FORM STYLING: Menyamakan panjang semua input */
input, select, textarea {
    width: 100% !important; 
    padding: 12px;
    margin: 8px 0;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    display: block;
    font-size: 14px;
}

select[multiple] {
    height: auto;
    min-height: 120px;
}

textarea {
    height: 80px;
    resize: vertical;
}

button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-top: 5px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.btn-main { background: #00ffcc; color: #000; }
.btn-main:hover { background: #00ccaa; }
.btn-link { background: #3498db; color: #fff; }
.btn-close { background: rgba(0, 255, 0, 1); color: #000; }
.btn-delete { background: #ff3b3b; color: #fff; }

ul {
    list-style: none;
    padding: 0;
}

li {
    background: rgba(0, 0, 0, 0.1);
    margin: 8px 0;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
     text-shadow: 0px 0px 3px rgba(255, 0, 0, 1);
}

li:hover {
    background: rgba(50, 50, 50, 1);
    animation: pulse 1.5s infinite;
}

/* A-Z BAR */
.az-bar {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    margin-bottom: 10px;
}

.az-bar::-webkit-scrollbar { height: 4px; }
.az-bar::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }

.az-bar span {
    min-width: 32px;
    text-align: center;
    padding: 6px;
    background: #333;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.az-bar span.active {
    background: #00ffcc;
    color: #000;
    animation: pulse 1.5s infinite;
}

/* POPUP */
.popup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #222;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    border: 1px solid #444;
    animation: pulse 1.5s infinite;
}

.img-box img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.btn-row button {
    flex: 1;
    min-width: 80px;
}

.genre, .list-genre {
    font-size: 12px;
    color: #00ffcc;
    margin-top: 5px;
}

.synopsis-box {
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    color: #ccc;
    margin-top: 15px;
    text-align: left;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 5px;
}

/* LIST ITEM */
.list-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.list-item img {
    width: 60px;
    height: 85px;
    object-fit: cover;
    border-radius: 6px;
}

.list-info {
    flex: 1;
}

.list-title {
    font-size: 16px;
    font-weight: bold;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.page-btn {
    padding: 8px 12px;
    background: transparan;
    border-radius: 10px 30px;
    cursor: pointer;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

.active-page {
    background: #00ffcc;
    color: #000;
}
.page-btn {
    min-width: 35px;
    text-align: center;
}

.page-btn:hover {
    background: #00ffcc;
    color: #000;
}
@keyframes pulse {
    0% { box-shadow: 0 0 5px rgba(0,255,200,0.5); }
    50% { box-shadow: 0 0 15px rgba(0,255,200,1); }
    100% { box-shadow: 0 0 5px rgba(0,255,200,0.5); }
}
