.favoritos-menu-container {
    position: relative;
    margin-right: 15px;
}

.favoritos-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.favoritos-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.favoritos-btn .heart-icon {
    stroke: #2f00ff;
    filter: drop-shadow(0 0 8px rgba(25, 0, 255, 0.733));
}

.favoritos-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.favoritos-count.hidden {
    display: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.favoritos-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 380px;
    max-height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.favoritos-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.favoritos-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.favoritos-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.favoritos-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.favoritos-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.favoritos-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.favoritos-list::-webkit-scrollbar {
    width: 8px;
}

.favoritos-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.favoritos-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.favoritos-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.favoritos-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.favoritos-empty svg {
    margin-bottom: 20px;
}

.favoritos-empty p {
    font-size: 16px;
    margin: 10px 0 5px;
    color: rgba(255, 255, 255, 0.7);
}

.favoritos-empty small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.favorito-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.favorito-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-2px);
}

.favorito-item-poster {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.favorito-item-info {
    flex: 1;
    min-width: 0;
}

.favorito-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorito-item-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.favorito-item-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #FFD700;
}

.favorito-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #EF4444;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: all 0.2s ease;
}

.favorito-item:hover .favorito-item-remove {
    opacity: 1;
}

.favorito-item-remove:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #EF4444;
    transform: scale(1.1);
}

.add-watchlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.add-watchlist-btn:hover {
    background: rgba(95, 93, 255, 0.2);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.add-watchlist-btn svg {
    transition: all 0.3s ease;
}

.add-watchlist-btn.added {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.add-watchlist-btn.added svg {
    fill: currentColor;
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.25); }
}

@media (max-width: 768px) {
    .favoritos-dropdown {
        width: 320px;
    }
    
    .favorito-item-poster {
        width: 50px;
        height: 75px;
    }
    
    .favoritos-menu-container {
        margin-right: 8px;
    }
    
    .favoritos-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .favoritos-menu-container {
        margin-right: 4px;
    }
    
    .favoritos-btn {
        width: 38px;
        height: 38px;
    }
    
    .favoritos-btn .popcorn-icon {
        width: 22px;
        height: 22px;
    }
    
    .favoritos-count {
        font-size: 9px;
        min-width: 18px;
        height: 18px;
        top: -3px;
        right: -3px;
    }
    
    .favoritos-dropdown {
        width: 280px;
        right: -10px;
    }
}
