/* ==========================================
   ANIME STUDIO PRO - STILI GLASSMORPHISM
   ========================================== */

.asp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin: 2.5rem 0;
}

.asp-grid-editor .block-editor-inner-blocks > .block-editor-block-list__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.asp-card {
    position: relative;
    background: rgba(var(--pandora-card-bg-rgb, 10, 5, 20), var(--pandora-glass-opacity, 0.85)) !important;
    backdrop-filter: blur(var(--box-blur, 14px)) !important;
    -webkit-backdrop-filter: blur(var(--box-blur, 14px)) !important;
    border: 1px solid var(--pandora-glass-border-color, rgba(131, 0, 254, 0.3)) !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.asp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(131, 0, 254, 0.5);
    border-color: #f100ff !important;
}

.asp-empty {
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed rgba(131, 0, 254, 0.4);
    background: rgba(5, 2, 10, 0.6);
    color: #e6e0d4;
    box-shadow: none;
}

.asp-badge-serie {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #8300fe, #f100ff);
    color: #ffffff;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 0 12px rgba(241, 0, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.asp-img-wrapper {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #05020a;
}

.asp-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    margin: 0 !important;
}

.asp-card:hover .asp-img {
    transform: scale(1.04);
}

.asp-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asp-title {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.2;
}

.asp-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6e0d4 !important;
}

.asp-meta-item.full {
    grid-column: span 2;
}

.asp-desc-section {
    margin-top: auto;
    font-size: 0.9rem;
    color: #e6e0d4;
    line-height: 1.6;
}

.asp-desc-section p {
    margin: 0;
    color: #e6e0d4 !important;
}

@media(max-width: 640px) {
    .asp-grid-container { grid-template-columns: 1fr; }
}