/* Favorite Media Styles - Grid Layout */
.favorite-media-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.5rem;
    margin-top: 0.3rem;
    padding: 0.15rem 0;
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    gap: 8px;
}

.media-poster {
    width: 100%;
    aspect-ratio: 2/3;
    max-width: 120px;
    object-fit: cover;
    border-radius: 1px;
    border: 1px solid var(--color, #00ff00);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.media-link:hover .media-poster {
    border-color: var(--color, #00ff00);
    box-shadow: 0 6px 12px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

.media-info {
    text-align: center;
    font-size: 0.75em;
    line-height: 1.1;
    width: 100%;
}

.media-info i {
    margin-right: 4px;
    opacity: 0.7;
}

.media-type {
    display: block;
    opacity: 0.6;
    font-size: 0.8em;
    margin-top: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .favorite-media-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }

    .media-poster {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .favorite-media-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.8rem;
    }

    .media-poster {
        max-width: 80px;
    }

    .media-info {
        font-size: 0.8em;
    }
}