/* HEADER */
.sp-archive-header {
    text-align: center;
    padding: 30px 0 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 67, 67, 0.2);
}

.sp-archive-title {
    font-size: 2.5em;
    color: #e6e6e6;
    margin: 0 0 10px 0;
}

.sp-archive-description p {
    color: #999;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* GRID */
.sp-ps2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ITEM */
.sp-ps2-item {
    background: #1a1d23;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-ps2-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 67, 67, 0.15);
    border-color: rgba(255, 67, 67, 0.3);
}

.sp-ps2-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* THUMBNAIL */
.sp-ps2-thumbnail {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #0d0d0d;
}

.sp-ps2-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sp-ps2-item:hover .sp-ps2-thumbnail img {
    transform: scale(1.05);
}

/* BADGES */
.sp-ps2-badge-consola {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-ps2-badge-trailer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 67, 67, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 67, 67, 0.3);
}

/* OVERLAY */
.sp-ps2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.sp-ps2-item:hover .sp-ps2-overlay {
    opacity: 1;
}

.sp-ps2-overlay-logo {
    width: 50%;
    max-width: 100px;
}

.sp-ps2-overlay-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* INFO */
.sp-ps2-info {
    padding: 15px;
}

.sp-ps2-title {
    color: #e6e6e6;
    font-size: 1em;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-ps2-id {
    display: inline-block;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.sp-ps2-generos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.sp-ps2-genero {
    background: rgba(255, 67, 67, 0.15);
    color: #ff4343;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(255, 67, 67, 0.1);
}

.sp-ps2-peso {
    display: inline-block;
    font-size: 11px;
    color: #888;
}

/* PAGINACIÓN */
.sp-pagination {
    margin: 40px 0 20px;
}

.sp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    background: #1a1d23;
    color: #ccc;
    border-radius: 4px;
    border: 1px solid #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sp-pagination .page-numbers:hover {
    background: #ff4343;
    color: #fff;
    border-color: #ff4343;
}

.sp-pagination .page-numbers.current {
    background: #ff4343;
    color: #fff;
    border-color: #ff4343;
}

.sp-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

/* NO RESULTS */
.sp-no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.sp-no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.sp-no-results h2 {
    color: #e6e6e6;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.sp-no-results p {
    color: #999;
    margin-bottom: 20px;
}

.sp-no-results-button {
    display: inline-block;
    padding: 12px 30px;
    background: #ff4343;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.sp-no-results-button:hover {
    background: #e63a3a;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .sp-ps2-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sp-ps2-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sp-archive-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .sp-ps2-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .sp-ps2-title {
        font-size: 0.85em;
    }
    
    .sp-ps2-info {
        padding: 10px;
    }
}