/* =============================================================
   PLAYER INLINE - AnimeLife
   Pemutar video yang berjalan DI HALAMAN INI (tanpa tab baru).
   ============================================================= */

.animelife-player {
    padding-bottom: 0 !important;
    height: auto !important;
    background: #0a0c14;
    border: 1px solid #232b38;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.alp-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.alp-video,
.alp-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.alp-video {
    object-fit: contain;
}

/* ---------- Loader ---------- */
.alp-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: rgba(10, 12, 20, 0.92);
    z-index: 5;
}

.alp-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(102, 126, 234, 0.25);
    border-top-color: #f093fb;
    border-radius: 50%;
    animation: alp-spin 0.9s linear infinite;
}

@keyframes alp-spin {
    to { transform: rotate(360deg); }
}

.alp-loader-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ---------- Bar status + server ---------- */
.alp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #141a24;
    border-top: 1px solid #232b38;
}

.alp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #a0aec0;
    font-size: 0.85rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    min-width: 0;
}

.alp-status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alp-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
}

.alp-dot.is-loading {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
    animation: alp-pulse 1.1s ease-in-out infinite;
}

.alp-dot.is-ok {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.alp-dot.is-warn {
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.alp-dot.is-error {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

@keyframes alp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.alp-servers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.alp-servers-title {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.2rem;
}

.alp-server {
    border: 1px solid #2b3646;
    background: #1a1f2b;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.alp-server:hover {
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-1px);
}

.alp-server.is-active {
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

@media (max-width: 576px) {
    .alp-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .alp-servers {
        width: 100%;
    }
}
