/* ======================= VOE STYLES ======================= */

/* Container utama */
#voe {
    padding: 15px 10px;
    max-width: 100%;
    background: #f8f8f8;
    border-radius: 12px;
    margin: 10px 0;
}

/* Header VOE */
.voe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px 15px 15px;
    border-bottom: 2px solid #e91e63;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.voe-header-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voe-header-info {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Grid Cards */
.voe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 5px;
}

/* Card individual */
.voe-card {
    background: white;
    border-radius: 12px;
    border:25px solid pink;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.voe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.15);
    border-color: #e91e63;
}

/* ========== PERUBAHAN: GAMBAR ASLI TANPA HITAM ========== */
.voe-card-image {
    position: relative;
    background: transparent; /* Hapus background hitam */
    width: 100%;
    display: block;
    overflow: hidden;
}

.voe-card-image img {
    width: 100%;
    height: auto; /* Asli sesuai aspect ratio */
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover; /* Atau gunakan 'fill' untuk full tanpa hitam */
}

/* Alternatif: jika mau full width tanpa crop */
/*
.voe-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
}
*/

.voe-card:hover .voe-card-image img {
    transform: scale(1.02);
}

/* Badges di atas thumbnail */
.voe-card-duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 2;
}

.voe-card-size {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(233, 30, 99, 0.9);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    z-index: 2;
}

/* Card Content */
.voe-card-content {
    padding: 10px 12px 8px;
    flex-grow: 1;
}

.voe-card-title {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.voe-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #888;
    margin-top: 6px;
    gap: 4px;
    flex-wrap: wrap;
}

/* Card Action - Tombol Nonton di pojok kanan bawah */
.voe-card-action {
    padding: 8px 12px 12px;
    display: flex;
    justify-content: flex-end;
}

.voe-btn-watch {
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.voe-btn-watch i {
    font-size: 25px;
}

.voe-btn-watch:hover {
    background: #c2185b;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.4);
}

/* Load More Button */
.voe-load-more {
    text-align: center;
    padding: 20px 0 10px;
}

.voe-btn-more {
    background: #e91e63;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.25);
}

.voe-btn-more:hover {
    background: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.35);
}

.voe-btn-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.voe-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.voe-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    animation: voeSpin 1s linear infinite;
}

@keyframes voeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.voe-loader-text {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Empty & Error States */
.voe-empty,
.voe-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.voe-empty i,
.voe-error i {
    color: #e91e63;
    margin-bottom: 12px;
}

.voe-empty p,
.voe-error p {
    margin: 8px 0 16px;
    font-size: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .voe-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .voe-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .voe-header-title {
        font-size: 1rem;
    }
    
    .voe-card-title {
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    .voe-btn-watch {
        font-size: 13px;
        padding: 4px 12px;
    }
    
    .voe-card-size {
        font-size: 0.55rem;
        padding: 1px 8px;
    }
    
    .voe-card-duration {
        font-size: 0.6rem;
        padding: 1px 8px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .voe-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1025px) {
    .voe-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}